diff options
| author | Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> | 2025-08-20 13:47:52 +0300 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-09 23:18:34 +0300 | 
| commit | 11aaec3566480e6cde0edb8e663c4b5ee32318f5 (patch) | |
| tree | 7d437534c43b7496d7bdf089f531f78d6085ce5b /drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h | |
| parent | 357fe94b66f851c8824415d0168a8a72c4778698 (diff) | |
| download | linux-11aaec3566480e6cde0edb8e663c4b5ee32318f5.tar.xz | |
drm/amdgpu: Wire up MMIO_REMAP placement and User-visible strings
Wire up the conversions and strings for the new MMIO_REMAP placement:
* amdgpu_mem_type_to_domain() maps AMDGPU_PL_MMIO_REMAP -> domain
* amdgpu_bo_placement_from_domain() accepts the new domain
* amdgpu_bo_mem_stats_placement() and amdgpu_bo_print_info() report it
* res cursor supports the new placement
* fdinfo prints "mmioremap" for the new placement
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h index 50fcd86e1033..be2e56ce1355 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h @@ -91,6 +91,7 @@ static inline void amdgpu_res_first(struct ttm_resource *res,  		break;  	case TTM_PL_TT:  	case AMDGPU_PL_DOORBELL: +	case AMDGPU_PL_MMIO_REMAP:  		node = to_ttm_range_mgr_node(res)->mm_nodes;  		while (start >= node->size << PAGE_SHIFT)  			start -= node++->size << PAGE_SHIFT; @@ -153,6 +154,7 @@ static inline void amdgpu_res_next(struct amdgpu_res_cursor *cur, uint64_t size)  		break;  	case TTM_PL_TT:  	case AMDGPU_PL_DOORBELL: +	case AMDGPU_PL_MMIO_REMAP:  		node = cur->node;  		cur->node = ++node; | 
