]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Fix SHMEM alignment mode for GFX 12.1.0
authorMukul Joshi <mukul.joshi@amd.com>
Thu, 27 Mar 2025 21:17:06 +0000 (17:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 19:25:34 +0000 (14:25 -0500)
commite3b8d8cc8c60db6c2be1251664da68b3e021a672
treea13e35d8dbfa0661e819bb26a0640249fff848ce
parent3849efdc7888d537f09c3dcfaea4b3cd377a102e
drm/amdgpu: Fix SHMEM alignment mode for GFX 12.1.0

Alignment mode in SHMEM config register is only a single bit
value on GFX 12.1.0 instead of 2 bits in previous asics.
Add a new enum and use the correct value of SHMEM alignment mode
when programming the SHMEM config register.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v12_1.c
drivers/gpu/drm/amd/include/soc_v1_0_enum.h