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

2018-07-12 Thread Dong Wei
Agree, that's what we will do. - DW - -Original Message- From: arm.ebbr-discuss-boun...@arm.com On Behalf Of Graeme Gregory Sent: Thursday, July 12, 2018 8:37 AM To: udit.ku...@nxp.com Cc: nd ; boot-architecture@lists.linaro.org; Mark Brown ; arm.ebbr-discuss Subject: Re:

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

2018-07-12 Thread Grant Likely
On 12/07/2018 16:56, Graeme Gregory wrote: On Thu, 12 Jul 2018 at 16:50, Rob Herring wrote: On Thu, Jul 12, 2018 at 9:37 AM Graeme Gregory wrote: On Thu, 12 Jul 2018 at 16:30, Udit Kumar wrote: Hi Mark -Original Message- From: Mark Brown [mailto:broo...@kernel.org] Sent:

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

2018-07-12 Thread Graeme Gregory
On Thu, 12 Jul 2018 at 16:50, Rob Herring wrote: > > On Thu, Jul 12, 2018 at 9:37 AM Graeme Gregory > wrote: > > > > On Thu, 12 Jul 2018 at 16:30, Udit Kumar wrote: > > > > > > Hi Mark > > > > > > > -Original Message- > > > > From: Mark Brown [mailto:broo...@kernel.org] > > > > Sent:

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

2018-07-12 Thread Rob Herring
On Thu, Jul 12, 2018 at 9:37 AM Graeme Gregory wrote: > > On Thu, 12 Jul 2018 at 16:30, Udit Kumar wrote: > > > > Hi Mark > > > > > -Original Message- > > > From: Mark Brown [mailto:broo...@kernel.org] > > > Sent: Thursday, July 12, 2018 8:20 PM > > > To: Udit Kumar > > > Cc: Ard

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

2018-07-12 Thread Graeme Gregory
On Thu, 12 Jul 2018 at 16:30, Udit Kumar wrote: > > 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 > > > >

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: Account for SetVariable() not

Re: [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Grant Likely
On 12/07/2018 15:46, Dong Wei wrote: Grant, I think the variables are defined by the specs as either non-volatile or volatile. It should not be changing. Alright, I'm looking for alternate proposals then. How should EBBR support platforms which cannot write non-volatile variables from

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

RE: [RFC] uefi: Account for SetVariable() not working at runtime

2018-07-12 Thread Dong Wei
Grant, I think the variables are defined by the specs as either non-volatile or volatile. It should not be changing. - DW - -Original Message- From: Grant Likely Sent: Thursday, July 12, 2018 3:41 AM To: boot-architecture@lists.linaro.org; arm.ebbr-discuss Cc: nd ; Grant Likely ; Dong

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 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