drm/amdkfd: use unmap all queues for poison consumption
authorTao Zhou <tao.zhou1@amd.com>
Mon, 7 Feb 2022 06:52:19 +0000 (14:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Feb 2022 19:15:07 +0000 (14:15 -0500)
Replace reset queue for specific PASID with unmap all queues, reset
queue could break CP scheduler.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c

index 7a2b634..68ee923 100644 (file)
@@ -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);
+               kfd_dqm_evict_pasid(dev->dqm, pasid);
                break;
        case SOC15_INTSRC_SDMA_ECC:
        default: