diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2024-04-10 21:08:51 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-04-10 21:08:51 +0800 |
commit | 0ca84aeaee150796d4b5577b1b0ae52a947e7813 (patch) | |
tree | bdb15b18d2b672ee85f4d6be1e693d7dfb77e4a7 /sound/Kconfig | |
parent | 0871bc0129d403747ea0272a4384895d7ad37a6c (diff) |
LoongArch: Make {virt, phys, page, pfn} translation work with KFENCE
KFENCE changes virt_to_page() to be able to translate tlb mapped virtual
addresses, but forget to change virt_to_phys()/phys_to_virt() and other
translation functions as well. This patch fix it, otherwise some drivers
(such as nvme and virtio-blk) cannot work with KFENCE.
All {virt, phys, page, pfn} translation functions are updated:
1, virt_to_pfn()/pfn_to_virt();
2, virt_to_page()/page_to_virt();
3, virt_to_phys()/phys_to_virt().
DMW/TLB mapped addresses are distinguished by comparing the vaddress
with vm_map_base in virt_to_xyz(), and we define WANT_PAGE_VIRTUAL in
the KFENCE case for the reverse translations, xyz_to_virt().
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'sound/Kconfig')
0 files changed, 0 insertions, 0 deletions