Skip to contentSkip to conversation

drm/amdkfd: use unmap all queues for poison consumption

PATCH In review Tao Zhou 2 participants 2 messages Jan 30, 2022 – Jan 31, 2022

Subsystems (3)
lore
Share & tools
lore

Tao Zhou

author
#0 lore raw

PATCH 1/1 drm/amdkfd: use unmap all queues for poison consumption

Replace reset queue for specific PASID with unmap all queues, reset queue could break CP scheduler.

---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +1 -2
index e8bc28009c22..dca0b5fac1db 100644
@@ -109,8 +109,7 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev,
 
 	switch (source_id) {
 	case SOC15_INTSRC_SQ_INTERRUPT_MSG:
-		if (dev->dqm->ops.reset_queues)
-			ret = dev->dqm->ops.reset_queues(dev->dqm, pasid);
+		ret = kfd_process_vm_fault(dev->dqm, pasid);
 		break;
 	case SOC15_INTSRC_SDMA_ECC:
 	default:
Signature · 1 line
2.17.1
maintainer
#1 lore raw

Am 2022-01-30 um 02:38 schrieb Tao Zhou:

Quoted 4 lines

Replace reset queue for specific PASID with unmap all queues, reset queue could break CP scheduler.

The change looks reasonable, based on what kfd_process_vm_fault does. But the function name is now a bit misleading. Maybe rename it to something more general, e.g. kfd_process_mem_fault or kfd_dqm_evict_pasid.

Regards,
  Felix

Quoted 18 lines
---
  drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +1 -2
index e8bc28009c22..dca0b5fac1db 100644
@@ -109,8 +109,7 @@ static void event_interrupt_poison_consumption(struct kfd_dev *dev,
 
  	switch (source_id) {
  	case SOC15_INTSRC_SQ_INTERRUPT_MSG:
-		if (dev->dqm->ops.reset_queues)
-			ret = dev->dqm->ops.reset_queues(dev->dqm, pasid);
+		ret = kfd_process_vm_fault(dev->dqm, pasid);
  		break;
  	case SOC15_INTSRC_SDMA_ECC:
  	default: