From jin@ncs.lbl.gov  Mon Jul 22 13:15:27 2002
Return-Path: <jin@ncs.lbl.gov>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 28EF037B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Jul 2002 13:15:27 -0700 (PDT)
Received: from ncs.lbl.gov (ncs.lbl.gov [131.243.2.30])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 482AB43E42
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Jul 2002 13:15:26 -0700 (PDT)
	(envelope-from jin@ncs.lbl.gov)
Received: from ncs.lbl.gov (localhost [127.0.0.1])
	by ncs.lbl.gov (8.12.3/8.12.3) with ESMTP id g6MKFPPw000356
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Jul 2002 13:15:25 -0700 (PDT)
	(envelope-from jin@ncs.lbl.gov)
Received: (from jin@localhost)
	by ncs.lbl.gov (8.12.3/8.12.3/Submit) id g6MKFPVW000355;
	Mon, 22 Jul 2002 13:15:25 -0700 (PDT)
Message-Id: <200207222015.g6MKFPVW000355@ncs.lbl.gov>
Date: Mon, 22 Jul 2002 13:15:25 -0700 (PDT)
From: Jin Guojun (DSD staff) <jin@ncs.lbl.gov>
Reply-To: j_guojun@lbl.gov
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: wierd kernel / sym(4) device driver bug
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40895
>Category:       kern
>Synopsis:       wierd kernel / device driver bug
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-scsi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 22 13:20:01 PDT 2002
>Closed-Date:    Thu Apr 14 20:03:50 UTC 2011
>Last-Modified:  Thu Apr 14 20:03:50 UTC 2011
>Originator:     Jin Guojun (DSD staff)
>Release:        FreeBSD 4.6-RELEASE i386
>Organization:
>Environment:


	FreeBSD 4.5 and 4.6-RELEASE
	Tekram DC-390U3W SCSI controller
	SysKonnect SK-9843 SX and SK-9844 GigE NIC
	various 64-bit PCI motherboards

>Description:
	(1) on Supermicro P4DPE motherboard
	boot system in normal case (no "-v"), sk0-2 are configured
	correctly. The DC-390U3W is not configured due to some CACHE
	error. See dmesg-#1.

	(2) On the same system, when try to boot system with "-v" to
	see more information, then sk device is not probed at all,
	and DC-390U3W had the same error.
	After system booted up, do "ifconfig sk0", SYM driver is loaded,
	then the sk driver. See dmesg-#2, which includes information of
	"ifconfig sk0" after system is up.

	Is this strange? Why SYM driver is invoked when probe sk device?
	and why "-v" prohibits to load sk driver?

	These boot messages contains a modified sym_hipd.c -- line 7053
	is commented out. Notice that this modification does NOT affect
	any behave above, but only makes sym driver going further to give
	more information.

        if (i>=SYM_SNOOP_TIMEOUT) {
                printf ("CACHE TEST FAILED: timeout.\n");
/*                return (0x20);	*/	/* Line 7053 */
        };


	(3) replace P4PDE motherboard with Tyan S2466 motherboard,
	and without SysKonnect NIC,
	boot process will hang on SCSI reset after SCSI is probed.

	It looks like the /sys/dev/sym driver does not handle the
	390U3 controller well. I would like to make this SCSI
	controller to work. Please let me know if anything I can
	probe further to provide information to fix the problem.

--------- dmesg_#1 ---

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.6-RELEASE #1: Mon Jul 22 12:17:20 PDT 2002
    root@scm.lbl.gov:/usr/src/sys/compile/MinMax
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium 4 (1996.60-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,<b28>,ACC>
real memory  = 1073217536 (1048064K bytes)
avail memory = 1040048128 (1015672K bytes)
Preloaded elf kernel "kernel" at 0xc0468000.
Preloaded elf module "if_sk.ko" at 0xc046809c.
md0: Malloc disk
Using $PIR table, 29 entries at 0xc00fddf0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pci0: <unknown card> (vendor=0x8086, dev=0x2541) at 0.1
pcib1: <PCI to PCI bridge (vendor=8086 device=2543)> at device 2.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <unknown card> (vendor=0x8086, dev=0x1461) at 28.0
pcib2: <PCI to PCI bridge (vendor=8086 device=1460)> at device 29.0 on pci1
pci2: <PCI bus> on pcib2
pci1: <unknown card> (vendor=0x8086, dev=0x1461) at 30.0
pcib3: <PCI to PCI bridge (vendor=8086 device=1460)> at device 31.0 on pci1
pci3: <PCI bus> on pcib3
pcib4: <PCI to PCI bridge (vendor=8086 device=2545)> at device 3.0 on pci0
pci4: <PCI bus> on pcib4
pci4: <unknown card> (vendor=0x8086, dev=0x1461) at 28.0
pcib5: <PCI to PCI bridge (vendor=8086 device=1460)> at device 29.0 on pci4
pci5: <PCI bus> on pcib5
sym0: <1010-33> port 0x3000-0x30ff mem 0xfc304000-0xfc305fff,0xfc308000-0xfc3083ff irq 11 at device 1.0 on pci5
sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
CACHE TEST FAILED: timeout.
CACHE TEST FAILED: script execution failed.
start=3e3ae4fc, pc=3e3ae504, end=3e3ae51c
sym0: CACHE INCORRECTLY CONFIGURED.
device_probe_and_attach: sym0 attach returned 6
sym0: <1010-33> port 0x3400-0x34ff mem 0xfc306000-0xfc307fff,0xfc308400-0xfc3087ff irq 11 at device 1.1 on pci5
sym0: Symbios NVRAM, ID 7, Fast-80, SE, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
CACHE TEST FAILED: timeout.
CACHE TEST FAILED: script execution failed.
start=3e3724fc, pc=3e372504, end=3e37251c
sym0: CACHE INCORRECTLY CONFIGURED.
device_probe_and_attach: sym0 attach returned 6
skc0: <SysKonnect Gigabit Ethernet> port 0x3800-0x38ff mem 0xfc300000-0xfc303fff irq 11 at device 3.0 on pci5
skc0: SysKonnect SK-NET Gigabit Ethernet Adapter SK-9844 SX dual link
sk0: <XaQti Corp. XMAC II> on skc0
sk0: Ethernet address: 00:00:5a:98:ea:24
miibus0: <MII bus> on sk0
xmphy0: <XaQti Corp. XMAC II gigabit interface> on miibus0
xmphy0:  1000baseSX, 1000baseSX-FDX, auto
sk1: <XaQti Corp. XMAC II> on skc0
sk1: Ethernet address: 00:00:5a:98:ea:25
miibus1: <MII bus> on sk1
xmphy1: <XaQti Corp. XMAC II gigabit interface> on miibus1
xmphy1:  1000baseSX, 1000baseSX-FDX, auto
pci4: <unknown card> (vendor=0x8086, dev=0x1461) at 30.0
pcib6: <PCI to PCI bridge (vendor=8086 device=1460)> at device 31.0 on pci4
pci6: <PCI bus> on pcib6
skc1: <SysKonnect Gigabit Ethernet> port 0x4000-0x40ff mem 0xfc400000-0xfc403fff irq 11 at device 1.0 on pci6
skc1: SysKonnect SK-NET Gigabit Ethernet Adapter SK-9843 SX
sk2: <XaQti Corp. XMAC II> on skc1
sk2: Ethernet address: 00:00:5a:98:4c:30
miibus2: <MII bus> on sk2
xmphy2: <XaQti Corp. XMAC II gigabit interface> on miibus2
xmphy2:  1000baseSX, 1000baseSX-FDX, auto
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x2000-0x201f irq 11 at device 29.0 on pci0
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 0x2020-0x203f irq 10 at device 29.1 on pci0
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <UHCI (generic) USB controller> port 0x2040-0x205f irq 5 at device 29.2 on pci0
uhci2: (New UHCI DeviceId=0x24878086)
usb2: <UHCI (generic) USB controller> on uhci2
usb2: USB revision 1.0
uhub2: (0x24878086) UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pcib7: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0
pci7: <PCI bus> on pcib7
pci7: <ATI Mach64-GR graphics accelerator> at 1.0 irq 11
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x5400-0x543f mem 0xfc520000-0xfc53ffff,0xfc501000-0xfc501fff irq 11 at device 2.0 on pci7
fxp0: Ethernet address 00:30:48:23:61:23
inphy0: <i82555 10/100 media interface> on miibus3
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI to ISA bridge (vendor=8086 device=2480)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 ATA100 controller> port 0x2060-0x206f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x8086, dev=0x2483) at 31.3 irq 0
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xc9000-0xccfff,0xcd000-0xcdfff,0xd8000-0xdbfff,0xdc000-0xdffff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 76319MB <WDC WD800JB-00CRA1> [155061/16/63] at ata0-master UDMA100
Mounting root from ufs:/dev/ad0s1a


--------- dmesg_#2 ---

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.6-RELEASE #0: Fri Jul 19 11:59:10 PDT 2002
    root@scm.lbl.gov:/usr/src/sys/compile/MinMax
Calibrating clock(s) ... TSC clock: 1996826452 Hz, i8254 clock: 1193322 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: Pentium 4 (1996.60-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,<b28>,ACC>
real memory  = 1073217536 (1048064K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009dfff, 643072 bytes (157 pages)
0x00485000 - 0x3feeffff, 1067888640 bytes (260715 pages)
0x3ff00000 - 0x3ff77fff, 491520 bytes (120 pages)
avail memory = 1040089088 (1015712K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00f66f0
bios32: Entry = 0xfd650 (c00fd650)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0x225
pnpbios: Found PnP BIOS data at 0xc00f6750
pnpbios: Entry = f0000:9236  Rev = 1.0
Other BIOS signatures found:
ACPI: 000f6720
md0: Malloc disk
Creating DISK md0
pci_open(1):	mode 1 addr port (0x0cf8) is 0x8000f904
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=80] is there (id=25408086)
Using $PIR table, 29 entries at 0xc00fddf0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
found->	vendor=0x8086, dev=0x2540, revid=0x02
	class=06-00-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
found->	vendor=0x8086, dev=0x2541, revid=0x02
	class=ff-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
found->	vendor=0x8086, dev=0x2543, revid=0x02
	class=06-04-00, hdrtype=0x01, mfdev=0
	subordinatebus=3 	secondarybus=1
found->	vendor=0x8086, dev=0x2545, revid=0x02
	class=06-04-00, hdrtype=0x01, mfdev=0
	subordinatebus=6 	secondarybus=4
found->	vendor=0x8086, dev=0x2482, revid=0x02
	class=0c-03-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[20]: type 1, range 32, base 00002000, size  5
found->	vendor=0x8086, dev=0x2484, revid=0x02
	class=0c-03-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=b, irq=10
	map[20]: type 1, range 32, base 00002020, size  5
found->	vendor=0x8086, dev=0x2487, revid=0x02
	class=0c-03-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=c, irq=5
	map[20]: type 1, range 32, base 00002040, size  5
found->	vendor=0x8086, dev=0x244e, revid=0x42
	class=06-04-00, hdrtype=0x01, mfdev=0
	subordinatebus=7 	secondarybus=7
found->	vendor=0x8086, dev=0x2480, revid=0x02
	class=06-01-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
found->	vendor=0x8086, dev=0x248b, revid=0x02
	class=01-01-8a, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=0
	map[10]: type 1, range 32, base 00000000, size  3
	map[14]: type 1, range 32, base 00000000, size  2
	map[18]: type 1, range 32, base 00000000, size  3
	map[1c]: type 1, range 32, base 00000000, size  2
	map[20]: type 1, range 32, base 00002060, size  4
found->	vendor=0x8086, dev=0x2483, revid=0x02
	class=0c-05-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=b, irq=0
	map[20]: type 1, range 32, base 00001100, size  5
pci0: <PCI bus> on pcib0
pci0: <unknown card> (vendor=0x8086, dev=0x2541) at 0.1
pcib1: <PCI to PCI bridge (vendor=8086 device=2543)> at device 2.0 on pci0
found->	vendor=0x8086, dev=0x1461, revid=0x03
	class=08-00-20, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[10]: type 1, range 32, base fc100000, size 12
found->	vendor=0x8086, dev=0x1460, revid=0x03
	class=06-04-00, hdrtype=0x01, mfdev=0
	subordinatebus=2 	secondarybus=2
found->	vendor=0x8086, dev=0x1461, revid=0x03
	class=08-00-20, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[10]: type 1, range 32, base fc101000, size 12
found->	vendor=0x8086, dev=0x1460, revid=0x03
	class=06-04-00, hdrtype=0x01, mfdev=0
	subordinatebus=3 	secondarybus=3
pci1: <PCI bus> on pcib1
pci1: <unknown card> (vendor=0x8086, dev=0x1461) at 28.0
pcib2: <PCI to PCI bridge (vendor=8086 device=1460)> at device 29.0 on pci1
pci2: <PCI bus> on pcib2
pci1: <unknown card> (vendor=0x8086, dev=0x1461) at 30.0
pcib3: <PCI to PCI bridge (vendor=8086 device=1460)> at device 31.0 on pci1
pci3: <PCI bus> on pcib3
pcib4: <PCI to PCI bridge (vendor=8086 device=2545)> at device 3.0 on pci0
found->	vendor=0x8086, dev=0x1461, revid=0x03
	class=08-00-20, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[10]: type 1, range 32, base fc200000, size 12
found->	vendor=0x8086, dev=0x1460, revid=0x03
	class=06-04-00, hdrtype=0x01, mfdev=0
	subordinatebus=5 	secondarybus=5
found->	vendor=0x8086, dev=0x1461, revid=0x03
	class=08-00-20, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[10]: type 1, range 32, base fc201000, size 12
found->	vendor=0x8086, dev=0x1460, revid=0x03
	class=06-04-00, hdrtype=0x01, mfdev=0
	subordinatebus=6 	secondarybus=6
pci4: <PCI bus> on pcib4
pci4: <unknown card> (vendor=0x8086, dev=0x1461) at 28.0
pcib5: <PCI to PCI bridge (vendor=8086 device=1460)> at device 29.0 on pci4
found->	vendor=0x1000, dev=0x0020, revid=0x01
	class=01-00-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base 00003000, size  8
	map[14]: type 1, range 64, base fc308000, size 10
	map[1c]: type 1, range 64, base fc304000, size 13
found->	vendor=0x1000, dev=0x0020, revid=0x01
	class=01-00-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base 00003400, size  8
	map[14]: type 1, range 64, base fc308400, size 10
	map[1c]: type 1, range 64, base fc306000, size 13
found->	vendor=0x1148, dev=0x4300, revid=0x12
	class=02-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base fc300000, size 14
	map[14]: type 1, range 32, base 00003800, size  8
pci5: <PCI bus> on pcib5
sym0: <1010-33> port 0x3000-0x30ff mem 0xfc304000-0xfc305fff,0xfc308000-0xfc3083ff irq 11 at device 1.0 on pci5
sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
sym0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 00/4e/a0/01/00/04
sym0: final   SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 00/4e/80/01/08/04
CACHE TEST FAILED: timeout.
sym0: CACHE INCORRECTLY CONFIGURED.
device_probe_and_attach: sym0 attach returned 6
sym0: <1010-33> port 0x3400-0x34ff mem 0xfc306000-0xfc307fff,0xfc308400-0xfc3087ff irq 11 at device 1.1 on pci5
sym0: Symbios NVRAM, ID 7, Fast-80, SE, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
sym0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 00/4e/a0/01/00/04
sym0: final   SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 00/4e/80/01/08/04
CACHE TEST FAILED: timeout.
sym0: CACHE INCORRECTLY CONFIGURED.
device_probe_and_attach: sym0 attach returned 6
pci5: <unknown card> (vendor=0x1148, dev=0x4300) at 3.0 irq 11
pci4: <unknown card> (vendor=0x8086, dev=0x1461) at 30.0
pcib6: <PCI to PCI bridge (vendor=8086 device=1460)> at device 31.0 on pci4
found->	vendor=0x1148, dev=0x4300, revid=0x11
	class=02-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base fc400000, size 14
	map[14]: type 1, range 32, base 00004000, size  8
pci6: <PCI bus> on pcib6
pci6: <unknown card> (vendor=0x1148, dev=0x4300) at 1.0 irq 11
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x2000-0x201f irq 11 at device 29.0 on pci0
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 0x2020-0x203f irq 10 at device 29.1 on pci0
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <UHCI (generic) USB controller> port 0x2040-0x205f irq 5 at device 29.2 on pci0
uhci2: (New UHCI DeviceId=0x24878086)
usb2: <UHCI (generic) USB controller> on uhci2
usb2: USB revision 1.0
uhub2: (0x24878086) UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pcib7: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0
found->	vendor=0x1002, dev=0x4752, revid=0x27
	class=03-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base fd000000, size 24
	map[14]: type 1, range 32, base 00005000, size  8
	map[18]: type 1, range 32, base fc500000, size 12
found->	vendor=0x8086, dev=0x1229, revid=0x0d
	class=02-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base fc501000, size 12
	map[14]: type 1, range 32, base 00005400, size  6
	map[18]: type 1, range 32, base fc520000, size 17
pci7: <PCI bus> on pcib7
pci7: <ATI Mach64-GR graphics accelerator> (vendor=0x1002, dev=0x4752) at 1.0 irq 11
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x5400-0x543f mem 0xfc520000-0xfc53ffff,0xfc501000-0xfc501fff irq 11 at device 2.0 on pci7
fxp0: using memory space register mapping
	using shared irq11.
fxp0: Ethernet address 00:30:48:23:61:23
fxp0: PCI IDs: 8086 1229 8086 1050 000d
fxp0: Dynamic Standby mode is disabled
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bpf: fxp0 attached
isab0: <PCI to ISA bridge (vendor=8086 device=2480)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 ATA100 controller> port 0x2060-0x206f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 31.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x2060
ata0: mask=03 ostat0=50 ostat2=00
ata0-master: ATAPI 00 00
ata0-slave: ATAPI 00 00
ata0: mask=03 stat0=50 stat1=00
ata0-master: ATA 01 a5
ata0: devices=01
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x2068
ata1: mask=03 ostat0=00 ostat2=00
ata1-master: ATAPI 00 00
ata1-slave: ATAPI 00 00
ata1: mask=03 stat0=00 stat1=00
ata1: devices=00
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x8086, dev=0x2483) at 31.3 irq 0
ata-: ata0 exists, using next available unit number
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xc9000-0xccfff,0xcd000-0xcdfff,0xd8000-0xdbfff,0xdc000-0xdffff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ata2 failed to probe at port 0x1f0 irq 14 on isa0
aha0: status reg test failed ff
aha0: status reg test failed ff
aha0: status reg test failed ff
aha0: status reg test failed ff
aha0: status reg test failed ff
aha0: status reg test failed ff
aha0 failed to probe at port 0x134-0x137 on isa0
aic0 failed to probe at port 0x140-0x15f on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0067
atkbd: keyboard ID 0x41ab (2)
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000
psm0: current command byte:0067
psm0: failed to reset the aux device.
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 03 70 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
pcic0 failed to probe at port 0x3e0 iomem 0xd0000 on isa0
pcic1: not probed (disabled)
sio0: irq maps: 0x41 0x51 0x41 0x41
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: irq maps: 0x41 0x49 0x41 0x41
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
ppc0: ECP SPP ECP+EPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
plip0: <PLIP network interface> on ppbus0
bpf: lp0 attached
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
cs0 failed to probe at port 0x300-0x31f on isa0
isa_probe_children: probing PnP devices
BIOS Geometries:
 0:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors
 1:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: lo0 attached
bpf: ppp0 attached
new masks: bio 68cc60, tty 63009a, net 67089a
bpf: sl0 attached
bpf: faith0 attached
ad0: success setting UDMA5 on Intel chip
Creating DISK ad0
ar: FreeBSD check1 failed
ad0: <WDC WD800JB-00CRA1/17.07W17> ATA-5 disk at ata0-master
ad0: 76319MB (156301488 sectors), 155061 C, 16 H, 63 S, 512 B
ad0: 16 secs/int, 1 depth queue, UDMA100
ad0: piomode=4 dmamode=2 udmamode=5 cblid=1
Mounting root from ufs:ad0s1a
ad0s1: type 0xa5, start 63, end = 12578894, size 12578832 : OK
ad0s2: type 0xa5, start 12578895, end = 156296384, size 143717490 : OK
start_init: trying /sbin/init

----- system is up without sk ----- then, try to load it
#ifconfig sk0
sym0: <1010-33> port 0x3000-0x30ff mem 0xfc304000-0xfc305fff,0xfc308000-0xfc3083ff irq 11 at device 1.0 on pci5
sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
sym0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 00/00/00/00/00/00
sym0: final   SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 00/4e/80/01/08/04
CACHE TEST FAILED: timeout.
sym0: CACHE INCORRECTLY CONFIGURED.
device_probe_and_attach: sym0 attach returned 6
sym0: <1010-33> port 0x3400-0x34ff mem 0xfc306000-0xfc307fff,0xfc308400-0xfc3087ff irq 11 at device 1.1 on pci5
sym0: Symbios NVRAM, ID 7, Fast-80, SE, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
sym0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 00/00/00/00/00/00
sym0: final   SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 00/4e/80/01/08/04
CACHE TEST FAILED: timeout.
sym0: CACHE INCORRECTLY CONFIGURED.
device_probe_and_attach: sym0 attach returned 6
skc0: <SysKonnect Gigabit Ethernet> port 0x3800-0x38ff mem 0xfc300000-0xfc303fff irq 11 at device 3.0 on pci5
skc0: SysKonnect SK-NET Gigabit Ethernet Adapter SK-9844 SX dual link
skc1: <SysKonnect Gigabit Ethernet> port 0x4000-0x40ff mem 0xfc400000-0xfc403fff irq 11 at device 1.0 on pci6
skc1: SysKonnect SK-NET Gigabit Ethernet Adapter SK-9843 SX
sk0: <XaQti Corp. XMAC II> on skc0
sk0: Ethernet address: 00:00:5a:98:ea:24
bpf: sk0 attached
sk1: <XaQti Corp. XMAC II> on skc0
sk1: Ethernet address: 00:00:5a:98:ea:25
bpf: sk1 attached
sk2: <XaQti Corp. XMAC II> on skc1
sk2: Ethernet address: 00:00:5a:98:4c:30
bpf: sk2 attached
miibus1: <MII bus> on sk0
xmphy0: <XaQti Corp. XMAC II gigabit interface> on miibus1
xmphy0:  1000baseSX, 1000baseSX-FDX, auto
miibus2: <MII bus> on sk1
xmphy1: <XaQti Corp. XMAC II gigabit interface> on miibus2
xmphy1:  1000baseSX, 1000baseSX-FDX, auto
miibus3: <MII bus> on sk2
xmphy2: <XaQti Corp. XMAC II gigabit interface> on miibus3
xmphy2:  1000baseSX, 1000baseSX-FDX, auto

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:

From: "Jin Guojun [NCS]" <j_guojun@lbl.gov>
To: "P. Jourdan" <pippo@videotron.ca>,
	FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: kern/40895: wierd kernel / device driver bug [was: Tekram DC390U3w]
Date: Sat, 27 Jul 2002 18:13:09 -0700

 The problem is driver related. Either the motherboard/DC-390u3w combination
 cause PCI configuration information changed, or the SYM driver is less
 capable to deal with PCI-X. Here is more information:
 
 Moved DC-390U3W to a 400MHz AMD-III (ASUS P5A) motherboard, it works,
 but still get some errors during the PCI probe -- (32-bit PCI)
 sym0: <1010-33> port 0xd800-0xd8ff mem
 0xd7000000-0xd7001fff,0xd7800000-0xd78003ff irq 10 at device 11.0 on pci0
 sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking
 sym0: open drain IRQ line driver, using on-chip SRAM
 sym0: using LOAD/STORE-based firmware.
 sym0: handling phase mismatch from SCRIPTS.
 sym1: <1010-33> port 0xd400-0xd4ff mem
 0xd6000000-0xd6001fff,0xd6800000-0xd68003ff irq 10 at device 11.1 on pci0
 sym1: Symbios NVRAM, ID 7, Fast-80, SE, parity checking
 sym1: open drain IRQ line driver, using on-chip SRAM
 sym1: using LOAD/STORE-based firmware.
 sym1: handling phase mismatch from SCRIPTS.
 ...
 Waiting 6 seconds for SCSI devices to settle
 (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
 (noperiph:sym1:0:-1:-1): SCSI BUS reset delivered.
 
 
 Moved DC-390U3W to TYAN S2466 motherboard. Put is on 64-bit PCI slot,
 it has the same problem as it is on the SuperMicro P4DPE (PCI-X bus)
 The errors is in the original message (below).
 Put it on 32-bit PCI, I got the same error message as on ASUS P5A M/B,
 but after SCSI BUS reset, the system hangs.
 
 All above are tested under 4.5-RELEASE.
 
 Moved DC-390U3W to ASUS P2B with 450MHz PIII, tried to install 4.6,
 after -- Waiting 6 seconds for SCSI devices to settle
 system panic. Tried install win98 and dos on this hardware, they all worked.
 I will try to install 4.6 first and test DC-390U3w on this machine.
 
 So far, we know the hardware (DC-390U3W) is OK and it works under certain
 hardware condition with FreeBSD. Probably the driver needs to be upgraded 
 for new PCI bus.
 
 Would some one point me the DC-390U development kit or document so I can
 look into this issue?
 
 Thanks,
 
 	-Jin
 
 "P. Jourdan" wrote:
 > 
 > Hi Jin,
 > Glad to help if I can.
 > I just looked at my setup. I am running FreeBSD 4.5 on a dual pentium II
 > (2x 450mz) with the Tekram card.
 > I notice you appear to have other scsi devices enabled than just the sym -
 > that is the only one that I have enabled in my kerner configuration file.
 > I recall that I had no difficulty setting up the system; I was even
 > surprised at how easily things went, especially since I also have the
 > FastTrack66 raid card with 2 17Gb hard drives. BTW, the reason I am using
 > FreeBSD over Linux is because it seems to be much simples to set up and
 > maintain. :))
 > Anyway the only problem I was having with the Tekram card (and it was not
 > really a problem with the card other than that their support team seems to
 > be rather inexperienced) was to set up a dual boot system with FreeBsd 4.5
 > and Win2K-Pro on 2 different SCSI drives. I overcame that problem with
 > "grub" and have had no problems since.
 > 
 > YOU MIGHT WANT TO CHECK THE SCSI BIOS SETUP AT BOOT TIME FOR PROPER
 > CONFIGURATION. I don't recall if I had to set up something from the Tekram
 > setup disk.
 > Just read the manual and make sure you have all the stuff correctly setup
 > on the hardware and everything should work fine is there is no defect in
 > the card.
 > I don't recall any special configuration, but as I mentioned above, check
 > your hardware setup and the SCSI bios configuration.
 > 
 > The lines you included below:
 > 
 > CACHE TEST FAILED: timeout.
 > CACHE TEST FAILED: script execution failed.
 > start=3e39d4fc, pc=3e39d514, end=3e39d51c
 > sym0: CACHE INCORRECTLY CONFIGURED.
 > 
 > seem to indicate that there might be a hardware or bios problem - I don't
 > get this kind of message in my dmesg printout.
 > 
 > Let me know if it works out ok.
 > Phil Jourdan
 > 
 > At 11:05 AM 7/24/2002 -0700, you wrote:
 > >Hi Phil,
 > >
 > >I am trying to use Tekram DC390U3W SCSI controller under FreeBSD 4.5
 > >
 > >and 4.6-RELEASE without any luck. From hardware mail archive, I found
 > >
 > >that you have used this controller card.
 > >
 > >Does this card needs some special configuration under FreeBSD?
 > >
 > >I get CACHE errors when probe this adapter and hope you may help me
 > >
 > >to figure out if this is a defective card or it needs special config.
 > >
 > >I have following SCSI controller configured in my kernel but get probe
 > >
 > >errors. It is appreciated if you can give me some information on making
 > >
 > >this controller work.
 > >
 > >Thanks,
 > >
 > ># SCSI Controllers
 > >device          ahb             # EISA AHA1742 family
 > >device          ahc             # AHA2940 and onboard AIC7xxx devices
 > >device          amd             # AMD 53C974 (Tekram DC-390(T))
 > >device          isp             # Qlogic family
 > >device          ncr             # NCR/Symbios Logic
 > >device          sym             # NCR/Symbios Logic (newer chipsets)
 > >options         SYM_SETUP_LP_PROBE_MAP=0x40
 > >                                 # Allow ncr to attach legacy NCR devices when
 > >                                 # both sym and ncr are configured
 > >
 > >sym0: <1010-33> port 0x4000-0x40ff mem
 > >0xfc400000-0xfc401fff,0xfc404000-0xfc4043ff irq 11 at device 1.0 on pci6
 > >sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking
 > >sym0: open drain IRQ line driver, using on-chip SRAM
 > >sym0: using LOAD/STORE-based firmware.
 > >sym0: handling phase mismatch from SCRIPTS.
 > >CACHE TEST FAILED: timeout.
 > >CACHE TEST FAILED: script execution failed.
 > >start=3e3994fc, pc=3e399504, end=3e39951c
 > >sym0: CACHE INCORRECTLY CONFIGURED.
 > >device_probe_and_attach: sym0 attach returned 6
 > >sym0: <1010-33> port 0x4400-0x44ff mem
 > >0xfc402000-0xfc403fff,0xfc404400-0xfc4047ff irq 11 at device 1.1 on pci6
 > >sym0: Symbios NVRAM, ID 7, Fast-80, SE, parity checking
 > >sym0: open drain IRQ line driver, using on-chip SRAM
 > >sym0: using LOAD/STORE-based firmware.
 > >sym0: handling phase mismatch from SCRIPTS.
 > >CACHE TEST FAILED: timeout.
 > >CACHE TEST FAILED: script execution failed.
 > >start=3e39d4fc, pc=3e39d514, end=3e39d51c
 > >sym0: CACHE INCORRECTLY CONFIGURED.
 > >device_probe_and_attach: sym0 attach returned 6
 > >
 > >--
 > >------------ Jin Guojun ----------- v --- j_guojun@lbl.gov ---
 > >Distributed Systems Department          http://www.itg.lbl.gov/~jin
 > >M/S 50B-2239                            Ph#:(510) 486-7531 Fax: 486-6363
 > >Lawrence Berkeley National Laboratory,  Berkeley, CA 94720
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Aug 27 11:03:22 GMT 2004 
Responsible-Changed-Why:  
Over to FreeBSD-scsi Mailinglist for review 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40895 
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Mon Feb 21 15:22:03 UTC 2011 
State-Changed-Why:  
Can you still reproduce this on a supported release? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40895 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Thu Apr 14 20:03:48 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40895 
>Unformatted:
