]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: GFX12.1 scratch memory limit up to 57-bit
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 26 Feb 2026 20:15:51 +0000 (15:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 16:42:26 +0000 (11:42 -0500)
commitb2d13a41da94008fdd3786b396a6375c12454522
tree147bba54c58270218478d19e44d02099d67f8c59
parent89b814a34a954c5aa678d1f39726d0c108489c72
drm/amdgpu: GFX12.1 scratch memory limit up to 57-bit

The scratch aperture or gmc private aperture in flat memory contains
57 bits of data on gfx v12.1.0 compared to the 32 bits from previous.

Add new helper kfd_init_apertures_v12 for gfx version >= v12.1.0 which
supports 57-bit VA space.

v2:
  - update pdd->scratch_limit (Yu, Lang)
  - update fixes tag (Felix Kuehling)
  - add helper kfd_init_apertures_v12

Fixes: db1882b3ff0c ("drm/amdkfd: Update LDS, Scratch base for 57bit address")
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Lang Yu <lang.yu@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/amdgpu/gmc_v12_0.c
drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c