mirror of
https://github.com/strongtz/i915-sriov-dkms.git
synced 2026-05-06 21:53:25 +08:00
decrese the XE_PL_TT watermark for old kernel
we did not implement the shrinker in the older kernel Revert d2d5f6d578848f13b1d01abd4e9a2452e5602586
This commit is contained in:
@@ -111,6 +111,11 @@ int xe_ttm_sys_mgr_init(struct xe_device *xe)
|
||||
/* Potentially restrict amount of TT memory here. */
|
||||
gtt_size = (u64)si.totalram * si.mem_unit;
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 15, 0)
|
||||
/* TTM limits allocation of all TTM devices by 50% of system memory */
|
||||
gtt_size /= 2;
|
||||
#endif
|
||||
|
||||
man->use_tt = true;
|
||||
man->func = &xe_ttm_sys_mgr_func;
|
||||
ttm_resource_manager_init(man, &xe->ttm, gtt_size >> PAGE_SHIFT);
|
||||
|
||||
Reference in New Issue
Block a user