head	1.1;
access;
symbols
	netbsd-11-0-RC4:1.1
	netbsd-11-0-RC3:1.1
	netbsd-11-0-RC2:1.1
	netbsd-11-0-RC1:1.1
	perseant-exfatfs-base-20250801:1.1
	netbsd-11:1.1.0.6
	netbsd-11-base:1.1
	netbsd-10-1-RELEASE:1.1.4.2
	netbsd-10:1.1.0.4
	perseant-exfatfs-base-20240630:1.1
	perseant-exfatfs:1.1.0.2
	perseant-exfatfs-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2024.03.20.17.11.44;	author riastradh;	state Exp;
branches
	1.1.4.1;
next	;
commitid	gptsYUFpi4lwcV2F;

1.1.4.1
date	2024.03.20.17.11.44;	author martin;	state dead;
branches;
next	1.1.4.2;
commitid	SujiOrEAlagGhZsF;

1.1.4.2
date	2024.10.09.13.00.12;	author martin;	state Exp;
branches;
next	;
commitid	SujiOrEAlagGhZsF;


desc
@@


1.1
log
@apei(4): New driver for ACPI Platform Error Interfaces.

For now it is wired up only in x86 ALL kernels, and built as a module
for x86 and Arm.  Once it gets a little more testing on machines with
APEI, I would like to flip it on by default.

PR kern/58046
@
text
@#	$NetBSD$
#

.include "../Makefile.inc"

.PATH:	$S/dev/acpi

KMOD=	apei
IOCONF=	apei.ioconf

SRCS+=	apei.c
SRCS+=	apei_bert.c
SRCS+=	apei_einj.c
SRCS+=	apei_erst.c
SRCS+=	apei_hest.c
SRCS+=	apei_interp.c
SRCS+=	apei_mapreg.c
SRCS+=	apei_reg.c

.include <bsd.kmodule.mk>
@


1.1.4.1
log
@file Makefile was added on branch netbsd-10 on 2024-10-09 13:00:12 +0000
@
text
@d1 20
@


1.1.4.2
log
@Pull up following revision(s) (requested by riastradh in ticket #936):

	sys/dev/acpi/apei_einjvar.h: revision 1.1
	sys/dev/acpi/apei_cper.h: revision 1.2
	distrib/sets/lists/debug/module.md.i386: revision 1.9
	sys/dev/acpi/apei_hest.c: revision 1.1
	sys/modules/apei/Makefile: revision 1.1
	sys/dev/acpi/apei_hest.c: revision 1.2
	distrib/sets/lists/modules/md.amd64: revision 1.101
	sys/dev/acpi/apei_hest.c: revision 1.3
	distrib/sets/lists/modules/md.amd64: revision 1.102
	sys/modules/apei/apei.ioconf: revision 1.1
	sys/dev/acpi/apei_bert.c: revision 1.1
	distrib/sets/lists/man/mi: revision 1.1785
	sys/dev/acpi/apei_bertvar.h: revision 1.1
	sys/dev/acpi/apei.c: revision 1.1
	sys/dev/acpi/apei.c: revision 1.2
	sys/dev/acpi/apei.c: revision 1.3
	sys/modules/Makefile: revision 1.283
	sys/modules/Makefile: revision 1.284
	sys/dev/acpi/apei_reg.c: revision 1.1
	sys/dev/acpi/apei_hestvar.h: revision 1.1
	distrib/sets/lists/debug/module.md.i386: revision 1.10
	sys/dev/acpi/apei_reg.c: revision 1.2
	sys/dev/acpi/apei_reg.c: revision 1.3
	sys/dev/acpi/apei_reg.h: revision 1.1
	sys/dev/acpi/apei_reg.h: revision 1.2
	sys/dev/acpi/apei_reg.h: revision 1.3
	sys/dev/acpi/acpi_hed.c: revision 1.1
	sys/dev/acpi/apei_einj.c: revision 1.1
	sys/dev/acpi/apeivar.h: revision 1.1
	sys/dev/acpi/apei_einj.c: revision 1.2
	sys/dev/acpi/apei_einj.c: revision 1.3
	sys/dev/acpi/apei_einj.c: revision 1.4
	sys/dev/acpi/apei_einj.c: revision 1.5
	share/man/man4/Makefile: revision 1.734
	sys/dev/acpi/apei_einj.c: revision 1.6
	sys/dev/acpi/apei_einj.c: revision 1.7
	sys/dev/acpi/files.acpi: revision 1.131
	sys/dev/acpi/files.acpi: revision 1.132
	sys/dev/acpi/apei_interp.c: revision 1.1
	sys/dev/acpi/apei_interp.c: revision 1.2
	share/man/man4/acpihed.4: revision 1.1
	sys/dev/acpi/apei_mapreg.c: revision 1.1
	sys/dev/acpi/apei_interp.c: revision 1.3
	share/man/man4/acpihed.4: revision 1.2
	distrib/sets/lists/modules/md.i386: revision 1.98
	sys/dev/acpi/apei_mapreg.c: revision 1.2
	sys/dev/acpi/apei_interp.h: revision 1.1
	sys/dev/acpi/apei_interp.c: revision 1.4
	distrib/sets/lists/modules/md.i386: revision 1.99
	sys/modules/acpihed/Makefile: revision 1.1
	sys/dev/acpi/apei_mapreg.c: revision 1.3
	sys/dev/acpi/apei_interp.h: revision 1.2
	sys/arch/amd64/conf/ALL: revision 1.185
	sys/dev/acpi/apei_mapreg.h: revision 1.1
	sys/dev/acpi/apei_mapreg.c: revision 1.4
	sys/arch/amd64/conf/ALL: revision 1.186
	sys/dev/acpi/apei_erstvar.h: revision 1.1
	sys/dev/acpi/apei_erst.c: revision 1.1
	sys/dev/acpi/apei_erst.c: revision 1.2
	sys/dev/acpi/apei_erst.c: revision 1.3
	sys/arch/i386/conf/ALL: revision 1.516
	share/man/man4/apei.4: revision 1.1
	sys/arch/i386/conf/ALL: revision 1.517
	share/man/man4/apei.4: revision 1.2
	distrib/sets/lists/debug/module.md.amd64: revision 1.15
	sys/modules/acpihed/acpihed.ioconf: revision 1.1
	sys/dev/acpi/apei_hed.h: revision 1.1
	distrib/sets/lists/debug/module.md.amd64: revision 1.16
	sys/dev/acpi/apei_cper.h: revision 1.1

	(all via patch)

apei(4): New driver for ACPI Platform Error Interfaces.

For now it is wired up only in x86 ALL kernels, and built as a module
for x86 and Arm.  Once it gets a little more testing on machines with
APEI, I would like to flip it on by default.
PR kern/58046

apei(4): Pacify -Wsign-compare.
Assert that the parsing made forward progress too while here.
PR kern/58046

apei(4): Tweak some comments about the APEI interpreter language.
No functional change intended.
PR kern/58046

apei(4): Fix parsing checks for TRIGGER_ERROR action table.
The TableSize is size of the header plus the body, not just the body.
PR kern/58046
apei(4): Note some TODOs for EINJ and HEST.
No functional change intended, comments only.
PR kern/58046

acpihed(4): New driver for PNP0C33 to notify apei(4).
PNP0C33 denotes the ACPI Hardware Error Device, which exists only to
be a vector for event notifications.
PR kern/58046

acpihed(4): fix name in Dt, use Ql
apei(4): Plug memory leak on teardown of instruction interpreter.
PR kern/58046
apei(4): Fix indexing of multi-unit register access.
PR kern/58046

apei(4): Fix register chunk counting.
Now it will actually read and write the registers!
Have been updating and reloading the wrong module to test this, oops.
PR kern/58046

apei(4): Allow pre-mapping I/O registers too.
PR kern/58046

apei(4): Pre-map registers when compiling interpreter.
This way we don't have to worry about mapping them in nasty contexts
where access to uvm_km_alloc may not be allowed.  Paves the way to
use ERST for saving dmesg on crash.
Exception: ACPI_ERST_MOVE_DATA still needs to do AcpiOsMapMemory.
We'll need to reserve a couple pages to avoid that.
PR kern/58046

apei(4): Simplify EINJ/ERST register access now that it's pre-mapped.
PR kern/58046
apei(4): Make sure to initialize *fatalp in apei_gesb_report.
PR kern/58046

apei: fix typos in comments

apei: fix typos in comments and snprintb bitfmt

apei(4): Fix uninitialized stack access in error branch.
PR kern/58046

apei(4), acpihed(4): Wire up man pages to build.
PR kern/58046: Missing APEI (ACPI Platform Error Interface) support
@
text
@a0 20
#	$NetBSD: Makefile,v 1.1 2024/03/20 17:11:44 riastradh Exp $
#

.include "../Makefile.inc"

.PATH:	$S/dev/acpi

KMOD=	apei
IOCONF=	apei.ioconf

SRCS+=	apei.c
SRCS+=	apei_bert.c
SRCS+=	apei_einj.c
SRCS+=	apei_erst.c
SRCS+=	apei_hest.c
SRCS+=	apei_interp.c
SRCS+=	apei_mapreg.c
SRCS+=	apei_reg.c

.include <bsd.kmodule.mk>
@


