Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/gpusvm: Allow device pages to be mapped in mixed mappings after system pages

The current code rejects device mappings whenever system pages have
already been encountered. This is not the intended behavior when
allow_mixed is set.

Relax the restriction by permitting a single pagemap to be selected when
allow_mixed is enabled, even if system pages were found earlier.

Fixes: bce13d6ecd6c ("drm/gpusvm, drm/xe: Allow mixed mappings for userptr")
Cc: stable@vger.kernel.org
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://patch.msgid.link/20260130194928.3255613-3-matthew.brost@intel.com

+1 -1
+1 -1
drivers/gpu/drm/drm_gpusvm.c
··· 1495 1495 } 1496 1496 zdd = page->zone_device_data; 1497 1497 if (pagemap != page_pgmap(page)) { 1498 - if (i > 0) { 1498 + if (pagemap) { 1499 1499 err = -EOPNOTSUPP; 1500 1500 goto err_unmap; 1501 1501 }