Bug(?) in 3c509.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Sorry I can't diagnose it myself but I'm a Mechanical Engineer with little
C experience. Here's my problem report, written according to the spec laid
out in "linux/REPORTING-BUGS":

[1.] Upon boot, the 2.4.1 kernel misconfigures one of two 3c509b NICs
installed in my computer as "BNC" rather than "10baseT".

[2.] I've got two NICs, both of which are 3c509b, both of which are set to
specific IRQ/IO and have PnP disabled. The first NIC is at IRQ11/0x250,
while the second resides at IRQ5/0x260. The 2.2.18 kernel correctly
identifies both as 10baseT; however, the 2.4.1 kernel identifies the
second as "BNC". It doesn't function correctly, I believe as a result of
this misconfiguration. I've built a 2.4.1 version with -DEL3_DEBUG=9; the
dmesg below is from that kernel.

[3.] networking

[4.] 
Linux version 2.4.1 (hunterk@kokopelli) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Wed Feb 7 22:25:47 MST 2001

[5.] No 'oops'. Perhaps dmesg from 2.2.18, dmesg from 2.4.1 would be
useful...

2.2.18 dmesg - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Linux version 2.2.18 (hunterk@kokopelli) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #1 Thu Jan 18 09:29:52 MST 2001
Detected 233870 kHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 466.94 BogoMIPS
Memory: 128328k/131072k available (684k kernel code, 408k reserved, 1612k data, 40k init)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Dentry hash table entries: 16384 (order 5, 128k)
Buffer cache hash table entries: 131072 (order 7, 512k)
Page cache hash table entries: 32768 (order 5, 128k)
CPU: Cyrix M II 3.5x Core/Bus Clock stepping 08
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfb530
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: 00:38 [1106/0586]: Work around ISA DMA hangs (00)
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 131072 bhash 65536)
Initializing RT netlink socket
Starting kswapd v 1.5 
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x6000-0x6007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x6008-0x600f, BIOS settings: hdc:pio, hdd:pio
hda: WDC AC21600H, ATA DISK drive
hdb: ST33221A, ATA DISK drive
hdc: WDC AC24300L, ATA DISK drive
hdd: WDC AC36400L, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: WDC AC21600H, 1549MB w/128kB Cache, CHS=787/64/63
hdb: ST33221A, 3079MB w/128kB Cache, CHS=782/128/63
hdc: WDC AC24300L, 4112MB w/256kB Cache, CHS=8912/15/63
hdd: WDC AC36400L, 6149MB w/256kB Cache, CHS=13328/15/63
eth0: 3c509 at 0x250 tag 1, 10baseT port, address  00 10 4b 02 fe 5f, IRQ 11.
3c509.c:1.16 (2.2) 2/3/98 becker@cesdis.gsfc.nasa.gov.
eth1: 3c509 at 0x260 tag 2, 10baseT port, address  00 10 4b 02 fe 79, IRQ 5.
3c509.c:1.16 (2.2) 2/3/98 becker@cesdis.gsfc.nasa.gov.
Partition check:
 hda: hda1 hda2 < hda5 >
 hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 hdb7 >
 hdc: [PTBL] [1044/128/63] hdc1
 hdd: [PTBL] [784/255/63] hdd1
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 40k freed
Adding Swap: 133048k swap-space (priority -1)
Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996
SB 4.11 detected OK (220)
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996
eth1: Setting Rx mode to 1 addresses.

2.4.1 dmesg - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Linux version 2.4.1 (hunterk@kokopelli) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Wed Feb 7 22:25:47 MST 2001
BIOS-provided physical RAM map:
 BIOS-e820: 000000000009fc00 @ 0000000000000000 (usable)
 BIOS-e820: 0000000000000400 @ 000000000009fc00 (usable)
 BIOS-e820: 0000000000010000 @ 00000000000f0000 (reserved)
 BIOS-e820: 0000000000010000 @ 00000000ffff0000 (reserved)
 BIOS-e820: 0000000007f00000 @ 0000000000100000 (usable)
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=Linux-2.4 ro root=341 ether=0,0,eth1
Initializing CPU#0
Detected 233.872 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 466.94 BogoMIPS
Memory: 127028k/131072k available (726k kernel code, 3656k reserved, 235k data, 176k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
CPU: Before vendor init, caps: 0080a135 00000000 00000000, vendor = 1
CPU: After vendor init, caps: 0080a135 00000000 00000000 00000004
CPU: After generic, caps: 0080a135 00000000 00000000 00000004
CPU: Common caps: 0080a135 00000000 00000000 00000004
CPU: Cyrix M II 3.5x Core/Bus Clock stepping 08
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.37 (20001109) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Cyrix ARR
PCI: PCI BIOS revision 2.10 entry at 0xfb530, last bus=0
PCI: Using configuration type 1
PCI: Probing PCI hardware
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
block: queued sectors max/low 84365kB/28121kB, 256 slots per queue
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: chipset revision 2
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c586 IDE MWDMA16 controller on pci0:7.1
    ide0: BM-DMA at 0x6000-0x6007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x6008-0x600f, BIOS settings: hdc:pio, hdd:pio
hda: WDC AC21600H, ATA DISK drive
hdb: ST33221A, ATA DISK drive
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hdc: WDC AC24300L, ATA DISK drive
hdd: WDC AC36400L, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 3173184 sectors (1625 MB) w/128KiB Cache, CHS=787/64/63
hdb: 6306048 sectors (3229 MB) w/128KiB Cache, CHS=782/128/63
hdc: 8421840 sectors (4312 MB) w/256KiB Cache, CHS=8912/15/63
hdd: 12594960 sectors (6449 MB) w/256KiB Cache, CHS=13328/15/63
Partition check:
 hda: hda1 hda2 < hda5 >
 hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 hdb7 >
 hdc: [PTBL] [1044/128/63] hdc1
 hdd: [PTBL] [784/255/63] hdd1
  3c509 EEPROM word 7 0x6d50.
  3c509 EEPROM word 0 0x0010.
  3c509 EEPROM word 1 0x4b02.
  3c509 EEPROM word 2 0xfe5f.
  3c509 EEPROM word 8 0x0005.
  3c509 EEPROM word 9 0xb000.
eth0: 3c509 at 0x250, 10baseT port, address  00 10 4b 02 fe 5f, IRQ 11.
3c509.c:1.16 (2.2) 2/3/98 becker@cesdis.gsfc.nasa.gov.
  3c509 EEPROM word 7 0x6d50.
  3c509 EEPROM word 0 0x0010.
  3c509 EEPROM word 1 0x4b02.
  3c509 EEPROM word 2 0xfe79.
  3c509 EEPROM word 8 0x0006.
  3c509 EEPROM word 9 0x5000.
eth1: 3c509 at 0x260, BNC port, address  00 10 4b 02 fe 79, IRQ 5.
3c509.c:1.16 (2.2) 2/3/98 becker@cesdis.gsfc.nasa.gov.
Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 176k freed
Adding Swap: 133048k swap-space (priority -1)
isapnp: Scanning for Pnp cards...
isapnp: No Plug & Play device found
Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996
sb: No ISAPnP cards found, trying standard ones...
SB 4.11 detected OK (220)
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996

[6.] 3c509 support built into kernel. lilo.conf contains line

append="ether=0,0,eth1"

...I'm not sure what else to put... The error occurs at boot and does not
involve the running of shell scripts/programs.

[7.1] ver_linux
Linux kokopelli 2.4.1 #1 Wed Feb 7 22:25:47 MST 2001 i686 unknown
Kernel modules         2.4.0
Gnu C                  egcs-2.91.66
Gnu Make               3.77
Binutils               2.9.5.0.22
Linux C Library        2.1.2
Dynamic linker         ldd (GNU libc) 2.1.2
Procps                 2.0.4
Mount                  2.10r
Net-tools              1.53
Console-tools          1999.03.02
Sh-utils               2.0
Modules Loaded         ipt_MASQUERADE iptable_nat ip_conntrack ip_tables opl3 sb sb_lib uart401 sound soundcore isa-pnp

[7.2] /proc/cpuinfo
processor	: 0
vendor_id	: CyrixInstead
cpu family	: 6
model		: 2
model name	: M II 3.5x Core/Bus Clock
stepping	: 8
cpu MHz		: 233.872
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu de tsc msr cx8 pge cmov mmx cyrix_arr
bogomips	: 466.94

(not overclocked)

[7.3] /proc/modules
ipt_MASQUERADE          1248   1 (autoclean)
iptable_nat            12800   0 [ipt_MASQUERADE]
ip_conntrack           12800   1 [ipt_MASQUERADE iptable_nat]
ip_tables              10560   4 [ipt_MASQUERADE iptable_nat]
opl3                   11824   0 (autoclean) (unused)
sb                      6672   0 (autoclean)
sb_lib                 34304   0 (autoclean) [sb]
uart401                 6384   0 (autoclean) [sb_lib]
sound                  56752   0 (autoclean) [opl3 sb_lib uart401]
soundcore               3664   5 (autoclean) [sb_lib sound]
isa-pnp                28272   0 (autoclean) [sb]

[7.4] /proc/ioports, /proc/iomem
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0220-022f : soundblaster
0250-025f : 3c509
0260-026f : 3c509
02f8-02ff : serial(auto)
0330-0333 : MPU-401 UART
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
6000-600f : VIA Technologies, Inc. Bus Master IDE
  6000-6007 : ide0
  6008-600f : ide1
00000000-0009fbff : System RAM
0009fc00-0009ffff : System RAM
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000f0000-000fffff : System ROM
00100000-07ffffff : System RAM
  00100000-001b5b4d : Kernel code
  001b5b4e-001f081b : Kernel data
e0000000-e07fffff : Matrox Graphics, Inc. MGA 1064SG [Mystique]
e0800000-e0ffffff : Matrox Graphics, Inc. MGA 1064SG [Mystique]
e1000000-e1003fff : Matrox Graphics, Inc. MGA 1064SG [Mystique]
e1004000-e1005fff : VIA Technologies, Inc. Bus Master IDE
ffff0000-ffffffff : reserved

[7.5] PCI info...

00:00.0 Host bridge: VIA Technologies, Inc. VT82C585VP [Apollo VP1/VPX] (rev 10)
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR+
	Latency: 32 set

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C586 ISA [Apollo VP] (rev 02)
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 0 set

00:07.1 IDE interface: VIA Technologies, Inc. VT82C586 IDE [Apollo] (rev 02) (prog-if 8a)
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 32 set
	Region 4: I/O ports at 6000
	Region 5: Memory at e1004000 (32-bit, non-prefetchable)

00:0b.0 VGA compatible controller: Matrox Graphics, Inc. MGA 1064SG [Mystique] (rev 03)
	Subsystem: Unknown device 102b:051a
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop+ ParErr- Stepping+ SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 0
	Region 0: Memory at e0000000 (32-bit, prefetchable)
	Region 1: Memory at e1000000 (32-bit, non-prefetchable)
	Region 2: Memory at e0800000 (32-bit, non-prefetchable)

[7.6] No SCSI

Thanks and good luck.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux