]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Add drm_pagemap ops to SVM
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 6 Mar 2025 01:26:48 +0000 (17:26 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 19:36:54 +0000 (11:36 -0800)
commit11bbe0d9aa9680257b666e50d6b3c15bb856a27e
tree614effbd5cdcdc0065b9fb3a63f7eec4b2c9d643
parent808c37ee396f6f0a853acc030d8d4c55e07cdaa7
drm/xe: Add drm_pagemap ops to SVM

Add support for mapping device pages to Xe SVM by attaching drm_pagemap
to a memory region, which is then linked to a GPU SVM devmem allocation.
This enables GPU SVM to derive the device page address.

v3:
 - Better commit message (Thomas)
 - New drm_pagemap.h location
v5:
 - s/xe_mem_region/xe_vram_region (Rebase)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-24-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_svm.c