OSDN Git Service

drm/amdgpu: disable XGMI TA unload for arcturus
authorJohn Clements <john.clements@amd.com>
Wed, 8 Jan 2020 08:36:14 +0000 (16:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jan 2020 15:18:10 +0000 (10:18 -0500)
in event of GPU reset, XGMI TA unload causes unrecoverable GPU hang

Acked-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 281d896..3a1570d 100644 (file)
@@ -529,6 +529,11 @@ static int psp_xgmi_unload(struct psp_context *psp)
 {
        int ret;
        struct psp_gfx_cmd_resp *cmd;
+       struct amdgpu_device *adev = psp->adev;
+
+       /* XGMI TA unload currently is not supported on Arcturus */
+       if (adev->asic_type == CHIP_ARCTURUS)
+               return 0;
 
        /*
         * TODO: bypass the unloading in sriov for now