From owner-freebsd-bugs Mon Jul 22 13:20:42 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89DA837B400 for ; Mon, 22 Jul 2002 13:20:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BE6943E4A for ; Mon, 22 Jul 2002 13:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6MKK2JU087506 for ; Mon, 22 Jul 2002 13:20:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6MKK2bL087505; Mon, 22 Jul 2002 13:20:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28EF037B400 for ; 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 ; 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 ; 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) Reply-To: j_guojun@lbl.gov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/40895: wierd kernel / device driver bug Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40895 >Category: kern >Synopsis: wierd kernel / device driver bug >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 22 13:20:01 PDT 2002 >Closed-Date: >Last-Modified: >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,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: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pci0: (vendor=0x8086, dev=0x2541) at 0.1 pcib1: at device 2.0 on pci0 pci1: on pcib1 pci1: (vendor=0x8086, dev=0x1461) at 28.0 pcib2: at device 29.0 on pci1 pci2: on pcib2 pci1: (vendor=0x8086, dev=0x1461) at 30.0 pcib3: at device 31.0 on pci1 pci3: on pcib3 pcib4: at device 3.0 on pci0 pci4: on pcib4 pci4: (vendor=0x8086, dev=0x1461) at 28.0 pcib5: at device 29.0 on pci4 pci5: 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: 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: on skc0 sk0: Ethernet address: 00:00:5a:98:ea:24 miibus0: on sk0 xmphy0: on miibus0 xmphy0: 1000baseSX, 1000baseSX-FDX, auto sk1: on skc0 sk1: Ethernet address: 00:00:5a:98:ea:25 miibus1: on sk1 xmphy1: on miibus1 xmphy1: 1000baseSX, 1000baseSX-FDX, auto pci4: (vendor=0x8086, dev=0x1461) at 30.0 pcib6: at device 31.0 on pci4 pci6: on pcib6 skc1: 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: on skc1 sk2: Ethernet address: 00:00:5a:98:4c:30 miibus2: on sk2 xmphy2: on miibus2 xmphy2: 1000baseSX, 1000baseSX-FDX, auto uhci0: port 0x2000-0x201f irq 11 at device 29.0 on pci0 usb0: 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: port 0x2020-0x203f irq 10 at device 29.1 on pci0 usb1: 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: port 0x2040-0x205f irq 5 at device 29.2 on pci0 uhci2: (New UHCI DeviceId=0x24878086) usb2: 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: at device 30.0 on pci0 pci7: on pcib7 pci7: at 1.0 irq 11 fxp0: 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: on miibus3 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: 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: (vendor=0x8086, dev=0x2483) at 31.3 irq 0 orm0: