Bug 17802

Summary: touchpad become crazy: disable irq 21
Product: Other Reporter: Pol Hallen (polhallen)
Component: OtherAssignee: other_other
Status: RESOLVED INSUFFICIENT_DATA    
Severity: high CC: alan
Priority: P1    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.31.12 Subsystem:
Regression: No Bisected commit-id:
Bug Depends on:    
Bug Blocks: 56331    
Attachments: acpidump
/proc/interrupts

Description Pol Hallen 2010-09-05 11:47:37 UTC
Hi
on macbook 4.1 (kernel 2.6.31.12) often the touchpad become crazy and irq 21 is disable, in syslog I see:

Sep  5 13:32:05 pollon kernel: [ 2215.099257] ide-atapi: hda: ide_check_ireason: wrong transfer direction!
Sep  5 13:32:05 pollon kernel: [ 2215.150195] ide-atapi: hda: ide_check_ireason: wrong transfer direction!
Sep  5 13:32:23 pollon kernel: [ 2233.081273] hda: request sense failure: status=0xd0 { Busy }
Sep  5 13:32:23 pollon kernel: [ 2233.081285] hda: possibly failed opcode: 0xa0
Sep  5 13:32:37 pollon kernel: [ 2247.317239] irq 21: nobody cared (try booting with the "irqpoll" option)
Sep  5 13:32:37 pollon kernel: [ 2247.317244] Pid: 0, comm: swapper Tainted: P           2.6.31.12-pollon #2
Sep  5 13:32:37 pollon kernel: [ 2247.317246] Call Trace:
Sep  5 13:32:37 pollon kernel: [ 2247.317253]  [<c0169b7f>] ? __report_bad_irq+0x24/0x69
Sep  5 13:32:37 pollon kernel: [ 2247.317256]  [<c0169b86>] ? __report_bad_irq+0x2b/0x69
Sep  5 13:32:37 pollon kernel: [ 2247.317259]  [<c0169cb1>] ? note_interrupt+0xed/0x13c
Sep  5 13:32:37 pollon kernel: [ 2247.317262]  [<c016a196>] ? handle_fasteoi_irq+0x7a/0x97
Sep  5 13:32:37 pollon kernel: [ 2247.317265]  [<c01098d4>] ? handle_irq+0x17/0x1b
Sep  5 13:32:37 pollon kernel: [ 2247.317268]  [<c0109110>] ? do_IRQ+0x38/0x89
Sep  5 13:32:37 pollon kernel: [ 2247.317270]  [<c0107c69>] ? common_interrupt+0x29/0x30
Sep  5 13:32:37 pollon kernel: [ 2247.317289]  [<f845623a>] ? acpi_idle_enter_simple+0xf7/0x129 [processor]
Sep  5 13:32:37 pollon kernel: [ 2247.317293]  [<c02f79d6>] ? cpuidle_idle_call+0x64/0x96
Sep  5 13:32:37 pollon kernel: [ 2247.317297]  [<c01068a3>] ? cpu_idle+0x46/0x5f
Sep  5 13:32:37 pollon kernel: [ 2247.317298] handlers:
Sep  5 13:32:37 pollon kernel: [ 2247.317300] [<f809c147>] (usb_hcd_irq+0x0/0x66 [usbcore])
Sep  5 13:32:37 pollon kernel: [ 2247.317323] [<f80dbbbe>] (ide_intr+0x0/0x1b9 [ide_core])
Sep  5 13:32:37 pollon kernel: [ 2247.317343] [<f80dbbbe>] (ide_intr+0x0/0x1b9 [ide_core])
Sep  5 13:32:37 pollon kernel: [ 2247.317361] [<f809c147>] (usb_hcd_irq+0x0/0x66 [usbcore])
Sep  5 13:32:37 pollon kernel: [ 2247.317382] Disabling IRQ #21

also suspend stops and I can only reboot the system.

If I add irqpoll there is not this problem but suspend doesn't run.

thanks

Pol
Comment 1 Andrew Morton 2010-09-08 22:32:42 UTC
(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Sun, 5 Sep 2010 11:47:41 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=17802
> 
>            Summary: touchpad become crazy: disable irq 21
>            Product: Other
>            Version: 2.5
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: high
>           Priority: P1
>          Component: Other
>         AssignedTo: other_other@kernel-bugs.osdl.org
>         ReportedBy: polhallen@fuckaround.org

heh.

>         Regression: No
> 
> 
> Hi
> on macbook 4.1 (kernel 2.6.31.12) often the touchpad become crazy and irq 21
> is
> disable, in syslog I see:
> 
> Sep  5 13:32:05 pollon kernel: [ 2215.099257] ide-atapi: hda:
> ide_check_ireason: wrong transfer direction!
> Sep  5 13:32:05 pollon kernel: [ 2215.150195] ide-atapi: hda:
> ide_check_ireason: wrong transfer direction!
> Sep  5 13:32:23 pollon kernel: [ 2233.081273] hda: request sense failure:
> status=0xd0 { Busy }
> Sep  5 13:32:23 pollon kernel: [ 2233.081285] hda: possibly failed opcode:
> 0xa0
> Sep  5 13:32:37 pollon kernel: [ 2247.317239] irq 21: nobody cared (try
> booting
> with the "irqpoll" option)
> Sep  5 13:32:37 pollon kernel: [ 2247.317244] Pid: 0, comm: swapper Tainted:
> P 
>          2.6.31.12-pollon #2
> Sep  5 13:32:37 pollon kernel: [ 2247.317246] Call Trace:
> Sep  5 13:32:37 pollon kernel: [ 2247.317253]  [<c0169b7f>] ?
> __report_bad_irq+0x24/0x69
> Sep  5 13:32:37 pollon kernel: [ 2247.317256]  [<c0169b86>] ?
> __report_bad_irq+0x2b/0x69
> Sep  5 13:32:37 pollon kernel: [ 2247.317259]  [<c0169cb1>] ?
> note_interrupt+0xed/0x13c
> Sep  5 13:32:37 pollon kernel: [ 2247.317262]  [<c016a196>] ?
> handle_fasteoi_irq+0x7a/0x97
> Sep  5 13:32:37 pollon kernel: [ 2247.317265]  [<c01098d4>] ?
> handle_irq+0x17/0x1b
> Sep  5 13:32:37 pollon kernel: [ 2247.317268]  [<c0109110>] ?
> do_IRQ+0x38/0x89
> Sep  5 13:32:37 pollon kernel: [ 2247.317270]  [<c0107c69>] ?
> common_interrupt+0x29/0x30
> Sep  5 13:32:37 pollon kernel: [ 2247.317289]  [<f845623a>] ?
> acpi_idle_enter_simple+0xf7/0x129 [processor]
> Sep  5 13:32:37 pollon kernel: [ 2247.317293]  [<c02f79d6>] ?
> cpuidle_idle_call+0x64/0x96
> Sep  5 13:32:37 pollon kernel: [ 2247.317297]  [<c01068a3>] ?
> cpu_idle+0x46/0x5f
> Sep  5 13:32:37 pollon kernel: [ 2247.317298] handlers:
> Sep  5 13:32:37 pollon kernel: [ 2247.317300] [<f809c147>]
> (usb_hcd_irq+0x0/0x66 [usbcore])
> Sep  5 13:32:37 pollon kernel: [ 2247.317323] [<f80dbbbe>]
> (ide_intr+0x0/0x1b9
> [ide_core])
> Sep  5 13:32:37 pollon kernel: [ 2247.317343] [<f80dbbbe>]
> (ide_intr+0x0/0x1b9
> [ide_core])
> Sep  5 13:32:37 pollon kernel: [ 2247.317361] [<f809c147>]
> (usb_hcd_irq+0x0/0x66 [usbcore])
> Sep  5 13:32:37 pollon kernel: [ 2247.317382] Disabling IRQ #21
> 
> also suspend stops and I can only reboot the system.
> 
> If I add irqpoll there is not this problem but suspend doesn't run.
> 

Not heh.  Ugly.

Could be ACPI, could be x86, could be something else.

Guys, could you please take a look, suggest how we should tackle this?

Thanks.
Comment 2 Dmitry Torokhov 2010-09-08 22:59:31 UTC
On Wed, Sep 08, 2010 at 03:32:01PM -0700, Andrew Morton wrote:
> 
> (switched to email.  Please respond via emailed reply-to-all, not via the
> bugzilla web interface).
> 
> On Sun, 5 Sep 2010 11:47:41 GMT
> bugzilla-daemon@bugzilla.kernel.org wrote:
> 
> > https://bugzilla.kernel.org/show_bug.cgi?id=17802
> > 
> >            Summary: touchpad become crazy: disable irq 21
> >            Product: Other
> >            Version: 2.5
> >           Platform: All
> >         OS/Version: Linux
> >               Tree: Mainline
> >             Status: NEW
> >           Severity: high
> >           Priority: P1
> >          Component: Other
> >         AssignedTo: other_other@kernel-bugs.osdl.org
> >         ReportedBy: polhallen@fuckaround.org
> 
> heh.
> 
> >         Regression: No
> > 
> > 
> > Hi
> > on macbook 4.1 (kernel 2.6.31.12) often the touchpad become crazy and irq
> 21 is
> > disable, in syslog I see:

Hmm, by touchpad being crazy you mean the pointer jumps around in X? Does
the touchpad driver use IRQ 21?
Comment 3 Zhang Rui 2010-09-09 01:31:11 UTC
On Thu, 2010-09-09 at 06:32 +0800, Andrew Morton wrote:
> (switched to email.  Please respond via emailed reply-to-all, not via the
> bugzilla web interface).
> 
> On Sun, 5 Sep 2010 11:47:41 GMT
> bugzilla-daemon@bugzilla.kernel.org wrote:
> 
> > https://bugzilla.kernel.org/show_bug.cgi?id=17802
> > 
> >            Summary: touchpad become crazy: disable irq 21
> >            Product: Other
> >            Version: 2.5
> >           Platform: All
> >         OS/Version: Linux
> >               Tree: Mainline
> >             Status: NEW
> >           Severity: high
> >           Priority: P1
> >          Component: Other
> >         AssignedTo: other_other@kernel-bugs.osdl.org
> >         ReportedBy: polhallen@fuckaround.org
> 
> heh.
> 
> >         Regression: No
> > 
> > 
> > Hi
> > on macbook 4.1 (kernel 2.6.31.12) often the touchpad become crazy and irq
> 21 is
> > disable, in syslog I see:
> > 
> > Sep  5 13:32:05 pollon kernel: [ 2215.099257] ide-atapi: hda:
> > ide_check_ireason: wrong transfer direction!
> > Sep  5 13:32:05 pollon kernel: [ 2215.150195] ide-atapi: hda:
> > ide_check_ireason: wrong transfer direction!
> > Sep  5 13:32:23 pollon kernel: [ 2233.081273] hda: request sense failure:
> > status=0xd0 { Busy }
> > Sep  5 13:32:23 pollon kernel: [ 2233.081285] hda: possibly failed opcode:
> 0xa0
> > Sep  5 13:32:37 pollon kernel: [ 2247.317239] irq 21: nobody cared (try
> booting
> > with the "irqpoll" option)
> > Sep  5 13:32:37 pollon kernel: [ 2247.317244] Pid: 0, comm: swapper
> Tainted: P 
> >          2.6.31.12-pollon #2
> > Sep  5 13:32:37 pollon kernel: [ 2247.317246] Call Trace:
> > Sep  5 13:32:37 pollon kernel: [ 2247.317253]  [<c0169b7f>] ?
> > __report_bad_irq+0x24/0x69
> > Sep  5 13:32:37 pollon kernel: [ 2247.317256]  [<c0169b86>] ?
> > __report_bad_irq+0x2b/0x69
> > Sep  5 13:32:37 pollon kernel: [ 2247.317259]  [<c0169cb1>] ?
> > note_interrupt+0xed/0x13c
> > Sep  5 13:32:37 pollon kernel: [ 2247.317262]  [<c016a196>] ?
> > handle_fasteoi_irq+0x7a/0x97
> > Sep  5 13:32:37 pollon kernel: [ 2247.317265]  [<c01098d4>] ?
> > handle_irq+0x17/0x1b
> > Sep  5 13:32:37 pollon kernel: [ 2247.317268]  [<c0109110>] ?
> do_IRQ+0x38/0x89
> > Sep  5 13:32:37 pollon kernel: [ 2247.317270]  [<c0107c69>] ?
> > common_interrupt+0x29/0x30
> > Sep  5 13:32:37 pollon kernel: [ 2247.317289]  [<f845623a>] ?
> > acpi_idle_enter_simple+0xf7/0x129 [processor]
> > Sep  5 13:32:37 pollon kernel: [ 2247.317293]  [<c02f79d6>] ?
> > cpuidle_idle_call+0x64/0x96
> > Sep  5 13:32:37 pollon kernel: [ 2247.317297]  [<c01068a3>] ?
> > cpu_idle+0x46/0x5f
> > Sep  5 13:32:37 pollon kernel: [ 2247.317298] handlers:
> > Sep  5 13:32:37 pollon kernel: [ 2247.317300] [<f809c147>]
> > (usb_hcd_irq+0x0/0x66 [usbcore])
> > Sep  5 13:32:37 pollon kernel: [ 2247.317323] [<f80dbbbe>]
> (ide_intr+0x0/0x1b9
> > [ide_core])
> > Sep  5 13:32:37 pollon kernel: [ 2247.317343] [<f80dbbbe>]
> (ide_intr+0x0/0x1b9
> > [ide_core])
> > Sep  5 13:32:37 pollon kernel: [ 2247.317361] [<f809c147>]
> > (usb_hcd_irq+0x0/0x66 [usbcore])
> > Sep  5 13:32:37 pollon kernel: [ 2247.317382] Disabling IRQ #21
> > 
> > also suspend stops and I can only reboot the system.
> > 
> > If I add irqpoll there is not this problem but suspend doesn't run.
> > 
please attach the content of /proc/interrupts.
please attach the acpidump as well.

thanks,
rui
Comment 4 Pol Hallen 2010-09-09 12:04:43 UTC
Created attachment 29452 [details]
acpidump
Comment 5 Pol Hallen 2010-09-09 12:06:51 UTC
Created attachment 29462 [details]
/proc/interrupts
Comment 6 Pol Hallen 2010-09-09 12:08:16 UTC
> please attach the content of /proc/interrupts.
> please attach the acpidump as well.

Done :-)

>Hmm, by touchpad being crazy you mean the pointer jumps around in X?

the pointer become very very slow.. unusable.. and the hibernate doesn't run..

>Does the touchpad driver use IRQ 21?

ide0, ide1, ehci_hcd:usb1, uhci_hcd:usb7

Pol

---------------------------
 - These recipients of your message have been processed by the mail server:
bugzilla-daemon@bugzilla.kernel.org; Failed; 5.4.0 (other or undefined network or routing status)

bugme-daemon@bugzilla.kernel.org; Failed; 5.4.0 (other or undefined network or routing status)





Reporting-MTA: dns; vsmtp3.tin.it
Received-from-MTA: dns; [192.168.1.2] (87.8.44.129)
Arrival-Date: Thu, 9 Sep 2010 13:53:49 +0200

Final-Recipient: rfc822; bugzilla-daemon@bugzilla.kernel.org
Action: Failed
Status: 5.4.0 (other or undefined network or routing status)

Final-Recipient: rfc822; bugme-daemon@bugzilla.kernel.org
Action: Failed
Status: 5.4.0 (other or undefined network or routing status)



Return-Path: <polhallen@fuckaround.org>
Received: from [192.168.1.2] (87.8.44.129) by vsmtp3.tin.it (8.5.113)
        id 4BCE36060AAE4D8F; Thu, 9 Sep 2010 13:53:48 +0200
Message-ID: <4C88CAC6.40704@fuckaround.org>
Date: Thu, 09 Sep 2010 13:53:42 +0200
From: Pol Hallen <polhallen@fuckaround.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100805 Iceowl/1.0b1 Icedove/3.0.6
MIME-Version: 1.0
To: Zhang Rui <rui.zhang@intel.com>
CC: Andrew Morton <akpm@linux-foundation.org>, 
 "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
 "x86@kernel.org" <x86@kernel.org>, Dmitry Torokhov <dtor@mail.ru>, 
 "bugzilla-daemon@bugzilla.kernel.org" <bugzilla-daemon@bugzilla.kernel.org>,
 "bugme-daemon@bugzilla.kernel.org" <bugme-daemon@bugzilla.kernel.org>
Subject: Re: [Bugme-new] [Bug 17802] New: touchpad become crazy: disable irq
 21
References: <bug-17802-10286@https.bugzilla.kernel.org/>	 <20100908153201.91dc03d2.akpm@linux-foundation.org> <1283991411.2111.3165.camel@rui>
In-Reply-To: <1283991411.2111.3165.camel@rui>
Content-Type: multipart/mixed;
 boundary="------------060407000001030502090002"

------------------------------------
 - These recipients of your message have been processed by the mail server:
akpm@linux-foundation.org; Failed; 5.3.0 (other or undefined mail system status)

    Remote MTA smtp1.linux-foundation.org: network error


 - SMTP protocol diagnostic: 554 5.7.1 Sent too much confirmed spam.




Reporting-MTA: dns; vsmtp3.tin.it
Received-from-MTA: dns; [192.168.1.2] (87.8.44.129)
Arrival-Date: Thu, 9 Sep 2010 13:53:49 +0200

Final-Recipient: rfc822; akpm@linux-foundation.org
Action: Failed
Status: 5.3.0 (other or undefined mail system status)
Remote-MTA: dns; smtp1.linux-foundation.org



Return-Path: <polhallen@fuckaround.org>
Received: from [192.168.1.2] (87.8.44.129) by vsmtp3.tin.it (8.5.113)
        id 4BCE36060AAE4D8F; Thu, 9 Sep 2010 13:53:48 +0200
Message-ID: <4C88CAC6.40704@fuckaround.org>
Date: Thu, 09 Sep 2010 13:53:42 +0200
From: Pol Hallen <polhallen@fuckaround.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100805 Iceowl/1.0b1 Icedove/3.0.6
MIME-Version: 1.0
To: Zhang Rui <rui.zhang@intel.com>
CC: Andrew Morton <akpm@linux-foundation.org>, 
 "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
 "x86@kernel.org" <x86@kernel.org>, Dmitry Torokhov <dtor@mail.ru>, 
 "bugzilla-daemon@bugzilla.kernel.org" <bugzilla-daemon@bugzilla.kernel.org>,
 "bugme-daemon@bugzilla.kernel.org" <bugme-daemon@bugzilla.kernel.org>
Subject: Re: [Bugme-new] [Bug 17802] New: touchpad become crazy: disable irq
 21
References: <bug-17802-10286@https.bugzilla.kernel.org/>	 <20100908153201.91dc03d2.akpm@linux-foundation.org> <1283991411.2111.3165.camel@rui>
In-Reply-To: <1283991411.2111.3165.camel@rui>
Content-Type: multipart/mixed;
 boundary="------------060407000001030502090002"
Comment 7 Len Brown 2010-11-26 21:16:25 UTC
            CPU0       CPU1       
   0:     287671     109637   IO-APIC-edge      timer
   8:          0          1   IO-APIC-edge      rtc0
   9:        483        479   IO-APIC-fasteoi   acpi
  16:      36491      15935   IO-APIC-fasteoi   uhci_hcd:usb4, 
uhci_hcd:usb5, ndiswrapper
  18:      23811      10147   IO-APIC-fasteoi   uhci_hcd:usb6, ata_piix
  19:          1          3   IO-APIC-fasteoi   ohci1394
  20:        869        298   IO-APIC-fasteoi   ehci_hcd:usb2, 
uhci_hcd:usb3, HDA Intel
  21:      97807      68959   IO-APIC-fasteoi   ide0, ide1, ehci_hcd:usb1, 
uhci_hcd:usb7
  27:          1          0   PCI-MSI-edge      eth0
  28:      18118      22763   PCI-MSI-edge      i915@pci:0000:00:02.0


The DSDT shows that there are no programmable IRQs
in IOAPIC mode on this machine, so it is unlikely that
there is an ACPI interrupt routing issue.

It is more likely that the problem is in one of the devices (above)
using IRQ21.  I assume that the touchpad is uhci_hcd:usb7?

What does "lsusb" show on this machine?

Of course I'd recommend trying to reproduce the issue
after excluding "ndiswrapper" from the configuration.

cheers,
Len Brown, Intel Open Source Technology Center