summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWaqar Gulzar <iamwaqargulzar@gmail.com>2026-10-08 12:15:01 +0500
committerJiri Kosina <jkosina@suse.com>2026-11-20 14:59:24 +0100
commitebe5e010199517103271033b435fb5b0f8213c68 (patch)
tree7bc6ed34ccf32c560288cb71b285bab8b358347a /tools/perf/scripts/python/export-to-postgresql.py
parent07e84ad110427fccfb7b4dd71593bd1ffb3badfe (diff)
HID: i2c-hid-acpi: restore touchscreen IRQ routing on HP OmniBook Flip laptops
On the HP OmniBook X Flip 16, OmniBook 7 Flip 16 and OmniBook X Flip 14 the ELAN2514 touchscreen interrupt is a GPIO pad (GPP_E_18) routed directly to the IO-APIC. The firmware's touchscreen power resource does PTPL._ON: \_SB.SGRA (TPI2, TPIP) // TPIP = T0IP = 0 PTPL._OFF: \_SB.SGRA (TPI2, TPIP ^ 1) while the device's _INI enables routing with SGRA (GPLI, T0IP ^ 1). So _ON clears PADCFG0.GPIROUTIOXAPIC and disconnects the pad from the IO-APIC. Linux evaluates _ON at probe and on every D3->D0 transition (Windows apparently does not while _STA already reports the resource on), after which the level-triggered IRQ never deasserts: - ~630 interrupts/s while idle, nearly every read returns 0xffff - frames shifted by a leading 0xff, "incomplete report (67/7167)" - stylus reports arrive at ~25 Hz instead of the native ~268 Hz - touch stalls and false stylus proximity Re-enable the routing through the firmware's own \_SB.SGRA helper from the power_up hook, which runs at probe and on resume before the HID reset. Tested with this patch on the OmniBook X Flip 16 (board 8DA1, BIOS F.20): idle interrupts drop from ~630/s to 0 after boot and after s2idle resume, and pen and touch behave as on Windows. The same faulty _ON, the same pad and the same ~630/s storm were confirmed by other owners on the OmniBook 7 Flip 16 (board 8DA0, BIOS F.08) and the OmniBook X Flip 14 (board 8D9F, BIOS F.08). On both, correcting the _ON value through an ACPI table override stops the storm (routing bit set, 0 interrupts/s idle, also after s2idle), which is the same correction this patch applies at runtime. Link: https://bugzilla.kernel.org/show_bug.cgi?id=220854 Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2142384 Link: https://github.com/testyfishy/hp-omnibook-flip16-touchscreen-fix Link: https://github.com/iamwaqargulzar/hp-omnibook-x-flip-16-linux-touchscreen-pen-fix Cc: stable@vger.kernel.org Signed-off-by: Waqar Gulzar <iamwaqargulzar@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions