Skip to contentSkip to conversation

platform/x86: hp-wmi: Ignore Dynamic SAR event (0x24)

PATCH New Shan Rizvi 1 participant 1 message Nov 29 x86 platform drivers

lore
Share & tools
lore

Shan Rizvi

author
#0 lore raw

PATCH 1/1 platform/x86: hp-wmi: Ignore Dynamic SAR event (0x24)

On the HP OmniBook X Flip Laptop 16-cc0xxx (board HP 8EA2, BIOS Insyde F.07), hp-wmi floods the kernel log during normal operation with over a thousand messages per boot such as:

hp_wmi: Unknown event_id - 36 - 0x4
hp_wmi: Unknown event_id - 36 - 0x3
hp_wmi: Unknown event_id - 36 - 0x2
hp_wmi: Unknown event_id - 36 - 0x0
hp_wmi: Unknown event_id - 36 - 0x8

Disassembling the ACPI DSDT shows EC query _Q80 invokes WPMF() and DSAR(), and DSAR() notifies WMID via WMID.GWET(0x24, RDMB(0x3D)) whenever the EC updates the device posture / Dynamic SAR state (values 0x0..0x5 and 0x8, also consumed by WLAN.RWSI and WFTE.WMDE/MTKW for Wi-Fi RF power backoff).

Add HPWMI_DYNAMIC_SAR (0x24) to enum hp_wmi_event_ids and ignore it in hp_wmi_notify(), matching the other informational firmware events such as HPWMI_PROXIMITY_SENSOR and HPWMI_SMART_EXPERIENCE_APP.

Tested on HP OmniBook X Flip Laptop 16-cc0xxx (board HP 8EA2, BIOS Insyde F.07, kernel 7.2.15): live 0x24 posture/SAR events are handled silently and no longer flood the kernel log with "Unknown event_id - 36".

This patch was prepared with an AI coding assistant (Google Antigravity), which helped analyze the disassembled ACPI DSDT, draft the patch and changelog, and write the module test script. I reviewed the change and ran the live hardware tests on my laptop.

---
 drivers/platform/x86/hp/hp-wmi.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +3 -0
@@ -410,6 +410,7 @@ enum hp_wmi_event_ids {
 	HPWMI_FN_P_HOTKEY		= 0x1B,
 	HPWMI_OMEN_KEY			= 0x1D,
 	HPWMI_SMART_EXPERIENCE_APP	= 0x21,
+	HPWMI_DYNAMIC_SAR		= 0x24,
 };
 
 /*
@@ -1735,6 +1736,8 @@ static void hp_wmi_notify(union acpi_obj
 		break;
 	case HPWMI_SMART_EXPERIENCE_APP:
 		break;
+	case HPWMI_DYNAMIC_SAR:
+		break;
 	default:
 		pr_info("Unknown event_id - %d - 0x%x\n", event_id, event_data);
 		break;
Signature · 1 line
2.52.0