Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] Enable THP support in drm_pagemap
@ 2026-01-09  8:54 Francois Dugast
  2026-01-09  8:54 ` [PATCH v3 1/7] mm: Add folio_split_unref helper Francois Dugast
                   ` (14 more replies)
  0 siblings, 15 replies; 42+ messages in thread
From: Francois Dugast @ 2026-01-09  8:54 UTC (permalink / raw)
  To: intel-xe; +Cc: dri-devel, Francois Dugast

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/20251001065707.920170-1-balbirs@nvidia.com/
[2] https://patchwork.freedesktop.org/series/151754/

v2:
- rebase on top of multi-device SVM
- add drm_pagemap_cpages() with temporary patch
- address other feedback from Matt Brost on v1

v3:
The major change is to remove the dependency to the mm/huge_memory
helper migrate_device_split_page() that was called explicitely when
a 2M buddy allocation backed by a large folio would be later reused
for a smaller allocation (4K or 64K). Instead, the first 3 patches
provided by Matthew Brost ensure large folios are split at the time
of freeing.

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 (4):
  mm: Add folio_split_unref helper
  fs/dax: Use folio_split_unref helper
  mm: Split device-private and coherent folios before freeing
  drm/pagemap: Correct cpages calculation for migrate_vma_setup

 drivers/gpu/drm/drm_gpusvm.c  |   7 +-
 drivers/gpu/drm/drm_pagemap.c | 154 ++++++++++++++++++++++++++++------
 fs/dax.c                      |  25 +-----
 include/drm/drm_pagemap.h     |  15 ++++
 include/linux/huge_mm.h       |   1 +
 mm/huge_memory.c              |  39 +++++++++
 mm/memremap.c                 |   2 +
 7 files changed, 190 insertions(+), 53 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2026-01-09 23:34 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-09  8:54 [PATCH v3 0/7] Enable THP support in drm_pagemap Francois Dugast
2026-01-09  8:54 ` [PATCH v3 1/7] mm: Add folio_split_unref helper Francois Dugast
2026-01-09 13:19   ` David Hildenbrand (Red Hat)
2026-01-09 13:26     ` David Hildenbrand (Red Hat)
2026-01-09 14:30       ` Zi Yan
2026-01-09 15:11         ` David Hildenbrand (Red Hat)
2026-01-09 18:38           ` Matthew Brost
2026-01-09 18:37     ` Andrew Morton
2026-01-09 18:41       ` Zi Yan
2026-01-09 18:54         ` Francois Dugast
2026-01-09 18:43       ` Matthew Brost
2026-01-09 19:22         ` Andrew Morton
2026-01-09 19:26           ` Liam R. Howlett
2026-01-09  8:54 ` [PATCH v3 2/7] fs/dax: Use " Francois Dugast
2026-01-09  8:54 ` [PATCH v3 3/7] mm: Split device-private and coherent folios before freeing Francois Dugast
2026-01-09 11:09   ` Mika Penttilä
2026-01-09 17:28     ` Zi Yan
2026-01-09 18:26       ` Matthew Brost
2026-01-09 18:53         ` Zi Yan
2026-01-09 19:08           ` Matthew Brost
2026-01-09 19:23             ` Zi Yan
2026-01-09 20:03               ` Matthew Brost
2026-01-09 20:15                 ` Zi Yan
2026-01-09 21:34                   ` Balbir Singh
2026-01-09 21:43                     ` Zi Yan
2026-01-09 22:11                       ` Balbir Singh
2026-01-09 22:14                         ` Zi Yan
2026-01-09 22:36                           ` Balbir Singh
2026-01-09 23:15                             ` Matthew Brost
2026-01-09  8:54 ` [PATCH v3 4/7] drm/pagemap: Unlock and put folios when possible Francois Dugast
2026-01-09  8:54 ` [PATCH v3 5/7] drm/pagemap: Add helper to access zone_device_data Francois Dugast
2026-01-09  8:54 ` [PATCH v3 6/7] drm/pagemap: Correct cpages calculation for migrate_vma_setup Francois Dugast
2026-01-09  8:54 ` [PATCH v3 7/7] drm/pagemap: Enable THP support for GPU memory migration Francois Dugast
2026-01-09 23:33   ` Matthew Brost
2026-01-09  9:33 ` ✓ CI.KUnit: success for Enable THP support in drm_pagemap (rev3) Patchwork
2026-01-09  9:49 ` ✗ CI.checksparse: warning " Patchwork
2026-01-09 10:34 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-01-09 11:59 ` ✗ Xe.CI.Full: " Patchwork
2026-01-09 12:37 ` ✓ CI.KUnit: success for Enable THP support in drm_pagemap (rev4) Patchwork
2026-01-09 12:53 ` ✗ CI.checksparse: warning " Patchwork
2026-01-09 13:26 ` ✓ Xe.CI.BAT: success " Patchwork
2026-01-09 16:37 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox