aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-09-14 09:43:57 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-09-19 13:35:07 -0400
commit0ee8685392a642ffb381d15d9fe4445d4ec03b56 (patch)
tree154f624e84a0141b19de31f09c5bd2db0c37638e /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
parent769f846e1411a28202510b590379a1442eb3e85d (diff)
drm/amdgpu: add GDS, GWS and OA debugfs files
Additional to the existing files for VRAM and GTT. Signed-off-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_ttm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index f12ae6b525b9..1565344cc139 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -2208,7 +2208,7 @@ error_free:
2208static int amdgpu_mm_dump_table(struct seq_file *m, void *data) 2208static int amdgpu_mm_dump_table(struct seq_file *m, void *data)
2209{ 2209{
2210 struct drm_info_node *node = (struct drm_info_node *)m->private; 2210 struct drm_info_node *node = (struct drm_info_node *)m->private;
2211 unsigned ttm_pl = *(int *)node->info_ent->data; 2211 unsigned ttm_pl = (uintptr_t)node->info_ent->data;
2212 struct drm_device *dev = node->minor->dev; 2212 struct drm_device *dev = node->minor->dev;
2213 struct amdgpu_device *adev = dev->dev_private; 2213 struct amdgpu_device *adev = dev->dev_private;
2214 struct ttm_mem_type_manager *man = &adev->mman.bdev.man[ttm_pl]; 2214 struct ttm_mem_type_manager *man = &adev->mman.bdev.man[ttm_pl];
@@ -2218,12 +2218,12 @@ static int amdgpu_mm_dump_table(struct seq_file *m, void *data)
2218 return 0; 2218 return 0;
2219} 2219}
2220 2220
2221static int ttm_pl_vram = TTM_PL_VRAM;
2222static int ttm_pl_tt = TTM_PL_TT;
2223
2224static const struct drm_info_list amdgpu_ttm_debugfs_list[] = { 2221static const struct drm_info_list amdgpu_ttm_debugfs_list[] = {
2225 {"amdgpu_vram_mm", amdgpu_mm_dump_table, 0, &ttm_pl_vram}, 2222 {"amdgpu_vram_mm", amdgpu_mm_dump_table, 0, (void *)TTM_PL_VRAM},
2226 {"amdgpu_gtt_mm", amdgpu_mm_dump_table, 0, &ttm_pl_tt}, 2223 {"amdgpu_gtt_mm", amdgpu_mm_dump_table, 0, (void *)TTM_PL_TT},
2224 {"amdgpu_gds_mm", amdgpu_mm_dump_table, 0, (void *)AMDGPU_PL_GDS},
2225 {"amdgpu_gws_mm", amdgpu_mm_dump_table, 0, (void *)AMDGPU_PL_GWS},
2226 {"amdgpu_oa_mm", amdgpu_mm_dump_table, 0, (void *)AMDGPU_PL_OA},
2227 {"ttm_page_pool", ttm_page_alloc_debugfs, 0, NULL}, 2227 {"ttm_page_pool", ttm_page_alloc_debugfs, 0, NULL},
2228#ifdef CONFIG_SWIOTLB 2228#ifdef CONFIG_SWIOTLB
2229 {"ttm_dma_page_pool", ttm_dma_page_alloc_debugfs, 0, NULL} 2229 {"ttm_dma_page_pool", ttm_dma_page_alloc_debugfs, 0, NULL}