Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 1997 20:10:58 -0500 (EST)
From:      Keith Mitchell <kmitch@weenix.guru.org>
To:        hackers@freebsd.org
Cc:        smp@freebsd.org
Subject:   Adaptec 3940UW and SMP
Message-ID:  <199701150110.UAA00835@weenix.guru.org>

next in thread | raw e-mail | index | archive | help
I am having a problem getting APIC_IO working on my Tyan Tomcat III
motherboard with SMP.  I originally posted to the smp mailing list and
was advised to also post here (by Steve Passe).

The symptoms are:

	with the APIC_IO option enabled, the kernel boots and then stops
        never passing control over to init to finish the boot.  At this
        point I can usually Ctrl-Alt-Del and reboot although once or twice
        it actually locked up the computer.  (see boot messages at the
        bottom of this message)

	Without APIC_IO it seems to work ok.

Unfortunately, I don't have another SCSI controller to try.

Any ideas??  Let me know if I forgot to include a necessary piece of info.


Below are various responses from Steve concerning this matter (summary):

[---- snip of message from steve quoting boot messages.----]
> ...
>Probing for devices on PCI bus 1:
>ahc0 <Adaptec 3940 Ultra SCSI host adapter> rev 0 int a irq 10 on pci1:4
> ...
>ahc1 <Adaptec 3940 Ultra SCSI host adapter> rev 0 int a irq 9 on pci1:5
> ...
>Enabled INTs: 1, 2, 4, 6, 7, 8, 9, 10, 12, 16, 19, imen: 0x00f6e829

as I predicted, it fails to remap the 3940 properly. However it does
appear to leave it at INTs 10 & 9, and INTs 10 & 9 appear to be enabled.


[---- Another message from steve ----]
Might be a missing INT problem.  If you can borrow another disk controller
(2940/154x/etc) it would be an interesting experiment.   My suspicion is that
the 3940 is not working correctly in this setup.

 Unfortunately I don't have alot of time to pursue this right now, I've
got a "real job" that is consumming my time...  If anything occurs to me
I'll get back to you.  You might also post a summary of the problem and 
my suspicions on hackers@freebsd.org.  I worked with STefan to get the original
PCI stuff working, he might have insite on the 3940 & PCI.


[Below is the verbose boot with APIC_IO enabled:]


BIOS basemem (639K) != RTC basemem (640K), setting to BIOS value
ipi_ihandler_attach: counting ipi irq24's as clk0 irqs
ipi_ihandler_attach: counting ipi irq25's as clk0 irqs
ipi_ihandler_attach: counting ipi irq26's as clk0 irqs
ipi_ihandler_attach: counting ipi irq27's as clk0 irqs
Copyright (c) 1992-1996 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

FreeBSD 3.0-SMP #0: Tue Jan 14 18:01:59 EST 1997
    kmitch@weenix.guru.org:/usr/src/sys-smp/compile/W
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id: 0, version: 0x00030010
 cpu1 (AP):  apic id: 1, version: 0x00030010
 io0 (APIC): apic id: 2, version: 0x00170011
Calibrating clock(s) relative to mc146818A clock ... i8254 clock: 1193130 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
CPU: Pentium (586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping=12
  Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
real memory  = 67108864 (65536K bytes)
avail memory = 63782912 (62288K bytes)
pcibus_setup(1):        mode 1 addr port (0x0cf8) is 0x8000005c
pcibus_setup(1a):       mode1res=0x80000000 (0x80000000)
pcibus_check:   device 0 is there (id=12508086)
Probing for devices on PCI bus 0:
        configuration mode 1 allows 32 devices.
chip0 <Intel 82439> rev 3 on pci0:0
chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0
chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
        mapreg[20] type=1 addr=00009000 size=0010.
de0 <Digital 21040 Ethernet> rev 35 int a irq 19 on pci0:17
Freeing (NOT implimented) irq 9 for ISA cards.
        mapreg[10] type=1 addr=00006000 size=0080.
        mapreg[14] type=0 addr=e0800000 size=0080.
        reg16: ioaddr=0x6000 size=0x80
de0: 21040 [10Mb/s] pass 2.3
de0: address 00:80:48:e8:19:cd
de0: enabling 10baseT port
chip3 <DEC 21050 PCI-PCI bridge> rev 2 on pci0:18
Freeing (NOT implimented) irq 9 for ISA cards.
        bridge from pci0 to pci1 through 1.
        mapping regs: io:2280f0f0 mem:dff0d000 pmem:dff0de00
vga0 <VGA-compatible display device> rev 1 on pci0:19
Freeing (NOT implimented) irq 9 for ISA cards.
        mapreg[10] type=0 addr=e0000000 size=800000.
de1 <Digital 21040 Ethernet> rev 35 int a irq 16 on pci0:20
Freeing (NOT implimented) irq 11 for ISA cards.
        mapreg[10] type=1 addr=00006100 size=0080.
        mapreg[14] type=0 addr=e0801000 size=0080.
        reg16: ioaddr=0x6100 size=0x80
de1: 21040 [10Mb/s] pass 2.3
de1: address 00:80:48:e8:17:a4
de1: enabling 10baseT port
pci0: uses 8388864 bytes of memory from d0000000 upto e080107f.
pci0: uses 272 bytes of I/O space from 6000 upto ffff.
pci0: subordinate busses from 1 upto 1.
Probing for devices on PCI bus 1:
ahc0 <Adaptec 3940 Ultra SCSI host adapter> rev 0 int a irq 10 on pci1:4
        mapreg[10] type=1 addr=0000f000 size=0100.
        [pci1 uses memory from d0000000 to dfffffff]
        mapreg[14] type=0 addr=d0000000 size=1000.
        reg16: ioaddr=0xf000 size=0x100
ahc0: Reading SEEPROM...done.
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16 SCBs
ahc0: Reseting Channel A
ahc0: Downloading Sequencer Program...Done
ahc0: Probing channel A
Choosing drivers for scbus configured at 0
ahc0 waiting for scsi devices to settle
ahc0: target 0 using 16Bit transfers
ahc0: target 0 synchronous at 10.0MHz, offset = 0x8
(ahc0:0:0): "MICROP 4221-09   1128RF 28RF" type 0 fixed SCSI 2
sd is configured at 0
sd0(ahc0:0:0): Direct-Access 1955MB (4004219 512 byte sectors)
sd0(ahc0:0:0): with 4048 cyls, 9 heads, and an average 109 sectors/track
ahc0: target 3 synchronous at 10.0MHz, offset = 0xf
(ahc0:3:0): "iomega jaz 1GB H.62" type 0 removable SCSI 2
sd is configured at 1
sd1(ahc0:3:0): Direct-Access 
sd1(ahc0:3:0): ILLEGAL REQUEST asc:24,0 Invalid field in CDB
sd1 could not mode sense (4). Using ficticious geometry
1021MB (2091050 512 byte sectors)
sd1(ahc0:3:0): with 1021 cyls, 64 heads, and an average 32 sectors/track
ahc0: target 4 synchronous at 5.0MHz, offset = 0xf
(ahc0:4:0): "ARCHIVE Python 28388-XXX 5.28" type 1 removable SCSI 2
st0(ahc0:4:0): Sequential-Access density code 0x13,  drive empty
ahc0: target 5 synchronous at 5.0MHz, offset = 0xf
(ahc0:5:0): "PLEXTOR CD-ROM PX-6XCS 1.07" type 5 removable SCSI 2
cd0(ahc0:5:0): CD-ROM can't get the size
ahc1 <Adaptec 3940 Ultra SCSI host adapter> rev 0 int a irq 9 on pci1:5
        mapreg[10] type=1 addr=0000f100 size=0100.
        [pci1 uses memory from d0000000 to dfffffff]
        mapreg[14] type=0 addr=d0001000 size=1000.
        reg16: ioaddr=0xf100 size=0x100
ahc1: Reading SEEPROM...done.
ahc1: aic7880 Wide Channel B, SCSI Id=7, 16 SCBs
ahc1: Reseting Channel A
ahc1: Downloading Sequencer Program...Done
ahc1: Probing channel A
ahc1 waiting for scsi devices to settle
ahc1: target 0 synchronous at 10.0MHz, offset = 0xf
(ahc1:0:0): "Quantum XP32150 576D" type 0 fixed SCSI 2
sd2(ahc1:0:0): Direct-Access 2050MB (4199760 512 byte sectors)
sd2(ahc1:0:0): with 3907 cyls, 10 heads, and an average 107 sectors/track
ahc1: target 1 synchronous at 10.0MHz, offset = 0xf
(ahc1:1:0): "CONNER CFP1080S 4649" type 0 fixed SCSI 2
sd3(ahc1:1:0): Direct-Access 1030MB (2110812 512 byte sectors)
sd3(ahc1:1:0): with 3658 cyls, 6 heads, and an average 96 sectors/track
pci1: uses 8192 bytes of memory from d0000000 upto d0001fff.
pci1: uses 512 bytes of I/O space from f000 upto f1ff.
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 not found at 0x2f8
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
psm0: current command byte:0047
psm0: status after reset 00 02 64
psm: status 09 03 c8 (get_mouse_buttons)
psm0: status 00 02 64
psm0 at 0x60-0x64 irq 12 on motherboard
psm0: device ID 0, 3 buttons?
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
npx0 on motherboard
npx0: INT 16 interface
imasks: bio c0000640, tty f0091092, net f0091092
BIOS Geometries:
 0:03fe3f20 0..1022=1023 cylinders, 0..63=64 heads, 1..32=32 sectors
 1:03fc3f20 0..1020=1021 cylinders, 0..63=64 heads, 1..32=32 sectors
 2:0104fe3f 0..260=261 cylinders, 0..254=255 heads, 1..63=63 sectors
 3:0082fe3f 0..130=131 cylinders, 0..254=255 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
Considering FFS root f/s.
configure() finished.
Enabled INTs: 1, 2, 4, 6, 7, 8, 9, 10, 12, 16, 19, imen: 0x00f6e829

[computer is now hung]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701150110.UAA00835>