Subject: Re: 3.0-stable newbee questions
To: Martin Husemann <martin@duskware.de>
From: J.D. Bronson <jbronson@wixb.com>
List: netbsd-users
Date: 07/16/2006 15:47:21
At 02:18 PM 7/16/2006, Martin Husemann wrote:
>On Sun, Jul 16, 2006 at 02:06:37PM -0500, J.D. Bronson wrote:
> > thanks for the reply. yes, I am using brand new 80 pin cables. One
> > for each drive with 1 drive per channel and nothing else like a CDROM..
>
>Can you recompile a kernel? If not, what kernel would you need for
>testing?
>
>The code in question is in src/sys/dev/pci/rccide.c around line
>216:
>
>                 if ((atac->atac_cap & ATAC_CAP_UDMA) &&
>                     (drvp->drive_flags & DRIVE_UDMA)) {
>                         /* use Ultra/DMA, check for 80-pin cable */
>                         if (drvp->UDMA_mode > 2 &&
>                             (PCI_PRODUCT(pci_conf_read(sc->sc_pc, sc->sc_tag,
>                                                        PCI_SUBSYS_ID_REG))
>                              & (1 << (14 + channel))) == 0)
>                                 drvp->UDMA_mode = 2;
>
>You could try to comment out the
>
>         /* drvp->UDMA_mode = 2 */ ;
>
>and see how that kernel works.
>
>Martin


that fixed it.

wd0 at atabus0 drive 0: <HDS728080PLAT20>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(rccide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 
(Ultra/100) (using DMA)
wd1 at atabus1 drive 0: <ST3802110A>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(rccide0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 
(Ultra/100) (using DMA)


thanks :)