mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/amdgpu: Fix panic during gpu reset
Clear the flag after hw suspend, otherwise it skips the corresponding hw resume. Signed-off-by: xinhui pan <xinhui.pan@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
1f288afc2c
commit
876923fb92
@ -2257,6 +2257,7 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev)
|
|||||||
DRM_ERROR("suspend of IP block <%s> failed %d\n",
|
DRM_ERROR("suspend of IP block <%s> failed %d\n",
|
||||||
adev->ip_blocks[i].version->funcs->name, r);
|
adev->ip_blocks[i].version->funcs->name, r);
|
||||||
}
|
}
|
||||||
|
adev->ip_blocks[i].status.hw = false;
|
||||||
/* handle putting the SMC in the appropriate state */
|
/* handle putting the SMC in the appropriate state */
|
||||||
if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_SMC) {
|
if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_SMC) {
|
||||||
if (is_support_sw_smu(adev)) {
|
if (is_support_sw_smu(adev)) {
|
||||||
@ -2271,7 +2272,6 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev)
|
|||||||
adev->mp1_state, r);
|
adev->mp1_state, r);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
adev->ip_blocks[i].status.hw = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user