aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/acpica/acpi_apei.c
Commit message (Collapse)AuthorAgeFilesLines
* apei: Mark ReadAckRegister resource as shareableAndrew Gallatin2024-01-091-1/+1
| | | | | | | | | | | | Work around vendors who use the same address for multiple ReadAckRegisters in their ACPI HEST table. This allows apei to attach cleanly on Ampere Altra servers. Note the issue is not specific to Ampere, I've run into it with at least one other vendor (whose server is not yet released). Sponsored by: Netflix Reviewed by: jhb
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* pmap_unmapdev/bios: Accept a pointer instead of a vm_offset_t.John Baldwin2022-09-221-2/+1
| | | | | | | | This matches the return type of pmap_mapdev/bios. Reviewed by: kib, markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D36548
* acpi_apei: Add sysctl to mute corrected errors.Alexander Motin2022-08-051-4/+54
| | | | | | Setting hw.acpi.apei.log_corrected to 0 will mute corrected errors logging. MFC after: 1 week
* acpi: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-061-2/+1
|
* acpi_apei: Use devclass_find to find devclass in identify.John Baldwin2022-04-211-1/+1
| | | | | Reviewed by: mav Differential Revision: https://reviews.freebsd.org/D34987
* APEI: Make sure event data fit into the buffer.Alexander Motin2022-02-031-2/+6
| | | | | | | There seem to be systems returning some garbage here. I still don't know why, but at least I hope this check fix indefinite printf loop. MFC after: 2 weeks
* APEI: Improve multiple error sources handling.Alexander Motin2021-12-021-49/+104
| | | | | | | | | Some AMD systems I have report 8 NMI and 3591 polled error sources. Previous code could handle only one NMI source and used separate callout for each polled source. New code can handle multiple NMIs and groups polled sources by power of 2 of the polling period. MFC after: 2 weeks
* APEI: Fix Generic Error Data Entry revision 3.0 handling.Alexander Motin2021-11-251-5/+9
| | | | | | | | Since revision 3.0 this structure grown another field, breaking access to the following data structures. This change fixes the PCIe errors decoding on newer systems. MFC after: 2 weeks
* Add missing newlines.Alexander Motin2021-01-281-2/+2
| | | | MFC after: 3 days
* Unify AcpiGetTable() KPI use in identify, probe and attach.Alexander Motin2020-08-191-7/+25
| | | | | | | | | | | While there, change probe order to not call AcpiGetTable() for every probed ACPI device. PR: 248746 MFC after: 3 days Notes: svn path=/head/; revision=364407
* Add some more checks to make APEI driver more robust.Alexander Motin2020-08-071-8/+22
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=364037
* Allow ACPI APEI driver build without PCI.Alexander Motin2020-08-071-1/+5
| | | | | | | | | | On x86 it seems difficult to build ACPI without PCI, but some aarch64 users appears to be doing it. MFC after: 3 days Notes: svn path=/head/; revision=364013
* Add initial driver for ACPI Platform Error Interfaces.Alexander Motin2020-07-271-0/+684
APEI allows platform to report different kinds of errors to OS in several ways. We've found that Supermicro X10/X11 motherboards report PCIe errors appearing on hot-unplug via this interface using NMI. Without respective driver it ended up in kernel panic without any additional information. This driver introduces support for the APEI Generic Hardware Error Source reporting via NMI, SCI or polling. It decodes the reported errors and either pass them to pci(4) for processing or just logs otherwise. Errors marked as fatal still end up in kernel panic, but some more informative. When somebody get to native PCIe AER support implementation both of the reporting mechanisms should get common error recovery code. Since in our case errors happen when the device is already gone, there is nothing to recover, so the code just clears the error statuses, practically ignoring the otherwise destructive NMIs in nicer way. MFC after: 2 weeks Relnotes: yes Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=363624