diff options
| author | Graham Sider <Graham.Sider@amd.com> | 2022-09-29 11:57:34 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2022-11-04 16:05:53 -0400 |
| commit | 9a1662f549343d3ec882c5ffcfd232c6104d3c85 (patch) | |
| tree | bc5a658d6c2c0f551a9e8c9fb4d5cf4fe2ebfe06 /drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | |
| parent | drm/amdkfd: update GFX11 CWSR trap handler (diff) | |
| download | linux-9a1662f549343d3ec882c5ffcfd232c6104d3c85.tar.gz linux-9a1662f549343d3ec882c5ffcfd232c6104d3c85.zip | |
drm/amdgpu: extend halt_if_hws_hang to MES
Hang on MES timeout if halt_if_hws_hang is set to 1.
Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mes_v10_1.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c index 1abdf8b7ab50..614394118a53 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c @@ -121,6 +121,10 @@ static int mes_v10_1_submit_pkt_and_poll_completion(struct amdgpu_mes *mes, if (r < 1) { DRM_ERROR("MES failed to response msg=%d\n", x_pkt->header.opcode); + + while (halt_if_hws_hang) + schedule(); + return -ETIMEDOUT; } |
