diff options
| author | 2026-09-17 10:19:52 -0700 | |
|---|---|---|
| committer | 2026-09-17 13:08:06 -0700 | |
| commit | 2d2c4b248bff9ee1ac06054a9138c1a308e2e7b8 (patch) | |
| tree | e69fe4530b63e5b2115ae64bbdfa5c7a2fbf2048 /scripts/Makefile.thinlto | |
| parent | accel/amdxdna: Fix race between unmap and free BO (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
