diff options
author | Yintian Tao <yttao@amd.com> | 2018-08-16 04:17:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 12:11:09 -0400 |
commit | 9c70d10ae72a188adb9da83ec760e1d5779bc2ed (patch) | |
tree | 7f9b5520001bf837817359626b6d52f907f13090 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 3890d11153e20ed48de2adca4261788f72b93f66 (diff) |
drm/amdgpu: remove fulll access for suspend phase1
There is no need for gpu full access for suspend phase1
because under virtualization there is no hw register access
for dce block.
Signed-off-by: Yintian Tao <yttao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index f623c71977e9..c961e781430d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1974,9 +1974,6 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev) | |||
1974 | { | 1974 | { |
1975 | int i, r; | 1975 | int i, r; |
1976 | 1976 | ||
1977 | if (amdgpu_sriov_vf(adev)) | ||
1978 | amdgpu_virt_request_full_gpu(adev, false); | ||
1979 | |||
1980 | for (i = adev->num_ip_blocks - 1; i >= 0; i--) { | 1977 | for (i = adev->num_ip_blocks - 1; i >= 0; i--) { |
1981 | if (!adev->ip_blocks[i].status.valid) | 1978 | if (!adev->ip_blocks[i].status.valid) |
1982 | continue; | 1979 | continue; |
@@ -1992,9 +1989,6 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev) | |||
1992 | } | 1989 | } |
1993 | } | 1990 | } |
1994 | 1991 | ||
1995 | if (amdgpu_sriov_vf(adev)) | ||
1996 | amdgpu_virt_release_full_gpu(adev, false); | ||
1997 | |||
1998 | return 0; | 1992 | return 0; |
1999 | } | 1993 | } |
2000 | 1994 | ||