]> Git Repo - linux.git/commitdiff
drm/amdgpu: Keep pending_reset valid during smu reset the ASIC
authorshaoyunl <[email protected]>
Mon, 15 Mar 2021 15:36:14 +0000 (11:36 -0400)
committerAlex Deucher <[email protected]>
Wed, 24 Mar 2021 03:36:04 +0000 (23:36 -0400)
SMU internal might need to check this pending_reset setting to decide the reset method

Signed-off-by: shaoyunl <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

index 668c209023580d9b6dd2f88b5801a40cc3304625..e123828fd027411361ca0061bdebbce223b78a34 100644 (file)
@@ -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++) {
                adev = mgpu_info.gpu_ins[i].adev;
-               adev->gmc.xgmi.pending_reset = false;
                flush_work(&adev->xgmi_reset_work);
+               adev->gmc.xgmi.pending_reset = false;
        }
 
        /* reset function will rebuild the xgmi hive info , clear it now */
This page took 0.058695 seconds and 4 git commands to generate.