Bug#321419: linux-image-2.6.12-1-686: irq11 makes eth0 problems (Was: Re: Bug#303550: kernel-image-2.6.11-1-686: irq11 makes eth0 problems)
hi, On Thu, Sep 01, 2005 at 09:55:08AM +0100, Russell King wrote: On Wed, Aug 31, 2005 at 10:12:59PM +0200, Philippe Bourcier wrote: if the patch doesn't help please give me the output of cbdump and cardctl ident when the card is inserted and all drivers are loaded. i got http://pcmcia.arm.linux.org.uk/progs/cbdump.c $ cbdump pcilib: sysfs_read: tried to read 4 bytes at 128, but got only 0 Re-run it as root. It needs to access registers which are only available to root. 00:03.1 CardBus bridge: Texas Instruments PCI1250 -- generic cardbus config registers Vendor ID [00] : 0x104c Device ID [02] : 0xac16 PCI command[04] : 0x0007 Base address [10] : 0x10001000 Memory Base 0 [1c] : 0x10c0 Memory Limit 0 [20] : 0x10fff000 Memory Base 1 [24] : 0x1100 Memory Limit 1 [28] : 0x113ff000 IO Base 0 [2c] : 0x4800 IO Limit 0 [30] : 0x48fc IO Base 1 [34] : 0x4c00 IO Limit 1 [38] : 0x4cfc Bridge control [3e] : 0x05c0 Subsystem vendor ID[40] : 0x Subsystem device ID[42] : 0x Legacy mode base [44] : 0x0001 -- TI specific config registers System control [80] : 0x0844b061 IRQ Mux[8c] : 0xcba97543 Retry [90] : 0xc0 Card control [91] : 0x83 Device control [92] : 0x62 Diagnostic [93] : 0x61 -- cardbus registers CB_SOCKET_EVENT[00] : 0x CB_SOCKET_MASK [04] : 0x0006 CB_SOCKET_STATE[08] : 0x3459 CB_SOCKET_FORCE[0c] : 0x CB_SOCKET_CONTROL [10] : 0x0020 CB_SOCKET_POWER[20] : 0x -- exca registers I365_IDENT [00] : 0x84 I365_STATUS[01] : 0x6f I365_POWER [02] : 0x90 I365_INTCTL[03] : 0x79 I365_CSC [04] : 0x00 I365_CSCINT[05] : 0x08 I365_ADDRWIN [06] : 0xc1 I365_IOCTL [07] : 0x01 I365_GENCTL[16] : 0x00c0 I365_GBLCTL[1e] : 0x I365_IO0_START [08] : 0x0310 I365_IO0_STOP [0a] : 0x031f I365_IO1_START [0c] : 0x03e8 I365_IO1_STOP [0e] : 0x03ef I365_MEM0_START[10] : 0x0001 I365_MEM0_STOP [12] : 0x8001 I365_MEM0_OFF [14] : 0x7fff I365_MEM0_PAGE [40] : 0xa0 I365_MEM1_START[18] : 0x I365_MEM1_STOP [1a] : 0x I365_MEM1_OFF [1c] : 0x I365_MEM1_PAGE [41] : 0x00 I365_MEM2_START[20] : 0x I365_MEM2_STOP [22] : 0x I365_MEM2_OFF [24] : 0x I365_MEM2_PAGE [42] : 0x00 I365_MEM3_START[28] : 0x I365_MEM3_STOP [2a] : 0x I365_MEM3_OFF [2c] : 0x I365_MEM3_PAGE [43] : 0x00 I365_MEM4_START[30] : 0x I365_MEM4_STOP [32] : 0x I365_MEM4_OFF [34] : 0x I365_MEM4_PAGE [44] : 0x00 00:03.0 CardBus bridge: Texas Instruments PCI1250 -- generic cardbus config registers Vendor ID [00] : 0x104c Device ID [02] : 0xac16 PCI command[04] : 0x0007 Base address [10] : 0x1000 Memory Base 0 [1c] : 0x1040 Memory Limit 0 [20] : 0x107ff000 Memory Base 1 [24] : 0x1080 Memory Limit 1 [28] : 0x10bff000 IO Base 0 [2c] : 0x4000 IO Limit 0 [30] : 0x40fc IO Base 1 [34] : 0x4400 IO Limit 1 [38] : 0x44fc Bridge control [3e] : 0x05c0 Subsystem vendor ID[40] : 0x Subsystem device ID[42] : 0x Legacy mode base [44] : 0x0001 -- TI specific config registers System control [80] : 0x0844b061 IRQ Mux[8c] : 0xcba97543 Retry [90] : 0xc0 Card control [91] : 0x83 Device control [92] : 0x62 Diagnostic [93] : 0x61 -- cardbus registers CB_SOCKET_EVENT[00] : 0x CB_SOCKET_MASK [04] : 0x0006 CB_SOCKET_STATE[08] : 0x3459
Bug#321419: linux-image-2.6.12-1-686: irq11 makes eth0 problems (Was: Re: Bug#303550: kernel-image-2.6.11-1-686: irq11 makes eth0 problems)
On Wed, Aug 31, 2005 at 10:12:59PM +0200, Philippe Bourcier wrote: if the patch doesn't help please give me the output of cbdump and cardctl ident when the card is inserted and all drivers are loaded. i got http://pcmcia.arm.linux.org.uk/progs/cbdump.c $ cbdump pcilib: sysfs_read: tried to read 4 bytes at 128, but got only 0 Re-run it as root. It needs to access registers which are only available to root. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#321419: linux-image-2.6.12-1-686: irq11 makes eth0 problems (Was: Re: Bug#303550: kernel-image-2.6.11-1-686: irq11 makes eth0 problems)
hi, On Wed, Aug 17, 2005 at 02:26:17AM +0200, Daniel Ritz wrote: On Tuesday 16 August 2005 22.47, Philippe Bourcier wrote: I tried latest debian 2.6.12 kernel; see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321419 irq 11: nobody cared! [c01388fa] __report_bad_irq+0x2a/0xa0 [c013836d] handle_IRQ_event+0x3d/0x70 [c0138a12] note_interrupt+0x82/0xa0 [c0138490] __do_IRQ+0xf0/0x100 [c0105729] do_IRQ+0x19/0x30 [c0103ada] common_interrupt+0x1a/0x20 [c011f2ae] __do_softirq+0x2e/0xa0 [c011f346] do_softirq+0x26/0x30 [c010572e] do_IRQ+0x1e/0x30 [c0103ada] common_interrupt+0x1a/0x20 handlers: [c8cddea0] (usb_hcd_irq+0x0/0x80 [usbcore]) [c8d00990] (yenta_interrupt+0x0/0x40 [yenta_socket]) [c8d00990] (yenta_interrupt+0x0/0x40 [yenta_socket]) Disabling IRQ #11 eth0: interrupt(s) dropped! ask more if you need, simple question: is that card a multifunction card with ethernet and a modem? exactly! i see from the dmesg that a ttyS2 pops up the same time when the 3c589 shows up. the problem compared to 2.4 is that the serial interface is assigned irq 11 when the network card is on irq 9. but on 2.4 both functions use irq 9 (which is correct). could you try the attached patch? nope : I never compiled a 2.6 kernel. Perhaps somebody of the Debian Kernel Team could help if the patch doesn't help please give me the output of cbdump and cardctl ident when the card is inserted and all drivers are loaded. i got http://pcmcia.arm.linux.org.uk/progs/cbdump.c $ cbdump pcilib: sysfs_read: tried to read 4 bytes at 128, but got only 0 pcilib: sysfs_read: tried to read 4 bytes at 140, but got only 0 pcilib: sysfs_read: tried to read 1 bytes at 144, but got only 0 pcilib: sysfs_read: tried to read 1 bytes at 145, but got only 0 pcilib: sysfs_read: tried to read 1 bytes at 146, but got only 0 pcilib: sysfs_read: tried to read 1 bytes at 147, but got only 0 open /dev/mem: Permission denied pcilib: sysfs_read: tried to read 4 bytes at 128, but got only 0 pcilib: sysfs_read: tried to read 4 bytes at 140, but got only 0 pcilib: sysfs_read: tried to read 1 bytes at 144, but got only 0 pcilib: sysfs_read: tried to read 1 bytes at 145, but got only 0 pcilib: sysfs_read: tried to read 1 bytes at 146, but got only 0 pcilib: sysfs_read: tried to read 1 bytes at 147, but got only 0 open /dev/mem: Permission denied 00:03.0 CardBus bridge: Texas Instruments PCI1250 -- generic cardbus config registers Vendor ID [00] : 0x104c Device ID [02] : 0xac16 PCI command[04] : 0x0007 Base address [10] : 0x0800 Memory Base 0 [1c] : 0x0840 Memory Limit 0 [20] : 0x087ff000 Memory Base 1 [24] : 0x0880 Memory Limit 1 [28] : 0x08bff000 IO Base 0 [2c] : 0x4000 IO Limit 0 [30] : 0x40fc IO Base 1 [34] : 0x4400 IO Limit 1 [38] : 0x44fc Bridge control [3e] : 0x05c0 Subsystem vendor ID[40] : 0x Subsystem device ID[42] : 0x Legacy mode base [44] : 0x0001 -- TI specific config registers System control [80] : 0x IRQ Mux[8c] : 0x Retry [90] : 0xff Card control [91] : 0xff Device control [92] : 0xff Diagnostic [93] : 0xff 00:03.1 CardBus bridge: Texas Instruments PCI1250 -- generic cardbus config registers Vendor ID [00] : 0x104c Device ID [02] : 0xac16 PCI command[04] : 0x0007 Base address [10] : 0x08001000 Memory Base 0 [1c] : 0x08c0 Memory Limit 0 [20] : 0x08fff000 Memory Base 1 [24] : 0x0900 Memory Limit 1 [28] : 0x093ff000 IO Base 0 [2c] : 0x4800 IO Limit 0 [30] : 0x48fc IO Base 1 [34] : 0x4c00 IO Limit 1 [38] : 0x4cfc Bridge control [3e] : 0x0540 Subsystem vendor ID[40] : 0x Subsystem device ID[42] : 0x Legacy mode base [44] : 0x0001 -- TI specific config registers System control [80] : 0x IRQ Mux[8c] : 0x Retry [90] : 0xff Card control [91] : 0xff Device control [92] : 0xff Diagnostic [93] : 0xff $ cadctl ident Socket 0: product info: Adaptec, Inc., APA-1460 SCSI Host Adapter, Version 0.01 manfid: 0x012f, 0x0002 Socket 1: product info: 3Com, Megahertz 3CXEM556, LAN + 56k Modem, manfid:
Bug#321419: linux-image-2.6.12-1-686: irq11 makes eth0 problems (Was: Re: Bug#303550: kernel-image-2.6.11-1-686: irq11 makes eth0 problems)
hi mike [ please don't strip the cc list. thanks ] the patch is against 2.6.13-rc6. if you want to try with an older kernel you have to patch the file drivers/pcmcia/cs.c, function pcmcia_request_irq() but i don't think it will help in your case. try a 2.6.13-rc6 kernel instead. rgds -daniel On Wednesday 17 August 2005 02.26, Daniel Ritz wrote: hi On Tuesday 16 August 2005 22.47, Philippe Bourcier wrote: I tried latest debian 2.6.12 kernel; see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321419 irq 11: nobody cared! [c01388fa] __report_bad_irq+0x2a/0xa0 [c013836d] handle_IRQ_event+0x3d/0x70 [c0138a12] note_interrupt+0x82/0xa0 [c0138490] __do_IRQ+0xf0/0x100 [c0105729] do_IRQ+0x19/0x30 [c0103ada] common_interrupt+0x1a/0x20 [c011f2ae] __do_softirq+0x2e/0xa0 [c011f346] do_softirq+0x26/0x30 [c010572e] do_IRQ+0x1e/0x30 [c0103ada] common_interrupt+0x1a/0x20 handlers: [c8cddea0] (usb_hcd_irq+0x0/0x80 [usbcore]) [c8d00990] (yenta_interrupt+0x0/0x40 [yenta_socket]) [c8d00990] (yenta_interrupt+0x0/0x40 [yenta_socket]) Disabling IRQ #11 eth0: interrupt(s) dropped! ask more if you need, simple question: is that card a multifunction card with ethernet and a modem? i see from the dmesg that a ttyS2 pops up the same time when the 3c589 shows up. the problem compared to 2.4 is that the serial interface is assigned irq 11 when the network card is on irq 9. but on 2.4 both functions use irq 9 (which is correct). could you try the attached patch? if the patch doesn't help please give me the output of cbdump and cardctl ident when the card is inserted and all drivers are loaded. rgds -daniel - [PATCH] fix pcmcia_request_irq() for multifunction card multifunction cards need to have the same irq assigned to both functions. the code tries that but fails because ret is still set to CS_IN_USE which results in the function having the CB irq assigned. yenta_set_socket then just changes the irq routing to use the PCI interrupt but the first functions irq handler is registered on an ISA interrupt. boom. Signed-off-by: Daniel Ritz [EMAIL PROTECTED] diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c @@ -831,7 +831,8 @@ int pcmcia_request_irq(struct pcmcia_dev } } #endif - if (ret) { + /* only assign PCI irq if no IRQ already assigned */ + if (ret !s-irq.AssignedIRQ) { if (!s-pci_irq) return ret; irq = s-pci_irq; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#321419: linux-image-2.6.12-1-686: irq11 makes eth0 problems (Was: Re: Bug#303550: kernel-image-2.6.11-1-686: irq11 makes eth0 problems)
hi all, On Wed, Apr 13, 2005 at 11:46:53PM +0200, Daniel Ritz wrote: On Tuesday 12 April 2005 23:14, Philippe Bourcier wrote: hi all, On Tue, Apr 12, 2005 at 12:05:02AM +0200, maximilian attems wrote: received another bug report concerning TI irq routing. your patch don't seem to fix this PCI1250 rev2. you'll find the bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=303550 note that the previous bug report #270376 involved a PCI1220 (rev 02) thanks a lot again for your help. debian user seem to be a good user base for your patches. ;-) --- reply to previous bug report follows On Sun, 10 Apr 2005, Philippe Bourcier wrote: On Sat, Apr 09, 2005 at 09:52:53PM +0200, maximilian attems wrote: could you tested the kernel-image at: http://charm.itp.tuwien.ac.at/~mattems/ - the vga=791 boot parameter makes the system boot with a black screen; if i switch to a console, i don't get one (graphical broken screen); just with the above one: 2.6.11-ti-fix - the usb mouse doesn't work at all (console nor X); sorry i don't get you now, does this happen with any debian kernel or just with the one above? with 2.6.11-ti-fix and (sometimes...) with 2.6.11-1-686 (debian) Apr 12 21:40:05 ile kernel: Linux version 2.6.11-1-686 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Sun Apr 3 06:20:48 EDT 2005 Apr 12 21:40:05 ile kernel: Kernel command line: root=/dev/hda2 video=vesafb:ywrap,mtrr vga=791 noapic acpi=off ro Apr 12 21:40:38 ile kernel: [c013242a] __report_bad_irq+0x2a/0xa0 Apr 12 21:40:38 ile kernel: [c0131ed0] handle_IRQ_event+0x30/0x70 Apr 12 21:40:38 ile kernel: [c0132530] note_interrupt+0x70/0xb0 Apr 12 21:40:38 ile kernel: [c0131ff0] __do_IRQ+0xe0/0xf0 Apr 12 21:40:38 ile kernel: [c0105279] do_IRQ+0x19/0x30 Apr 12 21:40:38 ile kernel: [c010391a] common_interrupt+0x1a/0x20 Apr 12 21:40:38 ile kernel: [c011cb6e] __do_softirq+0x2e/0x90 Apr 12 21:40:38 ile kernel: [c011cbf6] do_softirq+0x26/0x30 Apr 12 21:40:38 ile kernel: [c010527e] do_IRQ+0x1e/0x30 Apr 12 21:40:38 ile kernel: [c010391a] common_interrupt+0x1a/0x20 Apr 12 21:40:38 ile kernel: eth0: interrupt(s) dropped! have you installed hotplug? if not is mousedev and psmouse loaded? yes: hotplug 0.0.20040329-22 Linux Hotplug Scripts can you send in the output of cat /proc/bus/input/devices Apr 10 14:34:55 ile kernel: Linux version 2.6.11-ti-fix ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Fri Apr 8 19:47:44 CEST 2005 .. Apr 10 14:34:55 ile kernel: Linux Kernel Card Services Apr 10 14:34:55 ile kernel: options: [pci] [cardbus] [pm] Apr 10 14:34:55 ile kernel: PCI: Found IRQ 11 for device :00:03.0 Apr 10 14:34:55 ile kernel: Yenta: CardBus bridge found at :00:03.0 [:] Apr 10 14:34:55 ile kernel: Yenta: Enabling burst memory read transactions Apr 10 14:34:55 ile kernel: Yenta: Using CSCINT to route CSC interrupts to PCI Apr 10 14:34:55 ile kernel: Yenta: Routing CardBus interrupts to PCI Apr 10 14:34:55 ile kernel: Yenta TI: socket :00:03.0, mfunc 0xcba97543, devctl 0x62 Apr 10 14:34:55 ile kernel: Yenta: ISA IRQ mask 0x0698, PCI irq 11 Apr 10 14:34:55 ile kernel: Socket status: 3010 Apr 10 14:34:55 ile kernel: PCI: Found IRQ 11 for device :00:03.1 Apr 10 14:34:55 ile kernel: Yenta: CardBus bridge found at :00:03.1 [:] Apr 10 14:34:55 ile kernel: Yenta: Using CSCINT to route CSC interrupts to PCI Apr 10 14:34:55 ile kernel: Yenta: Routing CardBus interrupts to PCI Apr 10 14:34:55 ile kernel: Yenta TI: socket :00:03.1, mfunc 0xcba97543, devctl 0x62 Apr 10 14:34:55 ile kernel: Yenta: ISA IRQ mask 0x0698, PCI irq 11 Apr 10 14:34:55 ile kernel: Socket status: 3010 .. Apr 10 14:35:16 ile kernel: eth0: 3Com 3c589, io 0x310, irq 9, hw_addr 00:00:86:52:4B:CB Apr 10 14:35:16 ile kernel: 8K FIFO split 5:3 Rx:Tx, auto xcvr Apr 10 14:35:16 ile kernel: program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO Apr 10 14:35:16 ile kernel: ttyS2 at I/O 0x3e8 (irq = 11) is a 16550A Apr 10 14:35:21 ile kernel: eth0: flipped to 10baseT Apr 10 14:35:23 ile xfs: ignoring font path element /usr/lib/X11/fonts/cyrillic/ (unreadable) Apr 10 14:35:23 ile xfs: ignoring font path element /usr/lib/X11/fonts/CID (unreadable) Apr 10 14:35:27 ile kernel: [c01297b5] __report_bad_irq+0x31/0x77 Apr 10 14:35:27 ile kernel: [c012985f] note_interrupt+0x4c/0x71 Apr 10 14:35:27 ile kernel: [c0129476] __do_IRQ+0x93/0xbd Apr 10 14:35:27 ile kernel: [c0104b35] do_IRQ+0x19/0x24 Apr 10 14:35:27 ile kernel: [c01038ba] common_interrupt+0x1a/0x20 Apr 10 14:35:27 ile kernel: [c01189a4] __do_softirq+0x2c/0x7d Apr 10 14:35:27
Bug#321419: linux-image-2.6.12-1-686: irq11 makes eth0 problems (Was: Re: Bug#303550: kernel-image-2.6.11-1-686: irq11 makes eth0 problems)
hi On Tuesday 16 August 2005 22.47, Philippe Bourcier wrote: I tried latest debian 2.6.12 kernel; see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321419 irq 11: nobody cared! [c01388fa] __report_bad_irq+0x2a/0xa0 [c013836d] handle_IRQ_event+0x3d/0x70 [c0138a12] note_interrupt+0x82/0xa0 [c0138490] __do_IRQ+0xf0/0x100 [c0105729] do_IRQ+0x19/0x30 [c0103ada] common_interrupt+0x1a/0x20 [c011f2ae] __do_softirq+0x2e/0xa0 [c011f346] do_softirq+0x26/0x30 [c010572e] do_IRQ+0x1e/0x30 [c0103ada] common_interrupt+0x1a/0x20 handlers: [c8cddea0] (usb_hcd_irq+0x0/0x80 [usbcore]) [c8d00990] (yenta_interrupt+0x0/0x40 [yenta_socket]) [c8d00990] (yenta_interrupt+0x0/0x40 [yenta_socket]) Disabling IRQ #11 eth0: interrupt(s) dropped! ask more if you need, simple question: is that card a multifunction card with ethernet and a modem? i see from the dmesg that a ttyS2 pops up the same time when the 3c589 shows up. the problem compared to 2.4 is that the serial interface is assigned irq 11 when the network card is on irq 9. but on 2.4 both functions use irq 9 (which is correct). could you try the attached patch? if the patch doesn't help please give me the output of cbdump and cardctl ident when the card is inserted and all drivers are loaded. rgds -daniel - [PATCH] fix pcmcia_request_irq() for multifunction card multifunction cards need to have the same irq assigned to both functions. the code tries that but fails because ret is still set to CS_IN_USE which results in the function having the CB irq assigned. yenta_set_socket then just changes the irq routing to use the PCI interrupt but the first functions irq handler is registered on an ISA interrupt. boom. Signed-off-by: Daniel Ritz [EMAIL PROTECTED] diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c @@ -831,7 +831,8 @@ int pcmcia_request_irq(struct pcmcia_dev } } #endif - if (ret) { + /* only assign PCI irq if no IRQ already assigned */ + if (ret !s-irq.AssignedIRQ) { if (!s-pci_irq) return ret; irq = s-pci_irq; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]