* [RFC PATCH] arm64/efi: remove /chosen/linux,uefi-stub-kern-ver DT property
@ 2015-09-24 21:46 Ard Biesheuvel
[not found] ` <1443131190-17790-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Ard Biesheuvel @ 2015-09-24 21:46 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-efi-u79uwXL29TY76Z2rM5mHXA,
matt.fleming-ral2JQCrhuEAvxtiuMwx3w,
leif.lindholm-QSEj5FYQhm4dnm+yROfE0A,
roy.franz-QSEj5FYQhm4dnm+yROfE0A,
grant.likely-QSEj5FYQhm4dnm+yROfE0A, mark.rutland-5wv7dgnIgG8
Cc: Ard Biesheuvel
With the stub to kernel interface being promoted to a proper interface
so that other agents than the stub can boot the kernel proper in EFI
mode, we can remove the linux,uefi-stub-kern-ver field, considering
that its original purpose was to prevent this from happening in the
first place.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
Documentation/arm/uefi.txt | 2 --
drivers/firmware/efi/libstub/fdt.c | 9 ---------
2 files changed, 11 deletions(-)
diff --git a/Documentation/arm/uefi.txt b/Documentation/arm/uefi.txt
index 7b3fdfe0f7ba..6543a0adea8a 100644
--- a/Documentation/arm/uefi.txt
+++ b/Documentation/arm/uefi.txt
@@ -58,5 +58,3 @@ linux,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI
--------------------------------------------------------------------------------
linux,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format.
--------------------------------------------------------------------------------
-linux,uefi-stub-kern-ver | string | Copy of linux_banner from build.
---------------------------------------------------------------------------------
diff --git a/drivers/firmware/efi/libstub/fdt.c b/drivers/firmware/efi/libstub/fdt.c
index a7e87cd582f2..60a11551fc15 100644
--- a/drivers/firmware/efi/libstub/fdt.c
+++ b/drivers/firmware/efi/libstub/fdt.c
@@ -116,15 +116,6 @@ efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt,
if (status)
goto fdt_set_fail;
- /*
- * Add kernel version banner so stub/kernel match can be
- * verified.
- */
- status = fdt_setprop_string(fdt, node, "linux,uefi-stub-kern-ver",
- linux_banner);
- if (status)
- goto fdt_set_fail;
-
return EFI_SUCCESS;
fdt_set_fail:
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1443131190-17790-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [RFC PATCH] arm64/efi: remove /chosen/linux,uefi-stub-kern-ver DT property [not found] ` <1443131190-17790-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2015-09-24 23:13 ` Mark Rutland 2015-09-24 23:23 ` Ard Biesheuvel 0 siblings, 1 reply; 3+ messages in thread From: Mark Rutland @ 2015-09-24 23:13 UTC (permalink / raw) To: Ard Biesheuvel Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, leif.lindholm-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, roy.franz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, zhaoshenglong-hv44wF8Li93QT0dZR+AlfA, stefano.stabellini-mvvWK6WmYclDPfheJLI6IQ Hi Ard, On Thu, Sep 24, 2015 at 10:46:30PM +0100, Ard Biesheuvel wrote: > With the stub to kernel interface being promoted to a proper interface > so that other agents than the stub can boot the kernel proper in EFI > mode, we can remove the linux,uefi-stub-kern-ver field, considering > that its original purpose was to prevent this from happening in the > first place. I'm not oppposed to this, but this change needs to be folded together with the other documentation updates necessary for this to become a stable ABI, as discussed in the other thread [1]. Thanks, Mark. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-September/369001.html > > Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > --- > Documentation/arm/uefi.txt | 2 -- > drivers/firmware/efi/libstub/fdt.c | 9 --------- > 2 files changed, 11 deletions(-) > > diff --git a/Documentation/arm/uefi.txt b/Documentation/arm/uefi.txt > index 7b3fdfe0f7ba..6543a0adea8a 100644 > --- a/Documentation/arm/uefi.txt > +++ b/Documentation/arm/uefi.txt > @@ -58,5 +58,3 @@ linux,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI > -------------------------------------------------------------------------------- > linux,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format. > -------------------------------------------------------------------------------- > -linux,uefi-stub-kern-ver | string | Copy of linux_banner from build. > --------------------------------------------------------------------------------- > diff --git a/drivers/firmware/efi/libstub/fdt.c b/drivers/firmware/efi/libstub/fdt.c > index a7e87cd582f2..60a11551fc15 100644 > --- a/drivers/firmware/efi/libstub/fdt.c > +++ b/drivers/firmware/efi/libstub/fdt.c > @@ -116,15 +116,6 @@ efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt, > if (status) > goto fdt_set_fail; > > - /* > - * Add kernel version banner so stub/kernel match can be > - * verified. > - */ > - status = fdt_setprop_string(fdt, node, "linux,uefi-stub-kern-ver", > - linux_banner); > - if (status) > - goto fdt_set_fail; > - > return EFI_SUCCESS; > > fdt_set_fail: > -- > 1.9.1 > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC PATCH] arm64/efi: remove /chosen/linux,uefi-stub-kern-ver DT property 2015-09-24 23:13 ` Mark Rutland @ 2015-09-24 23:23 ` Ard Biesheuvel 0 siblings, 0 replies; 3+ messages in thread From: Ard Biesheuvel @ 2015-09-24 23:23 UTC (permalink / raw) To: Mark Rutland Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, leif.lindholm-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, roy.franz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, Shannon Zhao, Stefano Stabellini On 24 September 2015 at 16:13, Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> wrote: > Hi Ard, > > On Thu, Sep 24, 2015 at 10:46:30PM +0100, Ard Biesheuvel wrote: >> With the stub to kernel interface being promoted to a proper interface >> so that other agents than the stub can boot the kernel proper in EFI >> mode, we can remove the linux,uefi-stub-kern-ver field, considering >> that its original purpose was to prevent this from happening in the >> first place. > > I'm not oppposed to this, but this change needs to be folded together with the > other documentation updates necessary for this to become a stable ABI, as > discussed in the other thread [1]. > Yes, you are quite right (and apologies to Stefano and Shannon for not cc'ing them on this patch) It would be good to remove this /before/ promoting any of this to stable ABI. -- Ard. > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-September/369001.html > >> >> Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> >> --- >> Documentation/arm/uefi.txt | 2 -- >> drivers/firmware/efi/libstub/fdt.c | 9 --------- >> 2 files changed, 11 deletions(-) >> >> diff --git a/Documentation/arm/uefi.txt b/Documentation/arm/uefi.txt >> index 7b3fdfe0f7ba..6543a0adea8a 100644 >> --- a/Documentation/arm/uefi.txt >> +++ b/Documentation/arm/uefi.txt >> @@ -58,5 +58,3 @@ linux,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI >> -------------------------------------------------------------------------------- >> linux,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format. >> -------------------------------------------------------------------------------- >> -linux,uefi-stub-kern-ver | string | Copy of linux_banner from build. >> --------------------------------------------------------------------------------- >> diff --git a/drivers/firmware/efi/libstub/fdt.c b/drivers/firmware/efi/libstub/fdt.c >> index a7e87cd582f2..60a11551fc15 100644 >> --- a/drivers/firmware/efi/libstub/fdt.c >> +++ b/drivers/firmware/efi/libstub/fdt.c >> @@ -116,15 +116,6 @@ efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt, >> if (status) >> goto fdt_set_fail; >> >> - /* >> - * Add kernel version banner so stub/kernel match can be >> - * verified. >> - */ >> - status = fdt_setprop_string(fdt, node, "linux,uefi-stub-kern-ver", >> - linux_banner); >> - if (status) >> - goto fdt_set_fail; >> - >> return EFI_SUCCESS; >> >> fdt_set_fail: >> -- >> 1.9.1 >> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-24 23:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-24 21:46 [RFC PATCH] arm64/efi: remove /chosen/linux,uefi-stub-kern-ver DT property Ard Biesheuvel
[not found] ` <1443131190-17790-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-09-24 23:13 ` Mark Rutland
2015-09-24 23:23 ` Ard Biesheuvel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox