[PATCH] drm/amdkfd: correct sdma queue number of sdma 6.0.1

Huang, Tim Tim.Huang at amd.com
Tue Jun 21 02:01:07 UTC 2022


[AMD Official Use Only - General]

Reviewed-by: Tim Huang <Tim.Huang at amd.com>

-----Original Message-----
From: Zhang, Yifan <Yifan1.Zhang at amd.com>
Sent: Monday, June 20, 2022 4:42 PM
To: amd-gfx at lists.freedesktop.org
Cc: Huang, Ray <Ray.Huang at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>; Huang, Tim <Tim.Huang at amd.com>; Zhang, Yifan <Yifan1.Zhang at amd.com>
Subject: [PATCH] drm/amdkfd: correct sdma queue number of sdma 6.0.1

sdma 6.0.1 has 8 queues instead of 2.

Fixes: 2f68559102cb (drm/amdkfd: add GC 11.0.1 KFD support)
Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
index bf4200457772..c8fee0dbfdcb 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
@@ -75,7 +75,6 @@ static void kfd_device_info_set_sdma_info(struct kfd_dev *kfd)
        case IP_VERSION(5, 2, 3):/* YELLOW_CARP */
        case IP_VERSION(5, 2, 6):/* GC 10.3.6 */
        case IP_VERSION(5, 2, 7):/* GC 10.3.7 */
-       case IP_VERSION(6, 0, 1):
                kfd->device_info.num_sdma_queues_per_engine = 2;
                break;
        case IP_VERSION(4, 2, 0):/* VEGA20 */
@@ -90,6 +89,7 @@ static void kfd_device_info_set_sdma_info(struct kfd_dev *kfd)
        case IP_VERSION(5, 2, 4):/* DIMGREY_CAVEFISH */
        case IP_VERSION(5, 2, 5):/* BEIGE_GOBY */
        case IP_VERSION(6, 0, 0):
+       case IP_VERSION(6, 0, 1):
        case IP_VERSION(6, 0, 2):
                kfd->device_info.num_sdma_queues_per_engine = 8;
                break;
--
2.35.1



More information about the amd-gfx mailing list