ACPI: processor: idle: Add DMI quirk for HA0QING A520
PATCH 1/1 ACPI: processor: idle: Add DMI quirk for HA0QING A520
On the HA0QING A520 motherboard paired with AMD Ryzen 5000 series processors (such as the Ryzen 5 5500, Cezanne), entering deep ACPI C-states (C2/C3 mapped to I/O ports 0x414/0x415, corresponding to hardware C6) causes severe system instability, random hard freezes, and memory corruption ('BUG: Bad page state' and list_del corruption in page allocator / LRU paths) during idle transitions.
Restrict max_cstate to C1 via processor_power_dmi_table for the HA0QING A520 board to prevent the processor from entering broken deep C-states and ensure system stability.
--- drivers/acpi/processor_idle.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/acpi/processor_idle.c +4 -0
@@ -105,6 +105,10 @@ static const struct dmi_system_id processor_power_dmi_table[] = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."), DMI_MATCH(DMI_PRODUCT_NAME,"L8400B series Notebook PC")}, (void *)1}, + { set_max_cstate, "HA0QING A520", { + DMI_MATCH(DMI_BOARD_VENDOR, "HA0QING"), + DMI_MATCH(DMI_BOARD_NAME, "A520") }, + (void *)1}, {}, };
Signature · 1 line
2.56.0
Quoted 23 lines · Munique Feitoza
On the HA0QING A520 motherboard paired with AMD Ryzen 5000 series processors (such as the Ryzen 5 5500, Cezanne), entering deep ACPI C-states (C2/C3 mapped to I/O ports 0x414/0x415, corresponding to hardware C6) causes severe system instability, random hard freezes, and memory corruption ('BUG: Bad page state' and
list_delcorruption in page allocator / LRU paths) during idle transitions.Restrict
max_cstateto C1 viaprocessor_power_dmi_tablefor the HA0QING A520 board to prevent the processor from entering broken deep C-states and ensure system stability.Signed-off-by Munique Feitoza <[email protected]>--- drivers/acpi/processor_idle.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/acpi/processor_idle.c +0
-0@@ -105,6 +105,10 @@ static const struct dmi_system_id processor_power_dmi_table[] = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."),
drivers/acpi/processor_idle.c static const struct dmi_system_id processor_power_dmi_table[] = {
Quoted 10 lines
drivers/acpi/processor_idle.c +4
-1DMI_MATCH(DMI_PRODUCT_NAME,"L8400B series Notebook PC")}, (void *)1}, + { set_max_cstate, "HA0QING A520", { + DMI_MATCH(DMI_BOARD_VENDOR, "HA0QING"), + DMI_MATCH(DMI_BOARD_NAME, "A520") }, + (void *)1}, {}, }; --
Applied as 7.5 material, thanks!