Touchpad stops working after a few seconds in Lenovo ideapad 320

Bug #1732056 reported by Leo Arias on 2017-11-14
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HWE Next
Critical
Kai-Heng Feng
linux (Ubuntu)
Medium
Kai-Heng Feng
Xenial
Undecided
Unassigned
linux-oem (Ubuntu)
Medium
Kai-Heng Feng
Xenial
Undecided
Unassigned

Bug Description

=== SRU Justifications ===

[Impact]
Touchpad freezes after a brief usage.

[Fix]
Quote from the commit log:
"The stale cached value written at the final stage undoes the masking.
Fix this by re-reading the register before clearing the interrupt.

I also spotted that the interrupt-clearing code can race against
amd_gpio_irq_mask() / amd_gpio_irq_unmask(), so add locking there.
Presumably this race was leading to the loss of interrupts."

[Test Case]
Touchpad no longer freezes on ideapad 320-15ABR, a new Dell Latitude and
a new Dell Inspiron.

[Regression Potential]
Low. It limits to AMD laptops

=== Original Bug Report ===

I have installed ubuntu bionic on a Lenovo ideapad 320. The touchpad stops working a few seconds after I log in.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.13.0-16-generic 4.13.0-16.19
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: rebeca 1440 F.... pulseaudio
 /dev/snd/controlC0: rebeca 1440 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 13 20:03:41 2017
InstallationDate: Installed on 2017-09-22 (53 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170918)
MachineType: LENOVO 80XS
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-16-generic.efi.signed root=UUID=1e55f665-bd98-4113-9ae8-ec766bfc424f ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.13.0-16-generic N/A
 linux-backports-modules-4.13.0-16-generic N/A
 linux-firmware 1.169
SourcePackage: linux
UpgradeStatus: Upgraded to bionic on 2017-11-14 (0 days ago)
dmi.bios.date: 05/22/2017
dmi.bios.vendor: LENOVO
dmi.bios.version: 5QCN16WW
dmi.board.asset.tag: No Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40700WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo ideapad 320-15ABR
dmi.modalias: dmi:bvnLENOVO:bvr5QCN16WW:bd05/22/2017:svnLENOVO:pn80XS:pvrLenovoideapad320-15ABR:rvnLENOVO:rnLNVNB161216:rvrSDK0J40700WIN:cvnLENOVO:ct10:cvrLenovoideapad320-15ABR:
dmi.product.family: ideapad 320-15ABR
dmi.product.name: 80XS
dmi.product.version: Lenovo ideapad 320-15ABR
dmi.sys.vendor: LENOVO

Leo Arias (elopio) wrote :

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Kai-Heng Feng (kaihengfeng) wrote :

Leo,

Can you try kernel in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1727544/comments/35?

I cherry-picked a fix for pinctrl-amd.
If this patch alone works, I'll ask stable kernel guys to include the patch for pinctrl-amd.

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Leo Arias (elopio) wrote :

Thanks kaihengfeng, the mouse is already working after a couple of minutes. I haven't been this far :)
I'll let you know if it stops working later.

Kai-Heng Feng (kaihengfeng) wrote :

Leo,
If you hysterically move multiple fingers on the touchpad for a while, does the touchpad still work?

description: updated
Leo Arias (elopio) wrote :

Hey, so I upgrade the machine by mistake, and now the touchpad dies again after a few seconds/minutes. I tried reinstalling the debs you linked, but this time it doesn't seem to fix it :(

Kai-Heng Feng (kaihengfeng) wrote :

I'd try cold boot instead of warm boot.

The next artful kernel will have this fix.

In the mean time, can you try mainline kernel?

Leo Arias (elopio) wrote :

On cold boot, the touchpad dies too. I'm on bionic, is the fix going to be released here too?

About the mainline kernel, do you mean this one? http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15-rc2/

Kai-Heng Feng (kaihengfeng) wrote :

commit 6afb10267c1692ada3a2903e31ea339917ad3ac0, is in mainline v4.14+.

It should be fixed once Bionic switches to v4.14 based kernel.

Leo Arias (elopio) wrote :

Alright! I installed v4.14.3, and it seems to work now :)
Fwiw, I tried going crazy with multiple fingers in the touchpad, and it still works.

Thank you! :)

Changed in linux (Ubuntu):
status: Incomplete → Triaged
tags: added: originate-from-1732586 somerville
Changed in hwe-next:
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Changed in linux (Ubuntu):
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Changed in hwe-next:
importance: Undecided → Critical
status: New → Triaged
Changed in linux-oem (Ubuntu):
importance: Undecided → High
assignee: nobody → Kai-Heng Feng (kaihengfeng)
status: New → Triaged
Timo Aaltonen (tjaalton) on 2017-12-14
Changed in linux-oem (Ubuntu):
status: Triaged → Invalid
Changed in linux (Ubuntu Xenial):
status: New → Invalid
Changed in linux-oem (Ubuntu):
importance: High → Medium
Changed in linux-oem (Ubuntu Xenial):
status: New → Fix Committed

so what does this fix-committed mean, i can download latest daily build of 18.04 and the touchpad will work?
how about 17.04 (i prefer lts but 18.04 is not quite ready right?

Shih-Yuan Lee (fourdollars) wrote :

Ubuntu 17.04 is not supported since January 13, 2018.
Please check https://wiki.ubuntu.com/Releases for "End of Life date".

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

Other bug subscribers