]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/ttm: Add New AMDGPU_PL_MMIO_REMAP Placement
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Wed, 20 Aug 2025 07:18:50 +0000 (12:48 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Sep 2025 20:18:30 +0000 (16:18 -0400)
commit357fe94b66f851c8824415d0168a8a72c4778698
treec0dc59a961e6020d21fb999249bc9603dc5ac5fc
parent8908fdce0634a623404e9923ed2f536101a39db5
drm/amdgpu/ttm: Add New AMDGPU_PL_MMIO_REMAP Placement

Introduce a kernel-internal TTM placement type AMDGPU_PL_MMIO_REMAP
for the HDP flush MMIO remap page

Plumbing added:
- amdgpu_res_cursor.{first,next}: treat MMIO_REMAP like DOORBELL
- amdgpu_ttm_io_mem_reserve(): return BAR bus address + offset
  for MMIO_REMAP, mark as uncached I/O
- amdgpu_ttm_io_mem_pfn(): PFN from register BAR
- amdgpu_res_cpu_visible(): visible to CPU
- amdgpu_evict_flags()/amdgpu_bo_move(): non-migratable
- amdgpu_ttm_tt_pde_flags(): map as SYSTEM
- amdgpu_bo_mem_stats_placement(): report AMDGPU_PL_MMIO_REMAP
- amdgpu_fdinfo: print “mmioremap” bucket label

Cc: Alex Deucher <alexander.deucher@amd.com>
Suggested-by: Christian König <christian.koenig@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.h