Skip to content

Commit 0d0a374

Browse files
fancertsbogend
authored andcommitted
mips: dmi: Fix early remap on MIPS32
dmi_early_remap() has been defined as ioremap_cache() which on MIPS32 gets to be converted to the VM-based mapping. DMI early remapping is performed at the setup_arch() stage with no VM available. So calling the dmi_early_remap() for MIPS32 causes the system to crash at the early boot time. Fix that by converting dmi_early_remap() to the uncached remapping which is always available on both 32 and 64-bits MIPS systems. Note this change shall not cause any regressions on the current DMI support implementation because on the early boot-up stage neither MIPS32 nor MIPS64 has the cacheable ioremapping support anyway. Fixes: be8fa1c ("MIPS: Add support for Desktop Management Interface (DMI)") Signed-off-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent f99c37d commit 0d0a374

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • arch/mips/include/asm

arch/mips/include/asm/dmi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <linux/io.h>
66
#include <linux/memblock.h>
77

8-
#define dmi_early_remap(x, l) ioremap_cache(x, l)
8+
#define dmi_early_remap(x, l) ioremap(x, l)
99
#define dmi_early_unmap(x, l) iounmap(x)
1010
#define dmi_remap(x, l) ioremap_cache(x, l)
1111
#define dmi_unmap(x) iounmap(x)

0 commit comments

Comments
 (0)