Subject: "generic HBA error" and "adapter resource shortage"
To: None <port-alpha@netbsd.org>
From: Ken Raeburn <raeburn@raeburn.org>
List: port-alpha
Date: 07/27/2004 18:07:18
I'm playing with an XP1000 I've installed 2.0-branch on (around a week
ago); boot messages are below.  It's got 4G of swap, but so far none
is in use.

(It's the one I was asking about resetting the SRM console password
on.  I was able to install NetBSD on the disk it tries to boot from,
by using another XP1000.  Still looking for a way to reset the
password, so I can specify a kernel to boot, specify single-user mode,
boot from CD, etc.)

While doing some work on the machine -- mostly compiling, on local
disk -- I started getting some messages logged:

Jul 26 21:19:51 venix /netbsd: esiop0: unable to load cmd DMA map: 35sd0(esiop0:0:0:0): generic HBA error
Jul 26 21:19:55 venix /netbsd: esiop0: unable to load cmd DMA map: 35esiop0: unable to load cmd DMA map: 35sd0(esiop0:0:0:0): generic HBA error
Jul 26 21:19:56 venix /netbsd: esiop0: unable to load cmd DMA map: 35sd0(esiop0:0:0:0): generic HBA error
Jul 27 12:42:42 venix /netbsd: esiop0: unable to load cmd DMA map: 35sd0(esiop0:0:0:0): generic HBA error

According to errno.h, 35 is "resource temporarily unavailable".  More
recently, I'm just getting this message:

Jul 27 17:06:40 venix /netbsd: sd0(esiop0:0:0:0): adapter resource shortage

...rather a lot.  At times, more than one a second.  Right now, only a
few in the past hour.

Is this anything to worry about?
Should the kernel be slowing down its attempts to acquire whatever
resource this is?

I've also been seeing these, though I'm not so concerned about them:

Jul 27 17:00:14 venix ntpd[435]: frequency error 512 PPM exceeds tolerance 500 PPM
(Are alpha system clocks typically so poor?)

Jul 27 17:52:57 venix /netbsd: Warning: received processor correctable error.
(I'm curious what *kind* of correctable error... and I could only find
it documented in my Alpha reference manual in the section on the NT
PALcode support, I think it was.)

Ken

--- system dmesg.boot ---
consinit: not using prom console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    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 2.0_BETA (GENERIC) #0: Sun Jul 18 00:45:57 EDT 2004
        root@venix.mit.edu:/u1/obj/sys/arch/alpha/compile/GENERIC
COMPAQ Professional Workstation XP1000, 666MHz, s/n 4029DRSZ10
8192 byte page size, 1 processor.
total memory = 1280 MB
(1792 KB reserved for PROM, 1278 MB used by NetBSD)
avail memory = 1246 MB
at /usr/src/sys/kern/init_main.c:411
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264A-9
cpu0: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 4 Dchips, 1 memory bus of 32 bytes
tsc0: arrays present: 256MB, 1024MB, 0MB, 0MB, Dchip 0 rev 1
tsp0 at tsc0
pci0 at tsp0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
sio0 at pci0 dev 7 function 0: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
cypide0 at pci0 dev 7 function 1
cypide0: Cypress 82C693 IDE Controller (rev. 0x00)
cypide0: bus-master DMA support present
cypide0: primary channel wired to compatibility mode
cypide0: primary channel interrupting at isa irq 14
atabus0 at cypide0 channel 0
cypide1 at pci0 dev 7 function 2
cypide1: Cypress 82C693 IDE Controller (rev. 0x00)
cypide1: hardware does not support DMA
cypide1: primary channel wired to compatibility mode
cypide1: secondary channel interrupting at isa irq 15
atabus1 at cypide1 channel 0
ohci0 at pci0 dev 7 function 3: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
ohci0: interrupting at isa irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Contaq Microsys OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
esiop0 at pci0 dev 12 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
esiop0: using on-board RAM
esiop0: interrupting at dec 6600 irq 36
scsibus0 at esiop0: 16 targets, 8 luns per target
vga0 at pci0 dev 13 function 0: Texas Instruments TVP4020 Permedia 2 (rev. 0x01)
wsdisplay0 at vga0 (kbdmux ignored): console (80x25, vt100 emulation)
isa0 at sio0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux ignored): console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 (mux ignored)
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0: half duplex, mmap, independent
midi at sb0 not configured
opl at sb0 not configured
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
tsp1 at tsc0
pci1 at tsp1 bus 0
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
tlp0 at pci1 dev 3 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at dec 6600 irq 45
tlp0: DEC , Ethernet address 08:00:2b:87:0e:6d
tlp0: 10baseT, 10base2, 10base5, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp0 at pci1 dev 6 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at dec 6600 irq 47
scsibus1 at isp0: 16 targets, 8 luns per target
ppb0 at pci1 dev 8 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x03)
pci2 at ppb0 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
at /usr/src/sys/kern/init_main.c:416
Kernelized RAIDframe activated
stray isa irq 14
atapibus0 at atabus0: 2 targets
scsibus0: waiting 2 seconds for devices to settle...
cd0 at atapibus0 drive 1: <Compaq  CRD-8322B, 1999/02/11, 1.07> cdrom removable
scsibus1: waiting 2 seconds for devices to settle...
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(cypide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
sd0 at scsibus0 target 0 lun 0: <COMPAQ, BD009222C7, B016> disk fixed
sd0: 8678 MB, 5273 cyl, 20 head, 168 sec, 512 bytes/sect x 17773524 sectors
sd0: sync (25.00ns offset 31), 16-bit (80.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <DEC, RZ2ED-KS (C) DEC, 0306> disk fixed
sd1: 17365 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35565080 sectors
sd1: sync (25.00ns offset 15), 16-bit (80.000MB/s) transfers, tagged queueing
root on sd0a dumps on sd0b
root file system type: ffs