All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/5] Prepare GPU SVM for migration of THP
@ 2025-07-17 13:38 Francois Dugast
  2025-07-17 13:38 ` [PATCH v1 1/5] drm/pagemap: Use struct drm_pagemap_device_addr in mapping and copy functions Francois Dugast
                   ` (8 more replies)
  0 siblings, 9 replies; 19+ messages in thread
From: Francois Dugast @ 2025-07-17 13:38 UTC (permalink / raw)
  To: intel-xe; +Cc: matthew.brost, Francois Dugast

This series adds support to handle folios in GPU SVM in preparation of
THP migration of zone device pages. Major performance improvements are
expected due to skipping multiple loops that call APIs for DMA mapping,
page allocation, copy, etc. If 2MB folios are used instead of 4KB pages
some operations might be reduced by a factor of 512.

However, this cannot be exercised yet as the folio order will remain 0
until the migration code is available. This is being developed in a
separate series [1]. Once merged, a few more changes will be required
in GPU SVM to make use of it.

[1] https://lore.kernel.org/linux-mm/20250703233511.2028395-1-balbirs@nvidia.com

Francois Dugast (5):
  drm/pagemap: Use struct drm_pagemap_device_addr in mapping and copy
    functions
  drm/xe/svm: Use struct drm_pagemap_device_addr
  drm/pagemap: DMA map folios when possible
  drm/xe/migrate: Use order to calculate migration length
  drm/pagemap: Allocate folios when possible

 drivers/gpu/drm/drm_pagemap.c   | 115 +++++++++++++++++++-------------
 drivers/gpu/drm/xe/xe_migrate.c |  69 +++++++++++--------
 drivers/gpu/drm/xe/xe_migrate.h |   5 +-
 drivers/gpu/drm/xe/xe_svm.c     |  37 +++++-----
 include/drm/drm_pagemap.h       |   8 +--
 5 files changed, 140 insertions(+), 94 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-07-23 12:10 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-17 13:38 [PATCH v1 0/5] Prepare GPU SVM for migration of THP Francois Dugast
2025-07-17 13:38 ` [PATCH v1 1/5] drm/pagemap: Use struct drm_pagemap_device_addr in mapping and copy functions Francois Dugast
2025-07-18  4:03   ` Matthew Brost
2025-07-23 12:10     ` Thomas Hellström
2025-07-17 13:38 ` [PATCH v1 2/5] drm/xe/svm: Use struct drm_pagemap_device_addr Francois Dugast
2025-07-18  4:12   ` Matthew Brost
2025-07-17 13:38 ` [PATCH v1 3/5] drm/pagemap: DMA map folios when possible Francois Dugast
2025-07-18  4:21   ` Matthew Brost
2025-07-20 19:53   ` Matthew Brost
2025-07-17 13:38 ` [PATCH v1 4/5] drm/xe/migrate: Use order to calculate migration length Francois Dugast
2025-07-18  4:27   ` Matthew Brost
2025-07-17 13:38 ` [PATCH v1 5/5] drm/pagemap: Allocate folios when possible Francois Dugast
2025-07-18  4:41   ` Matthew Brost
2025-07-18  5:49     ` Matthew Brost
2025-07-20 20:53       ` Matthew Brost
2025-07-17 14:25 ` ✗ CI.checkpatch: warning for Prepare GPU SVM for migration of THP Patchwork
2025-07-17 14:26 ` ✓ CI.KUnit: success " Patchwork
2025-07-17 15:34 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-18 22:46 ` ✗ Xe.CI.Full: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.