Re: [PATCH] ACPI/APEI: Add BERT data driver

From: Punit Agrawal
Date: Tue Aug 15 2017 - 06:22:16 EST


Hi Tony,

"Luck, Tony" <tony.luck@xxxxxxxxx> writes:

> From: Tony Luck <tony.luck@xxxxxxxxx>
>
> The ACPI Boot Error Record Table provides a method for platform
> firmware to give information to the operating system about error
> that occurred prior to boot (of particular interest are problems
> that caused the previous OS instance to crash).
>
> The BERT table simply provides the size and address of the error
> record in BIOS reserved memory. In an earlier age we might have
> used /dev/mem to retrieve this error record, but many systems
> disable /dev/mem for security reasons.
>
> This driver provides read-only access to the data via a character
> special device "/dev/bert-data".

There is already a bert driver which prints the error record. Would it
make sense to integrate the character device there instead of creating a
new driver?

[...]