[PATCH 0/2] Fix CMDLINE_EXTEND handling for FDT "bootargs"

Will Deacon will at kernel.org
Thu Feb 25 07:59:19 EST 2021


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/160650434702.20875.12520970127987518808.b4-ty@arm.com
[2] https://android-review.googlesource.com/c/kernel/common/+/841045

--->8

Cc: Max Uvarov <muvarov at gmail.com>
Cc: Rob Herring <robh at kernel.org>
Cc: Ard Biesheuvel <ardb at kernel.org>
Cc: Marc Zyngier <maz at kernel.org>
Cc: Doug Anderson <dianders at chromium.org>
Cc: Tyler Hicks <tyhicks at linux.microsoft.com>
Cc: Frank Rowand <frowand.list at gmail.com>
Cc: Arnd Bergmann <arnd at arndb.de>
Cc: Palmer Dabbelt <palmer at dabbelt.com>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Cc: Catalin Marinas <catalin.marinas at arm.com>
Cc: <kernel-team at android.com>
Cc: <linux-arm-kernel at lists.infradead.org>
Cc: <devicetree at vger.kernel.org>

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




More information about the linux-arm-kernel mailing list