Subject: Re: "generic HBA error" on 1.6_BETA4
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Johnny Lam <jlam@jgrind.org>
List: netbsd-users
Date: 07/26/2002 13:19:22
--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Jul 26, 2002 at 08:28:49PM +0200, Manuel Bouyer wrote:
> 
> It seems the only place this can happen in the aic7xxx driver without
> additionnal kernel messages is in aic7xxx.c:ahc_handle_seqint(), line 1777:
>                 if ((scb->flags & SCB_SENSE) != 0) {
>                         /*
>                          * Clear the SCB_SENSE Flag and have
>                          * the sequencer do a normal command
>                          * complete.
>                          */
>                         scb->flags &= ~SCB_SENSE;
>                         ahcsetccbstatus(xs, XS_DRIVER_STUFFUP);
>                         break;
>                 }
> 
> Can you add a printf() here to make sure it comes from here ?
> If it's not there is from scsipi_base.c. Please add printfs here too, so that
> we know from where it comes (XS_DRIVER_STUFFUP is only used in 2 places).

The errors do indeed come from here.  I've attached a full dmesg from a
1.6_BETA4 kernel built from sources from a few days ago.

	Thanks,

	-- Johnny Lam <jlam@jgrind.org>

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.pe1550"

NetBSD 1.6_BETA4 (FLATLAND) #0: Fri Jul 26 16:00:53 EDT 2002
    jlam@blossom.wlam.net:/usr/obj/sys/arch/i386/compile/FLATLAND
cpu0: Intel Pentium III (Coppermine) (686-class), 993.38 MHz
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 2-way
cpu0: L2 cache 256 KB 32b/line 8-way
cpu0: features 387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 387fbff<PGE,MCA,CMOV,FGPAT,PSE36,PN,MMX>
cpu0: features 387fbff<FXSR,SSE>
cpu0: serial number 0000-0686-0001-6D61-0500-2A34
total memory = 511 MB
avail memory = 470 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xffe90
PCI BIOS rev. 2.1 found at 0xfcb7e
PCI IRQ Routing Table rev. 1.0 found at 0xfc730, size 128 bytes (6 entries)
PCI Interrupt Router at 000:15:0 (ServerWorks OSB4 SouthBridge)
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: ServerWorks CNB20HE Host (rev. 0x23)
pci1 at pchb0 bus 1
pci1: no spaces enabled!
pchb1 at pci0 dev 0 function 1
pchb1: ServerWorks CNB20HE Host (rev. 0x01)
pchb2 at pci0 dev 0 function 2
pchb2: ServerWorks I/O Bridge (rev. 0x01)
pci2 at pchb2 bus 1
pci2: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb3 at pci0 dev 0 function 3
pchb3: ServerWorks I/O Bridge (rev. 0x01)
pci3 at pchb3 bus 2
pci3: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ahc0 at pci3 dev 5 function 0
ahc0: interrupting at irq 5
ahc0: aic7899 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci3 dev 5 function 1
ahc1: interrupting at irq 3
ahc1: aic7899 Wide Channel B, SCSI Id=7, 16/255 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
fxp0 at pci0 dev 1 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:06:5b:19:f5:ef
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1 at pci0 dev 2 function 0: i82559 Ethernet, rev 8
fxp1: interrupting at irq 10
fxp1: Ethernet address 00:06:5b:19:f5:f0
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga0 at pci0 dev 3 function 0: ATI Technologies Rage XL (rev. 0x27)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 15 function 0
pcib0: ServerWorks OSB4 SouthBridge (rev. 0x50)
pciide0 at pci0 dev 15 function 1: ServerWorks OSB4 IDE Controller (rev. 0x00)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 0: <SAMSUNG CD-ROM SN-124, , q009> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel interrupting at irq 15
ohci0 at pci0 dev 15 function 2: ServerWorks OSB4/CSB5 USB (rev. 0x04)
ohci0: interrupting at irq 7
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask e3ed netmask efed ttymask ffef
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST318404LC, 0005> SCSI3 0/direct fixed
sd0: 17366 MB, 14384 cyl, 6 head, 412 sec, 512 bytes/sect x 35566478 sectors
ahc0: ahc_handle_seqint() sets XS_DRIVER_STUFFUPprobe(ahc0:0:0:1): generic HBA error
ahc0: ahc_handle_seqint() sets XS_DRIVER_STUFFUPprobe(ahc0:0:0:1): generic HBA error
sd0: sync (25.0ns offset 63), 16-bit (80.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <SEAGATE, ST318404LC, 0005> SCSI3 0/direct fixed
sd1: 17366 MB, 14384 cyl, 6 head, 412 sec, 512 bytes/sect x 35566478 sectors
ahc0: ahc_handle_seqint() sets XS_DRIVER_STUFFUPprobe(ahc0:0:1:1): generic HBA error
ahc0: ahc_handle_seqint() sets XS_DRIVER_STUFFUPprobe(ahc0:0:1:1): generic HBA error
sd1: sync (25.0ns offset 63), 16-bit (80.000MB/s) transfers, tagged queueing
sd2 at scsibus0 target 2 lun 0: <SEAGATE, ST318404LC, 0005> SCSI3 0/direct fixed
sd2: 17366 MB, 14384 cyl, 6 head, 412 sec, 512 bytes/sect x 35566478 sectors
ahc0: ahc_handle_seqint() sets XS_DRIVER_STUFFUPprobe(ahc0:0:2:1): generic HBA error
ahc0: ahc_handle_seqint() sets XS_DRIVER_STUFFUPprobe(ahc0:0:2:1): generic HBA error
sd2: sync (25.0ns offset 63), 16-bit (80.000MB/s) transfers, tagged queueing
ses0 at scsibus0 target 6 lun 0: <DELL, 1x3 U2W SCSI BP, 1.21> SCSI2 3/processor fixed
ses0: SAF-TE Compliant Device
ses0: async, 8-bit transfers
scsibus1: waiting 2 seconds for devices to settle...
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

--h31gzZEtNLTqOjlF--