aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_df.h
diff options
context:
space:
mode:
authorDavid Belanger <[email protected]>2024-06-10 20:38:55 +0000
committerAlex Deucher <[email protected]>2024-07-24 21:30:23 +0000
commit73048bda46c3085df5fd42840de09523386d3e54 (patch)
treec3351fee78dae1c214cc486ee86bbb42e7c1cdd8 /drivers/gpu/drm/amd/amdgpu/amdgpu_df.h
parentdrm/amdgpu/sdma5.2: Update wptr registers as well as doorbell (diff)
downloadkernel-73048bda46c3085df5fd42840de09523386d3e54.tar.gz
kernel-73048bda46c3085df5fd42840de09523386d3e54.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 <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 666f14cab21b17ccc1bdfe1e82458aa429b3b7e0)
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_df.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_df.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_df.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_df.h
index 1538b2dbfff1..eb605e79ae0e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_df.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_df.h
@@ -33,6 +33,7 @@ struct amdgpu_df_hash_status {
struct amdgpu_df_funcs {
void (*sw_init)(struct amdgpu_device *adev);
void (*sw_fini)(struct amdgpu_device *adev);
+ void (*hw_init)(struct amdgpu_device *adev);
void (*enable_broadcast_mode)(struct amdgpu_device *adev,
bool enable);
u32 (*get_fb_channel_number)(struct amdgpu_device *adev);