[PATCH v6 7/8] drm/ttm: Increase maximum TTM priorities to 8
Matthew Brost <[email protected]> Thu, 30 Jul 2026 19:24:38 -0700
| Newsgroups | org.freedesktop.lists.intel-xe |
|---|---|
| Message-ID | <[email protected]> |
The current limit of four TTM priority levels is arbitrary. It is reasonable for drivers to require more than four priorities, while the cost of supporting additional levels is minimal. The primary overhead is a slightly larger memory footprint and iteration over a larger number of priority levels in non-performance-critical paths. Xe plans to make use of eight priority levels, so increase the maximum number of TTM priorities from 4 to 8. Signed-off-by: Matthew Brost <[email protected]> --- include/drm/ttm/ttm_resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h index a5d386583fb6..51718099a567 100644 --- a/include/drm/ttm/ttm_resource.h +++ b/include/drm/ttm/ttm_resource.h @@ -34,7 +34,7 @@ #include <drm/ttm/ttm_caching.h> #include <drm/ttm/ttm_kmap_iter.h> -#define TTM_MAX_BO_PRIORITY 4U +#define TTM_MAX_BO_PRIORITY 8U #define TTM_NUM_MEM_TYPES 9 struct dentry; -- 2.34.1