Skip to content

Commit d2d5f6d

Browse files
author
Thomas Hellström
committed
drm/xe: Increase the XE_PL_TT watermark
The XE_PL_TT watermark was set to 50% of system memory. The idea behind that was unclear since the net effect is that TT memory will be evicted to TTM_PL_SYSTEM memory if that watermark is exceeded, requiring PPGTT rebinds and dma remapping. But there is no similar watermark for TTM_PL_1SYSTEM memory. The TTM functionality that tries to swap out system memory to shmem objects if a 50% limit of total system memory is reached is orthogonal to this, and with the shrinker added, it's no longer in effect. Replace the 50% TTM_PL_TT limit with a 100% limit, in effect allowing all graphics memory to be bound to the device unless it has been swapped out by the shrinker. Signed-off-by: Thomas Hellström <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Link: https://lore.kernel.org/intel-xe/[email protected]
1 parent 00c8efc commit d2d5f6d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/xe/xe_ttm_sys_mgr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ int xe_ttm_sys_mgr_init(struct xe_device *xe)
108108
u64 gtt_size;
109109

110110
si_meminfo(&si);
111+
/* Potentially restrict amount of TT memory here. */
111112
gtt_size = (u64)si.totalram * si.mem_unit;
112-
/* TTM limits allocation of all TTM devices by 50% of system memory */
113-
gtt_size /= 2;
114113

115114
man->use_tt = true;
116115
man->func = &xe_ttm_sys_mgr_func;

0 commit comments

Comments
 (0)