Skip to contentSkip to conversation

psmouse serio4: bad data from KBC - timeout

DISCUSSION Borislav Petkov 2 participants 6 messages Apr 3, 2012 – Apr 4, 2012 HID

lore
Share & tools
lore
#0 lore raw

Hi guys,

I'm running 3.4-rc1 on a thinkpad x121e and it builds and boots just fine. However, after resuming from disk I get (this is the tail of dmesg):

[  905.857412] i8042: failed to resume active multiplexor, mouse won't work
[  905.965568] usb 3-2: reset low-speed USB device number 2 using ohci_hcd
[  907.626998] psmouse serio4: bad data from KBC - timeout
[  907.675385] PM: restore of devices complete after 2358.155 msecs
[  908.227481] Restarting tasks ... done.
[  908.266229] video LNXVIDEO:01: Restoring backlight state
[  917.628792] psmouse serio4: Failed to deactivate mouse on isa0060/serio4
[  917.880639] psmouse serio4: Failed to enable mouse on isa0060/serio4
[  919.867982] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input19
[  947.277011] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[  996.231116] Bluetooth: Core ver 2.16
[  996.231262] NET: Registered protocol family 31
[  996.231273] Bluetooth: HCI device and connection manager initialized
[  996.231559] Bluetooth: HCI socket layer initialized
[  996.231575] Bluetooth: L2CAP socket layer initialized
[  996.231630] Bluetooth: SCO socket layer initialized

and after that the keyboard and the mouse touchpad don't work. The connected USB mouse works fine though.

Any help is appreciated,
thanks.

Signature · 2 lines
Regards/Gruss,
Boris.
#1 lore raw

Hi Borislav,

Quoted 23 lines · Borislav Petkov

Hi guys,

I'm running 3.4-rc1 on a thinkpad x121e and it builds and boots just fine. However, after resuming from disk I get (this is the tail of dmesg):

[  905.857412] i8042: failed to resume active multiplexor, mouse won't work
[  905.965568] usb 3-2: reset low-speed USB device number 2 using ohci_hcd
[  907.626998] psmouse serio4: bad data from KBC - timeout
[  907.675385] PM: restore of devices complete after 2358.155 msecs
[  908.227481] Restarting tasks ... done.
[  908.266229] video LNXVIDEO:01: Restoring backlight state
[  917.628792] psmouse serio4: Failed to deactivate mouse on isa0060/serio4
[  917.880639] psmouse serio4: Failed to enable mouse on isa0060/serio4
[  919.867982] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input19
[  947.277011] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[  996.231116] Bluetooth: Core ver 2.16
[  996.231262] NET: Registered protocol family 31
[  996.231273] Bluetooth: HCI device and connection manager initialized
[  996.231559] Bluetooth: HCI socket layer initialized
[  996.231575] Bluetooth: L2CAP socket layer initialized
[  996.231630] Bluetooth: SCO socket layer initialized
Quoted 2 lines

and after that the keyboard and the mouse touchpad don't work. The connected USB mouse works fine though.

There weren't any changes to i8042 for a while so I'd look into recent ACPI/PM merges. You can also try booting with i8042.nomux to see if it will work better with i8042 in legacy multiplexing mode.

Thanks.

Signature · 1 line
Dmitry
#2 lore raw

Hi Dmitry,

Quoted 21 lines · Dmitry Torokhov
Quoted 21 lines

I'm running 3.4-rc1 on a thinkpad x121e and it builds and boots just fine. However, after resuming from disk I get (this is the tail of dmesg):

[  905.857412] i8042: failed to resume active multiplexor, mouse won't work
[  905.965568] usb 3-2: reset low-speed USB device number 2 using ohci_hcd
[  907.626998] psmouse serio4: bad data from KBC - timeout
[  907.675385] PM: restore of devices complete after 2358.155 msecs
[  908.227481] Restarting tasks ... done.
[  908.266229] video LNXVIDEO:01: Restoring backlight state
[  917.628792] psmouse serio4: Failed to deactivate mouse on isa0060/serio4
[  917.880639] psmouse serio4: Failed to enable mouse on isa0060/serio4
[  919.867982] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input19
[  947.277011] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[  996.231116] Bluetooth: Core ver 2.16
[  996.231262] NET: Registered protocol family 31
[  996.231273] Bluetooth: HCI device and connection manager initialized
[  996.231559] Bluetooth: HCI socket layer initialized
[  996.231575] Bluetooth: L2CAP socket layer initialized
[  996.231630] Bluetooth: SCO socket layer initialized
Quoted 6 lines
Quoted 2 lines

and after that the keyboard and the mouse touchpad don't work. The connected USB mouse works fine though.

There weren't any changes to i8042 for a while so I'd look into recent ACPI/PM merges. You can also try booting with i8042.nomux to see if it will work better with i8042 in legacy multiplexing mode.

thanks for looking into this.

So, I just tested the "i8042.nomux" command line option and it seems to work. Even the touchpad went on after rubbing on it a couple of times initially.

Then, I booted back into 3.4-rc1 without the above option and here's what I got again:

[    0.924424] i8042: PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
[    0.928313] i8042: Detected active multiplexing controller, rev 1.1
[    0.929966] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.930628] serio: i8042 AUX0 port at 0x60,0x64 irq 12
[    0.930890] serio: i8042 AUX1 port at 0x60,0x64 irq 12
[    0.931175] serio: i8042 AUX2 port at 0x60,0x64 irq 12
[    0.931343] serio: i8042 AUX3 port at 0x60,0x64 irq 12
[    0.971523] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    2.086110] psmouse serio4: synaptics: Touchpad model: 1, fw: 8.0, id: 0x1e2b1, caps: 0xd001a3/0x940300/0x121c00
[    2.086378] psmouse serio4: synaptics: serio: Synaptics pass-through port at isa0060/serio4/input0
[    2.127547] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio4/input/input1
[    7.880045] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio4/serio5/input/input2
[  193.757348] i8042: failed to resume active multiplexor, mouse won't work

It seems the mux controller doesn't resume properly (doh, it says so :)) so not only mousepad but keyboard is not working too.

Actually, that's not 100% correct: the keyboard does work for a short period of time (a couple of seconds, judging by the printk timestamps below) right after I resume and then it stops ...

[  195.526425] psmouse serio4: bad data from KBC - timeout
[  205.532397] psmouse serio4: Failed to deactivate mouse on isa0060/serio4
[  205.772260] psmouse serio4: Failed to enable mouse on isa0060/serio4
[  207.447644] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input15

.. with the above being the last line on dmesg.

So, I'm ready for suggestions.

Thanks.

Signature · 2 lines
Regards/Gruss,
    Boris.
#3 lore raw
Quoted 61 lines · Borislav Petkov

Hi Dmitry,

Quoted 21 lines · Dmitry Torokhov
Quoted 21 lines

I'm running 3.4-rc1 on a thinkpad x121e and it builds and boots just fine. However, after resuming from disk I get (this is the tail of dmesg):

[  905.857412] i8042: failed to resume active multiplexor, mouse won't work
[  905.965568] usb 3-2: reset low-speed USB device number 2 using ohci_hcd
[  907.626998] psmouse serio4: bad data from KBC - timeout
[  907.675385] PM: restore of devices complete after 2358.155 msecs
[  908.227481] Restarting tasks ... done.
[  908.266229] video LNXVIDEO:01: Restoring backlight state
[  917.628792] psmouse serio4: Failed to deactivate mouse on isa0060/serio4
[  917.880639] psmouse serio4: Failed to enable mouse on isa0060/serio4
[  919.867982] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input19
[  947.277011] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[  996.231116] Bluetooth: Core ver 2.16
[  996.231262] NET: Registered protocol family 31
[  996.231273] Bluetooth: HCI device and connection manager initialized
[  996.231559] Bluetooth: HCI socket layer initialized
[  996.231575] Bluetooth: L2CAP socket layer initialized
[  996.231630] Bluetooth: SCO socket layer initialized
Quoted 6 lines
Quoted 2 lines

and after that the keyboard and the mouse touchpad don't work. The connected USB mouse works fine though.

There weren't any changes to i8042 for a while so I'd look into recent ACPI/PM merges. You can also try booting with i8042.nomux to see if it will work better with i8042 in legacy multiplexing mode.

thanks for looking into this.

So, I just tested the "i8042.nomux" command line option and it seems to work. Even the touchpad went on after rubbing on it a couple of times initially.

Then, I booted back into 3.4-rc1 without the above option and here's what I got again:

[    0.924424] i8042: PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
[    0.928313] i8042: Detected active multiplexing controller, rev 1.1
[    0.929966] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.930628] serio: i8042 AUX0 port at 0x60,0x64 irq 12
[    0.930890] serio: i8042 AUX1 port at 0x60,0x64 irq 12
[    0.931175] serio: i8042 AUX2 port at 0x60,0x64 irq 12
[    0.931343] serio: i8042 AUX3 port at 0x60,0x64 irq 12
[    0.971523] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    2.086110] psmouse serio4: synaptics: Touchpad model: 1, fw: 8.0, id: 0x1e2b1, caps: 0xd001a3/0x940300/0x121c00
[    2.086378] psmouse serio4: synaptics: serio: Synaptics pass-through port at isa0060/serio4/input0
[    2.127547] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio4/input/input1
[    7.880045] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio4/serio5/input/input2
[  193.757348] i8042: failed to resume active multiplexor, mouse won't work

It seems the mux controller doesn't resume properly (doh, it says so :)) so not only mousepad but keyboard is not working too.

Actually, that's not 100% correct: the keyboard does work for a short period of time (a couple of seconds, judging by the printk timestamps below) right after I resume and then it stops ...

Quoted 9 lines
[  195.526425] psmouse serio4: bad data from KBC - timeout
[  205.532397] psmouse serio4: Failed to deactivate mouse on isa0060/serio4
[  205.772260] psmouse serio4: Failed to enable mouse on isa0060/serio4
[  207.447644] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input15

.. with the above being the last line on dmesg.

So, I'm ready for suggestions.

As I said I would start at the latest ACPI and PM merges and try reverting them - i8042 may interact in funny ways with embedded controller since it is usually the same piece of firmware.

I assume it works fine in 3.3, right?

Thanks.

Signature · 1 line
Dmitry
#4 lore raw
Quoted 5 lines · Dmitry Torokhov

As I said I would start at the latest ACPI and PM merges and try reverting them - i8042 may interact in funny ways with embedded controller since it is usually the same piece of firmware.

I assume it works fine in 3.3, right?

Yes, it does.

Let me checkout git trees before those merges to see whether it makes any difference.

Thanks.

Signature · 2 lines
Regards/Gruss,
Boris.
#5 lore raw
Quoted 11 lines · Borislav Petkov
Quoted 5 lines · Dmitry Torokhov

As I said I would start at the latest ACPI and PM merges and try reverting them - i8042 may interact in funny ways with embedded controller since it is usually the same piece of firmware.

I assume it works fine in 3.3, right?

Yes, it does.

Let me checkout git trees before those merges to see whether it makes any difference.

Well, what do you know, I checked out the commit before Len's ACPI pull request:

git checkout a335750b9a039a9d4cd727cdccacfb90fd63c4e8~1

I.e., the tree I'm currently testing has

commit 10f3cb41d48ab30f5c754b30eea557371892b4c2
Merge: 919c840167ec 867646f246de
Author: Linus Torvalds <[email protected]>
Date: Fri Mar 30 16:24:38 2012 -0700

    Merge git://git.samba.org/sfrench/cifs-2.6

at its top and the mux controller resumes fine:

[    0.922202] i8042: PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
[    0.924542] i8042: Detected active multiplexing controller, rev 1.1
[    0.927501] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.928161] serio: i8042 AUX0 port at 0x60,0x64 irq 12
[    0.928426] serio: i8042 AUX1 port at 0x60,0x64 irq 12
[    0.928682] serio: i8042 AUX2 port at 0x60,0x64 irq 12
[    0.928963] serio: i8042 AUX3 port at 0x60,0x64 irq 12
[    0.968243] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    2.080993] psmouse serio4: synaptics: Touchpad model: 1, fw: 8.0, id: 0x1e2b1, caps: 0xd001a3/0x940300/0x121c00
[    2.081224] psmouse serio4: synaptics: serio: Synaptics pass-through port at isa0060/serio4/input0
[    2.125315] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio4/input/input1
[    7.850636] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio4/serio5/input/input2
[  511.028833] psmouse serio4: TouchPad at isa0060/serio4/input0 lost sync at byte 1
[  511.033921] psmouse serio4: TouchPad at isa0060/serio4/input0 lost sync at byte 1
[  511.035284] psmouse serio4: TouchPad at isa0060/serio4/input0 lost sync at byte 1
[  511.036719] psmouse serio4: TouchPad at isa0060/serio4/input0 lost sync at byte 1
[  511.047286] psmouse serio4: TouchPad at isa0060/serio4/input0 - driver resynced.

IOW, I've cut off the tree before the merge commit below, now I have to go over those patches and see which one is the offender. Stay tuned.

commit a335750b9a039a9d4cd727cdccacfb90fd63c4e8
Merge: 10f3cb41d48a d326f44e5f22
Author: Linus Torvalds <[email protected]>
Date: Fri Mar 30 16:45:38 2012 -0700

Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux

Pull ACPI & Power Management changes from Len Brown:
- ACPI 5.0 after-ripples, ACPICA/Linux divergence cleanup
- cpuidle evolving, more ARM use
- thermal sub-system evolving, ditto
- assorted other PM bits

Fix up conflicts in various cpuidle implementations due to ARM cpuidle cleanups (ARM at91 self-refresh and cpu idle code rewritten into "standby" in asm conflicting with the consolidation of cpuidle time keeping), trivial SH include file context conflict and RCU tracing fixes in generic code.

Signature · 2 lines
Regards/Gruss,
Boris.