Subject: Strange errors from qec in Sparc Classic
To: None <port-sparc@netbsd.org>
From: Christian Dueholm Christensen <chch@freesbee.wheel.dk>
List: port-sparc
Date: 01/22/2002 13:29:42
I have an old Classic that I use as a ipf/ipnat box. The box used to run
OpenBSD 2.8, but I "upgraded" to NetBSD 1.5.2 this weekend and since then
I've been getting some strange errors on the external interface (qe0). I
use the builtin interface as the internal link.

The box is running fine, there are no lockups or performance problems but
I am getting a lot of these in /var/log/messages:

qe0: rint: no packets; rb index 43; status 0x80000800
qe0: rint: no packets; rb index 52; status 0x80000800
qe0: rint: no packets; rb index 66; status 0x80000800
qe0: rint: no packets; rb index 70; status 0x80000800

The "rb index" number varies from about 0 - 255 and the entries
appears several times a second when there is traffic on qe0.

This did not happen in OpenBSD so I doubt that the card it self is broken.
Any ideas as to what could be causing this?

dmesg follows below:

SPARCclassic, No Keyboard
ROM Rev. 2.9, 16 MB memory installed, Serial #153255.
Ethernet address 8:0:20:4:d1:a7, Host ID: 800256a7.


Rebooting with command:
Boot device: /iommu/sbus/espdma@4,8400000/esp@4,8800000/sd@3,0   File and
args:
>> NetBSD/sparc Secondary Boot, Revision 1.9
>> (toor@proxima, Tue Aug 21 23:18:13 CST 2001)
Booting netbsd
1122619+69052+163056 [68+81552+57520]=0x17cd34
OBP version 3, revision 2.9 (plugin rev 2)
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.5.2 (FW) #0: Sun Jan 20 16:21:26 CET 2002
    root@fw:/usr/src/sys/arch/sparc/compile/FW
total memory = 15952 KB
avail memory = 12952 KB
using 225 buffers containing 900 KB of memory
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@4,8400000/esp@4,8800000/sd@3,0
mainbus0 (root): SUNW,SPARCclassic
cpu0 at mainbus0: TMS390S10 @ 50 MHz, on-chip FPU
cpu0: physical 4K instruction (32 b/l), 2K data (16 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08 (eeprom)
timer0 at obio0 slot 0 offset 0xd00000 delay constant 23
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0
ms0 at zs1 channel 1
slavioconfig at obio0 slot 0 offset 0x800000 not configured
auxreg0 at obio0 slot 0 offset 0x900000
power0 at obio0 slot 0 offset 0x910000 level 2
fdc0 at obio0 slot 0 offset 0x400000 level 11 softpri 4: chip 82077
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
iommu0 at mainbus0 addr 0x10000000: version 0x1/0x4, page-size 4096, range 64MB
sbus0 at iommu0: clock = 25 MHz
dma0 at sbus0 slot 4 offset 0x8400000: rev 2
esp0 at dma0 slot 4 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
audio at sbus0 slot 4 offset 0x1300000 level 7 (ipl 13) not configured
bpp0 at sbus0 slot 4 offset 0xc800000 level 2 (ipl 3): rev 2
ledma0 at sbus0 slot 4 offset 0x8400010: rev 2
le0 at ledma0 slot 4 offset 0x8c00000 level 6: address 08:00:20:04:d1:a7
le0: 8 receive buffers, 2 transmit buffers
qec0 at sbus0 slot 1 offset 0x20000 level 4 (ipl 7): 128K memory
qe0 at qec0 slot 0 offset 0x0 rev 1 address 08:00:20:04:d1:a7
qe1 at qec0 slot 1 offset 0x0 rev 1 address 08:00:20:04:d1:a7
qe2 at qec0 slot 2 offset 0x0 rev 1 address 08:00:20:04:d1:a7
qe3 at qec0 slot 3 offset 0x0 rev 1 address 08:00:20:04:d1:a7
cgthree at sbus0 slot 3 offset 0x0 level 9 not configured
scsibus0: waiting 2 seconds for devices to settle...
probe(esp0:3:0): max sync rate 10.00MB/s
sd0 at scsibus0 target 3 lun 0: <IBM, DCAS-34330, S65A> SCSI2 0/direct fixed
sd0: 4134 MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x 8467200 sectors
root on sd0a dumps on sd0b
root file system type: ffs
swapctl: adding /dev/sd0b as swap device at priority 0
Automatic boot in progress: starting file system checks.
/dev/rsd0a: file system is clean; not checking
/dev/rsd0d: file system is clean; not checking
/dev/rsd0g: file system is clean; not checking
Setting tty flags.
Enabling ipfilter.
IP Filter: v3.4.9 initialized.  Default = pass all, Logging = enabled
Setting sysctl variables:
Starting network.
Hostname: fw
add net 127.0.0.0: gateway 127.0.0.1
Configuring network interfaces: le0 qe0NMI: system interrupts: 40000000<VME=0,SBUS=0,ME>
qe0: eint: qestat=8000000<CLOSS>
qe0: no carrier, link down?
.
add net default: gateway 194.239.211.97
Adding interface aliases:
Building databases...
Starting syslogd.
Checking for core dump...
savecore: no core dump
Starting ipmon.
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Installing NAT rules ... 0 entries flushed from NAT table
Setting securelevel: kern.securelevel: 0 -> 1
Creating runtime link editor directory cache.
Starting ntpd.
Updating motd.
starting local daemons:.
Starting sshd.
Starting cron.
Tue Jan 22 13:16:30 CET 2002
etBSD/sparc (fw) (console)

login: stray interrupt ipl 0x7 pc=0xf006e4b4 npc=0xf00f64a4 psr=414011c1<EF,S,PS>
qe0: rint: no packets; rb index 43; status 0x80000800
qe0: rint: no packets; rb index 52; status 0x80000800
qe0: rint: no packets; rb index 66; status 0x80000800
qe0: rint: no packets; rb index 70; status 0x80000800


-- 
Christian D. Christensen

"Do not meddle in the affairs of sysadmins,
for you are crunchy and taste good with ketchup."