Touchpad high CPU consumption and random freezes

Bug #1945444 reported by François Rossigneux
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
linux-signed-hwe-5.11 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

We have 5 laptops, all brand new Huawei Matebook 14 2021.
They have no hardware problem (on Windows it is ok).
On Ubuntu Linux, the Elantech touchpad regularly freezes for some seconds, with one of the CPU at 100%.
The problem occurs both with kernel 5.4, and also with the new 5.11 kernel.
I also tried the kernel 5.14 (with mainline) and the problem was not solved, so I rolled back to 5.11.

I see in dmesg output:

[ 3335.316965] i2c_designware i2c_designware.0: controller timed out
[ 3335.568349] input: ELAN2605:00 04F3:3163 Mouse as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN2605:00/0018:04F3:3163.0001/input/input104
[ 3335.568407] input: ELAN2605:00 04F3:3163 Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN2605:00/0018:04F3:3163.0001/input/input106
[ 3335.568444] hid-multitouch 0018:04F3:3163.0001: input,hidraw0: I2C HID v1.00 Mouse [ELAN2605:00 04F3:3163] on i2c-ELAN2605:00
[ 3335.685062] input: 06CB19AB:00 06CB:1A1A as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-06CB19AB:00/0018:06CB:1A1A.0002/input/input107
[ 3335.685154] hid-multitouch 0018:06CB:1A1A.0002: input,hidraw1: I2C HID v1.00 Device [06CB19AB:00 06CB:1A1A] on i2c-06CB19AB:00
[ 3360.880952] i2c_designware i2c_designware.0: controller timed out
[ 3548.917328] watchdog: BUG: soft lockup - CPU#3 stuck for 23s! [swapper/3:0]
[ 3548.917333] Modules linked in: hid_multitouch xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bpfilter br_netfilter bridge stp llc vboxnetadp(O) vboxnetflt(O) vboxdrv(O) cmac algif_hash algif_skcipher af_alg aufs overlay bnep snd_hda_codec_hdmi hid_logitech_hidpp hid_logitech_dj btusb uvcvideo btrtl btbcm videobuf2_vmalloc btintel videobuf2_memops bluetooth videobuf2_v4l2 videobuf2_common videodev ecdh_generic mc usbhid ecc snd_sof_pci snd_sof_intel_hda_common snd_sof_intel_hda snd_sof_intel_byt snd_sof_intel_ipc snd_sof snd_sof_xtensa_dsp snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence joydev snd_hda_codec snd_hda_core nls_iso8859_1 mei_hdcp intel_rapl_msr snd_hwdep soundwire_bus snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine
[ 3548.917395] x86_pkg_temp_thermal intel_powerclamp snd_pcm coretemp snd_seq_midi kvm_intel snd_seq_midi_event snd_rawmidi i915 snd_seq kvm iwlmvm crct10dif_pclmul ghash_clmulni_intel snd_seq_device aesni_intel mac80211 drm_kms_helper snd_timer crypto_simd cec cryptd rc_core glue_helper i2c_algo_bit libarc4 snd huawei_wmi processor_thermal_device intel_cstate ledtrig_audio fb_sys_fops mei_me processor_thermal_rfim sparse_keymap wmi_bmof syscopyarea processor_thermal_mbox sysfillrect processor_thermal_rapl intel_rapl_common soundcore sysimgblt mei intel_soc_dts_iosf iwlwifi input_leds serio_raw efi_pstore cfg80211 mac_hid int3400_thermal int3403_thermal acpi_thermal_rel int340x_thermal_zone acpi_pad sch_fq_codel msr parport_pc ppdev lp parport drm ip_tables x_tables autofs4 hid_generic crc32_pclmul nvme i2c_i801 i2c_smbus nvme_core intel_lpss_pci intel_lpss idma64 xhci_pci virt_dma i2c_hid xhci_pci_renesas wmi hid video pinctrl_tigerlake [last unloaded: hid_multitouch]
[ 3548.917449] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G O 5.11.0-36-generic #40~20.04.1-Ubuntu
[ 3548.917452] Hardware name: HUAWEI KLVD-WXX9/KLVD-WXX9-PCB-B2, BIOS 3.02 07/31/2021
[ 3548.917453] RIP: 0010:_raw_spin_unlock_irqrestore+0x15/0x20
[ 3548.917458] Code: ff 7f 5b 44 89 f0 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 0f 1f 44 00 00 55 48 89 e5 c6 07 00 0f 1f 40 00 48 89 f7 57 9d <0f> 1f 44 00 00 5d c3 0f 1f 40 00 0f 1f 44 00 00 55 49 89 f8 b8 00
[ 3548.917459] RSP: 0018:ffffbc53801e8e30 EFLAGS: 00000287
[ 3548.917462] RAX: 00000000001d462c RBX: ffff9fab00a39ec0 RCX: 00000000000f4240
[ 3548.917463] RDX: 0000000000701f67 RSI: 0000000000000287 RDI: 0000000000000287
[ 3548.917464] RBP: ffffbc53801e8e30 R08: 0000000000000003 R09: 00000000000003d8
[ 3548.917465] R10: ffff9fab00a39f90 R11: ffff9fae708ec3f0 R12: ffff9fae708ec2c0
[ 3548.917465] R13: 0000000000000000 R14: 0000000000000287 R15: ffff9fab00a3aabc
[ 3548.917467] FS: 0000000000000000(0000) GS:ffff9fae708c0000(0000) knlGS:0000000000000000
[ 3548.917468] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3548.917469] CR2: 0000280406941000 CR3: 000000011d010003 CR4: 0000000000770ee0
[ 3548.917470] PKRU: 55555554
[ 3548.917470] Call Trace:
[ 3548.917471] <IRQ>
[ 3548.917475] try_to_wake_up+0x432/0x5d0
[ 3548.917479] ? __next_timer_interrupt+0x110/0x110
[ 3548.917482] wake_up_process+0x15/0x20
[ 3548.917484] process_timeout+0x12/0x20
[ 3548.917485] call_timer_fn+0x2e/0x100
[ 3548.917487] __run_timers.part.0+0x1e0/0x250
[ 3548.917489] run_timer_softirq+0x2a/0x50
[ 3548.917491] __do_softirq+0xe0/0x29b
[ 3548.917494] asm_call_irq_on_stack+0xf/0x20
[ 3548.917496] </IRQ>
[ 3548.917496] do_softirq_own_stack+0x3d/0x50
[ 3548.917499] irq_exit_rcu+0xa4/0xb0
[ 3548.917503] sysvec_apic_timer_interrupt+0x3d/0x90
[ 3548.917505] asm_sysvec_apic_timer_interrupt+0x12/0x20
[ 3548.917507] RIP: 0010:cpuidle_enter_state+0xdf/0x350
[ 3548.917511] Code: ff e8 d5 bc 77 ff 80 7d d7 00 74 17 9c 58 0f 1f 44 00 00 f6 c4 02 0f 85 52 02 00 00 31 ff e8 48 66 7e ff fb 66 0f 1f 44 00 00 <45> 85 ff 0f 88 e5 00 00 00 49 63 c7 4c 2b 75 c8 48 8d 14 40 48 8d
[ 3548.917512] RSP: 0018:ffffbc5380123e48 EFLAGS: 00000246
[ 3548.917513] RAX: ffff9fae708ec2c0 RBX: 0000000000000003 RCX: 000000000000001f
[ 3548.917514] RDX: 0000000000000000 RSI: 000000002da97f6a RDI: 0000000000000000
[ 3548.917515] RBP: ffffbc5380123e80 R08: 00000333f5fb2b44 R09: 0000000000001e9b
[ 3548.917516] R10: ffff9fae708eaee4 R11: ffff9fae708eaec4 R12: ffffdc537fcc0000
[ 3548.917517] R13: ffffffffbe64d880 R14: 00000333f5fb2b44 R15: 0000000000000003
[ 3548.917519] ? cpuidle_enter_state+0xbb/0x350
[ 3548.917520] cpuidle_enter+0x2e/0x40
[ 3548.917522] call_cpuidle+0x23/0x40
[ 3548.917524] do_idle+0x1df/0x260
[ 3548.917526] cpu_startup_entry+0x20/0x30
[ 3548.917527] start_secondary+0x11f/0x160
[ 3548.917530] secondary_startup_64_no_verify+0xc2/0xcb
[ 3578.737433] i2c_designware i2c_designware.0: controller timed out
[ 3603.474008] i2c_designware i2c_designware.0: controller timed out
[ 4280.051489] i2c_designware i2c_designware.0: controller timed out
[ 4939.572925] i2c_designware i2c_designware.0: controller timed out
[ 4972.885032] i2c_designware i2c_designware.0: controller timed out
[ 5007.028565] i2c_designware i2c_designware.0: controller timed out
[ 5030.740555] i2c_designware i2c_designware.0: controller timed out
[ 5457.621927] i2c_designware i2c_designware.0: controller timed out
[ 5615.764485] i2c_designware i2c_designware.0: controller timed out

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.11.0-36-generic 5.11.0-36.40~20.04.1
ProcVersionSignature: Ubuntu 5.11.0-36.40~20.04.1-generic 5.11.22
Uname: Linux 5.11.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.20
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 29 10:43:55 2021
InstallationDate: Installed on 2021-09-16 (12 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-signed-hwe-5.11
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
François Rossigneux (frossigneux) wrote :
Revision history for this message
François Rossigneux (frossigneux) wrote :
Download full text (3.3 KiB)

I had another touchpad crash and here is the dmesg output :

[10665.178468] i2c_designware i2c_designware.0: controller timed out
[10681.337825] i2c_designware i2c_designware.0: controller timed out
[10734.714133] i2c_designware i2c_designware.0: controller timed out
[10975.448460] i2c_designware i2c_designware.0: controller timed out
[11397.751194] i2c_designware i2c_designware.0: controller timed out
[11474.262443] i2c_designware i2c_designware.0: controller timed out
[12512.320584] irq 27: nobody cared (try booting with the "irqpoll" option)
[12512.320589] CPU: 5 PID: 0 Comm: swapper/5 Tainted: G O 5.11.0-37-generic #41~20.04.2-Ubuntu
[12512.320591] Hardware name: HUAWEI KLVD-WXX9/KLVD-WXX9-PCB-B2, BIOS 3.02 07/31/2021
[12512.320592] Call Trace:
[12512.320592] <IRQ>
[12512.320594] dump_stack+0x74/0x92
[12512.320599] __report_bad_irq+0x3a/0xaf
[12512.320600] note_interrupt.cold+0xb/0x60
[12512.320601] handle_irq_event_percpu+0x73/0x80
[12512.320604] handle_irq_event+0x3b/0x60
[12512.320605] handle_fasteoi_irq+0x9c/0x150
[12512.320606] common_interrupt+0x70/0x150
[12512.320608] asm_common_interrupt+0x1e/0x40
[12512.320610] RIP: 0010:__do_softirq+0x73/0x29b
[12512.320612] Code: 7b 01 67 00 01 00 00 89 75 ac c7 45 c8 0a 00 00 00 48 89 45 c0 48 89 45 b0 65 66 c7 05 54 ba 02 67 00 00 fb 66 0f 1f 44 00 00 <bb> ff ff ff ff 49 c7 c3 c0 60 80 99 41 0f bc df 83 c3 01 89 5d d4
[12512.320613] RSP: 0018:ffffb6d500250f90 EFLAGS: 00000206
[12512.320614] RAX: ffff9cc600b83d80 RBX: 0000000000000000 RCX: 00000000000006e0
[12512.320615] RDX: 0000000000000000 RSI: 0000000004200042 RDI: 0000000000000000
[12512.320616] RBP: ffffb6d500250fe8 R08: 0000000000000000 R09: 000006ae80dfda07
[12512.320616] R10: 000006ae80a20080 R11: 0000000000004635 R12: ffffb6d500133d98
[12512.320617] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000080
[12512.320619] asm_call_irq_on_stack+0xf/0x20
[12512.320620] </IRQ>
[12512.320621] do_softirq_own_stack+0x3d/0x50
[12512.320622] irq_exit_rcu+0xa4/0xb0
[12512.320624] sysvec_apic_timer_interrupt+0x3d/0x90
[12512.320625] asm_sysvec_apic_timer_interrupt+0x12/0x20
[12512.320627] RIP: 0010:cpuidle_enter_state+0xdf/0x350
[12512.320629] Code: ff e8 d5 b3 77 ff 80 7d d7 00 74 17 9c 58 0f 1f 44 00 00 f6 c4 02 0f 85 52 02 00 00 31 ff e8 68 5d 7e ff fb 66 0f 1f 44 00 00 <45> 85 ff 0f 88 e5 00 00 00 49 63 c7 4c 2b 75 c8 48 8d 14 40 48 8d
[12512.320630] RSP: 0018:ffffb6d500133e48 EFLAGS: 00000246
[12512.320630] RAX: ffff9cc97096c2c0 RBX: 0000000000000001 RCX: 000000000000001f
[12512.320631] RDX: 0000000000000000 RSI: 000000002da97f6a RDI: 0000000000000000
[12512.320631] RBP: ffffb6d500133e80 R08: 00000b604ab14610 R09: ffffffff99a4d8e0
[12512.320632] R10: ffff9cc97096aee4 R11: ffff9cc97096aec4 R12: ffffd6d4ffd40000
[12512.320633] R13: ffffffff99a4d8e0 R14: 00000b604ab14610 R15: 0000000000000001
[12512.320633] ? cpuidle_enter_state+0xbb/0x350
[12512.320635] cpuidle_enter+0x2e/0x40
[12512.320636] call_cpuidle+0x23/0x40
[12512.320638] do_idle+0x1df/0x260
[12512.320639] cpu_startup_entry+0x20/0x30
[12512.320640] start_secondary+0x11f/0x160
[12512.320641] secondary_startup_64_no_verify+0xc2/0xcb
[12512.32...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-signed-hwe-5.11 (Ubuntu):
status: New → Confirmed
Revision history for this message
François Rossigneux (frossigneux) wrote (last edit ):
Download full text (5.0 KiB)

Very often the touchpad freezes without dmesg message.
But each time it freezes the CPU does to 100% for the process irq/125-ELAN260.
The bug frequency is then every minutes, some seconds, or longer.
Suspending and resuming the laptop increases the probability of the bug.
After a fresh restart, the bug does not occurs immediately. Maybe after one hour.

Very long freeze triggers messages in dmesg:
[152890.240285] watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [irq/125-ELAN260:233]
[152890.240291] Modules linked in: ccm xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bpfilter br_netfilter bridge stp llc vboxnetadp(O) vboxnetflt(O) vboxdrv(O) cmac algif_hash algif_skcipher af_alg snd_hda_codec_hdmi aufs hid_logitech_hidpp overlay bnep hid_logitech_dj uvcvideo videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl videobuf2_common btbcm btintel videodev bluetooth usbhid mc ecdh_generic ecc snd_sof_pci snd_sof_intel_hda_common snd_sof_intel_hda snd_sof_intel_byt snd_sof_intel_ipc snd_sof snd_sof_xtensa_dsp snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi snd_hda_intel joydev snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec snd_hda_core snd_hwdep soundwire_bus snd_soc_core snd_compress x86_pkg_temp_thermal ac97_bus intel_powerclamp snd_pcm_dmaengine coretemp mei_hdcp
[152890.240332] intel_rapl_msr snd_pcm nls_iso8859_1 snd_seq_midi snd_seq_midi_event iwlmvm kvm_intel mac80211 kvm i915 libarc4 snd_rawmidi crct10dif_pclmul ghash_clmulni_intel aesni_intel snd_seq drm_kms_helper iwlwifi crypto_simd cec rc_core snd_seq_device i2c_algo_bit snd_timer input_leds fb_sys_fops processor_thermal_device cryptd syscopyarea processor_thermal_rfim glue_helper huawei_wmi processor_thermal_mbox sysfillrect snd intel_cstate processor_thermal_rapl ledtrig_audio sparse_keymap serio_raw efi_pstore wmi_bmof soundcore mei_me intel_rapl_common cfg80211 sysimgblt mei hid_multitouch intel_soc_dts_iosf mac_hid int3400_thermal acpi_pad int3403_thermal acpi_thermal_rel int340x_thermal_zone sch_fq_codel msr parport_pc ppdev lp parport drm ip_tables x_tables autofs4 hid_generic nvme crc32_pclmul nvme_core i2c_i801 i2c_smbus intel_lpss_pci intel_lpss idma64 xhci_pci i2c_hid virt_dma xhci_pci_renesas wmi hid video pinctrl_tigerlake
[152890.240384] CPU: 1 PID: 233 Comm: irq/125-ELAN260 Tainted: G O 5.11.0-37-generic #41~20.04.2-Ubuntu
[152890.240386] Hardware name: HUAWEI KLVD-WXX9/KLVD-WXX9-PCB-B2, BIOS 3.02 07/31/2021
[152890.240387] RIP: 0010:__do_softirq+0x73/0x29b
[152890.240392] Code: 7b 01 59 00 01 00 00 89 75 ac c7 45 c8 0a 00 00 00 48 89 45 c0 48 89 45 b0 65 66 c7 05 54 ba 02 59 00 00 fb 66 0f 1f 44 00 00 <bb> ff ff ff ff 49 c7 c3 c0 60 80 a7 41 0f bc df 83 c3 01 89 5d d4
[152890.240393] RSP: 0018:ffffb16a80180f90 EFLAGS: 00000286
[152890.240395] RAX: ffff9a704d5e5c40 RBX: 0000000000000000 RCX: 00000000000006e0
[152890.240396] RDX: 0000000000000000 RSI: 0000000000208040 RDI: 0000000000000000
[152890.240396] RBP: ffffb16a80180fe8 R08: 0000000000000000 R09...

Read more...

summary: - Touchpad randomly freezes
+ Touchpad randomly freezes with soft lookup
summary: - Touchpad randomly freezes with soft lookup
+ Touchpad high CPU consumption and random freezes with soft lookup
summary: - Touchpad high CPU consumption and random freezes with soft lookup
+ Touchpad high CPU consumption and random freezes
Revision history for this message
François Rossigneux (frossigneux) wrote :

When the bug occurs, doing rmmod i2c_hid then modprobe i2c_hid fixes the things temporarily.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.