]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Set snoop bit for SDMA for MI series
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Tue, 4 Feb 2025 22:57:47 +0000 (17:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:05:49 +0000 (21:05 -0500)
commit3394b1f76d3f8adf695ceed350a5dae49003eb37
tree29ef9c4c68f2f6f8834dcc907367bf67ff04b306
parent53b2e0c24afa4c24a2bf42bc850fe1565d978805
drm/amdgpu: Set snoop bit for SDMA for MI series

SDMA writes has to probe invalidate RW lines. Set snoop bit in mmhub for
this to happen.

v2: Missed a few mmhub_v9_4. Added now.
v3: Calculate hub offset once since it doesn't change inside the loop
    Modified function names based on review comments.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_4_1_offset.h
drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_4_1_sh_mask.h