drm/amdkfd: Reset GPU on queue preemption failure
Subsystems (3)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1 -0
@@ -2000,6 +2000,7 @@ static int unmap_queues_cpsch(struct device_queue_manager *dqm,if (mqd_mgr->check_preemption_failed (mqd_mgr, dqm->packet_mgr.priv_queue->queue->mqd)) {while (halt_if_hws_hang)schedule (); +kfd_hws_hang (dqm);return -ETIME ; }
Signature · 1 line
2.34.1
[AMD Official Use Only - General]
Quoted 40 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Harish Kasiviswanathan
Sent: Tuesday, March 26, 2024 4:02 PM
To: [email protected]
Cc: Kasiviswanathan, Harish <[email protected]>
Subject: [PATCH] drm/amdkfd: Reset GPU on queue preemption failureCaution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
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.
Signed-off-by Harish Kasiviswanathan <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1
-0@@ -2000,6 +2000,7 @@ static int unmap_queues_cpsch(struct device_queue_manager *dqm, if (mqd_mgr->check_preemption_failed(mqd_mgr, dqm- >packet_mgr.priv_queue->queue->mqd)) {while (halt_if_hws_hang)schedule (); +kfd_hws_hang (dqm);return -ETIME ;}--
2.34.1
Quoted 8 lines · Harish Kasiviswanathan
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.
Signed-off-by Harish Kasiviswanathan <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1
-1@@ -2000,6 +2000,7 @@ static int unmap_queues_cpsch(struct device_queue_manager *dqm,if (mqd_mgr->check_preemption_failed (mqd_mgr, dqm->packet_mgr.priv_queue->queue->mqd)) {while (halt_if_hws_hang)schedule (); +kfd_hws_hang (dqm);return -ETIME ; } --2.34.1