From: Leif Lindholm <leif.lindholm@linaro.org>
To: Marcin Wojtas <mw@semihalf.com>
Cc: edk2-devel-01 <edk2-devel@lists.01.org>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
nadavh@marvell.com, Neta Zur Hershkovits <neta@marvell.com>,
Kostya Porotchkin <kostap@marvell.com>,
Hua Jing <jinghua@marvell.com>,
semihalf-dabros-jan <jsd@semihalf.com>
Subject: Re: [platforms: PATCH v2 1/4] Platform/Marvell: Introduce MvFvbDxe variable support driver
Date: Sun, 26 Nov 2017 14:37:24 +0000 [thread overview]
Message-ID: <20171126143723.dfo5gk5t3vaqsmr3@bivouac.eciton.net> (raw)
In-Reply-To: <CAPv3WKe-CdvYd+ZfJv-J_P3e295ygL09jTDQvdVoh1PFCb_baA@mail.gmail.com>
On Sun, Nov 26, 2017 at 02:38:18PM +0100, Marcin Wojtas wrote:
> Hi Leif,
>
> 2017-11-25 15:09 GMT+01:00 Leif Lindholm <leif.lindholm@linaro.org>:
> > > + // Check the Variable Store Guid
> > > + if (!CompareGuid (&VariableStoreHeader->Signature, &gEfiVariableGuid) &&
> > > + !CompareGuid (&VariableStoreHeader->Signature,
> > > + &gEfiAuthenticatedVariableGuid)) {
> >
> > Still spurious indentation. (If it's meant to indicate continuation,
> > that's fine, but that's two spaces, not three. Although I would find
> > !CompareGuid (&VariableStoreHeader->Signature,
> > &gEfiAuthenticatedVariableGuid)) {
> > more clear.
>
> It's two spaces from the beginning of function name. Anyway, I'll
> align &gEfiAuthenticatedVariableGuid to &VariableStoreHeader,
Thanks.
> > > +/**
> > > + The SetAttributes() function sets configurable firmware volume attributes
> > > + and returns the new settings of the firmware volume.
> > > +
> > > +
> > > + @param This EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL instance.
> > > +
> > > + @param Attributes On input, Attributes is a pointer to
> > > + EFI_FVB_ATTRIBUTES_2 that contains the desired
> > > + firmware volume settings.
> > > + On successful return, it contains the new
> > > + settings of the firmware volume.
> > > +
> > > + @retval EFI_SUCCESS The firmware volume attributes were returned.
> > > +
> > > + @retval EFI_INVALID_PARAMETER The attributes requested are in conflict with
> > > + the capabilities as declared in the firmware
> > > + volume header.
> > > +
> > > + **/
> > > +EFI_STATUS
> > > +EFIAPI
> > > +MvFvbSetAttributes (
> > > + IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,
> > > + IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes
> > > + )
> > > +{
> > > + DEBUG ((DEBUG_BLKIO,
> > > + "%a: Operation not supported, keep default set of attributes\n",
> > > + __FUNCTION__));
> > > +
> > > + return MvFvbGetAttributes (This, Attributes);
> >
> > I'm still not completely thrilled about this.
> > Sure, the return value is always SUCCESS now.
> >
> > But the implicit meaning of the specification is that
> > *this*support*is*not*optional*.
>
> Ok, I'll change it then. I only referred to existing edk2-platforms
> implementations (AMD - 'return EFI_SUCCESS', Hisilicon/Socionext -
> 'return EFI_UNSUPPORTED' - all with doing nothing with the actual
> attributes list). Same with ArmPlatformPkg, only Intel seems to
> implement this.
Much appreciated.
Well, this is basically a case of reviewer Dunning-Kruger - when I
have previously reviewed such patches, I've not had sufficiently
internalised knowledge of the underlying protocols to go "hang on...".
I would appreciate if you could raise bugs on the items you have
discovered in ofther drivers in https://bugzilla.tianocore.org/.
/
Leif
next prev parent reply other threads:[~2017-11-26 14:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-21 6:46 [platforms: PATCH v2 0/4] Armada 7k/8k variable support Marcin Wojtas
2017-11-21 6:46 ` [platforms: PATCH v2 1/4] Platform/Marvell: Introduce MvFvbDxe variable support driver Marcin Wojtas
2017-11-25 14:09 ` Leif Lindholm
2017-11-26 13:38 ` Marcin Wojtas
2017-11-26 14:37 ` Leif Lindholm [this message]
2017-11-21 6:46 ` [platforms: PATCH v2 2/4] Marvell/Drivers: MvSpiFlash: Enable using driver in RT Marcin Wojtas
2017-11-21 6:46 ` [platforms: PATCH v2 3/4] Marvell/Drivers: MvSpiDxe: " Marcin Wojtas
2017-11-21 6:46 ` [platforms: PATCH v2 4/4] Marvell/Armada: Enable variables support Marcin Wojtas
2017-11-25 14:16 ` [platforms: PATCH v2 0/4] Armada 7k/8k variable support Leif Lindholm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171126143723.dfo5gk5t3vaqsmr3@bivouac.eciton.net \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox