linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] efi_stub: update documentation on dtb= parameter
@ 2018-09-05 19:07 Grant Likely
  2018-09-05 19:30 ` Leif Lindholm
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Grant Likely @ 2018-09-05 19:07 UTC (permalink / raw)
  To: linux-efi, linux-kernel, linux-arm-kernel
  Cc: olof, scott.branden, catalin.marinas, will.deacon, arnd,
	leif.lindholm, agraf, Grant Likely, Ard Biesheuvel,
	Jonathan Corbet

The dtb= parameter is no longer the primary mechanism for providing a
devicetree to the kernel. Now either firmware or the boot selector (ex.
Grub) should provide the devicetree and dtb= should only be used for
debug or when using firmware that doesn't understand DT.
Update the EFI stub documentation to reflect the current usage.

Signed-off-by: Grant Likely <grant.likely@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jonathan Corbet <corbet@lwn.net>
---
 Documentation/efi-stub.txt | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/Documentation/efi-stub.txt b/Documentation/efi-stub.txt
index 41df801f9a50..833edb0d0bc4 100644
--- a/Documentation/efi-stub.txt
+++ b/Documentation/efi-stub.txt
@@ -83,7 +83,18 @@ is passed to bzImage.efi.
 The "dtb=" option
 -----------------

-For the ARM and arm64 architectures, we also need to be able to provide a
-device tree to the kernel. This is done with the "dtb=" command line option,
-and is processed in the same manner as the "initrd=" option that is
+For the ARM and arm64 architectures, a device tree must be provided to
+the kernel. Normally firmware shall supply the device tree via the
+EFI CONFIGURATION TABLE. However, the "dtb=" command line option can
+be used to override the firmware supplied device tree, or to supply
+one when firmware is unable to.
+
+Please note: Firmware adds runtime configuration information to the
+device tree before booting the kernel. If dtb= is used to override
+the device tree, then any runtime data provided by firmware will be
+lost. The dtb= option should only be used either as a debug tool, or
+as a last resort when a device tree is not provided in the EFI
+CONFIGURATION TABLE.
+
+"dtb=" is processed in the same manner as the "initrd=" option that is
 described above.
--
2.11.0

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

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

* Re: [PATCH] efi_stub: update documentation on dtb= parameter
  2018-09-05 19:07 [PATCH] efi_stub: update documentation on dtb= parameter Grant Likely
@ 2018-09-05 19:30 ` Leif Lindholm
  2018-09-05 19:39 ` Alexander Graf
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Leif Lindholm @ 2018-09-05 19:30 UTC (permalink / raw)
  To: Grant Likely
  Cc: linux-efi, linux-kernel, linux-arm-kernel, olof, scott.branden,
	catalin.marinas, will.deacon, arnd, agraf, Ard Biesheuvel,
	Jonathan Corbet

On Wed, Sep 05, 2018 at 08:07:50PM +0100, Grant Likely wrote:
> The dtb= parameter is no longer the primary mechanism for providing a
> devicetree to the kernel. Now either firmware or the boot selector (ex.
> Grub) should provide the devicetree and dtb= should only be used for
> debug or when using firmware that doesn't understand DT.
> Update the EFI stub documentation to reflect the current usage.
> 
> Signed-off-by: Grant Likely <grant.likely@arm.com>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Cc: Jonathan Corbet <corbet@lwn.net>

Acked-by: Leif Lindholm <leif.lindholm@linaro.org>

> ---
>  Documentation/efi-stub.txt | 17 ++++++++++++++---
>  1 file changed, 14 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/efi-stub.txt b/Documentation/efi-stub.txt
> index 41df801f9a50..833edb0d0bc4 100644
> --- a/Documentation/efi-stub.txt
> +++ b/Documentation/efi-stub.txt
> @@ -83,7 +83,18 @@ is passed to bzImage.efi.
>  The "dtb=" option
>  -----------------
> 
> -For the ARM and arm64 architectures, we also need to be able to provide a
> -device tree to the kernel. This is done with the "dtb=" command line option,
> -and is processed in the same manner as the "initrd=" option that is
> +For the ARM and arm64 architectures, a device tree must be provided to
> +the kernel. Normally firmware shall supply the device tree via the
> +EFI CONFIGURATION TABLE. However, the "dtb=" command line option can
> +be used to override the firmware supplied device tree, or to supply
> +one when firmware is unable to.
> +
> +Please note: Firmware adds runtime configuration information to the
> +device tree before booting the kernel. If dtb= is used to override
> +the device tree, then any runtime data provided by firmware will be
> +lost. The dtb= option should only be used either as a debug tool, or
> +as a last resort when a device tree is not provided in the EFI
> +CONFIGURATION TABLE.
> +
> +"dtb=" is processed in the same manner as the "initrd=" option that is
>  described above.
> --
> 2.11.0
> 
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

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

* Re: [PATCH] efi_stub: update documentation on dtb= parameter
  2018-09-05 19:07 [PATCH] efi_stub: update documentation on dtb= parameter Grant Likely
  2018-09-05 19:30 ` Leif Lindholm
@ 2018-09-05 19:39 ` Alexander Graf
  2018-09-05 21:57 ` Olof Johansson
  2018-09-06 15:51 ` Jonathan Corbet
  3 siblings, 0 replies; 6+ messages in thread
From: Alexander Graf @ 2018-09-05 19:39 UTC (permalink / raw)
  To: Grant Likely, linux-efi, linux-kernel, linux-arm-kernel
  Cc: olof, scott.branden, catalin.marinas, will.deacon, arnd,
	leif.lindholm, Ard Biesheuvel, Jonathan Corbet



On 05.09.18 21:07, Grant Likely wrote:
> The dtb= parameter is no longer the primary mechanism for providing a
> devicetree to the kernel. Now either firmware or the boot selector (ex.
> Grub) should provide the devicetree and dtb= should only be used for
> debug or when using firmware that doesn't understand DT.
> Update the EFI stub documentation to reflect the current usage.
> 
> Signed-off-by: Grant Likely <grant.likely@arm.com>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Cc: Jonathan Corbet <corbet@lwn.net>

Reviewed-by: Alexander Graf <agraf@suse.de>

Btw, isn't the option missing from kernel-parameters.rst/txt?


Alex

> ---
>  Documentation/efi-stub.txt | 17 ++++++++++++++---
>  1 file changed, 14 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/efi-stub.txt b/Documentation/efi-stub.txt
> index 41df801f9a50..833edb0d0bc4 100644
> --- a/Documentation/efi-stub.txt
> +++ b/Documentation/efi-stub.txt
> @@ -83,7 +83,18 @@ is passed to bzImage.efi.
>  The "dtb=" option
>  -----------------
> 
> -For the ARM and arm64 architectures, we also need to be able to provide a
> -device tree to the kernel. This is done with the "dtb=" command line option,
> -and is processed in the same manner as the "initrd=" option that is
> +For the ARM and arm64 architectures, a device tree must be provided to
> +the kernel. Normally firmware shall supply the device tree via the
> +EFI CONFIGURATION TABLE. However, the "dtb=" command line option can
> +be used to override the firmware supplied device tree, or to supply
> +one when firmware is unable to.
> +
> +Please note: Firmware adds runtime configuration information to the
> +device tree before booting the kernel. If dtb= is used to override
> +the device tree, then any runtime data provided by firmware will be
> +lost. The dtb= option should only be used either as a debug tool, or
> +as a last resort when a device tree is not provided in the EFI
> +CONFIGURATION TABLE.
> +
> +"dtb=" is processed in the same manner as the "initrd=" option that is
>  described above.
> --
> 2.11.0
> 
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
> 

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

* Re: [PATCH] efi_stub: update documentation on dtb= parameter
  2018-09-05 19:07 [PATCH] efi_stub: update documentation on dtb= parameter Grant Likely
  2018-09-05 19:30 ` Leif Lindholm
  2018-09-05 19:39 ` Alexander Graf
@ 2018-09-05 21:57 ` Olof Johansson
  2018-09-06 15:51 ` Jonathan Corbet
  3 siblings, 0 replies; 6+ messages in thread
From: Olof Johansson @ 2018-09-05 21:57 UTC (permalink / raw)
  To: Grant Likely
  Cc: linux-efi, Linux Kernel Mailing List, Linux ARM Mailing List,
	Scott Branden, Catalin Marinas, Will Deacon, Arnd Bergmann,
	Leif Lindholm, Alexander Graf, Ard Biesheuvel, Jonathan Corbet

On Wed, Sep 5, 2018 at 12:07 PM, Grant Likely <grant.likely@arm.com> wrote:
> The dtb= parameter is no longer the primary mechanism for providing a
> devicetree to the kernel. Now either firmware or the boot selector (ex.
> Grub) should provide the devicetree and dtb= should only be used for
> debug or when using firmware that doesn't understand DT.
> Update the EFI stub documentation to reflect the current usage.
>
> Signed-off-by: Grant Likely <grant.likely@arm.com>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Cc: Jonathan Corbet <corbet@lwn.net>

Acked-by: Olof Johansson <olof@lixom.net>


-Olof

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

* Re: [PATCH] efi_stub: update documentation on dtb= parameter
  2018-09-05 19:07 [PATCH] efi_stub: update documentation on dtb= parameter Grant Likely
                   ` (2 preceding siblings ...)
  2018-09-05 21:57 ` Olof Johansson
@ 2018-09-06 15:51 ` Jonathan Corbet
  2018-09-06 17:52   ` Grant Likely
  3 siblings, 1 reply; 6+ messages in thread
From: Jonathan Corbet @ 2018-09-06 15:51 UTC (permalink / raw)
  To: Grant Likely
  Cc: linux-efi, linux-kernel, linux-arm-kernel, olof, scott.branden,
	catalin.marinas, will.deacon, arnd, leif.lindholm, agraf,
	Ard Biesheuvel

On Wed,  5 Sep 2018 20:07:50 +0100
Grant Likely <grant.likely@arm.com> wrote:

> The dtb= parameter is no longer the primary mechanism for providing a
> devicetree to the kernel. Now either firmware or the boot selector (ex.
> Grub) should provide the devicetree and dtb= should only be used for
> debug or when using firmware that doesn't understand DT.
> Update the EFI stub documentation to reflect the current usage.

So I hate to be obnoxious, but...

> IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy
> the information in any medium. Thank you.

Can I get a version of the patch without this language?  Then I'll be glad
to apply it.

Thanks,

jon

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

* Re: [PATCH] efi_stub: update documentation on dtb= parameter
  2018-09-06 15:51 ` Jonathan Corbet
@ 2018-09-06 17:52   ` Grant Likely
  0 siblings, 0 replies; 6+ messages in thread
From: Grant Likely @ 2018-09-06 17:52 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: linux-efi, linux-kernel, linux-arm-kernel, olof, scott.branden,
	Catalin Marinas, Will Deacon, arnd, leif.lindholm, agraf,
	Ard Biesheuvel, nd



> On 6 Sep 2018, at 16:51, Jonathan Corbet <corbet@lwn.net> wrote:
> 
> On Wed,  5 Sep 2018 20:07:50 +0100
> Grant Likely <grant.likely@arm.com> wrote:
> 
>> The dtb= parameter is no longer the primary mechanism for providing a
>> devicetree to the kernel. Now either firmware or the boot selector (ex.
>> Grub) should provide the devicetree and dtb= should only be used for
>> debug or when using firmware that doesn't understand DT.
>> Update the EFI stub documentation to reflect the current usage.
> 
> So I hate to be obnoxious, but...
> 
>> IMPORTANT NOTICE: The contents of this email and any attachments are
>> confidential and may also be privileged. If you are not the intended
>> recipient, please notify the sender immediately and do not disclose the
>> contents to any other person, use it for any purpose, or store or copy
>> the information in any medium. Thank you.
> 
> Can I get a version of the patch without this language?  Then I'll be glad
> to apply it.

Ugh. Well that was dumb. There is a magic trick I have to perform to get rid of the disclaimer, but it didn’t work this time. I’ll fix and get a new one out.

g.

> 
> Thanks,
> 
> jon

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

end of thread, other threads:[~2018-09-06 17:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05 19:07 [PATCH] efi_stub: update documentation on dtb= parameter Grant Likely
2018-09-05 19:30 ` Leif Lindholm
2018-09-05 19:39 ` Alexander Graf
2018-09-05 21:57 ` Olof Johansson
2018-09-06 15:51 ` Jonathan Corbet
2018-09-06 17:52   ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).