diff options
| author | Lizhi Hou <lizhi.hou@amd.com> | 2026-09-17 10:19:52 -0700 |
|---|---|---|
| committer | Lizhi Hou <lizhi.hou@amd.com> | 2026-09-17 13:08:06 -0700 |
| commit | 2d2c4b248bff9ee1ac06054a9138c1a308e2e7b8 (patch) | |
| tree | e69fe4530b63e5b2115ae64bbdfa5c7a2fbf2048 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ac18f34f5927e420ae529be72aec86201a262d04 (diff) | |
| download | linux-2d2c4b248bff9ee1ac06054a9138c1a308e2e7b8.tar.gz linux-2d2c4b248bff9ee1ac06054a9138c1a308e2e7b8.zip | |
accel/amdxdna: Set HMM_PFN_REQ_WRITE for writable BO faults
When aie2_populate_range() faults in pages, it only sets
HMM_PFN_REQ_FAULT. Without HMM_PFN_REQ_WRITE, handle_mm_fault() does not
request write permissions and may populate the CPU page tables with
read-only PTEs.
Check the VMA flags and set HMM_PFN_REQ_WRITE when the VMA has VM_WRITE.
Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
Reviewed-by: Max Zhen <max.zhen@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260917171952.1883974-1-lizhi.hou@amd.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
