2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/ttm/tests
Maarten Lankhorst 2b624a2c18
drm/ttm: Handle cgroup based eviction in TTM
cgroup resource allocation has to be handled in TTM, so -EAGAIN from
cgroups can be converted into -ENOSPC, and the limitcg can be properly
evicted in ttm code.

When hitting a resource limit through -EAGAIN, the cgroup for which the
limit is hit is also returned. This allows eviction to delete only from
cgroups which are a subgroup of the current cgroup.

The returned CSS is used to determine if eviction is valuable for a
given resource, and allows TTM to only target specific resources to
lower memory usage.

Co-developed-by: Friedrich Vock <friedrich.vock@gmx.de>
Signed-off-by: Friedrich Vock <friedrich.vock@gmx.de>
Co-developed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20241204134410.1161769-4-dev@lankhorst.se
Signed-off-by: Maxime Ripard <mripard@kernel.org>
2025-01-10 09:54:49 +01:00
..
.kunitconfig drm/ttm/tests: Delete unnecessary config option 2024-06-24 16:01:13 +05:30
Makefile drm/ttm/tests: Add tests with mock resource managers 2024-06-24 16:01:17 +05:30
TODO drm/ttm/tests: Add TODO file 2024-06-24 16:01:24 +05:30
ttm_bo_test.c drm/ttm: Handle cgroup based eviction in TTM 2025-01-10 09:54:49 +01:00
ttm_bo_validate_test.c drm/ttm: Handle cgroup based eviction in TTM 2025-01-10 09:54:49 +01:00
ttm_device_test.c drm/ttm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-25 09:53:13 +02:00
ttm_kunit_helpers.c drm/ttm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-25 09:53:13 +02:00
ttm_kunit_helpers.h drm/ttm/tests: Use u32 and u64 over uint*_t types 2024-06-24 16:01:26 +05:30
ttm_mock_manager.c drm/ttm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-25 09:53:13 +02:00
ttm_mock_manager.h drm/ttm/tests: Add eviction testing 2024-06-24 16:01:21 +05:30
ttm_pool_test.c drm/ttm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-25 09:53:13 +02:00
ttm_resource_test.c drm/ttm: Handle cgroup based eviction in TTM 2025-01-10 09:54:49 +01:00
ttm_tt_test.c drm/ttm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-25 09:53:13 +02:00