Hi Andrea/Al,
I set the ARM64 flag for DMI support on v8, because io_remap() can
not work in dmi_scan.c , but early_memremap() can work.
I suppose we consider ACPI/EFI memory as IO range on v7, but we
covert them into MEMORY type on v8.
I do not know whether you met the same problem with me on
acpi_early_init(), you can try MARK's patch:
https://github.com/mosalter/linux/commit/c195e4a19b4b6c92885714941cf89a21904...
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index fa0affb..0cd401c 100644
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -786,14 +786,21 @@ int dmi_walk(void (*decode)(const struct
dmi_header *, void *),
if (!dmi_available)
return -1;
-
+#ifdef CONFIG_ARM64
+ buf = dmi_ioremap(dmi_base, dmi_len);
+#else
buf = ioremap(dmi_base, dmi_len);
+#endif
if (buf == NULL)
return -1;
dmi_table(buf, dmi_len, dmi_num, decode, private_data);
+#ifdef CONFIG_ARM64
+ dmi_iounmap(buf, dmi_len);
+#else
iounmap(buf);
+#endif
return 0;
}
EXPORT_SYMBOL_GPL(dmi_walk);
--
1.7.9.5
YI
On Thursday, November 14, 2013 05:04 PM, Andrea Gallo wrote:
> Al,
>
> Yi Li has worked on enabling DMI Decode on ARM. This is working on v7
> and most probably also on v8.
>
> Do we need to enable this flag back?
>
> Thanks
> Andrea
>
> On Wednesday, November 13, 2013, wrote:
>
> From: Al Stone
ahs3@redhat.com
>
> Corrected #ifdef so that DMI is not used on ARM platforms.
>
> Signed-off-by: Al Stone
al.stone@linaro.org
> ---
> drivers/acpi/bus.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
> index 7fcbc6a..b8ae608 100644
> --- a/drivers/acpi/bus.c
> +++ b/drivers/acpi/bus.c
> @@ -512,9 +512,9 @@ void __init acpi_early_init(void)
>
> acpi_gbl_permanent_mmap = 1;
>
> -#ifdef CONFIG_X86
> +#if !(defined(CONFIG_ARM) || defined(CONFIG_ARM64))
> /*
> - * NB: ARM does not use DMI; only older Intel products do.
> + * NB: ARM does not use DMI at present.
> *
> * If the machine falls into the DMI check table,
> * DSDT will be copied to memory
> --
> 1.8.3.1
>
>
> _______________________________________________
> Linaro-acpi mailing list
> Linaro-acpi@lists.linaro.org
>
http://lists.linaro.org/mailman/listinfo/linaro-acpi
>
>
>
> --
> Andrea Gallo
> Director, Linaro Enterprise Group
> email: andrea.gallo@linaro.org
mailto:andrea.gallo@linaro.org
> mobile: +39 338 4075993
> IRC: agallo@#linaro on irc.linaro.org
http://irc.linaro.org
> Skype: agallo70