aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorIcenowy Zheng <[email protected]>2023-10-18 08:42:52 +0800
committerHuacai Chen <[email protected]>2023-10-18 08:42:52 +0800
commit278be83601dd1725d4732241f066d528e160a39d (patch)
tree0027aaff07b4329c0186f6bbacc429fd636499e3 /tools/perf/util/trace-event-scripting.c
parent477a0ebec101359f49d92796e3b609857d564b52 (diff)
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 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions