aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
diff options
context:
space:
mode:
authorBibo Mao <[email protected]>2025-09-18 11:44:22 +0000
committerHuacai Chen <[email protected]>2025-09-18 11:44:22 +0000
commitf58c9aa1065f73d243904b267c71f6a9d1e9f90e (patch)
tree287638a1d1576b5e122b5badf9ef645173b8dfab /drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
parentLoongArch: KVM: Remove unused returns and semicolons (diff)
downloadkernel-f58c9aa1065f73d243904b267c71f6a9d1e9f90e.tar.gz
kernel-f58c9aa1065f73d243904b267c71f6a9d1e9f90e.zip
LoongArch: KVM: Fix VM migration failure with PTW enabled
With PTW disabled system, bit _PAGE_DIRTY is a HW bit for page writing. However with PTW enabled system, bit _PAGE_WRITE is also a "HW bit" for page writing, because hardware synchronizes _PAGE_WRITE to _PAGE_DIRTY automatically. Previously, _PAGE_WRITE is treated as a SW bit to record the page writeable attribute for the fast page fault handling in the secondary MMU, however with PTW enabled machine, this bit is used by HW already (so setting it will silence the TLB modify exception). Here define KVM_PAGE_WRITEABLE with the SW bit _PAGE_MODIFIED, so that it can work on both PTW disabled and enabled machines. And for HW write bits, both _PAGE_DIRTY and _PAGE_WRITE are set or clear together. Cc: [email protected] Signed-off-by: Bibo Mao <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c')
0 files changed, 0 insertions, 0 deletions