diff options
author | 2024-03-26 15:32:46 -0400 | |
---|---|---|
committer | 2024-04-09 23:09:31 -0400 | |
commit | 8bdfb4ea95ca738d33ef71376c21eba20130f2eb (patch) | |
tree | 03902e841eb975e94cbd0516fd5709f3e4975774 /drivers/gpu/drm/amd | |
parent | nouveau: fix devinit paths to only handle display on GSP. (diff) | |
download | linux-8bdfb4ea95ca738d33ef71376c21eba20130f2eb.tar.gz linux-8bdfb4ea95ca738d33ef71376c21eba20130f2eb.tar.bz2 linux-8bdfb4ea95ca738d33ef71376c21eba20130f2eb.zip |
drm/amdkfd: Reset GPU on queue preemption failure
Currently, with F32 HWS GPU reset is only when unmap queue fails.
However, if compute queue doesn't repond to preemption request in time
unmap will return without any error. In this case, only preemption error
is logged and Reset is not triggered. Call GPU reset in this case also.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c index f4d395e38683..0b655555e167 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c @@ -2001,6 +2001,7 @@ static int unmap_queues_cpsch(struct device_queue_manager *dqm, dev_err(dev, "HIQ MQD's queue_doorbell_id0 is not 0, Queue preemption time out\n"); while (halt_if_hws_hang) schedule(); + kfd_hws_hang(dqm); return -ETIME; } |