arch/loongarch/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
When ARCH_IOREMAP is enabled, we are using always accessible DMW
for ioremap. It makes no sense to create a dedicated mapping for
earlycon given that we can access the region via DMW.
Disable FIX_EARLYCON_MEM when ARCH_IOREMAP is selected. This can
ease debugging for early mapping issues.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
Changes in v2:
- Drop changes to fixedmap.h
- Link to v1: https://lore.kernel.org/r/20250102-la-earlycon-fixed-map-v1-1-23fe3a6681c4@flygoat.com
---
arch/loongarch/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index 1c4d13aa677e2e04b9791882fba7523f93d6a69d..ad8a8cf75343799ea626be52f521fa75e7cbe07b 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -246,7 +246,7 @@ config MACH_LOONGSON64
def_bool 64BIT
config FIX_EARLYCON_MEM
- def_bool y
+ def_bool !ARCH_IOREMAP
config PGTABLE_2LEVEL
bool
---
base-commit: 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2
change-id: 20250102-la-earlycon-fixed-map-d6a48bd5b831
Best regards,
--
Jiaxun Yang <jiaxun.yang@flygoat.com>
Applied, thanks. Huacai On Fri, Jan 3, 2025 at 7:36 PM Jiaxun Yang <jiaxun.yang@flygoat.com> wrote: > > When ARCH_IOREMAP is enabled, we are using always accessible DMW > for ioremap. It makes no sense to create a dedicated mapping for > earlycon given that we can access the region via DMW. > > Disable FIX_EARLYCON_MEM when ARCH_IOREMAP is selected. This can > ease debugging for early mapping issues. > > Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> > --- > Changes in v2: > - Drop changes to fixedmap.h > - Link to v1: https://lore.kernel.org/r/20250102-la-earlycon-fixed-map-v1-1-23fe3a6681c4@flygoat.com > --- > arch/loongarch/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig > index 1c4d13aa677e2e04b9791882fba7523f93d6a69d..ad8a8cf75343799ea626be52f521fa75e7cbe07b 100644 > --- a/arch/loongarch/Kconfig > +++ b/arch/loongarch/Kconfig > @@ -246,7 +246,7 @@ config MACH_LOONGSON64 > def_bool 64BIT > > config FIX_EARLYCON_MEM > - def_bool y > + def_bool !ARCH_IOREMAP > > config PGTABLE_2LEVEL > bool > > --- > base-commit: 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 > change-id: 20250102-la-earlycon-fixed-map-d6a48bd5b831 > > Best regards, > -- > Jiaxun Yang <jiaxun.yang@flygoat.com> >
© 2016 - 2026 Red Hat, Inc.