summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav@intel.com>2026-10-27 14:29:52 +0530
committerDave Airlie <airlied@redhat.com>2026-11-09 19:18:00 +1000
commite800602296e8668b4cf143fc12d7cee4b31e64aa (patch)
treea6c4897e977e56800aff9c8804e08ecf58a46174 /rust/kernel/alloc/kvec/errors.rs
parent74f1a6f03f2d46537f929a1b13f7dcd378437a4d (diff)
drm/xe/svm: Preserve default PAT index when resetting VMA attributes
xe_vma_set_default_attributes() replaces the VMA attributes with a default structure. It sets pat_index to the saved default PAT index, but leaves default_pat_index zero. When the saved default is non-zero, the two fields no longer match. xe_vma_has_default_mem_attrs() then reports that the reset VMA has non-default attributes, triggering a warning in xe_vm_alloc_vma() during SVM garbage collection. A later reset also uses the incorrect zero value. Preserve default_pat_index when restoring the default attributes. Fixes: 4a938d3886d6 ("drm/xe: Merge adjacent default-attribute VMAs during garbage collection") Cc: Matthew Brost <matthew.brost@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Signed-off-by: Arvind Yadav <arvind.yadav@intel.com> Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20261027085952.2882874-1-arvind.yadav@intel.com (cherry picked from commit ce155027427a0c76be173f19f911b414d9d686bc) Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions