Icenowy Zheng and Huacai Chen
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
..
2023-06-29 20:58:43 +08:00
2023-06-29 20:58:44 +08:00
2023-09-20 14:26:29 +08:00
2022-12-14 08:36:11 +08:00
2022-12-14 08:36:11 +08:00
2022-12-14 08:36:11 +08:00
2023-09-06 22:53:55 +08:00
2023-02-25 22:12:17 +08:00
2023-09-06 22:53:55 +08:00
2023-06-05 09:57:24 +02:00
2023-06-29 20:58:44 +08:00
2023-04-19 12:07:27 +08:00
2022-06-25 18:06:07 +08:00
2022-10-12 16:36:19 +08:00
2023-08-24 16:20:25 -07:00
2022-10-12 16:36:14 +08:00
2023-05-01 17:19:43 +08:00
2023-04-29 09:08:44 +02:00
2023-06-29 20:58:44 +08:00
2023-06-29 20:58:43 +08:00
2023-06-29 20:58:44 +08:00
2022-06-03 20:09:29 +08:00
2022-08-12 13:10:11 +08:00
2022-12-19 08:23:27 -06:00
2023-09-27 16:19:13 +08:00
2023-09-20 14:26:28 +08:00
2022-12-14 08:36:11 +08:00
2023-05-18 11:07:54 +02:00
2022-10-12 16:36:14 +08:00
2023-06-29 20:58:43 +08:00
2023-08-26 22:21:57 +08:00
2023-06-20 18:38:38 -04:00
2022-12-14 08:36:11 +08:00
2023-06-29 20:58:43 +08:00
2022-06-08 11:00:40 +08:00
2023-02-25 22:12:17 +08:00
2023-06-29 20:58:44 +08:00
2023-10-18 08:42:52 +08:00
2023-08-18 10:19:00 -07:00
2022-07-29 18:22:32 +08:00
2023-06-29 20:58:44 +08:00
2023-09-20 14:26:29 +08:00
2023-08-25 23:40:26 +08:00
2023-06-29 20:58:44 +08:00
2022-10-12 16:36:19 +08:00
2023-09-06 22:54:16 +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
2023-10-18 08:42:52 +08:00
2023-07-10 09:52:36 +02:00
2023-09-06 22:53:55 +08:00
2022-12-14 08:41:53 +08:00
2023-09-06 22:53:10 +08:00
2023-06-29 20:58:42 +08:00
2023-04-18 19:38:58 +08:00
2022-06-03 20:09:29 +08:00
2023-09-06 22:53:55 +08:00
2022-08-12 13:10:11 +08:00
2023-06-29 20:58:43 +08:00
2022-10-12 16:36:14 +08:00
2023-09-08 12:16:52 -07:00
2023-10-18 08:42:52 +08:00
2023-09-08 12:16:52 -07:00
2023-09-06 22:53:55 +08:00
2023-08-25 23:40:26 +08:00
2023-06-29 20:58:44 +08:00
2023-09-06 22:54:16 +08:00
2023-09-20 14:26:28 +08:00
2022-12-11 18:12:12 -08:00
2022-10-12 16:36:14 +08:00
2022-10-12 16:36:14 +08:00
2023-09-06 22:53:55 +08:00
2022-12-14 08:41:53 +08:00
2022-08-12 13:10:11 +08:00
2023-09-06 22:54:16 +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
2022-12-14 08:41:53 +08:00
2022-06-08 11:00:40 +08:00
2023-06-29 20:58:44 +08:00
2022-06-03 20:09:29 +08:00
2023-02-25 22:12:16 +08:00
2023-01-17 11:42:16 +08:00
2023-06-29 20:58:44 +08:00
2022-08-12 13:10:11 +08:00
2023-09-06 22:53:55 +08:00
2023-09-06 22:53:55 +08:00