platform/x86: asus-nb-wmi: add quirk_asus_ignore_fan for UX3405MA
PATCH 1/1 platform/x86: asus-nb-wmi: add quirk_asus_ignore_fan for UX3405MA
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Add a quirk to use quirk_asus_ignore_fan to silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through the platform_profile interface.
--- drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +9 -0
@@ -544,6 +544,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_zenbook_duo_kbd, }, + { + .callback = dmi_matched, + .ident = "ASUS Zenbook 14 UX3405MA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "UX3405MA"), + }, + .driver_data = &quirk_asus_ignore_fan, + }, { .callback = dmi_matched, .ident = "ASUS ROG Z13",
Signature · 1 line
2.52.0
Quoted 8 lines · Tim Wassink
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.
It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
Quoted 25 lines
Signed-off-by Tim Wassink <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/platform/x86/asus-nb-wmi.c +9
-0@@ -544,6 +544,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_zenbook_duo_kbd, }, + { + .callback = dmi_matched, + .ident = "ASUS Zenbook 14 UX3405MA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "UX3405MA"), + }, + .driver_data = &quirk_asus_ignore_fan, + }, { .callback = dmi_matched, .ident = "ASUS ROG Z13",
Quoted 6 lines · Denis Benato
Quoted 5 lines · Tim Wassink
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Quoted 7 lines
Quoted 3 lines
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
I am actually not sure anymore if this patch is ok, as it introduces a trade-off regarding telemetry.
While the patch successfully silences the ENODEV (-19) errors, I have verified locally that it also inhibits the registration of the fan telemetry in hwmon. This means the read-only 'fan1_input' (RPM) is no longer available to the user.
I initially followed the precedent of commit 82cc5c6c624c ("platform/x86:
asus-wmi: Ignore fan on E410MA"), which can be found here:
https://lore.kernel.org/all/[email protected]/
Now I realize that case was specifically for a fanless system. The UX3405MA does have a physical fan
which remains functional via the platform_profile (AIPT) interface after this patch, as confirmed by stress testing.
I thought this quirk was the standard way to handle it, but I am not so sure anymore.
Best regards,
Tim
Quoted 39 lines · Denis Benato
Quoted 8 lines · Tim Wassink
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
Quoted 25 lines
Signed-off-by Tim Wassink <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/platform/x86/asus-nb-wmi.c +9
-0@@ -544,6 +544,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_zenbook_duo_kbd, }, + { + .callback = dmi_matched, + .ident = "ASUS Zenbook 14 UX3405MA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "UX3405MA"), + }, + .driver_data = &quirk_asus_ignore_fan, + }, { .callback = dmi_matched, .ident = "ASUS ROG Z13",
Quoted 25 lines · Tim Wassink
Quoted 6 lines · Denis Benato
Quoted 5 lines · Tim Wassink
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Quoted 6 lines
Quoted 3 lines
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
I am actually not sure anymore if this patch is ok, as it introduces a trade-off regarding telemetry.
While the patch successfully silences the ENODEV (-19) errors, I have verified locally that it also inhibits the registration of the fan telemetry in hwmon. This means the read-only '
fan1_input' (RPM) is no longer available to the user.I initially followed the precedent of commit
82cc5c6c624c("platform/x86:
asus-wmi: Ignore fan on E410MA"), which can be found here:
https://lore.kernel.org/all/[email protected]/
Quoted 7 lines
Now I realize that case was specifically for a fanless system. The UX3405MA does have a physical fan
which remains functional via theplatform_profile(AIPT) interface after this patch, as confirmed by stress testing.I thought this quirk was the standard way to handle it, but I am not so sure anymore.
Hi,
I think what's happening is that asus-nb-wmi is binding multiple devices: for those that are unsupported the driver returns -ENODEV and the kernel, as a result, probes successive drivers for those devices that can't be bound.
It's very likely that using that quirk prevents asus-nb-wmi to bind all devices, and this can very well result in what you are seeing...
The only runtime problem is that an error appears in dmesg, right? The rest is working from what I can understand from your messages.
Quoted 42 lines
Best regards,
TimQuoted 38 lines · Denis Benato
Quoted 8 lines · Tim Wassink
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
Quoted 25 lines
Signed-off-by Tim Wassink <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/platform/x86/asus-nb-wmi.c +9
-0@@ -544,6 +544,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_zenbook_duo_kbd, }, + { + .callback = dmi_matched, + .ident = "ASUS Zenbook 14 UX3405MA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "UX3405MA"), + }, + .driver_data = &quirk_asus_ignore_fan, + }, { .callback = dmi_matched, .ident = "ASUS ROG Z13",
Hi,
yes the only problem is the error in dmesg, the rest seems to work.
Quoted 88 lines · Denis Benato
Quoted 25 lines · Tim Wassink
Quoted 6 lines · Denis Benato
Quoted 5 lines · Tim Wassink
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Quoted 6 lines
Quoted 3 lines
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
I am actually not sure anymore if this patch is ok, as it introduces a trade-off regarding telemetry.
While the patch successfully silences the ENODEV (-19) errors, I have verified locally that it also inhibits the registration of the fan telemetry in hwmon. This means the read-only '
fan1_input' (RPM) is no longer available to the user.I initially followed the precedent of commit
82cc5c6c624c("platform/x86:
asus-wmi: Ignore fan on E410MA"), which can be found here:
https://lore.kernel.org/all/[email protected]/Quoted 7 lines
Now I realize that case was specifically for a fanless system. The UX3405MA does have a physical fan
which remains functional via theplatform_profile(AIPT) interface after this patch, as confirmed by stress testing.I thought this quirk was the standard way to handle it, but I am not so sure anymore.
Hi,
I think what's happening is that asus-nb-wmi is binding multiple devices: for those that are unsupported the driver returns
-ENODEVand the kernel, as a result, probes successive drivers for those devices that can't be bound.It's very likely that using that quirk prevents asus-nb-wmi to bind all devices, and this can very well result in what you are seeing...
The only runtime problem is that an error appears in dmesg, right? The rest is working from what I can understand from your messages.
Quoted 42 lines
Best regards,
TimQuoted 38 lines · Denis Benato
Quoted 8 lines · Tim Wassink
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
Quoted 25 lines
Signed-off-by Tim Wassink <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/platform/x86/asus-nb-wmi.c +9
-0@@ -544,6 +544,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_zenbook_duo_kbd, }, + { + .callback = dmi_matched, + .ident = "ASUS Zenbook 14 UX3405MA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "UX3405MA"), + }, + .driver_data = &quirk_asus_ignore_fan, + }, { .callback = dmi_matched, .ident = "ASUS ROG Z13",
Quoted 3 lines · Tim Wassink
Hi,
yes the only problem is the error in dmesg, the rest seems to work.
Then I think we can leave this as-is, unless there is a particular reason to ensure no errors are being reported in this case.
This is not the only module that does things this way, so I don't think it's going to be a problem.
Thank you for your time and looking into the matter :)
Quoted 88 lines · Denis Benato
Quoted 86 lines · Tim Wassink
Quoted 25 lines · Denis Benato
Quoted 6 lines · Tim Wassink
Quoted 5 lines
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Quoted 6 lines
Quoted 3 lines
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
I am actually not sure anymore if this patch is ok, as it introduces a trade-off regarding telemetry.
While the patch successfully silences the ENODEV (-19) errors, I have verified locally that it also inhibits the registration of the fan telemetry in hwmon. This means the read-only '
fan1_input' (RPM) is no longer available to the user.I initially followed the precedent of commit
82cc5c6c624c("platform/x86:
asus-wmi: Ignore fan on E410MA"), which can be found here:
https://lore.kernel.org/all/[email protected]/Quoted 7 lines
Now I realize that case was specifically for a fanless system. The UX3405MA does have a physical fan
which remains functional via theplatform_profile(AIPT) interface after this patch, as confirmed by stress testing.I thought this quirk was the standard way to handle it, but I am not so sure anymore.
Hi,
I think what's happening is that asus-nb-wmi is binding multiple devices: for those that are unsupported the driver returns
-ENODEVand the kernel, as a result, probes successive drivers for those devices that can't be bound.It's very likely that using that quirk prevents asus-nb-wmi to bind all devices, and this can very well result in what you are seeing...
The only runtime problem is that an error appears in dmesg, right? The rest is working from what I can understand from your messages.
Quoted 41 lines
Best regards,
TimQuoted 37 lines · Denis Benato
Quoted 8 lines · Tim Wassink
The ASUS Zenbook 14 (UX3405MA) uses a newer WMI interface for thermal management that does not support the legacy WMI fan control methods. Currently, this results in ENODEV (-19) errors in dmesg when the driver attempts to fetch factory fan curve defaults.
Add a quirk to use
quirk_asus_ignore_fanto silence these errors and signal that legacy fan control is intentionally unsupported, as thermal policies are handled through theplatform_profileinterface.It is my understanding that this patch suppresses the error, while maintaining the current behavior in every other aspect, correct?
Quoted 25 lines
Signed-off-by Tim Wassink <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/platform/x86/asus-nb-wmi.c +9
-0@@ -544,6 +544,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_zenbook_duo_kbd, }, + { + .callback = dmi_matched, + .ident = "ASUS Zenbook 14 UX3405MA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "UX3405MA"), + }, + .driver_data = &quirk_asus_ignore_fan, + }, { .callback = dmi_matched, .ident = "ASUS ROG Z13",