]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/ttm: Initialize AMDGPU_PL_MMIO_REMAP Heap
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Wed, 20 Aug 2025 11:09:38 +0000 (16:39 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:52:07 +0000 (16:52 -0400)
commita3ac30ffea5de2f511696ae46f5a7f793e6d4bfb
tree81a632fc688ae4f6ccdf7b917c5f22057736d477
parentfb5a52dbe9fecde432b4da7ea2d2724a947e9a79
drm/amdgpu/ttm: Initialize AMDGPU_PL_MMIO_REMAP Heap

Add a one-page TTM range manager for AMDGPU_PL_MMIO_REMAP via
amdgpu_ttm_init_on_chip(). This only registers the placement with TTM;
no BO is allocated in this patch.

The singleton 4K remap BO is created and freed in the following patch.

This split follows to separate heap bring-up from BO allocation.

Cc: Christian König <christian.koenig@amd.com>
Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c