Subject: Re: New aic78xx driver code update
To: None <frank@wins.uva.nl>
From: John Darrow <John.P.Darrow@wheaton.edu>
List: current-users
Date: 03/07/2000 12:01:46
Frank van der Linden <frank@wins.uva.nl> wrote:
>I put a new tarfile of the new ahc driver in
>
>	ftp://ftp.nl.netbsd.org:/pub/NetBSD/fvdl/ahc-03082000.tgz
>
>Changes:
>	
>	* give it at least a chance to work on big endian platforms
>	  (the swap code was there, but never called..)
>	* don't forget to zero out the SCB data area after allocating
>	  it (oops, pasto)
>
>- Frank

Hurrah!!  What was once an Adaptec (2nd PCI Vendor ID) AHA-2940 Ultra2 
(SCSI mass storage) at pci0 dev 18 function 0 not configured

now shows up usable!  I haven't stress-tested it yet, but I was able to
read and write small files to the VFAT partition.  (I haven't yet been
able to access the NTFS partition, but I don't know if that's a problem
with the disk driver or with mount_ntfs...)

dmesg follows:

NetBSD 1.4U (JDARROW-AHC) #0: Tue Mar  7 11:17:56 CST 2000
    jdarrow@jdarrowpiii.wheaton.edu:/var/src/sys/arch/i386/compile/JDARROW-AHC
cpu0: family 6 model 7 step 3
cpu0: Intel Pentium III (686-class)
total memory = 255 MB
avail memory = 234 MB
using 3296 buffers containing 13184 KB of memory
BIOS32 rev. 0 found at 0xfdb60
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: ATI Technologies product 0x5246 (rev. 0x00)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <Conner Peripherals 1080MB - CFS1081A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 1032 MB, 2097 cyl, 16 head, 63 sec, 512 bytes/sect x 2114180 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: can't map i/o space
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
eap0 at pci0 dev 16 function 0: Ensoniq AudioPCI (rev. 0x00)
eap0: interrupting at irq 11
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
fxp0 at pci0 dev 17 function 0: Intel i82557 Ethernet, rev 5
fxp0: interrupting at irq 5
fxp0: Ethernet address 00:90:27:a5:79:d8, 10/100 Mb/s
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0 at pci0 dev 18 function 0
ahc0: interrupting at irq 10
ahc0: Reading SEEPROM...done.
ahc0: BIOS eeprom is 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 ahc0: dmamem for shared data at phys 8000 virt d249f000 nseg 1 size 768
ahc0: dmamem for hardware SCB structures at phys 9000 virt d24a0000 nseg 1 size 16320
ahc0: dmamem for sense buffers at phys d000 virt d24a4000 nseg 1 size 8160
ahc0: dmamem for SG space at phys f000 virt d24a6000 nseg 1 size 4096
Wide Channel A, SCSI Id=7, 16/255 SCBs
ahc0: SCB physaddr 9000
ahc0: ID physaddr 8000
DISCENABLE == 0xffffffff
ULTRAENB == 0x0
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
biomask e745 netmask e765 ttymask f7e7
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST39102LW, 0005> SCSI2 0/direct fixed
sd0: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 sectors
ahc0:A:5: refuses WIDE negotiation.  Using 8bit transfers
cd0 at scsibus0 targ 5 lun 0: <TOSHIBA, CD-ROM XM-6401TA, 1015> SCSI2 5/cdrom removable
sd0: no disk label
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
sd0: no disk label
sd0: no disk label
sd0: no disk label
sd0: no disk label
sd0: no disk label
sd0: no disk label
sd0: no disk label
ntfs_readntvattr_plain: POSSIBLE RUN ERROR
ntfs_readattr_plain: ntfs_readntvattr_plain failed: o: 0, s: 212112
ntfs_readattr_plain: attrib: 0 - 51
sd0: no disk label
sd0: no disk label
ntfs_readntvattr_plain: POSSIBLE RUN ERROR
ntfs_readattr_plain: ntfs_readntvattr_plain failed: o: 0, s: 212112
ntfs_readattr_plain: attrib: 0 - 51
ntfs_readntvattr_plain: POSSIBLE RUN ERROR
ntfs_readattr_plain: ntfs_readntvattr_plain failed: o: 0, s: 212112
ntfs_readattr_plain: attrib: 0 - 51

(If anyone's interested in troubleshooting the ntfs part... the NTFS is in
an extended partition so it doesn't show up in the default disklabel.  I
verified through dd that the ntfs partition, type 7, is the first "primary"
partition entry in the extended partition table, and is the only entry there.
Running mbrlabel produces an entry for the ntfs portion of the disk, but
with type unused instead of NTFS.  Trying to mount it, either leaving type
unused or after editing the disklabel to set type to NTFS, produces the
above ntfs errors, and a mount failure.)

I can't wait to start really using this box, and to finally get to dump the
old slow 1M IDE disk...

jdarrow

-- 
John Darrow - Senior Technical Specialist               Office: 630/752-5201
Computing Services, Wheaton College, Wheaton, IL 60187  Fax:    630/752-5968
Alphapage: 6303160707@alphapage.airtouch.com            Pager:  630/316-0707
Email:     John.P.Darrow@wheaton.edu