mbox series

[v2,0/3,SRU,Bionic] Decode ARM CPER records in kernel

Message ID 20180524000548.13088-1-dann.frazier@canonical.com
Headers show
Series Decode ARM CPER records in kernel | expand

Message

dann frazier May 24, 2018, 12:05 a.m. UTC
Clean cherry-picks from upstream. Tested on a QDF2400 (the only ARM
system I know of that supports EINJ, needed for simulating errors).

v2: Explicitly enable CONFIG_UEFI_CPER_ARM

Tyler Baicar (2):
  efi: Move ARM CPER code to new file
  efi: Parse ARM error information value

dann frazier (1):
  UBUNTU: [Config] CONFIG_UEFI_CPER_ARM=y

 debian.master/config/config.common.ubuntu |   1 +
 drivers/firmware/efi/Kconfig              |   5 +
 drivers/firmware/efi/Makefile             |   1 +
 drivers/firmware/efi/cper-arm.c           | 356 ++++++++++++++++++++++
 drivers/firmware/efi/cper.c               | 122 +-------
 include/linux/cper.h                      |  48 +++
 6 files changed, 414 insertions(+), 119 deletions(-)
 create mode 100644 drivers/firmware/efi/cper-arm.c

Comments

Stefan Bader June 4, 2018, 9:59 p.m. UTC | #1
On 23.05.2018 17:05, dann frazier wrote:
> Clean cherry-picks from upstream. Tested on a QDF2400 (the only ARM
> system I know of that supports EINJ, needed for simulating errors).
> 
> v2: Explicitly enable CONFIG_UEFI_CPER_ARM
> 
> Tyler Baicar (2):
>   efi: Move ARM CPER code to new file
>   efi: Parse ARM error information value
> 
> dann frazier (1):
>   UBUNTU: [Config] CONFIG_UEFI_CPER_ARM=y
> 
>  debian.master/config/config.common.ubuntu |   1 +
>  drivers/firmware/efi/Kconfig              |   5 +
>  drivers/firmware/efi/Makefile             |   1 +
>  drivers/firmware/efi/cper-arm.c           | 356 ++++++++++++++++++++++
>  drivers/firmware/efi/cper.c               | 122 +-------
>  include/linux/cper.h                      |  48 +++
>  6 files changed, 414 insertions(+), 119 deletions(-)
>  create mode 100644 drivers/firmware/efi/cper-arm.c
> 

Somehow more nice to have than required but ok, limited to specific arch and not
too complex either. So only thing I probably would change is to have the patch
changing the ubuntu config last.

-Stefan
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Kleber Sacilotto de Souza June 5, 2018, 9 p.m. UTC | #2
On 05/23/18 17:05, dann frazier wrote:
> Clean cherry-picks from upstream. Tested on a QDF2400 (the only ARM
> system I know of that supports EINJ, needed for simulating errors).
> 
> v2: Explicitly enable CONFIG_UEFI_CPER_ARM
> 
> Tyler Baicar (2):
>   efi: Move ARM CPER code to new file
>   efi: Parse ARM error information value
> 
> dann frazier (1):
>   UBUNTU: [Config] CONFIG_UEFI_CPER_ARM=y
> 
>  debian.master/config/config.common.ubuntu |   1 +
>  drivers/firmware/efi/Kconfig              |   5 +
>  drivers/firmware/efi/Makefile             |   1 +
>  drivers/firmware/efi/cper-arm.c           | 356 ++++++++++++++++++++++
>  drivers/firmware/efi/cper.c               | 122 +-------
>  include/linux/cper.h                      |  48 +++
>  6 files changed, 414 insertions(+), 119 deletions(-)
>  create mode 100644 drivers/firmware/efi/cper-arm.c
> 

Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Khalid Elmously June 7, 2018, 10:02 p.m. UTC | #3
Applied to Bionic


On 2018-05-23 18:05:45 , dann frazier wrote:
> Clean cherry-picks from upstream. Tested on a QDF2400 (the only ARM
> system I know of that supports EINJ, needed for simulating errors).
> 
> v2: Explicitly enable CONFIG_UEFI_CPER_ARM
> 
> Tyler Baicar (2):
>   efi: Move ARM CPER code to new file
>   efi: Parse ARM error information value
> 
> dann frazier (1):
>   UBUNTU: [Config] CONFIG_UEFI_CPER_ARM=y
> 
>  debian.master/config/config.common.ubuntu |   1 +
>  drivers/firmware/efi/Kconfig              |   5 +
>  drivers/firmware/efi/Makefile             |   1 +
>  drivers/firmware/efi/cper-arm.c           | 356 ++++++++++++++++++++++
>  drivers/firmware/efi/cper.c               | 122 +-------
>  include/linux/cper.h                      |  48 +++
>  6 files changed, 414 insertions(+), 119 deletions(-)
>  create mode 100644 drivers/firmware/efi/cper-arm.c
> 
> -- 
> 2.17.0
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
dann frazier June 11, 2018, 5 p.m. UTC | #4
On Mon, Jun 4, 2018 at 3:59 PM, Stefan Bader <stefan.bader@canonical.com> wrote:
> On 23.05.2018 17:05, dann frazier wrote:
>> Clean cherry-picks from upstream. Tested on a QDF2400 (the only ARM
>> system I know of that supports EINJ, needed for simulating errors).
>>
>> v2: Explicitly enable CONFIG_UEFI_CPER_ARM
>>
>> Tyler Baicar (2):
>>   efi: Move ARM CPER code to new file
>>   efi: Parse ARM error information value
>>
>> dann frazier (1):
>>   UBUNTU: [Config] CONFIG_UEFI_CPER_ARM=y
>>
>>  debian.master/config/config.common.ubuntu |   1 +
>>  drivers/firmware/efi/Kconfig              |   5 +
>>  drivers/firmware/efi/Makefile             |   1 +
>>  drivers/firmware/efi/cper-arm.c           | 356 ++++++++++++++++++++++
>>  drivers/firmware/efi/cper.c               | 122 +-------
>>  include/linux/cper.h                      |  48 +++
>>  6 files changed, 414 insertions(+), 119 deletions(-)
>>  create mode 100644 drivers/firmware/efi/cper-arm.c
>>
>
> Somehow more nice to have than required but ok, limited to specific arch and not
> too complex either. So only thing I probably would change is to have the patch
> changing the ubuntu config last.

Sorry, just noticed your feedback here. I actually used to put the
[Config] changes last, but noticed they were getting applied earlier.
Turns out there was a reason - bisection. IIRC, the idea is to avoid
having a commit where the Kconfig setting exists, but we haven't yet
defined it in the Ubuntu config.

  -dann
dann frazier June 11, 2018, 5:02 p.m. UTC | #5
Thanks Khaled! Unfortunately, it looks like [PATCH v2 3/3] ("efi:
Parse ARM error information value") didn't make it...

  -dann

On Thu, Jun 7, 2018 at 4:02 PM, Khaled Elmously
<khalid.elmously@canonical.com> wrote:
> Applied to Bionic
>
>
> On 2018-05-23 18:05:45 , dann frazier wrote:
>> Clean cherry-picks from upstream. Tested on a QDF2400 (the only ARM
>> system I know of that supports EINJ, needed for simulating errors).
>>
>> v2: Explicitly enable CONFIG_UEFI_CPER_ARM
>>
>> Tyler Baicar (2):
>>   efi: Move ARM CPER code to new file
>>   efi: Parse ARM error information value
>>
>> dann frazier (1):
>>   UBUNTU: [Config] CONFIG_UEFI_CPER_ARM=y
>>
>>  debian.master/config/config.common.ubuntu |   1 +
>>  drivers/firmware/efi/Kconfig              |   5 +
>>  drivers/firmware/efi/Makefile             |   1 +
>>  drivers/firmware/efi/cper-arm.c           | 356 ++++++++++++++++++++++
>>  drivers/firmware/efi/cper.c               | 122 +-------
>>  include/linux/cper.h                      |  48 +++
>>  6 files changed, 414 insertions(+), 119 deletions(-)
>>  create mode 100644 drivers/firmware/efi/cper-arm.c
>>
>> --
>> 2.17.0
>>
>>
>> --
>> kernel-team mailing list
>> kernel-team@lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Stefan Bader June 12, 2018, 9:13 a.m. UTC | #6
On 11.06.2018 19:00, dann frazier wrote:
> On Mon, Jun 4, 2018 at 3:59 PM, Stefan Bader <stefan.bader@canonical.com> wrote:
>> On 23.05.2018 17:05, dann frazier wrote:
>>> Clean cherry-picks from upstream. Tested on a QDF2400 (the only ARM
>>> system I know of that supports EINJ, needed for simulating errors).
>>>
>>> v2: Explicitly enable CONFIG_UEFI_CPER_ARM
>>>
>>> Tyler Baicar (2):
>>>   efi: Move ARM CPER code to new file
>>>   efi: Parse ARM error information value
>>>
>>> dann frazier (1):
>>>   UBUNTU: [Config] CONFIG_UEFI_CPER_ARM=y
>>>
>>>  debian.master/config/config.common.ubuntu |   1 +
>>>  drivers/firmware/efi/Kconfig              |   5 +
>>>  drivers/firmware/efi/Makefile             |   1 +
>>>  drivers/firmware/efi/cper-arm.c           | 356 ++++++++++++++++++++++
>>>  drivers/firmware/efi/cper.c               | 122 +-------
>>>  include/linux/cper.h                      |  48 +++
>>>  6 files changed, 414 insertions(+), 119 deletions(-)
>>>  create mode 100644 drivers/firmware/efi/cper-arm.c
>>>
>>
>> Somehow more nice to have than required but ok, limited to specific arch and not
>> too complex either. So only thing I probably would change is to have the patch
>> changing the ubuntu config last.
> 
> Sorry, just noticed your feedback here. I actually used to put the
> [Config] changes last, but noticed they were getting applied earlier.
> Turns out there was a reason - bisection. IIRC, the idea is to avoid
> having a commit where the Kconfig setting exists, but we haven't yet
> defined it in the Ubuntu config.

You are right and I am not sure what exactly I was thinking when I wrote that
comment. I guess it was to have everything in place and then activate it. Just
that this breaks normal build as soon as this requires to make some decision
(turn on/off/build as module). Bisection itself is more independent as one needs
to twiddle config options often between steps.
So maybe (as of todays thinking) the safest option is to put the ubuntu config
change either as the first change (as long as the option(s) do not exist in
Kconfig they would just be ignored) or directly before the commit that makes the
Kconfig change.

-Stefan
> 
>   -dann
>