]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: extlog: Handle multiple records
authorTony Luck <tony.luck@intel.com>
Mon, 10 Oct 2022 20:34:23 +0000 (13:34 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Oct 2022 18:43:10 +0000 (20:43 +0200)
commit22b87dde28c72bed81b87d7ef5ade1bd45f60e5d
treeeeab2ffbf48386ae68380c561dc0e7ca4f342675
parent801fdc4b9154b2d82367cf0f5103abd99e347c43
ACPI: extlog: Handle multiple records

If there is no user space consumer of extlog_mem trace records, then
Linux properly handles multiple error records in an ELOG block

extlog_print()
  print_extlog_rcd()
    __print_extlog_rcd()
      cper_estatus_print()
apei_estatus_for_each_section()

But the other code path hard codes looking for a single record to
output a trace record.

Fix by using the same apei_estatus_for_each_section() iterator
to step over all records.

Fixes: d1c5beae94c7 ("trace, RAS: Add eMCA trace event interface")
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_extlog.c