[Kernel-packages] [Bug 1728244] Re: Touchpad stops working after reboot on Apollo Lake

2018-05-24 Thread Olivier Fock
I found the line which causes troubles. Rafael J. Wysocki's comments put
me on the path (https://bugzilla.kernel.org/show_bug.cgi?id=199821).

In the file "include/linux/pm_qos.h", if you set the
PM_QOS_RESUME_LATENCY_NO_CONSTRAINT constant to value 0, then it works.

I used a vanilla 4.16.10 kernel and without reverting patch like before.

Olivier

** Bug watch added: Linux Kernel Bug Tracker #199821
   https://bugzilla.kernel.org/show_bug.cgi?id=199821

** Patch added: "path-one-line-fix-touchpad-issue.patch"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1728244/+attachment/5144020/+files/path-one-line-fix-touchpad-issue.patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1728244

Title:
  Touchpad stops working after reboot on Apollo Lake

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Triaged

Bug description:
  On the Jumper EZBook 3 Pro (V4) laptop, using an Apollo Lake N3450
  processor, if you install Ubuntu 17.10 (or less) with isorespin and
  use rEFInd as bootloader (this is the only way to get linux booting on
  this laptop) everything works out of the box, but after a reboot or
  two the touchpad stops working. Both in Ubuntu and Windows 10. The
  only way to restore functionality is to boot from usb key ubuntu 17.10
  respined, or disassemble laptop and detach-reattach battery cable.
  This is mesg | grep i2c_hid:

  
  [ 2056.460636] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)
  [ 3077.604699] i2c_hid i2c-SYNA3602:00: failed to reset device.
  [ 3077.605473] dpm_run_callback(): i2c_hid_resume+0x0/0xe0 [i2c_hid] returns 
-61
  [ 3080.468156] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)

  
  uname -rvps
  Linux 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 
x86_64

  There has to be a bug in the kernel. Any way to avoid this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1728244/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1728244] Re: Touchpad stops working after reboot on Apollo Lake

2018-05-22 Thread Olivier Fock
Patch for kernel 4.16.10 to fix touchpad problems of Thomson X6 (revert
PM / QoS: Fix device resume latency PM QoS patch)

** Patch added: "kernel-4.16.10-thomson-x6.patch"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1728244/+attachment/5143001/+files/kernel-4.16.10-thomson-x6.patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1728244

Title:
  Touchpad stops working after reboot on Apollo Lake

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Triaged

Bug description:
  On the Jumper EZBook 3 Pro (V4) laptop, using an Apollo Lake N3450
  processor, if you install Ubuntu 17.10 (or less) with isorespin and
  use rEFInd as bootloader (this is the only way to get linux booting on
  this laptop) everything works out of the box, but after a reboot or
  two the touchpad stops working. Both in Ubuntu and Windows 10. The
  only way to restore functionality is to boot from usb key ubuntu 17.10
  respined, or disassemble laptop and detach-reattach battery cable.
  This is mesg | grep i2c_hid:

  
  [ 2056.460636] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)
  [ 3077.604699] i2c_hid i2c-SYNA3602:00: failed to reset device.
  [ 3077.605473] dpm_run_callback(): i2c_hid_resume+0x0/0xe0 [i2c_hid] returns 
-61
  [ 3080.468156] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)

  
  uname -rvps
  Linux 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 
x86_64

  There has to be a bug in the kernel. Any way to avoid this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1728244/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1728244] Re: Touchpad stops working after reboot on Apollo Lake

2018-05-21 Thread Olivier Fock
I finally managed to have a working 4.16.10 kernel (touchpad, gesture,
buttons, sdcard, sound, etc...).

I reverted this patch 0759e80b84e34a84e7e46e2b1adb528c83d84a47 (applied
cleanly) and applied manually 0cc2b4e5a020fc7f4d1795741c116c983e9467d7.
I'll attach a full diff later.

So that's the proof that's the "PM / QoS: Fix device resume latency PM
QoS" patch doesn't work on Thomson X6
(https://www.mythomson.com/fr_fr/ordinateurs-155-fr-fr/ultrabook-158-fr-
fr/ultrabook-13-3-32-go-2452).

@Hans, I'll contact you by email.

Regards,
Olivier

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1728244

Title:
  Touchpad stops working after reboot on Apollo Lake

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Triaged

Bug description:
  On the Jumper EZBook 3 Pro (V4) laptop, using an Apollo Lake N3450
  processor, if you install Ubuntu 17.10 (or less) with isorespin and
  use rEFInd as bootloader (this is the only way to get linux booting on
  this laptop) everything works out of the box, but after a reboot or
  two the touchpad stops working. Both in Ubuntu and Windows 10. The
  only way to restore functionality is to boot from usb key ubuntu 17.10
  respined, or disassemble laptop and detach-reattach battery cable.
  This is mesg | grep i2c_hid:

  
  [ 2056.460636] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)
  [ 3077.604699] i2c_hid i2c-SYNA3602:00: failed to reset device.
  [ 3077.605473] dpm_run_callback(): i2c_hid_resume+0x0/0xe0 [i2c_hid] returns 
-61
  [ 3080.468156] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)

  
  uname -rvps
  Linux 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 
x86_64

  There has to be a bug in the kernel. Any way to avoid this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1728244/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1728244] Re: Touchpad stops working after reboot on Apollo Lake

2018-05-20 Thread Olivier Fock
dmesg log

** Attachment added: "dmesg.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1728244/+attachment/5142014/+files/dmesg.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1728244

Title:
  Touchpad stops working after reboot on Apollo Lake

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Triaged

Bug description:
  On the Jumper EZBook 3 Pro (V4) laptop, using an Apollo Lake N3450
  processor, if you install Ubuntu 17.10 (or less) with isorespin and
  use rEFInd as bootloader (this is the only way to get linux booting on
  this laptop) everything works out of the box, but after a reboot or
  two the touchpad stops working. Both in Ubuntu and Windows 10. The
  only way to restore functionality is to boot from usb key ubuntu 17.10
  respined, or disassemble laptop and detach-reattach battery cable.
  This is mesg | grep i2c_hid:

  
  [ 2056.460636] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)
  [ 3077.604699] i2c_hid i2c-SYNA3602:00: failed to reset device.
  [ 3077.605473] dpm_run_callback(): i2c_hid_resume+0x0/0xe0 [i2c_hid] returns 
-61
  [ 3080.468156] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)

  
  uname -rvps
  Linux 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 
x86_64

  There has to be a bug in the kernel. Any way to avoid this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1728244/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1728244] Re: Touchpad stops working after reboot on Apollo Lake

2018-05-20 Thread Olivier Fock
Some details about /sys/bus/i2c/devices/, note I used a 4.14-rc8
previously patched (#153)


olivier@debian:~$ uname -a
Linux debian 4.14.0-rc8 #2 SMP Sun May 20 20:25:16 CEST 2018 x86_64 GNU/Linux
olivier@debian:~$ ls -l /sys/bus/i2c/devices/
total 0
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-0 -> 
../../../devices/pci:00/:00:02.0/i2c-0
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-1 -> 
../../../devices/pci:00/:00:02.0/i2c-1
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-10 -> 
../../../devices/pci:00/:00:17.1/i2c_designware.5/i2c-10
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-11 -> 
../../../devices/pci:00/:00:17.2/i2c_designware.6/i2c-11
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-12 -> 
../../../devices/pci:00/:00:17.3/i2c_designware.7/i2c-12
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-2 -> 
../../../devices/pci:00/:00:02.0/i2c-2
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-3 -> 
../../../devices/pci:00/:00:02.0/drm/card0/card0-eDP-1/i2c-3
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-4 -> 
../../../devices/pci:00/:00:1f.1/i2c-4
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-5 -> 
../../../devices/pci:00/:00:16.0/i2c_designware.0/i2c-5
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-6 -> 
../../../devices/pci:00/:00:16.1/i2c_designware.1/i2c-6
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-7 -> 
../../../devices/pci:00/:00:16.2/i2c_designware.2/i2c-7
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-8 -> 
../../../devices/pci:00/:00:16.3/i2c_designware.3/i2c-8
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-9 -> 
../../../devices/pci:00/:00:17.0/i2c_designware.4/i2c-9
lrwxrwxrwx 1 root root 0 mai   20 21:23 i2c-SYNA3602:00 -> 
../../../devices/pci:00/:00:16.1/i2c_designware.1/i2c-6/i2c-SYNA3602:00
pi@debian:~$

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1728244

Title:
  Touchpad stops working after reboot on Apollo Lake

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Triaged

Bug description:
  On the Jumper EZBook 3 Pro (V4) laptop, using an Apollo Lake N3450
  processor, if you install Ubuntu 17.10 (or less) with isorespin and
  use rEFInd as bootloader (this is the only way to get linux booting on
  this laptop) everything works out of the box, but after a reboot or
  two the touchpad stops working. Both in Ubuntu and Windows 10. The
  only way to restore functionality is to boot from usb key ubuntu 17.10
  respined, or disassemble laptop and detach-reattach battery cable.
  This is mesg | grep i2c_hid:

  
  [ 2056.460636] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)
  [ 3077.604699] i2c_hid i2c-SYNA3602:00: failed to reset device.
  [ 3077.605473] dpm_run_callback(): i2c_hid_resume+0x0/0xe0 [i2c_hid] returns 
-61
  [ 3080.468156] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)

  
  uname -rvps
  Linux 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 
x86_64

  There has to be a bug in the kernel. Any way to avoid this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1728244/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1728244] Re: Touchpad stops working after reboot on Apollo Lake

2018-05-20 Thread Olivier Fock
Hans,

- I compiled a fresh 4.14-rc8 vanilla kernel and touchpad didn't work.

After applied this patch
(https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/base?h=v4.14-rc7&id=0cc2b4e5a020fc7f4d1795741c116c983e9467d7),
the touchpad worked again !

To compile, I need to add "#define PM_QOS_RESUME_LATENCY_NO_CONSTRAINT
S32_MAX" in somes files. I didn't modify .h file dependency.

$ grep -ri S32_MAX *
base/power/qos.c:#define PM_QOS_RESUME_LATENCY_NO_CONSTRAINT S32_MAX
base/power/sysfs.c:#define PM_QOS_RESUME_LATENCY_NO_CONSTRAINT S32_MAX
base/power/domain_governor.c:#define PM_QOS_RESUME_LATENCY_NO_CONSTRAINT S32_MAX
base/cpu.c:#define PM_QOS_RESUME_LATENCY_NO_CONSTRAINT S32_MAX

Note, the unmodified file regmap.c contains this line :
if (map->max_raw_write && map->max_raw_write > val_len)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1728244

Title:
  Touchpad stops working after reboot on Apollo Lake

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Triaged

Bug description:
  On the Jumper EZBook 3 Pro (V4) laptop, using an Apollo Lake N3450
  processor, if you install Ubuntu 17.10 (or less) with isorespin and
  use rEFInd as bootloader (this is the only way to get linux booting on
  this laptop) everything works out of the box, but after a reboot or
  two the touchpad stops working. Both in Ubuntu and Windows 10. The
  only way to restore functionality is to boot from usb key ubuntu 17.10
  respined, or disassemble laptop and detach-reattach battery cable.
  This is mesg | grep i2c_hid:

  
  [ 2056.460636] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)
  [ 3077.604699] i2c_hid i2c-SYNA3602:00: failed to reset device.
  [ 3077.605473] dpm_run_callback(): i2c_hid_resume+0x0/0xe0 [i2c_hid] returns 
-61
  [ 3080.468156] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)

  
  uname -rvps
  Linux 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 
x86_64

  There has to be a bug in the kernel. Any way to avoid this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1728244/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1728244] Re: Touchpad stops working after reboot on Apollo Lake

2018-05-20 Thread Olivier Fock
Hi,

I had a Thomson X6 notebook, it's seems to be a Jumper Ebook 3 Pro
rebranded.

I compiled original kernel from kernel.org.

- With 4.14 RC7 version, movements, simple ou double tab click, 2 finger 
gesture worked. But click buttons not.
- With 4.14 RC8 version, nothing works anymore ! I did some investigations.
  I copied the "drivers/base" files from 4.14 RC7 to 4.14 RC8. I compiled the 
custom kernel... and it works again (except click buttons).
- I did the same thing with the latest version currently available (4.14.41), I 
had the same behavior.
- With 4.16 version, after startup/reboot, the touchpad is recognized in log 
(dmesg) but it's not work. So, if I suspend and resume, gestures and even 
buttons are working !
- From my 4.14.41 version already patched ("drivers/base" files from 4.14 RC7), 
I copied "drivers/hid" and "drivers/input" files from 4.16.
  Now, everything works : gesture and buttons after a first startup and after 
suspend/resume.
  I don't know if "drivers/input" files modifications are really necessary, I 
will do a rollback and test later.
 
Obviously, I can't compile kernel if I replace files without minor 
modifications.

I analyzed the code changes (drivers/base) between the 4.14 RC7 and 4.14 RC8 
versions. There are only a few lines that have been modified.
So I made the reverse modifications in version 4.16, but without success. 
Touchpad is still not work after startup/reboot but works only after 
suspend/resume.


In all versions (4.14 RC7 original, 4.14 RC8 and 4.14.41 modified, 4.16 
original), I still have error messages :

[6.326589] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(32/261)
[6.328725] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(32/8713)
[6.329796] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(32/261)
[6.333024] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(32/23334)
[6.334090] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(32/20745)
[6.337295] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(32/31302)
[6.338385] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(32/29952)
[6.342743] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(32/22281)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1728244

Title:
  Touchpad stops working after reboot on Apollo Lake

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Triaged

Bug description:
  On the Jumper EZBook 3 Pro (V4) laptop, using an Apollo Lake N3450
  processor, if you install Ubuntu 17.10 (or less) with isorespin and
  use rEFInd as bootloader (this is the only way to get linux booting on
  this laptop) everything works out of the box, but after a reboot or
  two the touchpad stops working. Both in Ubuntu and Windows 10. The
  only way to restore functionality is to boot from usb key ubuntu 17.10
  respined, or disassemble laptop and detach-reattach battery cable.
  This is mesg | grep i2c_hid:

  
  [ 2056.460636] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)
  [ 3077.604699] i2c_hid i2c-SYNA3602:00: failed to reset device.
  [ 3077.605473] dpm_run_callback(): i2c_hid_resume+0x0/0xe0 [i2c_hid] returns 
-61
  [ 3080.468156] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)

  
  uname -rvps
  Linux 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 
x86_64

  There has to be a bug in the kernel. Any way to avoid this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1728244/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1728244] Re: Touchpad stops working after reboot on Apollo Lake

2018-05-20 Thread Olivier Fock
Patch for 4.14.41 kernel

** Patch added: "thomson-x6-4.14.41.patch"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1728244/+attachment/5141806/+files/thomson-x6-4.14.41.patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1728244

Title:
  Touchpad stops working after reboot on Apollo Lake

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Triaged

Bug description:
  On the Jumper EZBook 3 Pro (V4) laptop, using an Apollo Lake N3450
  processor, if you install Ubuntu 17.10 (or less) with isorespin and
  use rEFInd as bootloader (this is the only way to get linux booting on
  this laptop) everything works out of the box, but after a reboot or
  two the touchpad stops working. Both in Ubuntu and Windows 10. The
  only way to restore functionality is to boot from usb key ubuntu 17.10
  respined, or disassemble laptop and detach-reattach battery cable.
  This is mesg | grep i2c_hid:

  
  [ 2056.460636] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)
  [ 3077.604699] i2c_hid i2c-SYNA3602:00: failed to reset device.
  [ 3077.605473] dpm_run_callback(): i2c_hid_resume+0x0/0xe0 [i2c_hid] returns 
-61
  [ 3080.468156] i2c_hid i2c-SYNA3602:00: i2c_hid_get_input: incomplete report 
(27/34)

  
  uname -rvps
  Linux 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 
x86_64

  There has to be a bug in the kernel. Any way to avoid this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1728244/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp