]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region
authorTony Luck <tony.luck@intel.com>
Fri, 18 Aug 2017 23:19:00 +0000 (16:19 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Aug 2017 01:35:37 +0000 (03:35 +0200)
commitc747b90b686248976c017f0977b8747ce701fdd5
tree403fa2fdab3b5291cdd0390d570a56aa4df05c4f
parentb69f9ae530642ece2cbfa430a679c3b330c65600
ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region

The ACPI sysfs interface provides a way to read each ACPI table from
userspace via entries in /sys/firmware/acpi/tables/

The BERT table simply provides the size and address of the error
record in BIOS reserved memory and users may want access to this
record.

In an earlier age we might have used /dev/mem to retrieve this error
record, but many systems disable /dev/mem for security reasons.

Extend this driver to provide read-only access to the data via a
file in a new directory /sys/firmware/acpi/tables/data/BERT

Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
v4: fix typo reported by Punit
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sysfs.c