All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: Add CMDLINE_EXTEND
@ 2016-12-02 22:17 Geoff Levand
  2016-12-05 12:08 ` Catalin Marinas
  0 siblings, 1 reply; 6+ messages in thread
From: Geoff Levand @ 2016-12-02 22:17 UTC (permalink / raw)
  To: linux-arm-kernel

The device tree code already supports CMDLINE_EXTEND,
so add the config option to make it available on arm64.

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 arch/arm64/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 969ef88..51f7545 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -949,6 +949,12 @@ config CMDLINE
 	  entering them here. As a minimum, you should specify the the
 	  root device (e.g. root=/dev/nfs).
 
+config CMDLINE_EXTEND
+	bool "Extend bootloader kernel arguments"
+	help
+	  The command-line arguments provided by the boot loader will be
+	  appended to the default kernel command string.
+
 config CMDLINE_FORCE
 	bool "Always use the default kernel command string"
 	help
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] arm64: Add CMDLINE_EXTEND
  2016-12-02 22:17 [PATCH] arm64: Add CMDLINE_EXTEND Geoff Levand
@ 2016-12-05 12:08 ` Catalin Marinas
  2016-12-05 17:41   ` Geoff Levand
  0 siblings, 1 reply; 6+ messages in thread
From: Catalin Marinas @ 2016-12-05 12:08 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Geoff,

On Fri, Dec 02, 2016 at 02:17:02PM -0800, Geoff Levand wrote:
> The device tree code already supports CMDLINE_EXTEND,
> so add the config option to make it available on arm64.

What's your use-case for this patch? Note that both CMDLINE_FORCE and
CMDLINE_EXTEND (if we introduce it) are ignored by the EFI stub.
However, we don't seem to have stated this anywhere.

-- 
Catalin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] arm64: Add CMDLINE_EXTEND
  2016-12-05 12:08 ` Catalin Marinas
@ 2016-12-05 17:41   ` Geoff Levand
  2016-12-06 12:20     ` Will Deacon
  0 siblings, 1 reply; 6+ messages in thread
From: Geoff Levand @ 2016-12-05 17:41 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Catalin,

On 12/05/2016 04:08 AM, Catalin Marinas wrote:
> On Fri, Dec 02, 2016 at 02:17:02PM -0800, Geoff Levand wrote:
>> The device tree code already supports CMDLINE_EXTEND,
>> so add the config option to make it available on arm64.
> 
> What's your use-case for this patch? Note that both CMDLINE_FORCE and
> CMDLINE_EXTEND (if we introduce it) are ignored by the EFI stub.
> However, we don't seem to have stated this anywhere.

I use this in CoreOS, where we need to set "acpi=force" for
arm64.  CoreOS uses a proper UEFI + grub.

See: 

  https://github.com/coreos/scripts/pull/610
  https://github.com/coreos/coreos-overlay/pull/2298

I can add a comment for EFI stub, either in the Kconfig
options, and/or in Documentation/efi-stub.txt.  Just let
me know.

-Geoff
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] arm64: Add CMDLINE_EXTEND
  2016-12-05 17:41   ` Geoff Levand
@ 2016-12-06 12:20     ` Will Deacon
  2016-12-06 18:28       ` Geoff Levand
  0 siblings, 1 reply; 6+ messages in thread
From: Will Deacon @ 2016-12-06 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Dec 05, 2016 at 09:41:06AM -0800, Geoff Levand wrote:
> On 12/05/2016 04:08 AM, Catalin Marinas wrote:
> > On Fri, Dec 02, 2016 at 02:17:02PM -0800, Geoff Levand wrote:
> >> The device tree code already supports CMDLINE_EXTEND,
> >> so add the config option to make it available on arm64.
> > 
> > What's your use-case for this patch? Note that both CMDLINE_FORCE and
> > CMDLINE_EXTEND (if we introduce it) are ignored by the EFI stub.
> > However, we don't seem to have stated this anywhere.
> 
> I use this in CoreOS, where we need to set "acpi=force" for
> arm64.  CoreOS uses a proper UEFI + grub.

So why can't you just set that in grub if you want to boot with ACPI?

Will

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] arm64: Add CMDLINE_EXTEND
  2016-12-06 12:20     ` Will Deacon
@ 2016-12-06 18:28       ` Geoff Levand
  2016-12-06 19:03         ` Will Deacon
  0 siblings, 1 reply; 6+ messages in thread
From: Geoff Levand @ 2016-12-06 18:28 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Will,

On 12/06/2016 04:20 AM, Will Deacon wrote:
> On Mon, Dec 05, 2016 at 09:41:06AM -0800, Geoff Levand wrote:
>> On 12/05/2016 04:08 AM, Catalin Marinas wrote:
>>> On Fri, Dec 02, 2016 at 02:17:02PM -0800, Geoff Levand wrote:
>>>> The device tree code already supports CMDLINE_EXTEND,
>>>> so add the config option to make it available on arm64.
>>>
>>> What's your use-case for this patch? Note that both CMDLINE_FORCE and
>>> CMDLINE_EXTEND (if we introduce it) are ignored by the EFI stub.
>>> However, we don't seem to have stated this anywhere.
>>
>> I use this in CoreOS, where we need to set "acpi=force" for
>> arm64.  CoreOS uses a proper UEFI + grub.
> 
> So why can't you just set that in grub if you want to boot with ACPI?

That is how I originally did it, but it was suggested I
do it in the kernel config.  See:

  https://github.com/coreos/scripts/pull/610

Is there any reason why we don't want arm64 to have
CMDLINE_EXTEND?

-Geoff

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] arm64: Add CMDLINE_EXTEND
  2016-12-06 18:28       ` Geoff Levand
@ 2016-12-06 19:03         ` Will Deacon
  0 siblings, 0 replies; 6+ messages in thread
From: Will Deacon @ 2016-12-06 19:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Dec 06, 2016 at 10:28:19AM -0800, Geoff Levand wrote:
> On 12/06/2016 04:20 AM, Will Deacon wrote:
> > On Mon, Dec 05, 2016 at 09:41:06AM -0800, Geoff Levand wrote:
> >> On 12/05/2016 04:08 AM, Catalin Marinas wrote:
> >>> On Fri, Dec 02, 2016 at 02:17:02PM -0800, Geoff Levand wrote:
> >>>> The device tree code already supports CMDLINE_EXTEND,
> >>>> so add the config option to make it available on arm64.
> >>>
> >>> What's your use-case for this patch? Note that both CMDLINE_FORCE and
> >>> CMDLINE_EXTEND (if we introduce it) are ignored by the EFI stub.
> >>> However, we don't seem to have stated this anywhere.
> >>
> >> I use this in CoreOS, where we need to set "acpi=force" for
> >> arm64.  CoreOS uses a proper UEFI + grub.
> > 
> > So why can't you just set that in grub if you want to boot with ACPI?
> 
> That is how I originally did it, but it was suggested I
> do it in the kernel config.  See:
> 
>   https://github.com/coreos/scripts/pull/610
> 
> Is there any reason why we don't want arm64 to have
> CMDLINE_EXTEND?

I'm yet to see a good use-case for it.

Will

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-06 19:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-02 22:17 [PATCH] arm64: Add CMDLINE_EXTEND Geoff Levand
2016-12-05 12:08 ` Catalin Marinas
2016-12-05 17:41   ` Geoff Levand
2016-12-06 12:20     ` Will Deacon
2016-12-06 18:28       ` Geoff Levand
2016-12-06 19:03         ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.