RE: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Dong Wei
To: Udit Kumar > > Cc: Ard Biesheuvel ; Architecture Mailman > > List ; nd ; > > arm.ebbr-discuss > > Subject: Re: [Arm.ebbr-discuss] [RFC] uefi: Account for > > SetVariable() not working at runtime > > > > On Thu, Jul 12, 2018 at 02:19:49PM +, Udit

Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Grant Likely
: Thursday, July 12, 2018 8:20 PM To: Udit Kumar Cc: Ard Biesheuvel ; Architecture Mailman List ; nd ; arm.ebbr-discuss Subject: Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime On Thu, Jul 12, 2018 at 02:19:49PM +, Udit Kumar wrote: Do any existing

Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Graeme Gregory
> > > From: Mark Brown [mailto:broo...@kernel.org] > > > > Sent: Thursday, July 12, 2018 8:20 PM > > > > To: Udit Kumar > > > > Cc: Ard Biesheuvel ; Architecture Mailman > > > > List > > > > ; nd ; > > > >

Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Rob Herring
2, 2018 8:20 PM > > > To: Udit Kumar > > > Cc: Ard Biesheuvel ; Architecture Mailman List > > > ; nd ; arm.ebbr-discuss > > > > > > Subject: Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not > > > working > > > at

Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Graeme Gregory
ailman List > > ; nd ; arm.ebbr-discuss > > > > Subject: Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not > > working > > at runtime > > > > On Thu, Jul 12, 2018 at 02:19:49PM +, Udit Kumar wrote: > > > > > > > Do any existing

RE: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Udit Kumar
Hi Mark > -Original Message- > From: Mark Brown [mailto:broo...@kernel.org] > Sent: Thursday, July 12, 2018 8:20 PM > To: Udit Kumar > Cc: Ard Biesheuvel ; Architecture Mailman List > ; nd ; arm.ebbr-discuss > > Subject: Re: [Arm.ebbr-discuss] [RFC] uefi: Accou

Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Grant Likely
On 12/07/2018 15:50, Mark Brown wrote: On Thu, Jul 12, 2018 at 02:19:49PM +, Udit Kumar wrote: Do any existing implementations change variables from non-volatile to volatile? The UEFI spec is explicit about which variables are volatile and which are not. Simply relaxing non-volatile to v

Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Grant Likely
On 12/07/2018 14:12, Mark Brown wrote: On Thu, Jul 12, 2018 at 01:50:45PM +0100, Daniel Thompson wrote: On Thu, Jul 12, 2018 at 11:41:08AM +0100, Grant Likely wrote: Add details on what to do if the platform is unable to set persistent variables in runtime services. The idea here is that the Ge

RE: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Udit Kumar
Hi Ard > > Do any existing implementations change variables from non-volatile to > > volatile? > > > > The UEFI spec is explicit about which variables are volatile and which are > not. > Simply relaxing non-volatile to volatile in the general case doesn't seem > like a > useful approach to me.

RE: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Udit Kumar
My 2 cents > -Original Message- > From: arm.ebbr-discuss-boun...@arm.com [mailto:arm.ebbr-discuss- > boun...@arm.com] On Behalf Of Grant Likely > Sent: Thursday, July 12, 2018 4:11 PM > To: boot-architecture@lists.linaro.org; arm.ebbr-disc...@arm.com > Cc: n...@arm.com > Subject: [Arm.ebb

Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Ard Biesheuvel
On 12 July 2018 at 15:12, Mark Brown wrote: > On Thu, Jul 12, 2018 at 01:50:45PM +0100, Daniel Thompson wrote: > >> The OS will discover the variable is non-modifiable when it tried to >> set it. Won't the current proposal mislead standards compliant use of >> GetVariable()? For example does it it

Re: [Arm.ebbr-discuss] [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Daniel Thompson
On Thu, Jul 12, 2018 at 11:41:08AM +0100, Grant Likely wrote: > Add details on what to do if the platform is unable to set persistent > variables in runtime services. The idea here is that the GetVariable() > and SetVariable() APIs should continue to work, and the OS can obtain > all the variable s