On Thu, 2016-08-11 at 11:29 +0100, Matt Fleming wrote: > Actually Ricardo, there's a slight hiccup with this patch in that > efi_esrt_init() is now being called at very different points during > boot. > > ARM/arm64 call it at efi_init() time and the early_memremap() > calls in the ESRT driver make sense, but those calls don't make sense > when invoked from efi_late_init() on x86. Look how the ACPI BGRT > driver makes use of the standard memremap() API. Ah, I just checked. Perhaps efi_late_init is too late. Also, one question for my knowledge, why the ESRT driver uses eary_memremap()? Can't it uses the regular memremap as the EFI BGRT driver? As far as I can see, it only exposes ESRT objects in sysfs. > > Instead, could you fold this call into the same location as > efi_find_mirror() and co. in x86's setup_arch()? Sure. I just sent a v2 with your suggestion. Thanks and BR, Ricardo -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html