diff options
| author | 2025-10-15 19:07:25 +0200 | |
|---|---|---|
| committer | 2025-10-20 17:03:39 -0700 | |
| commit | 9a3c0d6834194b6e3cce4ffbb55f800c6cb58c86 (patch) | |
| tree | e51bfb66c1707a352f6e1fd5e9d0c296fc537a18 /tools/perf/scripts/python/task-analyzer.py | |
| parent | Linux 6.18-rc2 (diff) | |
| download | linux-rng-9a3c0d6834194b6e3cce4ffbb55f800c6cb58c86.tar.xz linux-rng-9a3c0d6834194b6e3cce4ffbb55f800c6cb58c86.zip | |
drm/xe: Retain vma flags when recreating and splitting vmas for madvise
When splitting and restoring vmas for madvise, we only copied the
XE_VMA_SYSTEM_ALLOCATOR flag. That meant we lost flags for read_only,
dumpable and sparse (in case anyone would call madvise for the latter).
Instead, define a mask of relevant flags and ensure all are replicated,
To simplify this and make the code a bit less fragile, remove the
conversion to VMA_CREATE flags and instead just pass around the
gpuva flags after initial conversion from user-space.
Fixes: a2eb8aec3ebe ("drm/xe: Reset VMA attributes to default in SVM garbage collector")
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20251015170726.178685-1-thomas.hellstrom@linux.intel.com
(cherry picked from commit b3af8658ec70f2196190c66103478352286aba3b)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
