diff options
| author | David Belanger <david.belanger@amd.com> | 2024-06-10 16:38:55 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-07-23 17:33:17 -0400 |
| commit | 666f14cab21b17ccc1bdfe1e82458aa429b3b7e0 (patch) | |
| tree | 00d27cb6f6efef2f30ceb207137c48a8df43f96d /drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | |
| parent | 4df9e2200fb8ae7199e46eaffeb9430bc0ba3ea7 (diff) | |
| download | linux-666f14cab21b17ccc1bdfe1e82458aa429b3b7e0.tar.gz linux-666f14cab21b17ccc1bdfe1e82458aa429b3b7e0.tar.bz2 linux-666f14cab21b17ccc1bdfe1e82458aa429b3b7e0.zip | |
drm/amdgpu: Fix atomics on GFX12
If PCIe supports atomics, configure register to prevent DF from
breaking atomics in separate load/store operations.
Signed-off-by: David Belanger <david.belanger@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index b241f61fe9c9..ac108fca64fe 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c @@ -37,6 +37,7 @@ #include "df_v3_6.h" #include "df_v4_3.h" #include "df_v4_6_2.h" +#include "df_v4_15.h" #include "nbio_v6_1.h" #include "nbio_v7_0.h" #include "nbio_v7_4.h" @@ -2803,6 +2804,10 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev) case IP_VERSION(4, 6, 2): adev->df.funcs = &df_v4_6_2_funcs; break; + case IP_VERSION(4, 15, 0): + case IP_VERSION(4, 15, 1): + adev->df.funcs = &df_v4_15_funcs; + break; default: break; } |
