linux_dsm_epyc7002/arch/mips/loongson64
Huang Pei 0f69f9596b MIPS: loongson64: fix bug when PAGE_SIZE > 16KB
[ Upstream commit 509d36a941a3466b78d4377913623d210b162458 ]

When page size larger than 16KB, arguments "vaddr + size(16KB)" in
"ioremap_page_range(vaddr, vaddr + size,...)" called by
"add_legacy_isa_io" is not page-aligned.

As loongson64 needs at least page size 16KB to get rid of cache alias,
and "vaddr" is 64KB-aligned, and 64KB is largest page size supported,
rounding "size" up to PAGE_SIZE is enough for all page size supported.

Fixes: 6d0068ad15 ("MIPS: Loongson64: Process ISA Node in DeviceTree")
Signed-off-by: Huang Pei <huangpei@loongson.cn>
Acked-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:50:30 +02:00
..
cop2-ex.c MIPS: Loongson-3: Fix fp register access if MSA enabled 2020-09-22 13:07:22 +02:00
cpucfg-emul.c MIPS: Unify naming style of vendor CP0.Config6 bits 2020-07-08 11:15:53 +02:00
dma.c dma-direct: rename and cleanup __phys_to_dma 2020-09-11 09:14:43 +02:00
env.c MIPS: KVM: Add kvm guest support for Loongson-3 2020-08-04 09:39:29 +02:00
hpet.c MIPS: Replace setup_irq() by request_irq() 2020-03-05 16:47:35 +01:00
init.c MIPS: loongson64: fix bug when PAGE_SIZE > 16KB 2021-05-14 09:50:30 +02:00
Kconfig MIPS: Loongson64: Mark RS780 HPET as broken 2020-04-20 19:37:01 +02:00
Makefile MIPS: Loongson64: Switch to generic PCI driver 2020-05-27 13:01:56 +02:00
numa.c MIPS: Loongson64: Clean up numa.c 2020-10-12 11:22:58 +02:00
Platform MIPS: Support binutils configured with --enable-mips-fix-loongson3-llsc=yes 2021-03-04 11:38:25 +01:00
platform.c MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() 2020-01-10 14:10:24 -08:00
pm.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
reset.c MIPS: Loongson64: Remove unused loongson_reboot. 2020-09-07 22:17:12 +02:00
setup.c MIPS: Loongson64: Load built-in dtbs 2020-03-25 16:07:12 +01:00
smp.c mips: loongsoon2ef: remove private clk api 2020-04-16 17:34:23 +02:00
smp.h MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
time.c MIPS: Loongson64: Remove dead RTC code 2020-04-20 19:36:21 +02:00
vbios_quirk.c MIPS: Loongson64: Switch to generic PCI driver 2020-05-27 13:01:56 +02:00