diff options
| author | Dave Airlie <[email protected]> | 2025-06-02 20:40:10 +0000 |
|---|---|---|
| committer | Dave Airlie <[email protected]> | 2025-06-03 21:34:29 +0000 |
| commit | 0f6afbb2ae6c9bd2acd5acf75762fec68bc6fab0 (patch) | |
| tree | 68709c97a12792d010f6fbfad9265c0091278df5 /drivers/gpu/drm/ttm/ttm_pool.c | |
| parent | drm/i915: Use dma-fence driver and timeline name helpers (diff) | |
| download | kernel-0f6afbb2ae6c9bd2acd5acf75762fec68bc6fab0.tar.gz kernel-0f6afbb2ae6c9bd2acd5acf75762fec68bc6fab0.zip | |
ttm/pool: allow debugfs dumps for numa pools.
Currently you can't see per-device numa aware pools properly.
Cc: Christian König <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_pool.c')
| -rw-r--r-- | drivers/gpu/drm/ttm/ttm_pool.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c index 90b1bb903b93..4b16946d3248 100644 --- a/drivers/gpu/drm/ttm/ttm_pool.c +++ b/drivers/gpu/drm/ttm/ttm_pool.c @@ -1235,7 +1235,7 @@ int ttm_pool_debugfs(struct ttm_pool *pool, struct seq_file *m) { unsigned int i; - if (!pool->use_dma_alloc) { + if (!pool->use_dma_alloc && pool->nid == NUMA_NO_NODE) { seq_puts(m, "unused\n"); return 0; } @@ -1244,7 +1244,12 @@ int ttm_pool_debugfs(struct ttm_pool *pool, struct seq_file *m) spin_lock(&shrinker_lock); for (i = 0; i < TTM_NUM_CACHING_TYPES; ++i) { - seq_puts(m, "DMA "); + if (!ttm_pool_select_type(pool, i, 0)) + continue; + if (pool->use_dma_alloc) + seq_puts(m, "DMA "); + else + seq_printf(m, "N%d ", pool->nid); switch (i) { case ttm_cached: seq_puts(m, "\t:"); |
