]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Support for mmap-ing mmio regions
authorIlia Levi <ilia.levi@intel.com>
Mon, 14 Jul 2025 12:26:58 +0000 (15:26 +0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 25 Jul 2025 21:44:54 +0000 (14:44 -0700)
commit1ffcf8b8ae8a786b61350ee082b6c82846a31e53
treed4eb7beefefb96b5aef2f333c86b1c0459ce5e17
parentca33cd271ef9b27acddf96742eef136d0f4caaa5
drm/xe: Support for mmap-ing mmio regions

Allow the driver to expose hardware register spaces to userspace
through GEM objects with fake mmap offsets. This can be useful
for userspace-firmware communication, debugging, etc.

v2: Minor doc fix (CI)
v3: Enforce MAP_SHARED (Tejas)
    Add fault handler with dummy page (Tejas, Matt Auld)
    Store physical address instead of xe_mmio in the GEM object (MattB)
v4: Separate xe_mmio_gem from xe_mmio and make it private (MattB)

Signed-off-by: Ilia Levi <ilia.levi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://lore.kernel.org/r/20250714122658.1803-1-ilia.levi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_mmio_gem.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_mmio_gem.h [new file with mode: 0644]