OpenCloudOS-Kernel/arch/loongarch/power
Ming Wang 946d48f1ae LoongArch: Add writecombine support for DMW-based ioremap()
commit 8e02c3b782ec64343f3cccc8dc5a8be2b379e80b upstream.

Currently, only TLB-based ioremap() support writecombine, so add the
counterpart for DMW-based ioremap() with help of DMW2. The base address
(WRITECOMBINE_BASE) is configured as 0xa000000000000000.

DMW3 is unused by kernel now, however firmware may leave garbage in them
and interfere kernel's address mapping. So clear it as necessary.

BTW, centralize the DMW configuration to macro SETUP_DMWINS.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: gaojuxin <gaojuxin@loongson.cn>
Signed-off-by: Ming Wang <wangming01@loongson.cn>
2024-07-29 09:02:58 +08:00
..
Makefile LoongArch: Add hibernation (ACPI S4) support 2022-12-14 08:41:53 +08:00
hibernate.c LoongArch: Add hibernation (ACPI S4) support 2022-12-14 08:41:53 +08:00
hibernate_asm.S LoongArch: Add hibernation (ACPI S4) support 2022-12-14 08:41:53 +08:00
platform.c
suspend.c LoongArch: Export some arch-specific pm interfaces 2023-06-29 20:58:44 +08:00
suspend_asm.S LoongArch: Add writecombine support for DMW-based ioremap() 2024-07-29 09:02:58 +08:00