From 109abf744bf76a75e952931f28a4c8a0767d5701 Mon Sep 17 00:00:00 2001 From: Yuri Date: Tue, 7 Mar 2023 16:22:58 -0700 Subject: [PATCH] acpica: do not print warning for missing _ADR Started seeing the following after updating to VMware ESXi 8.0: pcib2: on acpi0 pcib2: could not evaluate _ADR - AE_NOT_FOUND pci2: on pcib2 vmx0: ... The virtual NIC works fine, and the code comment suggests that missing _ADR is not something fatal, skip printing the message if status is AE_NOT_FOUND. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/682 --- sys/dev/acpica/acpi_pcib_acpi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index 6a66dfb5012..59b4c2bf25b 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -410,8 +410,9 @@ acpi_pcib_acpi_attach(device_t dev) */ status = acpi_GetInteger(sc->ap_handle, "_ADR", &sc->ap_addr); if (ACPI_FAILURE(status)) { - device_printf(dev, "could not evaluate _ADR - %s\n", - AcpiFormatException(status)); + if (status != AE_NOT_FOUND) + device_printf(dev, "could not evaluate _ADR - %s\n", + AcpiFormatException(status)); sc->ap_addr = -1; }