Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2024 21:08:08 GMT
From:      Andrew Gallatin <gallatin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5cd08d9ecf52 - main - apei: Mark ReadAckRegister resource as shareable
Message-ID:  <202401092108.409L88aR001231@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by gallatin:

URL: https://cgit.FreeBSD.org/src/commit/?id=5cd08d9ecf52d37229f4888e38631cb91ce97eb9

commit 5cd08d9ecf52d37229f4888e38631cb91ce97eb9
Author:     Andrew Gallatin <gallatin@FreeBSD.org>
AuthorDate: 2024-01-09 20:52:07 +0000
Commit:     Andrew Gallatin <gallatin@FreeBSD.org>
CommitDate: 2024-01-09 21:07:34 +0000

    apei: Mark ReadAckRegister resource as shareable
    
    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/dev/acpica/acpi_apei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/acpica/acpi_apei.c b/sys/dev/acpica/acpi_apei.c
index 6a3d9d10edd4..9cfd46c97430 100644
--- a/sys/dev/acpica/acpi_apei.c
+++ b/sys/dev/acpica/acpi_apei.c
@@ -711,7 +711,7 @@ apei_attach(device_t dev)
 		if (ge->v1.Header.Type == ACPI_HEST_TYPE_GENERIC_ERROR_V2) {
 			ge->res2_rid = rid++;
 			acpi_bus_alloc_gas(dev, &ge->res2_type, &ge->res2_rid,
-			    &ge->v2.ReadAckRegister, &ge->res2, 0);
+			    &ge->v2.ReadAckRegister, &ge->res2, RF_SHAREABLE);
 			if (ge->res2 == NULL)
 				device_printf(dev, "Can't allocate ack resource.\n");
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401092108.409L88aR001231>