Re: [RFC PATCH] Export Runtime Configuration Interface table to sysfs

2019-06-25 Thread Narendra.K
On Fri, Jun 21, 2019 at 06:35:42PM +0200, Ard Biesheuvel wrote: > (+ Peter) > > On Mon, 17 Jun 2019 at 12:11, wrote: > > > > From: Narendra K > > > > System firmware advertises the address of the 'Runtime > > Configuration Interface table version 2 (RCI2)' via > > an EFI Configuration Table

[RFC PATCH] Export Runtime Configuration Interface table to sysfs

2019-06-17 Thread Narendra.K
From: Narendra K System firmware advertises the address of the 'Runtime Configuration Interface table version 2 (RCI2)' via an EFI Configuration Table entry. This code retrieves the RCI2 table from the address and exports it to sysfs as a binary attribute 'rci2' under /sys/firmware/efi/tables

Re: [RFC PATCH] Export Runtime Configuration Interface table to sysfs

2019-06-26 Thread Narendra.K
On Tue, Jun 25, 2019 at 04:21:33PM +0200, Ard Biesheuvel wrote: [...] > > > > --- a/drivers/firmware/efi/efi.c > > > > +++ b/drivers/firmware/efi/efi.c > > > > @@ -53,6 +53,7 @@ struct efi __read_mostly efi = { > > > > .rng_seed = EFI_INVALID_TABLE_ADDR, > > > >

[PATCH v1] Export Runtime Configuration Interface table to sysfs

2019-07-10 Thread Narendra.K
From: Narendra K System firmware advertises the address of the 'Runtime Configuration Interface table version 2 (RCI2)' via an EFI Configuration Table entry. This code retrieves the RCI2 table from the address and exports it to sysfs as a binary attribute 'rci2' under /sys/firmware/efi/tables

[PATCH v0] Export Runtime Configuration Interface table to sysfs

2019-06-29 Thread Narendra.K
From: Narendra K System firmware advertises the address of the 'Runtime Configuration Interface table version 2 (RCI2)' via an EFI Configuration Table entry. This code retrieves the RCI2 table from the address and exports it to sysfs as a binary attribute 'rci2' under /sys/firmware/efi/tables

Re: [PATCH v0] Export Runtime Configuration Interface table to sysfs

2019-06-29 Thread Narendra.K
On Sat, Jun 29, 2019 at 07:23:26AM -0400, Narendra K wrote: > From: Narendra K > > System firmware advertises the address of the 'Runtime > Configuration Interface table version 2 (RCI2)' via > an EFI Configuration Table entry. This code retrieves the RCI2 > table from the address and exports it

Re: [PATCH v1] Export Runtime Configuration Interface table to sysfs

2019-08-07 Thread Narendra.K
On Thu, Jul 11, 2019 at 11:00:37PM +, Limonciello, Mario wrote: > > -Original Message- > > From: K, Narendra > > Sent: Wednesday, July 10, 2019 11:59 AM > > To: linux-efi@vger.kernel.org; ard.biesheu...@linaro.org; pjo...@redhat.com > > Cc: K, Narendra; Hayes, Stuart; Limonciello,

Re: [PATCH v1] Export Runtime Configuration Interface table to sysfs

2019-08-08 Thread Narendra.K
On Thu, Aug 08, 2019 at 11:16:55AM +0300, Ard Biesheuvel wrote: > > On Wed, 7 Aug 2019 at 16:09, wrote: > > On Thu, Jul 11, 2019 at 11:00:37PM +, Limonciello, Mario wrote: [...] > > Hi Ard, > > > > Does the version 1 of the patch look good ? Please share your thoughts. > > > > Thanks

Re: [PATCH 4/5] efi: Export Runtime Configuration Interface table to sysfs

2019-10-02 Thread Narendra.K
On Tue, Oct 01, 2019 at 08:23:51PM +0200, Geert Uytterhoeven wrote: [...] > > > > > > > > +config EFI_RCI2_TABLE > > > > > > > > + bool "EFI Runtime Configuration Interface Table Version > > > > > > > > 2 Support" [...] > > > Is it really a problem to just say n? > > > > > > I think this

[PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y

2019-10-02 Thread Narendra.K
From: Narendra K For the EFI_RCI2_TABLE kconfig option, 'make oldconfig' asks the user for input as it is a new kconfig option in kernel version 5.4. This patch modifies the kconfig option to ask the user for input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y. The patch also makes

Re: [PATCH 4/5] efi: Export Runtime Configuration Interface table to sysfs

2019-10-02 Thread Narendra.K
On Wed, Oct 02, 2019 at 10:22:10AM +, K, Narendra wrote: [...] > > I hope I managed to convince you of the benefits. > > Thank you Geert. The description is helpful. I am working on it. > As I understand, the issue is 'make oldconfig' provides a prompt to the user > and user is expecting

Re: [PATCH 4/5] efi: Export Runtime Configuration Interface table to sysfs

2019-10-01 Thread Narendra.K
On Tue, Oct 01, 2019 at 01:20:46PM +, Limonciello, Mario wrote: [...] > > > > > > +config EFI_RCI2_TABLE > > > > > > + bool "EFI Runtime Configuration Interface Table Version 2 > > > > > > Support" > > > > > > + help > > > > > > + Displays the content of the Runtime

Re: [PATCH v0] Export Runtime Configuration Interface table to sysfs

2019-07-08 Thread Narendra.K
On Tue, Jul 02, 2019 at 09:57:24PM +0200, Ard Biesheuvel wrote: > On Sat, 29 Jun 2019 at 13:23, wrote: > > > > From: Narendra K > > > > System firmware advertises the address of the 'Runtime > > Configuration Interface table version 2 (RCI2)' via > > an EFI Configuration Table entry. This code

Re: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y

2019-10-10 Thread Narendra.K
Hi Ard, Thank you for the review comments. On Wed, Oct 09, 2019 at 04:11:04PM +0200, Ard Biesheuvel wrote: > On Wed, 2 Oct 2019 at 21:44, wrote: > > > > From: Narendra K > > > > For the EFI_RCI2_TABLE kconfig option, 'make oldconfig' asks the user > > for input as it is a new kconfig option

[PATCH v1] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y

2019-10-13 Thread Narendra.K
From: Narendra K For the EFI_RCI2_TABLE kconfig option, 'make oldconfig' asks the user for input on platforms where the option may not be applicable. This patch modifies the kconfig option to ask the user for input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y. Reported-by: Geert

Re: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y

2019-10-13 Thread Narendra.K
Geert, On Sat, Oct 12, 2019 at 07:04:15PM +0200, Geert Uytterhoeven wrote: [...] > > From the discussion in [1] and [2](pasted a part of it above), my > > understanding > > of the issue you reported is that 'make oldconfig' asks the user a question > > for arm64 > > though the EFI_RCI2_TABLE is

Re: [PATCH v1] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y

2019-10-13 Thread Narendra.K
Hi Ard, On Sun, Oct 13, 2019 at 06:57:05PM +, K, Narendra wrote: > From: Narendra K > > For the EFI_RCI2_TABLE kconfig option, 'make oldconfig' asks the user > for input on platforms where the option may not be applicable. This patch > modifies the kconfig option to ask the user for input

Re: [PATCH v1] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y

2019-10-14 Thread Narendra.K
On Mon, Oct 14, 2019 at 08:49:51AM +0200, Ard Biesheuvel wrote: > > [EXTERNAL EMAIL] > > On Mon, 14 Oct 2019 at 08:41, Geert Uytterhoeven wrote: > > > > Hi Narendra, > > > > On Sun, Oct 13, 2019 at 8:57 PM wrote: > > > From: Narendra K > > > > > > For the EFI_RCI2_TABLE kconfig option, 'make

Re: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y

2019-10-11 Thread Narendra.K
On Fri, Oct 11, 2019 at 12:01:25PM +0200, Geert Uytterhoeven wrote: > > > > > > - bool "EFI Runtime Configuration Interface Table Version 2 > > > > > > Support" > > > > > > + bool > > > > > > + prompt "EFI RCI Table Version 2 Support" if X86 || > > > > > > COMPILE_TEST > > > >

Re: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y

2019-10-11 Thread Narendra.K
Hi Geert, On Thu, Oct 10, 2019 at 08:50:45PM +0200, Geert Uytterhoeven wrote: [...] > > > > drivers/firmware/efi/Kconfig | 5 - > > > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig > > > > index