diff options
| author | Natalie Vock <natalie.vock@gmx.de> | 2026-08-04 10:25:18 +0200 |
|---|---|---|
| committer | Natalie Vock <nat@pixelcluster.dev> | 2026-08-05 10:35:16 +0200 |
| commit | 3f356c0e36a057e45301b8279da4ed4b68fe80a6 (patch) | |
| tree | 25eff88098a2bd45d733454d25aa161e1c464985 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 34f3e259925382cd87187dd426d3918379c6144e (diff) | |
drm/ttm: Extract code for attempting allocation in a place
Move all code for attempting allocation for a specific place to
ttm_bo_alloc_place. With subsequent patches, this logic is going to get
more complicated, so it helps readability to have this separate.
ttm_bo_alloc_at_place takes a pointer to a struct ttm_bo_alloc_state.
This struct holds various state produced by the allocation (e.g. cgroup
resource associated with the allocation) that the caller needs to keep
track of (and potentially dispose of). This is just the limiting cgroup
pool for now, but future patches will add more state needing to be tracked.
ttm_bo_alloc_at_place also communicates via return codes if eviction
using ttm_bo_evict_alloc should be attempted. This is preparation for
attempting eviction in more cases than just force_space being set.
No functional change intended.
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Maarten Lankhorst <dev@lankhorst.se>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Natalie Vock <natalie.vock@gmx.de>
Link: https://patch.msgid.link/20260804-dmemcg-aggressive-protect-v8-3-07af96681bf8@gmx.de
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
