Subject: Re: cmdide.c: CMD Technology product 0x0680
To: None <port-i386@NetBSD.org>
From: Hanspeter Roth <hampi@rootshell.be>
List: port-i386
Date: 03/09/2004 23:00:02
--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

  On Mar 09 at 17:35, Giles Lean spoke:

> Hanspeter Roth <hampi@rootshell.be> wrote:
> 
> > I'm running NetBSD 1.6.2.
> 
> Others have suggested running -current; an alternative is to back port
> the driver from -current to 1.6.2, if the driver will work with that
> RAID card.  (Is it really RAID, or is it "RAID" of the Windows driver
> variety?)

During POST there seems to be some BIOS stuff claiming some kind of
RAID message. It also offers a setup when F3 is pressed. 
However I don't use it as RAID. I just run two ATAPI burners in DMA
mode. Two years ago I didn't find any other IDE controller that can
operate ATAPI drives in DMA mode when burning. I had been fiddling
with some Promise controllers. But I was not able to run them in DMA
mode when burning.
If you know of any other controller that can run ATAPI burners in
DMA mode when burning, I'd be interested.

> Back porting the driver is pretty simple; I dug the changes out of one
> time and someone else (Matt Green?) did too and posted about it to one
> of the mailing lists.
> 
> NetBSD 1.6.2 (GENERIC) #1: Mon Feb 23 20:37:18 EST 2004
>     unpriv@nemeton.com.au:/usr/local/NetBSD/netbsd-1-6/obj/sys/arch/i386/compile/GENERIC
> ...
> pciide0 at pci1 dev 13 function 0: Silicon Image 0680 (rev. 0x02)
> pciide0: bus-master DMA support present
> pciide0: primary channel configured to native-PCI mode
> pciide0: using irq 9 for native-PCI interrupt
> ...

Yes, the patch works on 1.6.2! Thanks!

> I've put the diffs I'm currently using and an i386 GENERIC kernel
> up for ftp at:
> 
>    ftp://ftp.nemeton.com.au/pub/netbsd/1.6-silicon-image/

I've built the kernel anew. But I had to modify pcidevs.h. But then
it built.

Thanks again.

-Hanspeter

--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="pcidevs.h-diff"

--- sys/dev/pci/pcidevs.h.orig	Mon Oct 20 04:49:35 2003
+++ sys/dev/pci/pcidevs.h	Tue Mar  9 21:12:27 2004
@@ -1026,6 +1027,7 @@
 #define	PCI_PRODUCT_CMDTECH_647	0x0647		/* PCI0647 */
 #define	PCI_PRODUCT_CMDTECH_648	0x0648		/* PCI0648 */
 #define	PCI_PRODUCT_CMDTECH_649	0x0649		/* PCI0649 */
+#define	PCI_PRODUCT_CMDTECH_680	0x0680		/* PCI0680 */
 
 /* Inclusion of 'A' in the following entry is probably wrong. */
 /* No data on the CMD Tech. web site for the following as of Mar. 3 '98 */

--qDbXVdCdHGoSgWSk--