Files
android_kernel_xiaomi_sm8450/arch/mips/include/asm
Serge Semin 5cdda6239c mips: dmi: Fix early remap on MIPS32
[ Upstream commit 0d0a3748a2cb38f9da1f08d357688ebd982eb788 ]

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: be8fa1cb44 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:37:53 -08:00
..
2020-09-07 22:25:27 +02:00
2020-09-07 22:25:27 +02:00
2020-09-07 22:25:27 +02:00
2020-09-07 22:25:27 +02:00
2020-09-07 22:25:27 +02:00
2021-03-04 11:37:41 +01:00
2020-05-22 09:09:01 +02:00
2019-10-31 15:03:10 -07:00
2024-01-25 14:37:53 -08:00
2020-05-22 09:09:01 +02:00
2019-05-22 18:45:52 -07:00
2020-05-22 09:09:01 +02:00
2020-07-28 22:49:53 +02:00
2020-05-19 17:39:32 +02:00
2019-02-04 10:56:41 -08:00
2019-02-04 10:56:41 -08:00
2020-05-22 09:10:53 +02:00
2020-05-07 11:55:47 +02:00
2019-07-01 17:51:40 +02:00
2019-10-31 15:03:10 -07:00
2018-08-01 13:20:15 -07:00
2023-03-11 16:40:04 +01:00
2019-04-03 10:32:54 +02:00
2020-08-12 10:57:58 -07:00
2019-10-02 14:06:41 -07:00
2019-07-25 21:45:05 -07:00
2023-03-11 16:39:45 +01:00
2020-09-07 22:25:27 +02:00
2016-05-09 12:00:02 +02:00