]> Git Repo - linux.git/commitdiff
drm/amdgpu: drop S0ix checks around CG/PG in suspend
authorAlex Deucher <[email protected]>
Tue, 16 Mar 2021 18:18:30 +0000 (14:18 -0400)
committerAlex Deucher <[email protected]>
Mon, 22 Mar 2021 19:28:10 +0000 (15:28 -0400)
We handle it properly within the CG/PG functions directly
now.

Acked-by: Evan Quan <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index eb61d5e5535bc4ea7eaae0313cefa32984ef440c..de2cb3b1757cc9d7acbf0fe210339d0a28aa57ed 100644 (file)
@@ -2686,10 +2686,8 @@ static int amdgpu_device_ip_suspend_phase1(struct amdgpu_device *adev)
 {
        int i, r;
 
-       if (!adev->in_s0ix || amdgpu_in_reset(adev)) {
-               amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
-               amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
-       }
+       amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
+       amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
 
        for (i = adev->num_ip_blocks - 1; i >= 0; i--) {
                if (!adev->ip_blocks[i].status.valid)
This page took 0.071969 seconds and 4 git commands to generate.