Bug 26048

Summary: [asr] 4.3-RC: SMP and asr driver don't work together
Product: Base System Reporter: martin <martin>
Component: kernAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description martin 2001-03-24 09:30:01 UTC
If I enable SMP in the kernel the system hangs at boot just after the line: Mounting root from ufs:/dev/da0s1a 

Everything works fine if I remove the two SMP lines from my kernel config.

This is a dmesg from the same machine with a slightly older working non SMP kernel:

Copyright (c) 1992-2001 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.3-BETA #0: Sun Mar 18 01:41:02 CET 2001
    root@platon.martin.se:/usr/obj/raid/FreeBSD/RELENG_4/sys/PLATON
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium Pro (198.67-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x617  Stepping = 7
  Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 134217728 (131072K bytes)
avail memory = 127062016 (124084K bytes)
Preloaded elf kernel "kernel.old" at 0xc0383000.
Pentium Pro MTRR support enabled
md0: Malloc disk
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
Correcting Natoma config for non-SMP
Correcting Natoma config for non-SMP
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xff40-0xff5f mem 0xff500000-0xff5fffff,0xffbe9000-0xffbe9fff irq 10 at device 6.0 on pci0
fxp0: Ethernet address 00:a0:c9:06:77:0f
isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <Intel PIIX3 ATA controller> at 7.1
ahc0: <Adaptec aic7880 Ultra SCSI adapter> port 0xfc00-0xfcff mem 0xffbef000-0xffbeffff irq 11 at device 9.0 on pci0
aic7880: Wide Channel A, SCSI Id=7, 16/255 SCBs
de0: <Digital 21140A Fast Ethernet> port 0xf880-0xf8ff mem 0xffbebc00-0xffbebc7f irq 10 at device 11.0 on pci0
de0: 21140A [10-100Mb/s] pass 2.2
de0: address 00:80:c8:45:76:4c
pcib1: <PCI to PCI bridge (vendor=1044 device=a500)> at device 17.0 on pci0
pci1: <PCI bus> on pcib1
asr0: <Adaptec Caching SCSI RAID> mem 0xf0000000-0xf7ffffff irq 10 at device 17.1 on pci0
asr0: major=154
asr0: ADAPTEC 3200S FW Rev. 320R, 2 channel, 256 CCBs, Protocol I2O
Ambiguous scbus configuration for asr0 bus 1, cannot wire down.  The kernel config entry for scbus0 should specify a controller bus.
Scbus will be assigned dynamically.
pci0: <ARK Logic 1000PV SVGA controller> at 19.0
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
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
pcm0: <CS423x> at port 0x534-0x537,0x388-0x38b,0x220-0x22f irq 5 drq 1,0 on isa0
IP Filter: v3.4.16 initialized.  Default = block all, Logging = enabled
Waiting 15 seconds for SCSI devices to settle
de0: enabling 10baseT port
sa0 at ahc0 bus 0 target 5 lun 0
sa0: <HP C1537A L708> Removable Sequential Access SCSI-2 device 
sa0: 10.000MB/s transfers (10.000MHz, offset 15)
da0 at asr0 bus 0 target 0 lun 0
da0: <ADAPTEC RAID-5 320R> Fixed Direct Access SCSI-2 device 
da0: Tagged Queueing Enabled
da0: 17380MB (35594240 512 byte sectors: 255H 63S/T 2215C)
Mounting root from ufs:/dev/da0s1a
cd0 at ahc0 bus 0 target 2 lun 0
cd0: <TEAC CD-ROM CD-532S 3.0A> Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present

The computer has a Intel PR440FX motherboard (32bit PCI) with a Adaptec 3200S RAID adapter (64bit PCI) and two PPro 200/512KB CPU:s.

Fix: 

Don't use SMP
Comment 1 martin 2001-10-29 14:29:23 UTC
The problem is still present on yesterdays 4.4-STABLE and this Intel PR440FX 
motherboard.

I changed the MB for a Tyan TitanPRO (S1668) and the machine now boots and 
works OK with a SMP kernel. I have another ASR3200 in a dual P3 computer that 
also works well. 

Since this problem seems to be so dependant on a specific 5-year old motherboard
and there have been no followups in 6 months I think there is no use trying to 
find out exactly what is wrong and instead close this PR.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2001-11-29 18:44:08 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

I guess this is mine now.
Comment 3 Remko Lodder freebsd_committer freebsd_triage 2007-03-22 06:52:27 UTC
State Changed
From-To: open->closed

This is not reproducable according to the submitter, closing the ticket.