projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cc809d
)
ttm/pool: allow debugfs dumps for numa pools.
author
Dave Airlie
<airlied@redhat.com>
Mon, 2 Jun 2025 20:40:10 +0000
(06:40 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 3 Jun 2025 21:34:29 +0000
(07:34 +1000)
Currently you can't see per-device numa aware pools properly.
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link:
https://lore.kernel.org/r/20250602204013.1104258-1-airlied@gmail.com
drivers/gpu/drm/ttm/ttm_pool.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_pool.c
b/drivers/gpu/drm/ttm/ttm_pool.c
index
90b1bb9
..
4b16946
100644
(file)
--- 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:");