acpi: Add workaround for Altra I2C memory resource

Submitted by: allanjude
Sponsored by: Ampere Computing LLC
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D28741
This commit is contained in:
Andrew Gallatin 2023-11-15 16:22:00 -05:00
parent 257b044548
commit 6f38d2e7b0

View file

@ -517,6 +517,13 @@ acpi_parse_resources(device_t dev, ACPI_HANDLE handle,
acpi_MatchHid(handle, "ARMHD620") != ACPI_MATCHHID_NOMATCH)
arc.ignore_producer_flag = true;
/*
* The DesignWare I2C Controller on Ampere Altra sets ResourceProducer on
* memory resources.
*/
if (acpi_MatchHid(handle, "APMC0D0F") != ACPI_MATCHHID_NOMATCH)
arc.ignore_producer_flag = true;
status = AcpiWalkResources(handle, "_CRS", acpi_parse_resource, &arc);
if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
printf("can't fetch resources for %s - %s\n",