acpica: suppress pci related output during startup

Issue #4643
This commit is contained in:
Alexander Boettcher 2023-10-19 10:18:52 +02:00 committed by Christian Helmuth
parent e88e3680aa
commit 26be862e08
2 changed files with 9 additions and 2 deletions

View File

@ -420,6 +420,9 @@ void Acpica::Main::init_acpica(bool const use_gpe)
report_sleep_states.generate([&] (auto &xml) {
Acpica::generate_suspend_report(xml);
});
/* use dbg level to steer error reporting in pci.cc */
AcpiDbgLevel &= ~ACPI_LV_INIT;
}

View File

@ -54,7 +54,9 @@ ACPI_STATUS AcpiOsReadPciConfiguration (ACPI_PCI_ID *pcidev, UINT32 reg,
Bdf bdf(pcidev->Bus, pcidev->Device, pcidev->Function);
error(__func__, " ", bdf, " ", Hex(reg), " width=", width);
/* during startup suppress errors */
if (!(AcpiDbgLevel & ACPI_LV_INIT))
error(__func__, " ", bdf, " ", Hex(reg), " width=", width);
*value = ~0U;
return AE_OK;
@ -67,7 +69,9 @@ ACPI_STATUS AcpiOsWritePciConfiguration (ACPI_PCI_ID *pcidev, UINT32 reg,
Bdf bdf(pcidev->Bus, pcidev->Device, pcidev->Function);
error(__func__, " ", bdf, " ", Hex(reg), "=", Hex(value), " width=", width);
/* during startup suppress errors */
if (!(AcpiDbgLevel & ACPI_LV_INIT))
error(__func__, " ", bdf, " ", Hex(reg), "=", Hex(value), " width=", width);
return AE_OK;
}