platform/x86: asus-wmi: add quirk for Vivobook X7400PC
Subsystems (4)
PATCH 1/1 platform/x86: asus-wmi: add quirk for Vivobook X7400PC
The ASUS Vivobook X7400PC BIOS (version 303) contains ACPI errors leading to namespace collisions and missing thermal symbols.
Specifically, the TcssSsdt table attempts to redefine objects in the TXHC scope that already exist in the DSDT, causing AE_ALREADY_EXISTS errors during boot and power state transitions. This leads to system hangs during suspend/resume cycles.
Error logs observed:
[ 0.148580] ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.TXHC.RHUB.APLD], AE_ALREADY_EXISTS (20250807/dswload2-326) [ 4.587627] ACPI BIOS Error (bug): Could not resolve symbol [\CTDP], AE_NOT_FOUND (20250807/psargs-332) [ 4.587636] ACPI Error: Aborting method \_SB.IETM.IDSP due to previous error (AE_NOT_FOUND) (20250807/psparse-529)
This patch introduces a model-specific quirk for the X7400PC to:
1. Handle the TXHC RHUB namespace collision to prevent power-state hangs.
2. Proactively check for missing thermal symbols to avoid ACPI interpreter aborts in thermal zone methods.
--- drivers/platform/x86/asus-nb-wmi.c | 14 ++++++++++ drivers/platform/x86/asus-wmi.c | 42 ++++++++++++++++++++++++++++++ drivers/platform/x86/asus-wmi.h | 1 + 3 files changed, 57 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +14 -0
@@ -155,6 +155,11 @@ static struct quirk_entry quirk_asus_z13 = { .tablet_switch_mode = asus_wmi_kbd_dock_devid, }; +/* Quirk for ASUS Vivobook X7400PC to manage ACPI collisions and missing symbols */ +static struct quirk_entry quirk_asus_x7400pc = { + .x7400pc_acpi_fix = true, +}; +static int dmi_matched (const struct dmi_system_id *dmi) {pr_info ("Identified laptop model '%s'\n" , dmi->ident);
@@ -553,6 +558,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_z13, }, + { + .callback = dmi_matched, + .ident = "ASUS Vivobook X7400PC", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "Vivobook_ASUSLaptop X7400PC_N7400PC"), + }, + .driver_data = &quirk_asus_x7400pc, + }, {}, };
drivers/platform/x86/asus-wmi.c +42 -0
48 lines not on this page · raw message
drivers/platform/x86/asus-wmi.h +1 -0
@@ -41,6 +41,7 @@ struct quirk_entry {bool wmi_force_als_set;bool wmi_ignore_fan;bool filter_i8042_e1_extended_codes; +bool x7400pc_acpi_fix;/* Fix for Vivobook X7400PC ACPI namespace and thermal issues */ int key_wlan_event;enum asus_wmi_tablet_switch_mode tablet_switch_mode;int wapf;
Signature · 1 line
2.53.0
Hans de Goede
maintainerHi,
Thank you for your efforts to get this laptop to work properly with Linux.
Quoted 10 lines · Zühtü Eren İncekara
The ASUS Vivobook X7400PC BIOS (version 303) contains ACPI errors leading to namespace collisions and missing thermal symbols.
Specifically, the TcssSsdt table attempts to redefine objects in the TXHC scope that already exist in the DSDT, causing
AE_ALREADY_EXISTSerrors during boot and power state transitions. This leads to system hangs during suspend/resume cycles.Error logs observed:
[ 0.148580] ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.TXHC.RHUB.APLD], AE_ALREADY_EXISTS (20250807/dswload2-326)
I think this is your real problem, this will cause the entire SSDT this is part of to not get loaded, which in turn is likely causing the missing thermal zone vars.
We are seeing cases like this were a DSDT "redefines" an existing object instead of using Scope(path) to add new attributes to an existing object.
I believe that the proper fix here is likely to treat an error like the above in a DSDT as a warning instead and when hitting this lookup (already done?) and return the existing object instead of error-ing out.
Can you write an ACPICA core patch to give that a try ?
Quoted 85 lines
[ 4.587627] ACPI BIOS Error (bug): Could not resolve symbol [\CTDP], AE_NOT_FOUND (20250807/psargs-332) [ 4.587636] ACPI Error: Aborting method \_SB.IETM.IDSP due to previous error (AE_NOT_FOUND) (20250807/psparse-529)This patch introduces a model-specific quirk for the X7400PC to:
1. Handle the TXHC RHUB namespace collision to prevent power-state hangs.
2. Proactively check for missing thermal symbols to avoid ACPI interpreter aborts in thermal zone methods.Signed-off-by Zühtü Eren İncekara <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 14 ++++++++++ drivers/platform/x86/asus-wmi.c | 42 ++++++++++++++++++++++++++++++ drivers/platform/x86/asus-wmi.h | 1 + 3 files changed, 57 insertions(+)drivers/platform/x86/asus-nb-wmi.c +14
-0@@ -155,6 +155,11 @@ static struct quirk_entry quirk_asus_z13 = { .tablet_switch_mode = asus_wmi_kbd_dock_devid, }; +/* Quirk for ASUS Vivobook X7400PC to manage ACPI collisions and missing symbols */ +static struct quirk_entry quirk_asus_x7400pc = { + .x7400pc_acpi_fix = true, +}; +static int dmi_matched (const struct dmi_system_id *dmi) {pr_info ("Identified laptop model '%s'\n" , dmi->ident);@@ -553,6 +558,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_z13, }, + { + .callback = dmi_matched, + .ident = "ASUS Vivobook X7400PC", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "Vivobook_ASUSLaptop X7400PC_N7400PC"), + }, + .driver_data = &quirk_asus_x7400pc, + }, {}, };drivers/platform/x86/asus-wmi.c +30
-0@@ -4599,6 +4599,48 @@ static int asus_wmi_platform_init(struct asus_wmi *asus)asus_wmi_set_devstate (ASUS_WMI_DEVID_CWAP , asus->driver->quirks->wapf,NULL ); +if (asus->driver->quirks->x7400pc_acpi_fix) { +acpi_status status; +acpi_handle handle; +int i; + +/* +* List of thermal threshold variables missing from the Vivobook X7400PC BIOS. +* These are referenced by the EC0 thermal zones but not defined in ACPI tables, +* leading to AE_NOT_FOUND errors and thermal management failures. +*/ +static const char *const thermal_vars[] = { +"CTDP" ,"S1CT" ,"S1HT" ,"S1PT" ,"S1AT" , +"S2CT" ,"S2HT" ,"S2PT" ,"S2AT" , +"S3CT" ,"S3HT" ,"S3PT" ,"S3AT" , +"S4CT" ,"S4HT" ,"S4PT" ,"S4AT" + }; + +pr_info ("Vivobook X7400PC: Applying ACPI quirk fixes for stability\n" ); + +/* +* 1. Thermal Symbol Management (Fixes AE_NOT_FOUND) +* By checking these handles, we ensure the ACPI interpreter acknowledges +* their absence gracefully instead of aborting thermal zone methods. +*/ +for (i =0 ; i <ARRAY_SIZE (thermal_vars); i++) { + status =acpi_get_handle (NULL , (char *)thermal_vars[i], &handle); +if (ACPI_FAILURE (status)) +pr_debug ("Vivobook X7400PC: Managed missing thermal symbol: %s\n" , + thermal_vars[i]); + }
drivers/platform/x86/asus-wmi.c static int asus_wmi_platform_init(struct asus_wmi *asus) · line 4641
Quoted 10 lines
drivers/platform/x86/asus-wmi.c +10
-0+ +/* +* 2. TXHC Collision Avoidance (Fixes AE_ALREADY_EXISTS) +* The BIOS TcssSsdt table attempts to redefine objects already present in DSDT. +* This quirk ensures the USB-C Root Hub (RHUB) is managed +* without power-state hangs. +*/ + status =acpi_get_handle (NULL ,"\\_SB.PC00.TXHC.RHUB" , &handle); +if (ACPI_SUCCESS (status)) +pr_info ("Vivobook X7400PC: Managed TXHC RHUB namespace collision\n" );
I'm not sure how this helps. The thing already exists (that is the whole problem in a way), so this is just a no-op ?
Regards,
Hans
Quoted 17 lines
drivers/platform/x86/asus-wmi.c +2
-0+ } +return 0 ; }drivers/platform/x86/asus-wmi.h +1
-0@@ -41,6 +41,7 @@ struct quirk_entry {bool wmi_force_als_set;bool wmi_ignore_fan;bool filter_i8042_e1_extended_codes; +bool x7400pc_acpi_fix;/* Fix for Vivobook X7400PC ACPI namespace and thermal issues */ int key_wlan_event;enum asus_wmi_tablet_switch_mode tablet_switch_mode;int wapf;
PATCH 1/1 ACPICA: Dispatcher: Treat AE_ALREADY_EXISTS as a warning
Hi Hans,
I've implemented the ACPICA core patch as you suggested. I modified dswload2.c to treat AE_ALREADY_EXISTS as a warning instead of a fatal error, allowing the table load to continue.
I tested this on my ASUS Vivobook X7400PC with a custom 7.0.0-dirty kernel. The patch successfully allows the problematic SSDT to load.
Verification from dmesg (The patch is working):
[ 0.190917] ACPI Warning: Namespace lookup: Object [APLD] already exists, continuing table load [ 0.190940] ACPI Warning: Namespace lookup: Object [_UPC] already exists, continuing table load (20251212/dswload2-333) [ 0.190971] ACPI Warning: Namespace lookup: Object [_PLD] already exists, continuing table load (20251212/dswload2-333)
However, despite the table loading successfully, the missing thermal symbols still persist in my logs:
Persistent AE_NOT_FOUND errors:
[ 6.809032] ACPI BIOS Error (bug): Could not resolve symbol [\CTDP], AE_NOT_FOUND (20251212/psargs-332) [ 6.829784] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PC00.LPCB.EC0.SEN1._CRT.S1CT], AE_NOT_FOUND [ 6.829840] ACPI Error: Aborting method \_SB.PC00.LPCB.EC0.SEN1._PSV due to previous error (AE_NOT_FOUND)
It appears the namespace collision was indeed preventing the table from loading, but even with the table loaded, these specific thermal symbols are still not resolvable. This might indicate they are truly missing from the BIOS tables or defined elsewhere.
Should we proceed with this ACPICA change, or should I go back to providing these symbols via a quirk in asus-wmi?
Best regards,
Zühtü Eren İncekara
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Allow ACPI table loading to continue when a named object already exists. This addresses BIOS bugs where SSDT tables redefine objects present in the DSDT, which prevents essential symbols (like thermal zones) from being loaded.
--- drivers/acpi/acpica/dswload2.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)
drivers/acpi/acpica/dswload2.c +17 -3
@@ -323,9 +323,23 @@ acpi_ds_load2_begin_op(struct acpi_walk_state *walk_state, }if (ACPI_FAILURE (status)) { -ACPI_ERROR_NAMESPACE (walk_state->scope_info, - buffer_ptr, status); -return_ACPI_STATUS (status); +/* +* If the object already exists, do not abort the table load. +* Instead, issue a warning and continue with AE_OK. +* This allows the rest of the SSDT to be loaded even if the +* BIOS incorrectly attempts to redefine an existing object. +*/ +if (status ==AE_ALREADY_EXISTS ) { +ACPI_WARNING ((AE_INFO , +"Namespace lookup: Object [%s] already exists, continuing table load" , + buffer_ptr)); + status =AE_OK ; + }else { +/* For all other fatal errors, abort the method/table load */ +ACPI_ERROR_NAMESPACE (walk_state->scope_info, + buffer_ptr, status); +return_ACPI_STATUS (status); + } }if (!op) {
Signature · 1 line
2.53.0