Use Balbir Singh's series for device-private THP support [1] and previous preparation work in drm_pagemap [2] to add 2MB/THP support in xe. This leads to significant performance improvements when using SVM with 2MB pages.
[1] https://lore.kernel.org/linux-mm/[email protected]/ [2] https://patchwork.freedesktop.org/series/151754/ Francois Dugast (3): drm/pagemap: Unlock and put folios when possible drm/pagemap: Add helper to access zone_device_data drm/pagemap: Enable THP support for GPU memory migration Matthew Brost (1): mm/migrate: Add migrate_device_split_page drivers/gpu/drm/drm_gpusvm.c | 7 +- drivers/gpu/drm/drm_pagemap.c | 146 +++++++++++++++++++++++++++------- drivers/gpu/drm/xe/xe_svm.c | 5 ++ include/drm/drm_pagemap.h | 7 +- include/linux/huge_mm.h | 3 + include/linux/migrate.h | 1 + mm/huge_memory.c | 6 +- mm/migrate_device.c | 49 ++++++++++++ 8 files changed, 188 insertions(+), 36 deletions(-) -- 2.43.0
