]> www.infradead.org Git - nvme.git/commitdiff
drm/amdkfd: add KFD support for SDMA IP v6.1.2
authorTim Huang <Tim.Huang@amd.com>
Tue, 14 May 2024 06:50:12 +0000 (14:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jul 2024 22:05:47 +0000 (18:05 -0400)
Enable KFD setting SDMA info for SDMA 6.1.2.

Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c

index e6debd63a11631708bd9b7e5b8afbb62f8a5cb97..f4d20adaa0689954df668d816ae29b27c8105c59 100644 (file)
@@ -99,6 +99,7 @@ static void kfd_device_info_set_sdma_info(struct kfd_dev *kfd)
        case IP_VERSION(6, 0, 3):
        case IP_VERSION(6, 1, 0):
        case IP_VERSION(6, 1, 1):
+       case IP_VERSION(6, 1, 2):
        case IP_VERSION(7, 0, 0):
        case IP_VERSION(7, 0, 1):
                kfd->device_info.num_sdma_queues_per_engine = 8;
@@ -119,6 +120,7 @@ static void kfd_device_info_set_sdma_info(struct kfd_dev *kfd)
        case IP_VERSION(6, 0, 3):
        case IP_VERSION(6, 1, 0):
        case IP_VERSION(6, 1, 1):
+       case IP_VERSION(6, 1, 2):
        case IP_VERSION(7, 0, 0):
        case IP_VERSION(7, 0, 1):
                /* Reserve 1 for paging and 1 for gfx */