diff options
| author | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2024-12-17 15:58:46 +0100 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2025-01-13 12:58:10 +0100 |
| commit | 1d3160c7cba37b48be453f29ec2faede77002d14 (patch) | |
| tree | 3352932c08686ea1ffbc3b21d4436fffe1591f1a /tools/perf/scripts/python/task-analyzer.py | |
| parent | drm/ttm: Balance ttm_resource_cursor_init() and ttm_resource_cursor_fini() (diff) | |
| download | linux-1d3160c7cba37b48be453f29ec2faede77002d14.tar.gz linux-1d3160c7cba37b48be453f29ec2faede77002d14.zip | |
drm/ttm/pool: Restructure the pool allocation code
Simplify the pool allocation code somewhat by merging loop arguments
used by multiple functions together in a struct and simplifying the
loop. Also add documentation.
This hopefully makes the behaviour of the allocation loop
simplier to understand, but above all paves the way for upcoming
restore-while-allocating functionality.
There are no functional changes, but the "allow_pools" bool
introduced to keep current functionality could be removed as a
follow up, which would enable using write-back cached pools when
allocating memory for other caching modes, rather than to resort
to allocating from the system directly.
v15:
- Introduce this patch to simplify the upcoming patch that introduces
restore while allocating.
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241217145852.37342-4-thomas.hellstrom@linux.intel.com
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
