]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Oct 2022 08:20:35 +0000 (10:20 +0200)
commitb77fcb48ffc7b3270e639e0af1ad942bbf6994c4
treec272ffbd77f9d658e5715619b26489698d6e5eee
parenta773743fb0454e580fac0099814a512a23378991
ACPI: extlog: Handle multiple records

[ Upstream commit 94bdf1eb461f223f187c791e25f9a6859a474471 ]

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: bc64f740108a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/acpi_extlog.c