]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: Update LDS, Scratch base for 57bit address
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 22 Apr 2025 20:30:02 +0000 (16:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Dec 2025 18:28:03 +0000 (13:28 -0500)
commitdb1882b3ff0c51d3ffdcdeee7ad1f9f01ea78453
tree2c65dd1c93c231e46055e3c8ccc46eca48e5fa1a
parent6f744d7976e4910e478d1e46666aef96a71386ad
drm/amdkfd: Update LDS, Scratch base for 57bit address

For 5-level page tables, update compute vmid sh_mem_base LDS aperture
and Scratch aperture base address to above 57-bit, use the same setting
from gfx vmid, we can remove the duplicate macro.

Update queue pdd lds_base and scratch_base to the same value as
sh_mem_base setting. Then application get process apertures return the
correct value to access LDS and Scratch memory for 57bit address 5-level
page tables. This may pass to MES in future when mapping queue.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Acked-by: Felix Kuehling <felix.kuehling@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_flat_memory.c