OSDN Git Service

drm/amdgpu: rework suspend and resume to deal with atomic changes
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Jul 2018 18:24:33 +0000 (13:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Jul 2018 19:24:55 +0000 (14:24 -0500)
commitfe1053b7859dcbe830212de43befe6c7e4f089a8
treea9820ef97615e6db0585b168afd3607770ca7fbb
parente7854a038015122538df4777b8c192e03b4eb6c2
drm/amdgpu: rework suspend and resume to deal with atomic changes

Use the newly split ip suspend functions to do suspend displays
first (to deal with atomic so that FBs can be unpinned before
attempting to evict vram), then evict vram, then suspend the
other IPs.  Also move the non-DC pinning code to only be
called in the non-DC cases since atomic should take care of
DC.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107065
Fixes: e00fb85 drm: Stop updating plane->crtc/fb/old_fb on atomic drivers
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-and-tested-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c