Commit 050743da authored by shaoyunl's avatar shaoyunl Committed by Alex Deucher

drm/amdgpu: Keep pending_reset valid during smu reset the ASIC

SMU internal might need to check this pending_reset setting to decide the reset method
Signed-off-by: default avatarshaoyunl <shaoyun.liu@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2d02893f
...@@ -1359,8 +1359,8 @@ static void amdgpu_drv_delayed_reset_work_handler(struct work_struct *work) ...@@ -1359,8 +1359,8 @@ static void amdgpu_drv_delayed_reset_work_handler(struct work_struct *work)
} }
for (i = 0; i < mgpu_info.num_dgpu; i++) { for (i = 0; i < mgpu_info.num_dgpu; i++) {
adev = mgpu_info.gpu_ins[i].adev; adev = mgpu_info.gpu_ins[i].adev;
adev->gmc.xgmi.pending_reset = false;
flush_work(&adev->xgmi_reset_work); flush_work(&adev->xgmi_reset_work);
adev->gmc.xgmi.pending_reset = false;
} }
/* reset function will rebuild the xgmi hive info , clear it now */ /* reset function will rebuild the xgmi hive info , clear it now */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment