From owner-freebsd-scsi Mon Mar 15 22: 1:26 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from outreach.wolfnet.org (outreach.wolfnet.org [207.173.133.202]) by hub.freebsd.org (Postfix) with ESMTP id DB0B51509A for ; Mon, 15 Mar 1999 22:01:05 -0800 (PST) (envelope-from jkf@wolfnet.org) Received: from outreach.wolfnet.org ([207.173.133.202]) by outreach.wolfnet.org with esmtp (Exim 2.12 #1) id 10MmuE-0008mj-00 for freebsd-scsi@freebsd.org; Mon, 15 Mar 1999 22:00:46 -0800 Date: Mon, 15 Mar 1999 22:00:45 -0800 (PST) From: "Jason K. Fritcher" To: freebsd-scsi@freebsd.org Subject: Boot-time scsi probe problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello. I am trying to get FreeBSD 3.1-Stable to boot reliably on a machine I have. It was cvsup'ed from Sunday night about 11pm or so. The system was originally installed with the 3.1-19990227 snapshot. I can somewhat reliably boot from the generic kernel included with the snapshot, but I can not boot at all with a kernel compiled from the cvsup. The problems I am having are this. When booting with the generic kernel, the system will boot all the way through if I power-cycle the machine, or reboot it with the reset boot, basically a cold-boot. If I reboot the machine with a warm boot, ie Ctrl-Alt-Del, the system will lockup when it tries to probe the scsi bus for devices. It will wait the 15 seconds for things to settle, and then it locks one the probe starts. I am forced to use the reset button to restart it. With the new kernel, when the machine gets to the probe, it does not lock up, but the probe doesn't work either. It sits there for a few, and then starts giving error messages about timeouts. At the end of the message I have included the entire boot sequence for reference. The hardware I have ia an Asus P2B-LS motherboard with onboard AIC-7890 SCSI controller + 3860 bridge. For those not familiar with the P2B-LS, the SCSI bus is divided into three segments, a U2W, UW, and UN buses. On the U2W bus I have a Quantum Viking II 9.1 GB hard drive in LVD mode, on the UW bus is nothing but a terminator, and on the UN bus is a Plextor 40x cdrom drive. The hard drive is scsi id 0, and the cdrom is scsi id 6. After looking through the archives for anything similar, I came across similar problems which were caused by termination problems. I have checked the termination and all seems well. Any suggestions about what the cause could and possible solutions would be much appriciated. I have spent a good 4-5 hours compiling kernels with different options, and reading through list archives to try and solve this problem. If there is any more information that anyone needs, or have questions, please, write me and I will do what I can. Also, please CC me, as I don't subscribe to this mailing list. Thanx. :) -- Jason K. Fritcher jkf@wolfnet.org This is the kernel config that I am using. # # Architecture type. # machine "i386" # # Identification for kernel. # ident TEST # # Set size of internal tables. # maxusers 25 # # Include this file in the compiled kernel. # Use: strings /kernel | grep ^___ | sed 's/^___//' # options INCLUDE_CONFIG_FILE # # Set kernel name & location. # config kernel root on da0 ##################################################################### # CPU Options # # Specify cpu specs. # cpu "I686_CPU" ##################################################################### # Compatibility Options # # Implement system calls compatible with 4.3BSD and older systems. # options "COMPAT_43" # # This provides support for System V Inter-Process Communications. # options SYSVSHM options SYSVSEM options SYSVMSG options SHMMAXPGS=4096 ##################################################################### # Debugging Options # # Enable the kernel debugger. # options DDB # # Enable the system-call tracing facility. # options KTRACE # # Allow users to take the console. # options UCONSOLE # # Add boot -c editor, and visual boot -c editor. # options USERCONFIG options VISUAL_USERCONFIG ##################################################################### # Networking Options # # Enable IP networking protocols. # options INET # # Network interfaces # The 'loop' pseudo-device is MANDATORY for networking. # The 'ether' pseudo-device provides generic ethernet code. # The 'bpfilter' pseudo-device enables the Berkeley Packet Filter. # pseudo-device loop pseudo-device ether pseudo-device bpfilter 3 # # Include the IP FIREWALL in the kernel. # options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_DEFAULT_TO_ACCEPT ##################################################################### # Filesystem Options # # Mandatory Filesystems. # options FFS # Fast File System # # Optional filesystems. # options "CD9660" # ISO 9660 File System options PROCFS # Process File System options MFS # Memory File System ##################################################################### # Miscellaneous Devices And Options # # The 'pty' pseudo-device is mandatory. # The 'snp' pseudo-device is used to snoop on ttys. # The 'vn' pseudo-device is the vnode device. # The 'gzip' pseudo-device is used to execute gzip'ed binaries. # pseudo-device pty 32 pseudo-device snp 3 pseudo-device vn 3 pseudo-device gzip ##################################################################### # Hardware Device Configuration # # Base ISA controller. # controller isa0 # # Enables 'automatic EOI' for the master/slave interrupt controller. # options "AUTO_EOI_1" options "AUTO_EOI_2" # # syscons is the default console driver, resembling an SCO console # controller atkbdc0 at isa? port IO_KBD tty device atkbd0 at isa? tty irq 1 device vga0 at isa? port ? conflicts device sc0 at isa? tty options MAXCONS=16 options "SC_HISTORY_SIZE=256" # # Numeric Processing eXtension. # device npx0 at isa? port "IO_NPX" flags 0x0 irq 13 vector npxintr # # Add controller for floppy/tape drives. # controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 disk fd1 at fdc0 disable drive 1 # # Add devices for serial ports. # device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr options CONSPEED=9600 # # Add devices for parallel port(s). # controller ppbus0 device nlpt0 at ppbus? # # Base PCI controller. # controller pci0 # # Adaptec PCI SCSI Controller. # controller ahc0 options "SCSI_DELAY=10000" # # Generic SCSI Bus + devices. # controller scbus0 device da0 # Fixed Disk Device device cd0 # CDROM Device device sa0 # SCSI Tape Device device pass0 # CAM passthrough device # # PCI driver for Intel EtherExpress 10/100Mb ethernet cards. # device fxp0 Here is the boot log, Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.1-STABLE #0: Mon Mar 15 19:30:09 PST 1999 jkf@test.wolfnet.org:/usr/src/sys/compile/TEST Calibrating clock(s) ... TSC clock: 400915746 Hz, i8254 clock: 1193202 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 Timecounter "TSC" frequency 400910826 Hz CPU: Pentium II/Xeon/Celeron (400.91-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x653 Stepping=3 Features=0x183f9ff> real memory = 134217728 (131072K bytes) Physical memory chunk(s): 0x00001000 - 0x0009ffff, 651264 bytes (159 pages) 0x00272000 - 0x07ffdfff, 131645440 bytes (32140 pages) avail memory = 128073728 (125072K bytes) Found BIOS32 Service Directory header at 0xf00f9cf0 Entry = 0xf0520 (0xf00f0520) Rev = 0 Len = 1 PCI BIOS entry at 0x720 DMI header at 0xf00f58f0 Version 2.0 Table at 0xf590a, 32 entries, 1050 bytes Other BIOS signatures found: ACPI: 00000000 $PnP: 000fd120 Preloaded elf kernel "kernel" at 0xf0265000. pci_open(1): mode 1 addr port (0x0cf8) is 0x8000005c pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=71908086) Probing for devices on PCI bus 0: found-> vendor=0x8086, dev=0x7190, revid=0x02 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[0]: type 3, range 32, base e4000000, size 26 chip0: rev 0x02 on pci0.0.0 found-> vendor=0x8086, dev=0x7191, revid=0x02 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=1 secondarybus=1 chip1: rev 0x02 on pci0.1.0 found-> vendor=0x8086, dev=0x7110, revid=0x02 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 chip2: rev 0x02 on pci0.4.0 found-> vendor=0x8086, dev=0x7111, revid=0x01 class=01-01-80, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[0]: type 4, range 32, base 0000d800, size 4 found-> vendor=0x8086, dev=0x7112, revid=0x01 class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=d, irq=15 map[0]: type 4, range 32, base 0000d400, size 5 found-> vendor=0x8086, dev=0x7113, revid=0x02 class=06-80-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 chip3: rev 0x02 on pci0.4.3 found-> vendor=0x9005, dev=0x001f, revid=0x00 class=01-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=15 map[0]: type 4, range 32, base 0000d000, size 8 map[1]: type 1, range 64, base df800000, size 12 map[2]: type 0, range 0, base 00000000, size 0 ahc0: rev 0x00 int a irq 15 on pci0.6.0 ahc0: Reading SEEPROM...done. ahc0: BIOS eeprom not present ahc0: Secondary High byte termination Enabled ahc0: Secondary Low byte termination Enabled ahc0: Primary Low Byte termination Enabled ahc0: Primary High Byte termination Enabled ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs ahc0: Downloading Sequencer Program... 391 instructions downloaded found-> vendor=0x8086, dev=0x1229, revid=0x05 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 map[0]: type 3, range 32, base e2000000, size 12 map[1]: type 4, range 32, base 0000b800, size 5 map[2]: type 1, range 32, base df000000, size 20 fxp0: rev 0x05 int a irq 10 on pci0.7.0 fxp0: Ethernet address 00:e0:18:98:0d:91 bpf: fxp0 attached Probing for devices on PCI bus 1: found-> vendor=0x10de, dev=0x0020, revid=0x04 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[0]: type 1, range 32, base e0000000, size 24 map[1]: type 3, range 32, base e3000000, size 24 vga0: rev 0x04 int a irq 11 on pci1.0.0 Probing for devices on the ISA bus: atkbd: the current kbd controller command byte 0047 atkbd: keyboard ID 0x41ab (2) kbdc: RESET_KBD return code:00fa kbdc: RESET_KBD status:00aa sc0 on isa sc0: fb0 kbd0 sc0: VGA color <16 virtual consoles, flags=0x0> atkbdc0 at 0x60-0x6f on motherboard atkbd0 irq 1 on isa kbd0: atkbd0, AT 101/102 (2), config:0x10000, flags:0x3d0000 sio0: irq maps: 0x1 0x11 0x1 0x1 sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A, console sio1: irq maps: 0x1 0x9 0x1 0x1 sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa fb0: vga0, vga, type:VGA (5), flags:0x7007f fb0: port:0x3b0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 fb0: init mode:24, bios mode:3, current mode:24 fb0: window:0xf00b8000 size:32k gran:32k, buf:0x0 size:0k 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 0e 0f 00 00 07 80 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 npx0 on motherboard npx0: INT 16 interface imasks: bio c0080040, tty c003001a, net c0060400 BIOS Geometries: 0:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 1:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 2:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 3:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 4:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 5:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 6:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 7:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 0 accounted for Device configuration finished. IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to accept, unlimited logging bpf: lo0 attached Waiting 10 seconds for SCSI devices to settle (noperiph:ahc0:0:-1:-1): SCSI bus reset delivered. 0 SCBs aborted. ahc0: Selection Timeout on A:1. 1 SCBs aborted (probe0:ahc0:0:0:0): SCB 0x0 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x21 (probe0:ahc0:0:0:0): Queuing a BDR SCB ahc0:A:0: no active SCB for reconnecting target - issuing BUS DEVICE RESET SAVED_TCL == 0x0, ARG_1 == 0xff, SEQ_FLAGS == 0x0 (probe0:ahc0:0:0:0): SCB 0x0 - timed out in datain phase, SEQADDR == 0x15e (probe0:ahc0:0:0:0): no longer in timeout, status = 34b ahc0: Issued Channel A Bus Reset. 14 SCBs aborted ahc0: Selection Timeout on A:2. 1 SCBs aborted Timedout SCB handled by another timeout (probe3:ahc0:0:3:0): SCB 0xe - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x44 (probe3:ahc0:0:3:0): Queuing a BDR SCB (probe3:ahc0:0:3:0): no longer in timeout, status = 35b ahc0: Selection Timeout on A:3. 1 SCBs aborted Timedout SCB handled by another timeout ahc0: Selection Timeout on A:4. 1 SCBs aborted (probe0:ahc0:0:0:0): SCB 0x2 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x7 (probe0:ahc0:0:0:0): SCB 2: Immediate reset. Flags = 0x4040 (probe0:ahc0:0:0:0): no longer in timeout, status = 34b ahc0: Issued Channel A Bus Reset. 12 SCBs aborted ahc0: Selection Timeout on A:5. 1 SCBs aborted Timedout SCB handled by another timeout (probe6:ahc0:0:6:0): SCB 0x2 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x9 (probe6:ahc0:0:6:0): Queuing a BDR SCB (probe6:ahc0:0:6:0): no longer in timeout, status = 300 ahc0: Selection Timeout on A:8. 1 SCBs aborted Timedout SCB handled by another timeout ahc0: Selection Timeout on A:9. 1 SCBs aborted (probe3:ahc0:0:3:0): SCB 0xc - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x7 (probe3:ahc0:0:3:0): SCB 12: Immediate reset. Flags = 0x4040 (probe3:ahc0:0:3:0): no longer in timeout, status = 34b ahc0: Issued Channel A Bus Reset. 9 SCBs aborted ahc0: Selection Timeout on A:10. 1 SCBs aborted Timedout SCB handled by another timeout (probe10:ahc0:0:11:0): SCB 0xc - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x44 (probe10:ahc0:0:11:0): Queuing a BDR SCB (probe10:ahc0:0:11:0): no longer in timeout, status = 35b ahc0: Selection Timeout on A:11. 1 SCBs aborted Timedout SCB handled by another timeout ahc0: Selection Timeout on A:12. 1 SCBs aborted (probe6:ahc0:0:6:0): SCB 0x5 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x7 (probe6:ahc0:0:6:0): SCB 5: Immediate reset. Flags = 0x4040 (probe6:ahc0:0:6:0): no longer in timeout, status = 34b ahc0: Issued Channel A Bus Reset. 7 SCBs aborted To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message