drm/amdkfd: Add dGPU support to kernel_queue_init
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 4 Jan 2018 22:17:46 +0000 (17:17 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 4 Jan 2018 22:17:46 +0000 (17:17 -0500)
Recognize dGPU ASIC families.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c

index 5dc6567d4a138b9de087c8d543e72e90a879b40e..69f4964853310ef93a8063dd984a3d58e7998788 100644 (file)
@@ -297,10 +297,15 @@ struct kernel_queue *kernel_queue_init(struct kfd_dev *dev,
 
        switch (dev->device_info->asic_family) {
        case CHIP_CARRIZO:
+       case CHIP_TONGA:
+       case CHIP_FIJI:
+       case CHIP_POLARIS10:
+       case CHIP_POLARIS11:
                kernel_queue_init_vi(&kq->ops_asic_specific);
                break;
 
        case CHIP_KAVERI:
+       case CHIP_HAWAII:
                kernel_queue_init_cik(&kq->ops_asic_specific);
                break;
        default: