mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
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
This commit is contained in:
parent
09fa78d438
commit
5cd08d9ecf
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue