]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Validate preferred system memory placement in xe_svm_range_validate
authorMatthew Brost <matthew.brost@intel.com>
Tue, 6 Jan 2026 21:34:43 +0000 (13:34 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 7 Jan 2026 17:27:58 +0000 (09:27 -0800)
commit7c0c19c076ffe84b8bcd5f927eb47452837f2c99
tree4d7d4e1fd18d2b5aa1bb988bf04c040a9e90974d
parent051114652b6b78c18720dbc6fef36ddb5e1da55b
drm/xe: Validate preferred system memory placement in xe_svm_range_validate

Ensure preferred system memory placement is checked in
xe_svm_range_validate when dpagemap is NULL. Without this check, a
prefetch to system memory may become a no-op because device memory is
considered a valid placement.

Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Fixes: 238dbc9d9f4a ("drm/xe: Use the vma attibute drm_pagemap to select where to migrate")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patch.msgid.link/20260106213443.1866797-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_svm.c