Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_resource.c
Show First 20 Lines • Show All 490 Lines • ▼ Show 20 Lines | acpi_parse_resources(device_t dev, ACPI_HANDLE handle, | ||||
if (acpi_MatchHid(handle, "ARMHC500") != ACPI_MATCHHID_NOMATCH || | if (acpi_MatchHid(handle, "ARMHC500") != ACPI_MATCHHID_NOMATCH || | ||||
acpi_MatchHid(handle, "ARMHC502") != ACPI_MATCHHID_NOMATCH || | acpi_MatchHid(handle, "ARMHC502") != ACPI_MATCHHID_NOMATCH || | ||||
acpi_MatchHid(handle, "ARMHC979") != ACPI_MATCHHID_NOMATCH || | acpi_MatchHid(handle, "ARMHC979") != ACPI_MATCHHID_NOMATCH || | ||||
acpi_MatchHid(handle, "ARMHC97C") != ACPI_MATCHHID_NOMATCH || | acpi_MatchHid(handle, "ARMHC97C") != ACPI_MATCHHID_NOMATCH || | ||||
acpi_MatchHid(handle, "ARMHC98D") != ACPI_MATCHHID_NOMATCH || | acpi_MatchHid(handle, "ARMHC98D") != ACPI_MATCHHID_NOMATCH || | ||||
acpi_MatchHid(handle, "ARMHC9FF") != ACPI_MATCHHID_NOMATCH) | acpi_MatchHid(handle, "ARMHC9FF") != ACPI_MATCHHID_NOMATCH) | ||||
arc.ignore_producer_flag = true; | arc.ignore_producer_flag = true; | ||||
/* | |||||
* The DesignWare I2C Controller on Ampere Altra sets ResourceProducer on | |||||
* memory resources. | |||||
*/ | |||||
allanjude: Warner had a comment in the original review: https://reviews.freebsd.org/D28707#inline-178923 | |||||
if (acpi_MatchHid(handle, "APMC0D0F") != ACPI_MATCHHID_NOMATCH) | |||||
impUnsubmitted Not Done Inline ActionsTo rehash here: any board that had this device will get this workaround. imp: To rehash here: any board that had this device will get this workaround.
We're starting to get… | |||||
arc.ignore_producer_flag = true; | |||||
status = AcpiWalkResources(handle, "_CRS", acpi_parse_resource, &arc); | status = AcpiWalkResources(handle, "_CRS", acpi_parse_resource, &arc); | ||||
if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { | if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { | ||||
printf("can't fetch resources for %s - %s\n", | printf("can't fetch resources for %s - %s\n", | ||||
acpi_name(handle), AcpiFormatException(status)); | acpi_name(handle), AcpiFormatException(status)); | ||||
return_ACPI_STATUS (status); | return_ACPI_STATUS (status); | ||||
} | } | ||||
set->set_done(dev, arc.context); | set->set_done(dev, arc.context); | ||||
return_ACPI_STATUS (AE_OK); | return_ACPI_STATUS (AE_OK); | ||||
▲ Show 20 Lines • Show All 312 Lines • Show Last 20 Lines |
Warner had a comment in the original review: https://reviews.freebsd.org/D28707#inline-178923