kern/60029: 5.2-RC will not boot with empty LS-120 drive and atapicam

Mark Dixon mark at markdnet.demon.co.uk
Sun Dec 7 15:20:18 PST 2003


>Number:         60029
>Category:       kern
>Synopsis:       5.2-RC will not boot with empty LS-120 drive and atapicam
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 07 15:20:12 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Dixon
>Release:        FreeBSD 5.2-RC i386
>Organization:
>Environment:


System: FreeBSD lizacnet.demon.co.uk 5.2-RC FreeBSD 5.2-RC #12: Sun Dec  7 17:50:18 GMT 2003     root at lizacnet.demon.co.uk:/usr/obj/usr/src/sys/MARKS i386

machine         i386
cpu             I686_CPU
ident           MARKS

options         SCHED_4BSD              #4BSD scheduler
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         FFS                     #Berkeley Fast Filesystem
options         SOFTUPDATES             #Enable FFS soft updates support
options         UFS_ACL                 #Support for access control lists
options         UFS_DIRHASH             #Improve performance on big directories
options         MD_ROOT                 #MD is a potential root device
options         NFSCLIENT               #Network Filesystem Client
options         NFSSERVER               #Network Filesystem Server
options         NFS_ROOT                #NFS usable as root device, requires NFSCLIENT
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
options         COMPAT_FREEBSD4         #Compatible with FreeBSD4
options         SCSI_DELAY=15000        #Delay (in ms) before probing SCSI
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~128k to driver.
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~215k to driver.

options         INVARIANT_SUPPORT       #Extra sanity checks of internal structures, required by INVARIANTS

device          isa
device          eisa
device          pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk                 # ATA disk drives
device          atapicd                 # ATAPI CDROM drives
device          atapifd                 # ATAPI floppy drives
options         ATA_STATIC_ID           #Static device numbering

device          ahc             # AHA2940 and onboard AIC7xxx devices
device          ahd             # AHA39320/29320 and onboard AIC79xx devices

# SCSI peripherals
device          scbus           # SCSI bus (required)
device          ch              # SCSI media changers
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape etc)
device          cd              # CD
device          pass            # Passthrough device (direct SCSI access)
device          ses             # SCSI Environmental Services (and SAF-TE)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device          sc


device          agp             # support several AGP chipsets

# Floating point support - do not disable.
device          npx

# Add suspend/resume support for the i8254.
device          pmtimer

# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# Parallel port
device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          ppi             # Parallel port interface device


# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus          # MII bus support
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)


# Wireless NIC cards
device          wlan            # 802.11 support
device          an              # Aironet 4500/4800 802.11 wireless NICs.
device          awi             # BayStack 660 and others
device          wi              # WaveLAN/Intersil/Symbol 802.11 wireless NICs.


# Pseudo devices - the number indicates how many units to allocate.
device          random          # Entropy device
device          loop            # Network loopback
device          ether           # Ethernet support
device          ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"
device          gif             # IPv6 and IPv4 tunneling
device          faith           # IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device          bpf             # Berkeley packet filter

# USB support
device          uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          usb             # USB Bus (required)
device          ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
device          ulpt            # Printer
device          umass           # Disks/Mass storage - Requires scbus and da
device          ums             # Mouse
device          uscanner        # Scanners

# atapicam for CD burnin'
device                 atapicam

# Allow use of natd
options         IPDIVERT

Copyright (c) 1992-2003 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 5.2-RC #12: Sun Dec  7 17:50:18 GMT 2003
    root at lizacnet.demon.co.uk:/usr/obj/usr/src/sys/MARKS
Preloaded elf kernel "/boot/kernel/kernel" at 0xc08ac000.
Preloaded elf module "/boot/kernel/snd_emu10k1.ko" at 0xc08ac21c.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc08ac2cc.
Preloaded elf module "/boot/kernel/bktr.ko" at 0xc08ac378.
Preloaded elf module "/boot/kernel/bktr_mem.ko" at 0xc08ac424.
Preloaded elf module "/boot/kernel/iicbus.ko" at 0xc08ac4d4.
Preloaded elf module "/boot/kernel/iicbb.ko" at 0xc08ac580.
Preloaded elf module "/boot/kernel/smbus.ko" at 0xc08ac62c.
Preloaded elf module "/boot/kernel/if_ath.ko" at 0xc08ac6d8.
Preloaded elf module "/boot/kernel/ath_hal.ko" at 0xc08ac784.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc08ac830.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) Processor (1002.28-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x642  Stepping = 2
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<RSVD,AMIE,DSP,3DNow!>
real memory  = 402587648 (383 MB)
avail memory = 381362176 (363 MB)
bktr_mem: memory holder loaded
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT VIA_K7  > on motherboard
pcibios: BIOS version 2.10
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 7 INTD is routed to irq 10
pcib0: slot 7 INTD is routed to irq 10
pcib0: slot 10 INTA is routed to irq 5
pcib0: slot 12 INTA is routed to irq 11
pcib0: slot 13 INTA is routed to irq 9
pcib0: slot 15 INTA is routed to irq 10
pcib0: slot 16 INTA is routed to irq 10
agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib0: slot 1 INTA is routed to irq 11
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686A UDMA66 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
uhci0: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 10 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ugen0: WINBOND W9967CF, rev 1.10/1.10, addr 2
uhci1: <VIA 83C572 USB controller> port 0xbc00-0xbc1f irq 10 at device 7.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ugen1: ALCATEL Speed Touch 330, rev 1.10/2.00, addr 2
pci0: <serial bus, SMBus> at device 7.4 (no driver attached)
fxp0: <Intel 82559 Pro/100 Ethernet> port 0xc000-0xc03f mem 0xdfe00000-0xdfefffff,0xdffbf000-0xdffbffff irq 5 at device 10.0 on pci0
fxp0: Ethernet address 00:90:27:be:59:fc
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcm0: <Creative EMU10K1> port 0xc400-0xc41f irq 11 at device 12.0 on pci0
pcm0: <TriTech TR28602 AC97 Codec>
ath0: <Atheros 5212> mem 0xdffc0000-0xdffcffff irq 9 at device 13.0 on pci0
ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 802.11 address: 00:09:5b:89:c0:05
bktr0: <BrookTree 848A> mem 0xdd9ff000-0xdd9fffff irq 10 at device 15.0 on pci0
bktr0: Pinnacle/Miro TV, Temic PAL I tuner.
atapci1: <Promise PDC20265 UDMA100 controller> port 0xc800-0xc83f,0xcc00-0xcc03,0xd000-0xd007,0xd400-0xd403,0xd800-0xd807 mem 0xdffe0000-0xdfffffff irq 10 at device 16.0 on pci0
atapci1: [MPSAFE]
ata2: at 0xd800 on atapci1
ata2: [MPSAFE]
ata3: at 0xd000 on atapci1
ata3: [MPSAFE]
acpi_button1: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <Option ROMs> at iomem 0xcb800-0xcc7ff,0xc9800-0xcb7ff,0xc0000-0xc97ff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1002278420 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 16 steps (100% to 6.2%), currently 100.0%
acd0: CDRW <CR-48XCTE> at ata0-master UDMA33
acd1: DVDROM <Pioneer DVD-ROM ATAPIModel DVD-104S 0123> at ata0-slave UDMA33
GEOM: create disk afd0 dp=0xc3b6c16c
afd0: REMOVABLE <LS-120 VER5 00 UHD Floppy> at ata1-slave WDMA1
GEOM: create disk ad4 dp=0xc3aede60
ad4: 39266MB <IC35L040AVVN07-0> [79780/16/63] at ata2-master UDMA100
GEOM: create disk ad6 dp=0xc3aedc60
ad6: 29311MB <Maxtor 33073U4> [59554/16/63] at ata3-master UDMA66
GEOM: create disk cd0 dp=0xc3ae2600
GEOM: create disk cd1 dp=0xc3ae1e00
GEOM: create disk da0 dp=0xc3b74850
da0 at ata1 bus 0 target 1 lun 0
da0: <MATSHITA LS-120 VER5   00 F515> Removable Direct Access SCSI-0 device
da0: 3.300MB/s transfers
da0: 1MB (2880 512 byte sectors: 64H 32S/T 1C)
cd0 at ata0 bus 0 target 0 lun 0
cd0: <MITSUMI CR-48XCTE 1.0B> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
cd1 at ata0 bus 0 target 1 lun 0
cd1: <PIONEER DVD-ROM DVD-104F 1.23> Removable CD-ROM SCSI-0 device
cd1: 33.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present

[Locks up here without disk in LS-120]

(da0:ata1:0:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:ata1:0:1:0): NOT READY asc:3a,0
(da0:ata1:0:1:0): Medium not present
(da0:ata1:0:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:ata1:0:1:0): NOT READY asc:3a,0
(da0:ata1:0:1:0): Medium not present
(da0:ata1:0:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:ata1:0:1:0): NOT READY asc:3a,0
(da0:ata1:0:1:0): Medium not present
(da0:ata1:0:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:ata1:0:1:0): NOT READY asc:3a,0
(da0:ata1:0:1:0): Medium not present
(da0:ata1:0:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:ata1:0:1:0): NOT READY asc:3a,0
(da0:ata1:0:1:0): Medium not present
Mounting root from ufs:/dev/ad6s2a




>Description:


My system will not boot past the atapicam 'probing' without a disk in its LS-120 drive with the 5.2-RC build. This has been the case (as far as I know) since ATAng became a part of the system (it worked fine with 5.1).

I have indicated where the boot fails without the disk in the LS-120 in the system environment. No atapicam output is shown releating to the LS-120, the boot process just stops at this point and goes no further. 

All modules loaded were compiled at the same time as the kernel.


>How-To-Repeat:


Boot the system without a disk in the LS-120 drive. Workaround is to put a disk in before the LS-120 is probed by atapicam.


>Fix:





>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list