Page MenuHomeFreeBSD

D49709.diff
No OneTemporary

D49709.diff

diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c
--- a/sys/dev/acpica/acpi_resource.c
+++ b/sys/dev/acpica/acpi_resource.c
@@ -67,6 +67,16 @@
static char *pcilink_ids[] = { "PNP0C0F", NULL };
+/*
+ * Devices with invalid memory resources
+ */
+static char *bad_memresource_ids[] = {
+ /* PRCx on Radxa Orion O6 conflicts with the PCI resource range */
+ "CIXH2020",
+ NULL
+};
+
+
static ACPI_STATUS
acpi_lookup_irq_handler(ACPI_RESOURCE *res, void *context)
{
@@ -620,6 +630,11 @@
* access.
*/
if (type == SYS_RES_MEMORY || type == SYS_RES_IOPORT) {
+ if (type == SYS_RES_MEMORY &&
+ ACPI_ID_PROBE(device_get_parent(dev), dev, bad_memresource_ids,
+ NULL) <= 0)
+ return (true);
+
if (ACPI_SUCCESS(AcpiGetObjectInfo(ad->ad_handle, &devinfo))) {
if ((devinfo->Flags & ACPI_PCI_ROOT_BRIDGE) != 0) {
#if defined(__i386__) || defined(__amd64__)

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 6, 6:44 AM (7 h, 28 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30944563
Default Alt Text
D49709.diff (923 B)

Event Timeline