[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM5PR12MB1916F87127E0C2EF6F042247F8C10@DM5PR12MB1916.namprd12.prod.outlook.com>
Date: Mon, 26 Feb 2018 16:05:00 +0000
From: "Ghannam, Yazen" <Yazen.Ghannam@....com>
To: Ard Biesheuvel <ard.biesheuvel@...aro.org>
CC: "linux-efi@...r.kernel.org" <linux-efi@...r.kernel.org>,
"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
Borislav Petkov <bp@...e.de>,
the arch/x86 maintainers <x86@...nel.org>
Subject: RE: [PATCH 8/8] efi: Decode IA32/X64 Context Info structure
> -----Original Message-----
> From: Ard Biesheuvel [mailto:ard.biesheuvel@...aro.org]
> Sent: Saturday, February 24, 2018 11:46 AM
> To: Ghannam, Yazen <Yazen.Ghannam@....com>
> Cc: linux-efi@...r.kernel.org; Linux Kernel Mailing List <linux-
> kernel@...r.kernel.org>; Borislav Petkov <bp@...e.de>; the arch/x86
> maintainers <x86@...nel.org>
> Subject: Re: [PATCH 8/8] efi: Decode IA32/X64 Context Info structure
>
> On 23 February 2018 at 20:03, Yazen Ghannam
> <Yazen.Ghannam@....com> wrote:
> > From: Yazen Ghannam <yazen.ghannam@....com>
> >
> > Print the fields of the IA32/X64 Context Information structure.
> >
> > Print the "Register Array" as raw values. Some context types are defined
> > in the UEFI spec, so more detailed decoded may be added in the future.
> >
> > Based on UEFI 2.7 section N.2.4.2.2 IA32/X64 Processor Context
> > Information Structure.
> >
> > Cc: <stable@...r.kernel.org> # 4.16.x
> > Signed-off-by: Yazen Ghannam <yazen.ghannam@....com>
> > ---
> > drivers/firmware/efi/cper-x86.c | 55
> +++++++++++++++++++++++++++++++++++++++++
> > 1 file changed, 55 insertions(+)
> >
> > diff --git a/drivers/firmware/efi/cper-x86.c b/drivers/firmware/efi/cper-
> x86.c
> > index 02b1b424f537..bb6cef0b5e53 100644
> > --- a/drivers/firmware/efi/cper-x86.c
> > +++ b/drivers/firmware/efi/cper-x86.c
> > @@ -13,6 +13,7 @@
> > #define VALID_LAPIC_ID BIT_ULL(0)
> > #define VALID_CPUID_INFO BIT_ULL(1)
> > #define VALID_PROC_ERR_INFO_NUM(bits) ((bits & GENMASK_ULL(7, 2))
> >> 2)
> > +#define VALID_PROC_CNXT_INFO_NUM(bits) ((bits & GENMASK_ULL(13,
> 8)) >> 8)
>
> Parens
>
> Also, CNXT isn't really idiomatic when abbreviating 'context' (and you
> use CTX below as well)
>
The UEFI spec uses PROC_CONTEXT_INFO_NUM.
Would you prefer 1 or 2 below?
1) VALID_PROC_CONTEXT_INFO_NUM
2) VALID_PROC_CTX_INFO_NUM
Thanks,
Yazen
Powered by blists - more mailing lists