lkml.org 
[lkml]   [1998]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: enable_ioapic_irq broken in arch/i386/kernel/irq.c
Date
On Mon, 27 Apr 1998 18:51:19 -0700 (PDT), you wrote:

>
>Hi,
>
>could everyone involved with this discussion please check out:
>
> ftp://ftp.kernel.org/pub/linux/kernel/testing/
> pre-patch-2.1.99-1.gz
>
>which is a cleanup of my previous patches wrt irq handling, and also fixes
>a real bug (we used to ACK the io-apic outside the irq-controller lock,
>which meant that the ack's we did and "ipi_pending[]" might have gotten
>out of sync - which could certainly have resulted in bad behaviour).
>
>This also re-enables the code that replays interrupts in enable_irq(),
>because it should be ok now that the rest of the code is cleaned up.
>People that had the earlier problem with locking up with floppies, please
>test: if this re-introduces the lockup, please just #if 0 out all the code
>inside trigger_pending_irqs(), and send me a note telling me that that
>code still doesn't work.
>

No good.

System boots fine, but networking via PCI NE2000 dies after transferring a few
100k of data. Can't ping/telnet/etc to/from the box.

eth0 Link encap:Ethernet HWaddr 00:00:E8:D6:D1:CC
inet addr:203.11.219.1 Bcast:203.11.219.63 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1655 errors:0 dropped:0 overruns:0
TX packets:0 errors:58785 dropped:880 overruns:6
Interrupt:17 Base address:0xdf40

Steve.


mptable output

>
>============================================================================
>===
>
>MPTable, version 2.0.12
>
>----------------------------------------------------------------------------
>---
>
>MP Floating Pointer Structure:
>
> location: BIOS
> physical address: 0x000fb040
> signature: '_MP_'
> length: 16 bytes
> version: 1.1
> checksum: 0xed
> mode: Virtual Wire
>
>----------------------------------------------------------------------------
>---
>
>MP Config Table Header:
>
> physical address: 0x000f5750
> signature: 'PCMP'
> base table length: 276
> version: 1.1
> checksum: 0x09
> OEM ID: ''
> Product ID: ''
> OEM table pointer: 0x00000000
> OEM table size: 0
> entry count: 26
> local APIC address: 0xfee00000
> extended table length: 0
> extended table checksum: 0
>
>----------------------------------------------------------------------------
>---
>
>MP Config Base Table Entries:
>
>--
>Processors: APIC ID Version State Family Model Step Flags
> 1 0x11 BSP, usable 6 1 9 0xfbff
> 0 0x11 AP, usable 6 1 9 0xfbff
>--
>Bus: Bus ID Type
> 0 PCI
> 1 ISA
>--
>I/O APICs: APIC ID Version State Address
> 2 0x11 usable 0xfec00000
>--
>I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID I
>NT#
> ExtINT conforms conforms 1 0 2 0
> INT conforms conforms 1 1 2 1
> INT conforms conforms 1 0 2 2
> INT conforms conforms 1 3 2 3
> INT conforms conforms 1 4 2 4
> INT conforms conforms 1 5 2 5
> INT conforms conforms 1 6 2 6
> INT conforms conforms 1 7 2 7
> INT conforms conforms 1 8 2 8
> INT conforms conforms 1 9 2 9
> INT conforms conforms 1 10 2 10
> INT conforms conforms 1 11 2 11
> INT conforms conforms 1 12 2 12
> INT conforms conforms 1 13 2 13
> INT conforms conforms 1 14 2 14
> INT conforms conforms 1 15 2 15
> INT active-lo level 0 9:A 2 16
> INT active-lo level 0 10:A 2 17
> SMI conforms conforms 1 0 2 23
>--
>Local Ints: Type Polarity Trigger Bus ID IRQ APIC IDtINT#
> ExtINT conforms conforms 0 0:A 255 0
> NMI conforms conforms 0 0:A 255 1
>
>----------------------------------------------------------------------------
>---
>
>dmesg output:
>
>1 89
> 08 0FF 0F 0 0 0 0 0 1 1 91
> 09 0FF 0F 0 0 0 0 0 1 1 99
> 0a 0FF 0F 0 0 0 0 0 1 1 A1
> 0b 0FF 0F 0 0 0 0 0 1 1 A9
> 0c 0FF 0F 0 0 0 0 0 1 1 B1
> 0d 000 00 1 0 0 0 0 0 0 00
> 0e 0FF 0F 0 0 0 0 0 1 1 C1
> 0f 0FF 0F 0 0 0 0 0 1 1 C9
> 10 0FF 0F 0 1 0 1 0 1 1 D1
> 11 0FF 0F 0 1 0 1 0 1 1 D9
> 12 000 00 1 0 0 0 0 0 0 00
> 13 000 00 1 0 0 0 0 0 0 00
> 14 000 00 1 0 0 0 0 0 0 00
> 15 000 00 1 0 0 0 0 0 0 00
> 16 000 00 1 0 0 0 0 0 0 00
> 17 000 00 1 0 0 0 0 0 0 00
>.................................... done.
>PCI: Using configuration type 1
>PCI: Probing PCI hardware.
>PCI->APIC IRQ transform: (B0,I9,P0) -> 16
>PCI->APIC IRQ transform: (B0,I10,P0) -> 17
>Starting kswapd v 1.5
>parport0: PC-style at 0x378, irq 7 [SPP,ECP,ECPPS2]
>Serial driver version 4.25 with enabled
>ttyS00 at 0x03f8 (irq = 4) is a 16550A
>ttyS01 at 0x02f8 (irq = 3) is a 16550A
>ttyS02 at 0x03e8 (irq = 0) is a 16550A
>lp0: using parport0 (interrupt-driven).
>PS/2 auxiliary pointing device detected -- driver installed.
>Software Watchdog Timer: 0.05, timer margin: 60 sec
>APM disabled: APM is not SMP safe.
>PIIX3: IDE controller on PCI bus 00 dev 39
>PIIX3: not 100% native mode: will probe irqs later
> ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA
> ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
>hda: QUANTUM FIREBALL ST6.4A, ATA DISK drive
>hdb: QUANTUM FIREBALL ST6.4A, ATA DISK drive
>hdc: HP CD-Writer+ 7100, ATAPI CDROM drive
>hdd: , ATAPI CDROM drive
>ide2: ports already in use, skipping probe
>ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
>ide1 at 0x170-0x177,0x376 on irq 15
>hda: QUANTUM FIREBALL ST6.4A, 6149MB w/81kB Cache, CHS=784/255/63, DMA
>hdb: QUANTUM FIREBALL ST6.4A, 6149MB w/81kB Cache, CHS=784/255/63, DMA
>hdc: ATAPI 6X CDROM CD-R/RW drive, 768kB Cache
>Uniform CD-ROM driver Revision: 2.12
>hdd: ATAPI 20X CDROM drive, 120kB Cache
>Floppy drive(s): fd0 is 1.44M
>FDC 0 is a post-1991 82077
>aic7xxx: Warning - detected auto-termination on controller:
>aic7xxx: <Adaptec AHA-2940A Ultra SCSI host adapter> at PCI 9/0
>aic7xxx: Please verify driver detected settings are correct.
>aic7xxx: If not, then please properly set the device termination
>aic7xxx: in the Adaptec SCSI BIOS by hitting CTRL-A when prompted
>aic7xxx: during machine bootup.
>aic7xxx: Cables present (Int-50 NO, Ext-50 YES)
>aic7xxx: Termination Enabled
>(scsi0) <Adaptec AHA-2940A Ultra SCSI host adapter> found at PCI 9/0
>(scsi0) Narrow Channel, SCSI ID=7, 3/255 SCBs
>(scsi0) BIOS disabled, IO Port 0xdc00, IRQ 16
>(scsi0) IO Memory at 0xeefef000, MMAP Memory at 0xc5800000
>(scsi0) Resetting channel
>(scsi0) Downloading sequencer code... 413 instructions downloaded
>scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.0.13/3.2.4
> <Adaptec AHA-2940A Ultra SCSI host adapter>
>scsi : 1 host.
>(scsi0:0:-1:-1) Scanning channel for devices.
>scsi : detected total.
>PPP: version 2.3.3 (demand dialling)
>TCP compression code copyright 1989 Regents of the University of California
>PPP line discipline registered.
>SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
>ne.c: PCI BIOS reports Realtek 8029 at i/o 0xdf40, irq 17.
>ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)
>NE*000 ethercard probe at 0xdf40: 00 00 e8 d6 d1 cc
>eth0: NE2000 found at 0xdf40, using IRQ 17.
>Partition check:
> hda: hda1 hda2 < hda5 hda6 hda7 hda8 >
> hdb: hdb1
>NTFS version 980101
>VFS: Mounted root (ext2 filesystem) readonly.
>Freeing unused kernel memory: 60k freed
>Adding Swap: 128484k swap-space (priority -1)
>
>
>---------------
>scanpci output:
>
>PCI says configuration type 1
>
>PCI probing configuration type 1
>Probing for devices on PCI bus 0:
>
>
>pci bus 0x0 cardnum 0x00 function 0x0000: vendor 0x8086 device 0x1237
> Intel Device unknown
>
>pci bus 0x0 cardnum 0x07 function 0x0000: vendor 0x8086 device 0x7000
> Intel 82371 pci-isa bridge
>
>pci bus 0x0 cardnum 0x07 function 0x0001: vendor 0x8086 device 0x7010
> Intel 82371 bus-master IDE controller
>
>pci bus 0x0 cardnum 0x09 function 0x0000: vendor 0x9004 device 0x6178
> Adaptec Device unknown
>
>pci bus 0x0 cardnum 0x0a function 0x0000: vendor 0x10ec device 0x8029
> Realtek 8029
>
>pci bus 0x0 cardnum 0x0b function 0x0000: vendor 0x1142 device 0x643d
> Alliance Device unknown
>
>
>-----------------
>/proc/pci output:
>
>PCI devices found:
> Bus 0, device 0, function 0:
> Host bridge: Intel 82441FX Natoma (rev 2).
> Medium devsel. Fast back-to-back capable. Master Capable. Latency=32.
> Bus 0, device 7, function 0:
> ISA bridge: Intel 82371SB PIIX3 ISA (rev 1).
> Medium devsel. Fast back-to-back capable. Master Capable. No bursts.
> Bus 0, device 7, function 1:
> IDE interface: Intel 82371SB PIIX3 IDE (rev 0).
> Medium devsel. Fast back-to-back capable. Master Capable. Latency=32.
> I/O at 0xffa0 [0xffa1].
> Bus 0, device 9, function 0:
> SCSI storage controller: Adaptec AIC-7861 (rev 1).
> Medium devsel. Fast back-to-back capable. IRQ 10. Master Capable. Latency=32. Min Gnt=4.Max Lat=4.
> I/O at 0xdc00 [0xdc01].
> Non-prefetchable 32 bit memory at 0xeefef000 [0xeefef000].
> Bus 0, device 10, function 0:
> Ethernet controller: Realtek 8029 (rev 0).
> Medium devsel. IRQ 11.
> I/O at 0xdf40 [0xdf41].
> Bus 0, device 11, function 0:
> VGA compatible controller: Alliance AT3D (rev 2).
> Slow devsel.
> Non-prefetchable 32 bit memory at 0xef000000 [0xef000000].
> I/O at 0xdfa0 [0xdfa1].
>
>
>------------------------
>/proc/interrupts output:
>
> CPU0 CPU1
> 0: 4214 5520 IO-APIC timer
> 1: 73 197 IO-APIC keyboard
> 2: 0 0 XT-PIC cascade
> 7: 0 3 IO-APIC parport0
> 12: 244 40 IO-APIC PS/2 Mouse
> 13: 4 0 XT-PIC fpu
> 14: 1906 1035 IO-APIC ide0
> 15: 1 7 IO-APIC ide1
> 16: 21 21 IO-APIC aic7xxx
> 17: 151 150 IO-APIC NE2000
>NMI: 0
>IPI: 0
>
>============================================================================
>===


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.053 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site