Icenowy Zheng
278be83601
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 <uwu@icenowy.me >
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn >
2023-10-18 08:42:52 +08:00
..
2022-06-03 20:09:28 +08:00
2023-09-20 14:26:28 +08:00
2023-01-17 11:42:16 +08:00
2023-09-06 22:53:55 +08:00
2022-10-12 16:36:14 +08:00
2023-09-06 22:53:55 +08:00
2022-10-12 16:36:19 +08:00
2022-09-24 18:39:21 +02:00
2023-06-29 20:58:42 +08:00
2023-07-08 20:26:36 +02:00
2022-06-03 20:09:28 +08:00
2023-10-18 08:42:52 +08:00
2022-12-14 08:41:53 +08:00
2023-09-06 22:53:55 +08:00
2023-05-01 17:19:53 +08:00
2022-12-14 08:41:53 +08:00
2023-10-18 08:42:52 +08:00
2023-09-06 22:54:16 +08:00
2023-08-26 22:21:57 +08:00
2023-01-13 11:48:15 +01:00
2022-11-09 12:42:02 +01:00
2023-06-29 20:58:44 +08:00
2022-06-03 20:09:28 +08:00
2023-05-01 17:19:10 +08:00
2023-06-29 20:58:44 +08:00
2023-09-06 22:53:55 +08:00
2023-09-06 22:53:55 +08:00
2023-06-29 20:58:44 +08:00
2023-09-06 22:53:55 +08:00
2022-10-12 16:36:19 +08:00
2023-09-20 14:26:28 +08:00
2023-08-25 23:40:26 +08:00
2023-08-25 23:40:26 +08:00
2023-09-20 14:26:29 +08:00
2023-09-20 14:26:28 +08:00
2023-09-27 16:19:13 +08:00
2023-09-27 16:19:13 +08:00
2023-06-15 14:35:52 +08:00
2022-10-12 16:36:14 +08:00
2023-06-29 20:58:44 +08:00
2023-09-20 14:26:28 +08:00
2023-09-06 22:53:55 +08:00
2023-09-20 14:26:29 +08:00
2023-09-06 22:54:16 +08:00
2022-12-14 08:41:53 +08:00
2023-06-29 20:58:44 +08:00
2023-06-29 20:58:44 +08:00
2023-06-29 20:58:44 +08:00
2023-10-18 08:42:52 +08:00
2023-09-20 14:26:28 +08:00
2023-09-20 14:26:28 +08:00
2023-09-06 22:54:16 +08:00
2022-12-14 08:41:53 +08:00
2023-09-20 14:26:28 +08:00
2023-07-25 19:21:03 +02:00
2023-09-20 14:26:28 +08:00
2023-09-20 14:26:28 +08:00
2023-09-20 14:26:28 +08:00
2023-06-29 20:58:42 +08:00
2023-01-17 11:42:16 +08:00
2023-04-19 12:07:27 +08:00
2023-04-19 12:07:27 +08:00
2023-06-29 20:58:44 +08:00
2023-06-29 20:58:43 +08:00
2023-09-20 14:26:28 +08:00