]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd: Don't always set IP block HW status to false
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 2 Oct 2025 17:42:42 +0000 (12:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:34 +0000 (14:14 -0400)
amdgpu_device_ip_suspend_phase2() calls amdgpu_ip_block_suspend()
which already sets HW block status to false when succeeding with
IP suspend. Remove the explicit call in
amdgpu_device_ip_suspend_phase2() so that the status is accurate.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 3c1d784d6f3bb4047418f178f2380b5d396d68c1..70f5ff4c63e741fdb53574ee85a7a86dfe23a968 100644 (file)
@@ -3864,7 +3864,6 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev)
 
                /* XXX handle errors */
                r = amdgpu_ip_block_suspend(&adev->ip_blocks[i]);
-               adev->ip_blocks[i].status.hw = false;
 
                /* handle putting the SMC in the appropriate state */
                if (!amdgpu_sriov_vf(adev)) {