drm/amdkfd: Reset GPU on queue preemption failure
authorjsg <jsg@openbsd.org>
Thu, 18 Apr 2024 00:56:11 +0000 (00:56 +0000)
committerjsg <jsg@openbsd.org>
Thu, 18 Apr 2024 00:56:11 +0000 (00:56 +0000)
From Harish Kasiviswanathan
4d87f08eb75513334a85458306373d7560af1017 in linux-6.6.y/6.6.28
8bdfb4ea95ca738d33ef71376c21eba20130f2eb in mainline linux

sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c

index e07652e..60d9830 100644 (file)
@@ -1980,6 +1980,7 @@ static int unmap_queues_cpsch(struct device_queue_manager *dqm,
                pr_err("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;
        }