aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorIcenowy Zheng <[email protected]>2023-10-18 00:42:52 +0000
committerHuacai Chen <[email protected]>2023-10-18 00:42:52 +0000
commit278be83601dd1725d4732241f066d528e160a39d (patch)
tree0027aaff07b4329c0186f6bbacc429fd636499e3 /scripts/mod/file2alias.c
parentLoongArch: Replace kmap_atomic() with kmap_local_page() in copy_user_highpage() (diff)
downloadkernel-278be83601dd1725d4732241f066d528e160a39d.tar.gz
kernel-278be83601dd1725d4732241f066d528e160a39d.zip
LoongArch: Disable WUC for pgprot_writecombine() like ioremap_wc()
Currently the code disables WUC only disables it for ioremap_wc(), which is only used when mapping writecombine pages like ioremap() (mapped to the kernel space). But for VRAM mapped in TTM/GEM, it is mapped with a crafted pgprot by the pgprot_writecombine() function, in which case WUC isn't disabled now. Disable WUC for pgprot_writecombine() (fallback to SUC) if needed, like ioremap_wc(). This improves the AMDGPU driver's stability (solves some misrendering) on Loongson-3A5000/3A6000 machines. Signed-off-by: Icenowy Zheng <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions