Subject: HPT IDE controllers working on macppc?
To: None <port-macppc@netbsd.org>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: port-macppc
Date: 08/31/2002 23:32:37
I'm trying to use a SIIG  UDMA/66 board I pulled from a netbsd/i386
box in my macppc box running 1.6_RC2:

pciide0 at pci0 dev 15 function 0: Triones/Highpoint HPT366 IDE Controller
pciide0: bus-master DMA support present                                   
pciide0: primary channel wired to native-PCI mode
pciide0: using irq 25 for native-PCI interrupt   
wd0 at pciide0 channel 0 drive 0: <IC35L120AVVA07-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 115 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 241254720 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)   
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide1 at pci0 dev 15 function 1: Triones/Highpoint HPT366 IDE Controller
pciide1: bus-master DMA support present                                   
pciide1: primary channel wired to native-PCI mode
pciide1: using irq 25 for native-PCI interrupt   

When I try to access it, though, the whole system hangs:

mac# disklabel wd0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21

[dead from here out... network doesn't work, have to crash the
machine ]

Has anybody else had any success with this controller on a mac?

Thanks! (full dmesg follows)

+j

>> NetBSD/macppc OpenFirmware Boot, Revision 1.2
>> (matt@duel.local, Sat Apr  7 18:09:48 PDT 2001)
3007880+304140 [95+167360+136727]=0x373030
 start=0x100000
[ using 304796 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc.  All rights reserved. 
Copyright (c) 1982, 1986, 1989, 1991, 1993           
    The Regents of the University of California.  All rights reserved.
                                                                      
NetBSD 1.6_RC2 (MAC) #0: Fri Aug 30 22:16:21 PDT 2002
    riz@mac.tastylime.net:/usr/src/sys/arch/macppc/compile/MAC
total memory = 192 MB                                         
avail memory = 168 MB
using 2048 buffers containing 9932 KB of memory
no active packagemainbus0 (root)               
cpu0 at mainbus0: 604ev (Revision 2.2), ID 0 (primary)
cpu0: HID0 8090c084<EMCP,DOZE,DPM,ICE,DCE,SGE,BHT>    
bandit0 at mainbus0                               
pci0 at bandit0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0      
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
ohci0 at pci0 dev 13 function 0: Opti RM861HA (rev. 0x10)
ohci0: interrupting at irq 23                            
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0        
uhub0 at usb0                  
uhub0: Opti OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered              
ex0 at pci0 dev 14 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x24)
ex0: interrupting at irq 24                                              
ex0: MAC address 00:10:5a:a7:4f:91
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pciide0 at pci0 dev 15 function 0: Triones/Highpoint HPT366 IDE Controller
pciide0: bus-master DMA support present                                   
pciide0: primary channel wired to native-PCI mode
pciide0: using irq 25 for native-PCI interrupt   
wd0 at pciide0 channel 0 drive 0: <IC35L120AVVA07-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 115 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 241254720 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)   
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide1 at pci0 dev 15 function 1: Triones/Highpoint HPT366 IDE Controller
pciide1: bus-master DMA support present                                   
pciide1: primary channel wired to native-PCI mode
pciide1: using irq 25 for native-PCI interrupt   
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target                 
mc0 at obio0 offset 0x11000: irq 14,2,3: address 00:a0:59:04:a1:e3
zsc0 at obio0 offset 0x13000: irq 15,16                           
zstty0 at zsc0 channel 0 (console)     
zstty1 at zsc0 channel 1          
awacs at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 0 targets
aed0 at adb0 addr 0: ADB Event device         
mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
scsibus1 at mesh0: 8 targets, 8 luns per target       
nvram0 at obio0 offset 0x1d000                 
bandit1 at mainbus0           
pci1 at bandit1 bus 1
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0      
pchb1: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
ofb0 at pci1 dev 15 function 0: cannot map framebuffer  
scsibus0: waiting 2 seconds for devices to settle...  
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus1 target 0 lun 0: <IBM, DCAS-34330, S65A> SCSI2 0/direct fixed
sd0: 4134 MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x 8467200 sectors   
sd1 at scsibus1 target 1 lun 0: <SEAGATE, ST32171N, 0338> SCSI2 0/direct fixed
sd1: 2061 MB, 5168 cyl, 5 head, 163 sec, 512 bytes/sect x 4222640 sectors     
cd0 at scsibus1 target 4 lun 0: <PIONEER, CD-ROM DR-U06S, 1.05> SCSI2 5/cdrom removable
IPsec: Initialized Security Association Processing.
boot device: sd1                                   
root on sd1a dumps on sd1b
root file system type: ffs

-- 
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz