Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2012-03-18 Thread Jan Echternach
On Fri, Jul 29, 2011 at 05:18:48PM +0200, Moritz Mühlenhoff wrote:
 Does this still occur with current kernels?

I don't get this warning anymore since updating from 3.2.6-1 to 3.2.7-1.

-- 
Jan



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120318180206.ga2...@goneko.de



Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2011-09-06 Thread Ben Hutchings
Jan Echternach reported that on his system it8213 provokes the warning
Unbalanced enable for IRQ 19 when probed at boot time.

The previous messages are logged at http://bugs.debian.org/590327.

On Sun, 2011-07-31 at 20:49 +0200, Jan Echternach wrote:
 On Fri, Jul 29, 2011 at 05:18:48PM +0200, Moritz Mühlenhoff wrote:
  Does this still occur with current kernels?
 
 Yes.  Here's a warning from kernel version 3.0.0-1:
 
 [1.984004] [ cut here ]
 [1.984009] WARNING: at 
 /build/buildd-linux-2.6_3.0.0-1-i386-ML66CU/linux-2.6-3.0.0/debian/build/source_i386_none/kernel/irq/manage.c:421
  enable_irq+0x50/0x69()
 [1.984011] Hardware name: EP45T-EXTREME
 [1.984012] Unbalanced enable for IRQ 19
[...]

In the the list of PCI devices in the original report, I see:

 00:1d.1 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB 
 UHCI Controller #2 [8086:3a35] (prog-if 00 [UHCI])
[...]
   Interrupt: pin B routed to IRQ 19
[...]
 05:07.0 IDE interface [0101]: Integrated Technology Express, Inc. IT8213 IDE 
 Controller [1283:8213] (prog-if 85 [Master SecO PriO])
[...]
   Interrupt: pin A routed to IRQ 19

This is somewhat unusual in that the IDE controller will be sharing its
IRQ, but that's supposed to work.

However, the IDE core attempts to disable and enable the IRQ *before* it
allocates it.  If the UHCI driver then allocates the IRQ in the middle
of this, the IRQ manager will reset the disable count since the IRQ is
not yet shared!

This might be fixable by changing the IDE core to allocate the IRQ with
a dummy interrupt handler while probing.

Aside from that, maybe pata_it8213 is ready as a replacement for it8213
now?  (Kconfig still labels it as EXPERIMENTAL.)

Ben.



signature.asc
Description: This is a digitally signed message part


Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2011-09-06 Thread David Miller
From: Ben Hutchings b...@decadent.org.uk
Date: Wed, 07 Sep 2011 05:16:01 +0100

 This is somewhat unusual in that the IDE controller will be sharing its
 IRQ, but that's supposed to work.
 
 However, the IDE core attempts to disable and enable the IRQ *before* it
 allocates it.  If the UHCI driver then allocates the IRQ in the middle
 of this, the IRQ manager will reset the disable count since the IRQ is
 not yet shared!
 
 This might be fixable by changing the IDE core to allocate the IRQ with
 a dummy interrupt handler while probing.
 
 Aside from that, maybe pata_it8213 is ready as a replacement for it8213
 now?  (Kconfig still labels it as EXPERIMENTAL.)

I've known about this IDE layer problem for at least a year and any
fix is too risky to consider seriously.

Use the PATA drivers on modern systems, don't use the deprecated IDE
layer.



-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110907.003931.1112417911793078586.da...@davemloft.net



Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2011-09-06 Thread Ben Hutchings
On Wed, 2011-09-07 at 00:39 -0400, David Miller wrote:
 From: Ben Hutchings b...@decadent.org.uk
 Date: Wed, 07 Sep 2011 05:16:01 +0100
 
  This is somewhat unusual in that the IDE controller will be sharing its
  IRQ, but that's supposed to work.
  
  However, the IDE core attempts to disable and enable the IRQ *before* it
  allocates it.  If the UHCI driver then allocates the IRQ in the middle
  of this, the IRQ manager will reset the disable count since the IRQ is
  not yet shared!
  
  This might be fixable by changing the IDE core to allocate the IRQ with
  a dummy interrupt handler while probing.
  
  Aside from that, maybe pata_it8213 is ready as a replacement for it8213
  now?  (Kconfig still labels it as EXPERIMENTAL.)
 
 I've known about this IDE layer problem for at least a year and any
 fix is too risky to consider seriously.

I had a suspicion that was the case.

 Use the PATA drivers on modern systems, don't use the deprecated IDE
 layer.

Well, I'm concerned with what to do in distro configurations which
aren't just for 'modern systems'.  We already swapped over all the
drivers not labelled as experimental.  With the rest, I worry that we'd
be exchanging obscure IDE drivers that mostly work for obscure libata
drivers that have had little if any testing.  That strikes me as being
even more risky for the users with the old controllers.

I suppose that for those controllers where the libata driver is
experimental we could build both drivers, blacklist the IDE drivers and
let people override that if necessary.  (And hope that most of the bugs
get shaken out of the libata drivers before we do a stable release,
because that is too ugly to keep doing for long.)

Ben.



signature.asc
Description: This is a digitally signed message part


Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2011-09-06 Thread David Miller
From: Ben Hutchings b...@decadent.org.uk
Date: Wed, 07 Sep 2011 05:58:33 +0100

 Well, I'm concerned with what to do in distro configurations which
 aren't just for 'modern systems'.  We already swapped over all the
 drivers not labelled as experimental.  With the rest, I worry that we'd
 be exchanging obscure IDE drivers that mostly work for obscure libata
 drivers that have had little if any testing.  That strikes me as being
 even more risky for the users with the old controllers.
 
 I suppose that for those controllers where the libata driver is
 experimental we could build both drivers, blacklist the IDE drivers and
 let people override that if necessary.  (And hope that most of the bugs
 get shaken out of the libata drivers before we do a stable release,
 because that is too ugly to keep doing for long.)

But for the cases these bugs are hitting these are systems the old
drivers never could have worked on, because of the IRQ sharing issue
with things like USB controllers.

I think your blacklisting idea probably makes the most sense.



-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110907.011613.391683420146319494.da...@davemloft.net



Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2011-08-05 Thread Jonathan Nieder
found 590327 linux-2.6/3.0.0-1
retitle 590327 [it8213] linux: WARNING: Unbalanced enable for IRQ 19
quit

Hi,

Jan Echternach wrote:

 Yes.  Here's a warning from kernel version 3.0.0-1:

Thanks.  Marking accordingly.

I wonder if the pata_it8213 driver (CONFIG_PATA_IT8213) works
better.



-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110805162737.ga6...@elie.gateway.2wire.net



Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2011-07-31 Thread Jan Echternach
On Fri, Jul 29, 2011 at 05:18:48PM +0200, Moritz Mühlenhoff wrote:
 Does this still occur with current kernels?

Yes.  Here's a warning from kernel version 3.0.0-1:

[1.984004] [ cut here ]
[1.984009] WARNING: at 
/build/buildd-linux-2.6_3.0.0-1-i386-ML66CU/linux-2.6-3.0.0/debian/build/source_i386_none/kernel/irq/manage.c:421
 enable_irq+0x50/0x69()
[1.984011] Hardware name: EP45T-EXTREME
[1.984012] Unbalanced enable for IRQ 19
[1.984013] Modules linked in: uhci_hcd ahci libahci firewire_ohci(+) libata 
firewire_core e1000(+) sym53c8xx(+) scsi_transport_spi crc_itu_t ehci_hcd 
it8213(+) ide_core igb dca scsi_mod r8169 mii usbcore
[1.984020] Pid: 153, comm: modprobe Not tainted 3.0.0-1-amd64 #1
[1.984021] Call Trace:
[1.984025]  [8104643d] ? warn_slowpath_common+0x78/0x8c
[1.984027]  [810464f2] ? warn_slowpath_fmt+0x45/0x4a
[1.984030]  [81331f44] ? _raw_spin_lock_irqsave+0x9/0x25
[1.984032]  [81092ba5] ? enable_irq+0x50/0x69
[1.984037]  [a011ab6e] ? ide_probe_port+0x561/0x57f [ide_core]
[1.984040]  [a011ae60] ? ide_host_register+0x275/0x5f8 [ide_core]
[1.984044]  [a011f075] ? ide_pci_init_two+0x5b7/0x67e [ide_core]
[1.984047]  [810bb3bf] ? get_page_from_freelist+0x441/0x6b8
[1.984051]  [811a1b72] ? idr_get_empty_slot+0x166/0x258
[1.984052]  [811a1b72] ? idr_get_empty_slot+0x166/0x258
[1.984055]  [8102d714] ? lookup_address+0xa4/0x126
[1.984057]  [811a1d58] ? ida_get_new_above+0xf4/0x196
[1.984059]  [8114f436] ? sysfs_find_dirent+0x2f/0x44
[1.984061]  [8114f34b] ? sysfs_addrm_finish+0x29/0xb6
[1.984064]  [811bc51b] ? local_pci_probe+0x3c/0x6e
[1.984066]  [811bcad9] ? pci_device_probe+0xc7/0xf6
[1.984068]  [812466b6] ? driver_sysfs_add+0x66/0x8d
[1.984070]  [81246953] ? driver_probe_device+0xb2/0x142
[1.984072]  [81246a32] ? __driver_attach+0x4f/0x6f
[1.984073]  [812469e3] ? driver_probe_device+0x142/0x142
[1.984075]  [81245c3e] ? bus_for_each_dev+0x47/0x72
[1.984077]  [812462c5] ? bus_add_driver+0xa2/0x1f2
[1.984079]  [a007b000] ? 0xa007afff
[1.984081]  [81246ecc] ? driver_register+0x8d/0xf5
[1.984082]  [a007b000] ? 0xa007afff
[1.984084]  [811bcd27] ? __pci_register_driver+0x50/0xbb
[1.984086]  [a007b000] ? 0xa007afff
[1.984088]  [81002172] ? do_one_initcall+0x78/0x132
[1.984090]  [8107623e] ? sys_init_module+0xbc/0x245
[1.984093]  [813389a3] ? ia32_do_call+0x13/0x13
[1.984094] ---[ end trace 16c684a85fa7fcc2 ]---

-- 
Jan



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110731184933.ga2...@goneko.de



Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2011-07-29 Thread Moritz Mühlenhoff
On Fri, Jul 30, 2010 at 02:07:15AM +0200, Jan Echternach wrote:
 On Thu, Jul 29, 2010 at 06:02:41PM +0100, Ben Hutchings wrote:
  Let us know the bug number or URL so that we can track it.
 
 https://bugzilla.kernel.org/show_bug.cgi?id=16481

Does this still occur with current kernels?

Cheers,
Moritz



-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110729151848.GA24689@pisco.westfalen.local



Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2010-07-29 Thread Ben Hutchings
On Mon, 2010-07-26 at 00:30 +0200, Jan Echternach wrote:
 Package: linux-2.6
 Version: 2.6.32-18
 Severity: minor
 
 I'm getting this warning for quite a while now, but not on every boot.
 Stack traces below ide_pci_init_two differ slightly.  I've also tried
 the current experimental kernel, but the warning is still there (although
 the stack trace is somewhat different).
[...]

Please report this bug upstream at https://bugzilla.kernel.org under
product 'IO/Storage' component 'IDE', including the stack trace from the
experimental kernel.  Let us know the bug number or URL so that we can
track it.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.


signature.asc
Description: This is a digitally signed message part


Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2010-07-29 Thread Jan Echternach
On Thu, Jul 29, 2010 at 06:02:41PM +0100, Ben Hutchings wrote:
 Let us know the bug number or URL so that we can track it.

https://bugzilla.kernel.org/show_bug.cgi?id=16481

-- 
Jan



-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2010073715.ga6...@goneko.de



Bug#590327: linux-image-2.6.32-5-amd64: Unbalanced enable for IRQ 19

2010-07-25 Thread Jan Echternach
Package: linux-2.6
Version: 2.6.32-18
Severity: minor

I'm getting this warning for quite a while now, but not on every boot.
Stack traces below ide_pci_init_two differ slightly.  I've also tried
the current experimental kernel, but the warning is still there (although
the stack trace is somewhat different).


-- Package-specific info:
** Version:
Linux version 2.6.32-5-amd64 (Debian 2.6.32-18) (b...@decadent.org.uk) (gcc 
version 4.3.5 (Debian 4.3.5-2) ) #1 SMP Sat Jul 24 03:54:06 UTC 2010

** Command line:
auto BOOT_IMAGE=debian root=/dev/mapper/vg--ogar--2009-root

** Not tainted

** Kernel log:
2.6.32-5-amd64 (Debian 2.6.32-18):
[2.555752] [ cut here ]
[2.556568] usb 5-2: configuration #1 chosen from 1 choice
[2.560005] WARNING: at 
/build/buildd-linux-2.6_2.6.32-18-i386-HNrmOz/linux-2.6-2.6.32/debian/build/source_i386_none/kernel/irq/manage.c:274
 enable_irq+0x48/0x7c()
[2.560005] Hardware name: EP45T-EXTREME 
[2.560005] Unbalanced enable for IRQ 19 
[2.560005] Modules linked in: hid uhci_hcd firewire_ohci(+) firewire_core 
crc_itu_t sym53c8xx(+) scsi_transport_spi it8213(+) ide_core e1000(+) thermal 
thermal_sys ahci libata r8169 mii igb dca ehci_hcd scsi_mod usbcore nls_base
[2.560005] Pid: 180, comm: modprobe Not tainted 2.6.32-5-amd64 #1
[2.560005] Call Trace:
[2.560005]  [810936ee] ? enable_irq+0x48/0x7c
[2.560005]  [810936ee] ? enable_irq+0x48/0x7c
[2.560005]  [8104c8bc] ? warn_slowpath_common+0x77/0xa3
[2.560005]  [8104c944] ? warn_slowpath_fmt+0x51/0x59
[2.560005]  [812f3fe3] ? schedule_timeout+0x9d/0xb8 
[2.560005]  [810595c8] ? msleep+0x14/0x1e
[2.560005]  [a010d57c] ? do_probe+0x1ce/0x1e6 [ide_core]
[2.560005]  [81191789] ? delay_tsc+0x30/0x73
[2.560005]  [810936ee] ? enable_irq+0x48/0x7c
[2.560005]  [a010db11] ? ide_probe_port+0x57d/0x5ab [ide_core]
[2.560005]  [a010de3a] ? ide_host_register+0x270/0x61e [ide_core]
[2.560005]  [a0111e15] ? ide_pci_init_two+0x4e5/0x5a8 [ide_core]
[2.560005]  [8118ad1c] ? ida_get_new_above+0xf5/0x1b3 
[2.560005]  [8118ab32] ? idr_get_empty_slot+0x16d/0x262
[2.560005]  [810fcec4] ? iput+0x27/0x60
[2.560005]  [8118ad1c] ? ida_get_new_above+0xf5/0x1b3 
[2.560005]  [810fcec4] ? iput+0x27/0x60
[2.560005]  [8113cdcb] ? sysfs_addrm_finish+0x66/0x20a
[2.560005]  [8119e282] ? local_pci_probe+0x12/0x16
[2.560005]  [8119eed2] ? pci_device_probe+0xc0/0xe9 
[2.560005]  [8121badc] ? driver_probe_device+0xa3/0x14b
[2.560005]  [8121bbd3] ? __driver_attach+0x4f/0x6f
[2.560005]  [8121bb84] ? __driver_attach+0x0/0x6f
[2.560005]  [8121b3ab] ? bus_for_each_dev+0x43/0x74 
[2.560005]  [8121ad6b] ? bus_add_driver+0xaf/0x1f8
[2.560005]  [8121be8b] ? driver_register+0xa7/0x111 
[2.560005]  [a012d000] ? it8213_ide_init+0x0/0x1a [it8213]
[2.560005]  [8119f118] ? __pci_register_driver+0x50/0xb8
[2.560005]  [a012d000] ? it8213_ide_init+0x0/0x1a [it8213]
[2.560005]  [8100a065] ? do_one_initcall+0x64/0x174 
[2.560005]  [81078d5f] ? sys_init_module+0xc5/0x21a 
[2.560005]  [81036462] ? ia32_sysret+0x0/0x5
[2.560005] ---[ end trace b0d51b751290dae5 ]---
[3.048134] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[3.048323] hda: UDMA/100 mode selected
[3.059719] ide0 at 0xd200-0xd207,0xd302 on irq 19

2.6.35-rc5-amd64 (Debian 2.6.35~rc5-1~experimental.1):
[1.572006] [ cut here ]
[1.572042] WARNING: at 
/build/buildd-linux-2.6_2.6.35~rc5-1~experimental.1-i386-gQzGH6/linux-2.6-2.6.35~rc5/debian/build/source_i386_none/kernel/irq/manage.c:290
 enable_irq+0x3e/0x64()
[1.572085] Hardware name: EP45T-EXTREME 
[1.572115] Unbalanced enable for IRQ 19 
[1.572144] Modules linked in: hid uhci_hcd ahci libahci sym53c8xx(+) 
scsi_transport_spi libata e1000(+) it8213(+) firewire_ohci firewire_core 
crc_itu_t scsi_mod ide_core r8169 mii ehci_hcd thermal thermal_sys igb dca 
usbcore nls_base
[1.572731] Pid: 209, comm: modprobe Not tainted 2.6.35-rc5-amd64 #1
[1.572759] Call Trace:
[1.572788]  [810441f3] ? warn_slowpath_common+0x78/0x8c
[1.572817]  [810442a6] ? warn_slowpath_fmt+0x45/0x4a
[1.572850]  [a001e388] ? do_probe+0x1ce/0x1ea [ide_core]
[1.572879]  [8108be75] ? enable_irq+0x3e/0x64
[1.572910]  [a001e900] ? ide_probe_port+0x55c/0x589 [ide_core]
[1.572942]  [a001ef1a] ? ide_host_register+0x273/0x60f [ide_core]
[1.572974]  [a002300d] ? ide_pci_init_two+0x5b6/0x680 [ide_core]
[1.573004]  [8118222c] ? idr_get_empty_slot+0x16a/0x250
[1.573033]  [81036ad8] ? update_curr+0xb1/0x159
[1.573062]