Subject: ahd driver & "PCI error Interrupt"
To: None <port-i386@netbsd.org>
From: J.T. Conklin <jtc@acorntoolworks.com>
List: port-i386
Date: 06/05/2004 00:44:48
I installed a netbsd snapshot I built from the netbsd-2-0 branch last
week (with a MP kernel I built this morning) on a dual AMD machine we
had been running RedHat on for the last few months without problems.

The install went smoothly.  But over the 4 or 5 hours I spent building
packages, two or three "PCI error Interrupt" conditions were logged by
the kernel/driver.  It appeared to recover without incident, but I'm a
bit worried that it's going to self destruct in a spectacular fashion.

I've enclosed dmesg output that includes the initial boot up messages
and the error log.

    --jtc


NetBSD 2.0_BETA (GENERIC.MP) #0: Fri Jun  4 21:32:54 UTC 2004
	jtc@6gate:/usr/home/jtc/netbsd/NetBSD-2.0/obj/sys/arch/i386/compile/GENERIC.MP
total memory = 2047 MB
avail memory = 1996 MB
BIOS32 rev. 0 found at 0xfd6a0
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (TYAN     PAULANER    )
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: AMD Athlon MP 2600+ (686-class), 2000.20 MHz, id 0x6a0
cpu0: features c3cbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3cbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu0: features c3cbfbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 512 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 266 MHz
cpu0: 8 page colors
cpu1 at mainbus0: apid 0 (application processor)
cpu1: starting
cpu1: AMD Athlon MP 2600+ (686-class), 2000.07 MHz, id 0x6a0
cpu1: features c3cbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features c3cbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu1: features c3cbfbff<FXSR,SSE,3DNOW2,3DNOW>
cpu1: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu1: L2 cache 512 KB 64b/line 16-way
cpu1: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu1: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI   
mpbios: bus 3 is type ISA   
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
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: Advanced Micro Devices AMD762 NorthBridge (rev. 0x20)
agp0 at pchb0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Advanced Micro Devices AMD762 AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
pcib0 at pci0 dev 7 function 0
pcib0: Advanced Micro Devices AMD768 PCI to ISA/LPC Bridge (rev. 0x05)
viaide0 at pci0 dev 7 function 1
viaide0: Advanced Micro Devices AMD768 IDE Controller (rev. 0x04)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at viaide0 channel 1
Advanced Micro Devices AMD768 Power Management Controller (miscellaneous bridge, revision 0x03) at pci0 dev 7 function 3 not configured
ahd0 at pci0 dev 10 function 0
ahd0: interrupting at ioapic0 pin 16 (irq 11)
ahd0: aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs
scsibus0 at ahd0: 16 targets, 8 luns per target
ahd1 at pci0 dev 10 function 1
ahd1: interrupting at ioapic0 pin 17 (irq 5)
ahd1: aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs
scsibus1 at ahd1: 16 targets, 8 luns per target
wm0 at pci0 dev 11 function 0: Intel i82545EM 1000BASE-T Ethernet, rev. 1
wm0: interrupting at ioapic0 pin 19 (irq 10)
wm0: 64-bit 66MHz PCI bus
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:e0:81:28:0d:84
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb1 at pci0 dev 16 function 0: Advanced Micro Devices AMD768 PCI to PCI Bridge (rev. 0x05)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
vga1 at pci2 dev 7 function 0: ATI Technologies Rage XL (rev. 0x27)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
fxp0 at pci2 dev 8 function 0: i82550 Ethernet, rev 16
fxp0: interrupting at ioapic0 pin 18 (irq 9)
fxp0: Ethernet address 00:e0:81:28:0d:85
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b 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: 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
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
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
atapibus0 at atabus1: 2 targets
scsibus0: waiting 2 seconds for devices to settle...
cd0 at atapibus0 drive 0: <CDU5211, , YYS7> cdrom removable
scsibus1: waiting 2 seconds for devices to settle...
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
sd0 at scsibus0 target 0 lun 0: <FUJITSU, MAP3735NP, 0106> disk fixed
sd0: 70103 MB, 47996 cyl, 4 head, 747 sec, 512 bytes/sect x 143571316 sectors
sd0: sync (6.25ns offset 127), 16-bit (320.000MB/s) transfers, tagged queueing
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
cpu1: CPU 0 running
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)
ahd0: PCI error Interrupt
>>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<
ahd0: Dumping Card State at program address 0x23a Mode 0x0
Card was paused
HS_MAILBOX[0x0] INTCTL[0x80] SEQINTSTAT[0x0] SAVED_MODE[0x11] 
DFFSTAT[0x9] SCSISIGI[0x24] SCSIPHASE[0x1] SCSIBUS[0x0] 
LASTPHASE[0x1] SCSISEQ0[0x0] SCSISEQ1[0x12] SEQCTL0[0x0] 
SEQINTCTL[0x10] SEQ_FLAGS[0x0] SEQ_FLAGS2[0x0] SSTAT0[0x0] 
SSTAT1[0x19] SSTAT2[0x0] SSTAT3[0x80] PERRDIAG[0x0] 
SIMODE1[0xac] LQISTAT0[0x0] LQISTAT1[0x0] LQISTAT2[0x81] 
LQOSTAT0[0x0] LQOSTAT1[0x0] LQOSTAT2[0xe1] 

SCB Count = 32 CMDS_PENDING = 21 LASTSCB 0x19 CURRSCB 0x5 NEXTSCB 0xff00
qinstart = 0x4a4d qinfifonext = 0x4a4d

WAITING_TID_QUEUES:
Pending list:
  5 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 14 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
  0 FIFO_USE[0x1] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 25 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
  8 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 31 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 10 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
  3 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 12 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 29 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 17 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 27 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
  7 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 20 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
  4 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
  9 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 21 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 18 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 16 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
 11 FIFO_USE[0x0] SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
  1 FIFO_USE[0x0] 
SCB_CONTROL[0x60] SCB_SCSIID[0x7] 
Total 21
Kernel Free SCB list: 6 22 19 23 13 28 2 15 30 26 24 
Sequencer Complete DMA-inprog list: 
Sequencer Complete list: 
Sequencer DMA-Up and Complete list: 

ahd0: FIFO0 Active, LONGJMP == 0x239, SCB 0xe
SEQIMODE[0x3f] SEQINTSRC[0x40] DFCNTRL[0xc] DFSTATUS[0x89] 
SG_CACHE_SHADOW[0x13] SG_STATE[0x0] DFFSXFRCTL[0x0] 
SOFFCNT[0x3f] MDFFSTAT[0x16] 
SHADDR = 0x020e99000, SHCNT = 0x0 HADDR = 0x020e99000, HCNT = 0x0 
CCSGCTL[0x0] 
ahd0: FIFO1 Active, LONGJMP == 0x8251, SCB 0x8
SEQIMODE[0x3f] SEQINTSRC[0x10] DFCNTRL[0x4] DFSTATUS[0x89] 
SG_CACHE_SHADOW[0x2] SG_STATE[0x0] DFFSXFRCTL[0x0] 
SOFFCNT[0x3f] MDFFSTAT[0x2] 
SHADDR = 0x00, SHCNT = 0x0 HADDR = 0x00, HCNT = 0x0 
CCSGCTL[0x10] 
LQIN: 0x5 0x0 0x0 0x8 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x2 0x0 
ahd0: LQISTATE = 0x30, LQOSTATE = 0x0, OPTIONMODE = 0x52
ahd0: OS_SPACE_CNT = 0x20 MAXCMDCNT = 0x1
SIMODE0[0xc] 
ahd0: REG0 == 0xd860, SINDEX = 0x112, DINDEX = 0x102
ahd0: SCBPTR == 0xe, SCB_NEXT == 0xff00, SCB_NEXT2 == 0xff00
CDB 2a 0 6 80 10 6e
STACK: 0x24 0x13 0x0 0x0 0x0 0x0 0x0 0x0
>>>>>>>>>>>>>>>>>
ahd0: Address or Write Phase Parity Error Detected in DFF0.

-- 
J.T. Conklin