Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/ttm/tests: Remove checks from ttm_pool_free_no_dma_alloc

On !x86, the pool type is never initialised, and the pages are freed
back to the system.

The test broke on the list_lru rewrite, but I'm not sure how that it was
supposed to work previously. In the meantime CI is broken so reverting
for now.

Fixes: 444e2a19d7fd ("ttm/pool: port to list_lru. (v2)")
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patch.msgid.link/20260409142658.1511941-2-dev@lankhorst.se

authored by

Maarten Lankhorst and committed by
Dave Airlie
9fb01062 3b053cd7

-6
-6
drivers/gpu/drm/ttm/tests/ttm_pool_test.c
··· 368 368 struct ttm_test_devices *devs = priv->devs; 369 369 struct ttm_tt *tt; 370 370 struct ttm_pool *pool; 371 - struct ttm_pool_type *pt; 372 371 enum ttm_caching caching = ttm_uncached; 373 372 unsigned int order = 2; 374 373 size_t size = (1 << order) * PAGE_SIZE; ··· 381 382 ttm_pool_init(pool, devs->dev, NUMA_NO_NODE, 0); 382 383 ttm_pool_alloc(pool, tt, &simple_ctx); 383 384 384 - pt = &pool->caching[caching].orders[order]; 385 - KUNIT_ASSERT_TRUE(test, list_lru_count(&pt->pages) == 1); 386 - 387 385 ttm_pool_free(pool, tt); 388 386 ttm_tt_fini(tt); 389 - 390 - KUNIT_ASSERT_TRUE(test, list_lru_count(&pt->pages) == 1); 391 387 392 388 ttm_pool_fini(pool); 393 389 }