diff options
| author | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2025-10-10 12:41:48 +0200 | 
|---|---|---|
| committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-10-15 22:48:37 -0700 | 
| commit | 7987b93e3a11a7a95ddf2b21563d3286661b999c (patch) | |
| tree | 4df8731e320072e61c4676306611ecb339730a82 /scripts/bpf_doc.py | |
| parent | 9f64b3cd051b825de0a2a9f145c8e003200cedd5 (diff) | |
drm/xe/svm: Ensure data will be migrated to system if indicated by madvise.
If the location madvise() is set to
DRM_XE_PREFERRED_LOC_DEFAULT_SYSTEM, the drm_pagemap in the
SVM gpu fault handler will be set to NULL. However there is nothing
that explicitly migrates the data to system if it is already present
in device memory.
In that case, set the device memory owner to NULL to ensure
data gets properly migrated to system on page-fault.
v2:
- Remove redundant dpagemap assignment (Himal Prasad Ghimiray)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com> #v1
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://lore.kernel.org/r/20251010104149.72783-2-thomas.hellstrom@linux.intel.com
Fixes: 10aa5c806030 ("drm/gpusvm, drm/xe: Fix userptr to not allow device private pages")
(cherry picked from commit 2cfcea7a745794f9b8e265a309717ca6ba335fc4)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
