Skip to contentSkip to conversation

ACPI: processor: idle: Add DMI quirk for HA0QING A520

PATCH Applied Munique Feitoza 2 participants 2 messages Oct 30 – Nov 10 ACPI

lore
Share & tools
lore
#0 lore raw

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
index e113bcbbb..49768b176 100644
@@ -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
maintainer Applied
#1 lore raw
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_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 +0 -0
index e113bcbbb..49768b176 100644
@@ -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 -1
          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},
        {},
 };
 
--

Applied as 7.5 material, thanks!