* [PATCH] efi: remove UEFIv2.5 properties table from /sys/firmware/efi/systab
@ 2015-09-30 14:43 Ard Biesheuvel
[not found] ` <1443624196-31630-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Ard Biesheuvel @ 2015-09-30 14:43 UTC (permalink / raw)
To: linux-efi-u79uwXL29TY76Z2rM5mHXA,
matt.fleming-ral2JQCrhuEAvxtiuMwx3w,
dyoung-H+wXaHxf7aLQT0dZR+AlfA
Cc: leif.lindholm-QSEj5FYQhm4dnm+yROfE0A, Ard Biesheuvel
As pointed out by Dave Young, /sys/firmware/efi/systab violates the
sysfs one-value-per-file policy already, so adding more data items
to it should be avoided. So let's remove the PROP= line that lists
the address of the recently introduced Properties Table before it
appears in a release.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
Matt pointed out that there still needs to be a way for kexec/x86 to
access this data, since it needs to pass it on to the kexec kernel.
That is way out of my area of expertise, so I will leave it to you
to come up with something suitable there.
drivers/firmware/efi/efi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 2eb31e28a35c..3804ecd4a77a 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -109,8 +109,6 @@ static ssize_t systab_show(struct kobject *kobj,
str += sprintf(str, "BOOTINFO=0x%lx\n", efi.boot_info);
if (efi.uga != EFI_INVALID_TABLE_ADDR)
str += sprintf(str, "UGA=0x%lx\n", efi.uga);
- if (efi.properties_table != EFI_INVALID_TABLE_ADDR)
- str += sprintf(str, "PROP=0x%lx\n", efi.properties_table);
return str - buf;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1443624196-31630-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH] efi: remove UEFIv2.5 properties table from /sys/firmware/efi/systab [not found] ` <1443624196-31630-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2015-10-01 3:15 ` Dave Young [not found] ` <20151001031505.GA8264-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Dave Young @ 2015-10-01 3:15 UTC (permalink / raw) To: Ard Biesheuvel Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA, matt.fleming-ral2JQCrhuEAvxtiuMwx3w, leif.lindholm-QSEj5FYQhm4dnm+yROfE0A On 09/30/15 at 04:43pm, Ard Biesheuvel wrote: > As pointed out by Dave Young, /sys/firmware/efi/systab violates the > sysfs one-value-per-file policy already, so adding more data items > to it should be avoided. So let's remove the PROP= line that lists > the address of the recently introduced Properties Table before it > appears in a release. > > Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > --- > > Matt pointed out that there still needs to be a way for kexec/x86 to > access this data, since it needs to pass it on to the kexec kernel. > That is way out of my area of expertise, so I will leave it to you > to come up with something suitable there. > > drivers/firmware/efi/efi.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c > index 2eb31e28a35c..3804ecd4a77a 100644 > --- a/drivers/firmware/efi/efi.c > +++ b/drivers/firmware/efi/efi.c > @@ -109,8 +109,6 @@ static ssize_t systab_show(struct kobject *kobj, > str += sprintf(str, "BOOTINFO=0x%lx\n", efi.boot_info); > if (efi.uga != EFI_INVALID_TABLE_ADDR) > str += sprintf(str, "UGA=0x%lx\n", efi.uga); > - if (efi.properties_table != EFI_INVALID_TABLE_ADDR) > - str += sprintf(str, "PROP=0x%lx\n", efi.properties_table); > > return str - buf; > } Ard, thanks, it looks good to me. Acked-by: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20151001031505.GA8264-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: [PATCH] efi: remove UEFIv2.5 properties table from /sys/firmware/efi/systab [not found] ` <20151001031505.GA8264-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2015-10-10 17:03 ` Matt Fleming 0 siblings, 0 replies; 3+ messages in thread From: Matt Fleming @ 2015-10-10 17:03 UTC (permalink / raw) To: Dave Young Cc: Ard Biesheuvel, linux-efi-u79uwXL29TY76Z2rM5mHXA, matt.fleming-ral2JQCrhuEAvxtiuMwx3w, leif.lindholm-QSEj5FYQhm4dnm+yROfE0A On Thu, 01 Oct, at 11:15:05AM, Dave Young wrote: > On 09/30/15 at 04:43pm, Ard Biesheuvel wrote: > > As pointed out by Dave Young, /sys/firmware/efi/systab violates the > > sysfs one-value-per-file policy already, so adding more data items > > to it should be avoided. So let's remove the PROP= line that lists > > the address of the recently introduced Properties Table before it > > appears in a release. > > > > Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > > --- > > > > Matt pointed out that there still needs to be a way for kexec/x86 to > > access this data, since it needs to pass it on to the kexec kernel. > > That is way out of my area of expertise, so I will leave it to you > > to come up with something suitable there. > > > > drivers/firmware/efi/efi.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c > > index 2eb31e28a35c..3804ecd4a77a 100644 > > --- a/drivers/firmware/efi/efi.c > > +++ b/drivers/firmware/efi/efi.c > > @@ -109,8 +109,6 @@ static ssize_t systab_show(struct kobject *kobj, > > str += sprintf(str, "BOOTINFO=0x%lx\n", efi.boot_info); > > if (efi.uga != EFI_INVALID_TABLE_ADDR) > > str += sprintf(str, "UGA=0x%lx\n", efi.uga); > > - if (efi.properties_table != EFI_INVALID_TABLE_ADDR) > > - str += sprintf(str, "PROP=0x%lx\n", efi.properties_table); > > > > return str - buf; > > } > > Ard, thanks, it looks good to me. > > Acked-by: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Thanks guys. I've folded this into the existing properties table patch from Ard, because there's no sense in having it as a separate patch and since that would make backporting more difficult. -- Matt Fleming, Intel Open Source Technology Center ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-10 17:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-30 14:43 [PATCH] efi: remove UEFIv2.5 properties table from /sys/firmware/efi/systab Ard Biesheuvel
[not found] ` <1443624196-31630-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-10-01 3:15 ` Dave Young
[not found] ` <20151001031505.GA8264-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2015-10-10 17:03 ` Matt Fleming
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).