Hi folks, We recently [1] enabled support for CMDLINE_EXTEND on arm64, however when I started looking at replacing Android's out-of-tree implementation [2] with the upstream version, I noticed that the two behave significantly differently: Android follows the Kconfig help text of appending the bootloader arguments to the kernel command line, whereas upstream appends the kernel command line to the bootloader arguments. That is, except for the EFI stub, which follows the documented behaviour.
I think the documented behaviour is more useful, so this patch series reworks the FDT code to follow that and updates the very recently merged arm64 idreg early command-line parsing as well. I'd like to take the first patch as a fix via the arm64 tree. Cheers, Will [1] https://lore.kernel.org/r/[email protected] [2] https://android-review.googlesource.com/c/kernel/common/+/841045 --->8 Cc: Max Uvarov <[email protected]> Cc: Rob Herring <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Doug Anderson <[email protected]> Cc: Tyler Hicks <[email protected]> Cc: Frank Rowand <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Will Deacon (2): arm64: cpufeatures: Fix handling of CONFIG_CMDLINE for idreg overrides of/fdt: Append bootloader arguments when CMDLINE_EXTEND=y arch/arm64/kernel/idreg-override.c | 44 +++++++++++--------- drivers/of/fdt.c | 64 ++++++++++++++++++------------ 2 files changed, 64 insertions(+), 44 deletions(-) -- 2.30.1.766.gb4fecdf3b7-goog

