drm/amdgpu: move full access into amdgpu_device_ip_suspend
authorYintian Tao <yttao@amd.com>
Wed, 22 Aug 2018 09:08:13 +0000 (17:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Aug 2018 16:55:20 +0000 (11:55 -0500)
commite78196444b43caed136bf424b09352d8433cdb95
tree509f65f3389f206ae4928a54a45435b7db7e2a06
parent0c79c0bb872e393d507fb7a0835b2ec124f8266b
drm/amdgpu: move full access into amdgpu_device_ip_suspend

It will be more safe to make full-acess include both phase1 and phase2.
Then accessing special registeris wherever at phase1 or phase2 will not
block any shutdown and suspend process under virtualization.

Signed-off-by: Yintian Tao <yttao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c