Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Kernel (http://www.linux-archive.org/debian-kernel/)
-   -   Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform (http://www.linux-archive.org/debian-kernel/708939-bug-689368-mouse-keyboard-freeze-ivy-bridge-platform.html)

Jonathan Nieder 10-02-2012 01:19 AM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
Hi Sébastien,

Sébastien Dinot wrote:

> I am encountering random keyboard and mouse freezes which can only be
> resolved by a hard reset (push the power button on the computer case).

Thanks for a clear report. Presumably removing and replugging the
mouse doesn't help. Does unloading and reloading the USB driver
("modprobe -r ehci_hcd && modprobe ehci_hcd") have any effect?

Did these machines always behave this way, or is this a regression?
Is the 2.6.32.y kernel from squeeze also affected?

(For my own reference: kernel log at [1].)

Jonathan

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=35;bug=689268


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20121002011937.GA14725@elie.Belkin

Sébastien Dinot 10-02-2012 09:32 PM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
Jonathan Nieder a écrit :
> Presumably removing and replugging the mouse doesn't help.

No.

> Does unloading and reloading the USB driver ("modprobe -r ehci_hcd &&
> modprobe ehci_hcd") have any effect?

I never tried it. I will test it the next time.

> Did these machines always behave this way, or is this a regression?
> Is the 2.6.32.y kernel from squeeze also affected?

It is not a regression, I encountered this bug from the first day.

If I am not mistaken, I can not try 2.6 Linux kernel because the Ivy
Bridge chipset is supported starting from 3.2 Linux kernel.

Sébastien

--
Sébastien Dinot, sebastien.dinot@free.fr
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20121002213239.GA9205@dinot.net">http://lists.debian.org/20121002213239.GA9205@dinot.net

Sébastien Dinot 10-02-2012 11:32 PM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
Jonathan Nieder a écrit :
> Does unloading and reloading the USB driver ("modprobe -r ehci_hcd &&
> modprobe ehci_hcd") have any effect?

Good point! Keyboard and mouse work again after these commands.

Once again, I found the following event in the kern.log file:

------------------------------------------------------------------------
Oct 3 01:11:33 hector kernel: [ 4016.352234] usb 2-1.5: USB disconnect, device number 10
Oct 3 01:11:33 hector kernel: [ 4016.558658] usb 2-1.5: new low-speed USB device number 11 using ehci_hcd
Oct 3 01:11:33 hector kernel: [ 4016.657061] usb 2-1.5: New USB device found, idVendor=045e, idProduct=00a4
Oct 3 01:11:33 hector kernel: [ 4016.657066] usb 2-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 3 01:11:33 hector kernel: [ 4016.657069] usb 2-1.5: Product: Microsoft(R) Compact Optical Mouse
Oct 3 01:11:33 hector kernel: [ 4016.657071] usb 2-1.5: Manufacturer: Microsoft
Oct 3 01:11:33 hector kernel: [ 4016.662142] input: Microsoft Microsoft(R) Compact Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input19
Oct 3 01:11:33 hector kernel: [ 4016.662536] hid-generic 0003:045E:00A4.0009: input,hidraw0: USB HID v1.10 Mouse [Microsoft Microsoft(R) Compact Optical Mouse] on usb-0000:00:1d.0-1.5/input0
------------------------------------------------------------------------

And the freeze occured at 01:11:33 (more or less few seconds by my watch).

Sébastien

--
Sébastien Dinot, sebastien.dinot@free.fr
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20121002233236.GA5322@dinot.net">http://lists.debian.org/20121002233236.GA5322@dinot.net

Jonathan Nieder 10-03-2012 12:24 AM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
Sébastien Dinot wrote:

> Good point! Keyboard and mouse work again after these commands.

Yay.

Ok, one more test and then we should take this upstream: if you set
the usbcore.autosuspend parameter to -1, does that change anything?

# modprobe -r ehci_hcd; # or unplug mouse
# echo -1 >/sys/module/usbcore/parameters/autosuspend
# modprobe ehci_hcd; # or replace mouse

Either way, please send a summary to linux-usb@vger.kernel.org, cc-ing
Alan Stern <stern@rowland.harvard.edu>, linux-input@vger.kernel.org,
and either me or this bug log so we can track it. Be sure to mention:

- steps to reproduce, expected result, actual result, and how the
difference indicates a bug (should be simple enough)

- which kernels you have tested and what happened with each

- how reproducible it is and how long it takes (e.g., within a couple
of hours 80% of the time?)

- full "dmesg" output from booting and reproducing it, as an
attachment or link

- a link to http://bugs.debian.org/689368 for the backstory

- any other weird symptoms or observations

If we're lucky, someone upstream will have ideas for commands or
patches to try to further track down the cause.

Thanks again for your help and patience.

Good luck,
Jonathan


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20121003002407.GD5946@elie.Belkin

10-03-2012 07:40 AM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
Hi,

I am encountering random keyboard and mouse freezes which can only be resolved by a hard reset (by pushing the power switch of the computer case).

I have this frequent and irritating issue with two differents Ivy Bridge platforms:

1. Processor: Intel Core i5 3450 (IGP HD 2500)
Motherboard: MSI Z77A-G43 (with uptodate BIOS)

2. Processor: Intel Core i5 3570K (IGP HD 4000)
Motherboard: ASUS P8Z77-V LX (with uptodate BIOS)

I use Debian on these platforms and I tried several Linux kernels:

* linux-image-3.2.0-3-amd64 (package from Debian testing)
* linux-image-3.4-trunk-amd64 (package from Debian experimental)
* linux-image-3.5-trunk-amd64 (package from Debian experimental)

I pointed out this bug to the Debian kernel team:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689368

The mouse and keyboard are both USB devices and it seems that the bug is coming from the echci-hcd module:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689368#24

I attached the dmesg output and the kern.log file to my first message to Debian:

* http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=35;filename=dmesg.20121001-231244;att=1;bug=689268
* http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=35;filename=kern.log.20121001-232320.gz;att=2;bug=689268

As mentioned to the Debian maintainers, this bug is very frequent (I had up to four freezes in an hour) and my PC are really unusable!

Can I run additional tests or give you additional informations to help you resolve this painful bug?

Sebastien

--
Sébastien Dinot, sebastien.dinot@free.fr
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 181608016.271891744.1349250048886.JavaMail.root@zi mbra59-e10.priv.proxad.net">http://lists.debian.org/181608016.271891744.1349250048886.JavaMail.root@zi mbra59-e10.priv.proxad.net

Alan Stern 10-03-2012 02:40 PM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
On Wed, 3 Oct 2012 sebastien.dinot@free.fr wrote:

> Hi,
>
> I am encountering random keyboard and mouse freezes which can only be
> resolved by a hard reset (by pushing the power switch of the computer
> case).

> The mouse and keyboard are both USB devices and it seems that the bug
> is coming from the echci-hcd module:

> Can I run additional tests or give you additional informations to
> help you resolve this painful bug?

Please build a kernel with CONFIG_USB_DEBUG enabled. When a hang
occurs, get a list of hang tasks (Alt-SysRq-w probably won't work, but
"echo w >/proc/sysrq-trigger" from a network login should). Then send
the dmesg output

Alan Stern


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: Pine.LNX.4.44L0.1210031028130.1441-100000@iolanthe.rowland.org">http://lists.debian.org/Pine.LNX.4.44L0.1210031028130.1441-100000@iolanthe.rowland.org

Alan Stern 10-04-2012 08:59 PM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
On Thu, 4 Oct 2012, Sébastien Dinot wrote:

> Hi,
>
> Alan Stern a écrit :
> > Please build a kernel with CONFIG_USB_DEBUG enabled.
>
> Done (3.6.0+ kernel)
>
> > When a hang occurs, get a list of hang tasks (Alt-SysRq-w probably
> > won't work, but "echo w >/proc/sysrq-trigger" from a network login
> > should). Then send the dmesg output
>
> The mouse and the keyboard froze four times tonight in half an hour*:
>
> - at 20:42:05
> - at 20:53:44
> - at 20:58:21
> - at 21:15:19
>
> But the SysRq command (executed through a remote SSH connection)
> displayed nothing. :(

No tasks were hung. That's okay.

> In attachment, you will find the kern.log file.

The log file shows lots and lots of low-level communication errors.
They could be caused by bad cabling or by bad USB hardware in your
computer. It's unlikely that they were caused by the mouse or
keyboard, because the log shows errors for both of them starting at
exactly the same times.

You could try getting a USB-2 hub and attaching your mouse and
keyboard through the hub. That might help ... or it might not.

Alan Stern


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: Pine.LNX.4.44L0.1210041654550.1441-100000@iolanthe.rowland.org">http://lists.debian.org/Pine.LNX.4.44L0.1210041654550.1441-100000@iolanthe.rowland.org

Sébastien Dinot 10-04-2012 09:36 PM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
Alan Stern a écrit :
> The log file shows lots and lots of low-level communication errors.
> They could be caused by bad cabling or by bad USB hardware in your
> computer. It's unlikely that they were caused by the mouse or
> keyboard, because the log shows errors for both of them starting at
> exactly the same times.

In my humble opinion, this issue is not caused by a bad USB hardware
because I am encountering it with two different motherboards (MSI
Z77A-G43 and ASUS P8Z77-V LX), both with an uptodate BIOS.

May be it is caused by a bad cabling but my mouse and my keyboard worked
fine with my previous PC. They are connected to USB2 ports in both
cases. But to clear up this point, I will try new mouse and keyboard.

A last question: if it is a cable failure, why does it disappear
temporarily when I unload then reload the module? I do not have deep
experience and knowledge of hardware, may be there is a rational
explanation to it.

> You could try getting a USB-2 hub and attaching your mouse and
> keyboard through the hub. That might help ... or it might not.

Sorry, I do not understand the aim of this operation. Could you explain
me it?

Thanks for your help,

Sébastien

--
Sébastien Dinot, sebastien.dinot@free.fr
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20121004213606.GA8409@dinot.net">http://lists.debian.org/20121004213606.GA8409@dinot.net

Sarah Sharp 10-04-2012 10:59 PM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
On Thu, Oct 04, 2012 at 11:36:06PM +0200, Sébastien Dinot wrote:
> Alan Stern a écrit :
> > The log file shows lots and lots of low-level communication errors.
> > They could be caused by bad cabling or by bad USB hardware in your
> > computer. It's unlikely that they were caused by the mouse or
> > keyboard, because the log shows errors for both of them starting at
> > exactly the same times.
>
> In my humble opinion, this issue is not caused by a bad USB hardware
> because I am encountering it with two different motherboards (MSI
> Z77A-G43 and ASUS P8Z77-V LX), both with an uptodate BIOS.
>
> May be it is caused by a bad cabling but my mouse and my keyboard worked
> fine with my previous PC. They are connected to USB2 ports in both
> cases. But to clear up this point, I will try new mouse and keyboard.
>
> A last question: if it is a cable failure, why does it disappear
> temporarily when I unload then reload the module? I do not have deep
> experience and knowledge of hardware, may be there is a rational
> explanation to it.
>
> > You could try getting a USB-2 hub and attaching your mouse and
> > keyboard through the hub. That might help ... or it might not.
>
> Sorry, I do not understand the aim of this operation. Could you explain
> me it?

Sometimes USB 2.0 hubs can handle more electrical noise from the host
controller, especially if they are externally powered by a wall-wort.
So introducing a USB 2.0 hub may fix the transfer errors caused by the
host.

BTW, do these Ivy Bridge systems have any (blue) USB 3.0 ports? If so,
does your mouse and keyboard work under those ports?

Sarah Sharp


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20121004225921.GA25847@xanatos

Alan Stern 10-05-2012 02:23 PM

Bug#689368: Mouse and keyboard freeze on Ivy Bridge platform
 
On Thu, 4 Oct 2012, Sébastien Dinot wrote:

> Alan Stern a écrit :
> > The log file shows lots and lots of low-level communication errors.
> > They could be caused by bad cabling or by bad USB hardware in your
> > computer. It's unlikely that they were caused by the mouse or
> > keyboard, because the log shows errors for both of them starting at
> > exactly the same times.
>
> In my humble opinion, this issue is not caused by a bad USB hardware
> because I am encountering it with two different motherboards (MSI
> Z77A-G43 and ASUS P8Z77-V LX), both with an uptodate BIOS.

Maybe they have something in common. I don't know. All I can do is
explain to you what your kernel log indicates -- and it strongly
indicates a hardware error. Didn't you notice all those "detected
XactErr" lines in the log? There were more than 70000 of them!

> May be it is caused by a bad cabling but my mouse and my keyboard worked
> fine with my previous PC. They are connected to USB2 ports in both
> cases. But to clear up this point, I will try new mouse and keyboard.
>
> A last question: if it is a cable failure, why does it disappear
> temporarily when I unload then reload the module? I do not have deep
> experience and knowledge of hardware, may be there is a rational
> explanation to it.

That's a good point, and a cable failure indeed seems less likely than
some of the other possibilities (such as a failure of the internal
"rate-matching" hub).

One possible explanation is that an occasional noisy signal (caused by
a slightly faulty cable) triggers a bug in the internal hub, and that
bug causes all communication to fail until the hub is reset when you
reload the module.

> > You could try getting a USB-2 hub and attaching your mouse and
> > keyboard through the hub. That might help ... or it might not.
>
> Sorry, I do not understand the aim of this operation. Could you explain
> me it?

In addition to what Sarah said, it's possible that your problem is
related to the fact that the keyboard and mouse operate at low speed.
If you connected them through a hub then that hub would communicate
with the internal hub at high speed, not low speed.

Alan Stern


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: Pine.LNX.4.44L0.1210051011030.1541-100000@iolanthe.rowland.org">http://lists.debian.org/Pine.LNX.4.44L0.1210051011030.1541-100000@iolanthe.rowland.org


All times are GMT. The time now is 06:44 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.