Skip to content

Commit 23c098b

Browse files
hkasivisalexdeucher
authored andcommitted
drm/amdgpu: Set atomics to true for xgmi
xgmi support atomics between links. Set them to true. This only set for GFX12 onwards to avoid regression on older generations v2: Use correct xgmi flag that indicates CPU connection Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 09da66f commit 23c098b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4615,9 +4615,10 @@ int amdgpu_device_init(struct amdgpu_device *adev,
46154615
/* APUs w/ gfx9 onwards doesn't reply on PCIe atomics, rather it is a
46164616
* internal path natively support atomics, set have_atomics_support to true.
46174617
*/
4618-
} else if ((adev->flags & AMD_IS_APU) &&
4619-
(amdgpu_ip_version(adev, GC_HWIP, 0) >
4620-
IP_VERSION(9, 0, 0))) {
4618+
} else if ((adev->flags & AMD_IS_APU &&
4619+
amdgpu_ip_version(adev, GC_HWIP, 0) > IP_VERSION(9, 0, 0)) ||
4620+
(adev->gmc.xgmi.connected_to_cpu &&
4621+
amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(12, 1, 0))) {
46214622
adev->have_atomics_support = true;
46224623
} else {
46234624
adev->have_atomics_support =

0 commit comments

Comments
 (0)