[PATCH] drm/amdkfd: add MEC version that supports no PCIe atomics for GFX12

Kasiviswanathan, Harish Harish.Kasiviswanathan at amd.com
Thu Nov 28 20:26:46 UTC 2024


[Public]

-----Original Message-----
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Sreekant Somasekharan
Sent: Thursday, November 28, 2024 1:20 PM
To: amd-gfx at lists.freedesktop.org
Cc: Somasekharan, Sreekant <Sreekant.Somasekharan at amd.com>
Subject: [PATCH] drm/amdkfd: add MEC version that supports no PCIe atomics for GFX12

Add MEC version from which alternate support for no PCIe atomics
is provided so that device is not skipped during KFD device init in
GFX1200/GFX1201.

Signed-off-by: Sreekant Somasekharan <sreekant.somasekharan at amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
index 956198da7859..891ce1d0dbbe 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
@@ -237,6 +237,7 @@ static void kfd_device_info_init(struct kfd_dev *kfd,
                        kfd->device_info.no_atomic_fw_version = kfd->adev->gfx.rs64_enable ? 509 : 0;
                } else {

Safer to add an else if (gc_version < IP_VERSION(13, 0, 0)) {

}
                        kfd->device_info.needs_pci_atomics = true;
+                       kfd->device_info.no_atomic_fw_version = 2090;
                }
        } else {
                kfd->device_info.doorbell_size = 4;
--
2.34.1



More information about the amd-gfx mailing list