Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2003 20:07:24 +0100 (CET)
From:      Soeren Schmidt <sos@spider.deepcore.dk>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        sos@freebsd.org, current@freebsd.org
Subject:   Re: UDMA66 vs ATAPI_DEVICE(atadev)?
Message-ID:  <200302261907.h1QJ7OcV055407@spider.deepcore.dk>
In-Reply-To: <15965.3516.794342.137264@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
It seems Andrew Gallatin wrote:
> 
> After recent ATA commits, my Promise UDMA66 controller is now running
> its drives in PIO4 mode.  Previously, UDMA66 was working fine.
> 
> Here's a dmesg snippet:
> 
> atapci0: <Promise UDMA66 controller> port 0xdf00-0xdf3f,0xdfe0-0xdfe3,0xdfa8-0xd
> faf,0xdfe4-0xdfe7,0xdff0-0xdff7 mem 0xfc8a0000-0xfc8bffff irq 2 at device 2.0 on  pci0
> ata2: at 0xdff0 on atapci0
> ata3: at 0xdfa8 on atapci0
> <..>
> ad4: 19092MB <ST320414A> [38792/16/63] at ata2-master PIO4
> 
> The controller itself looks like this:
> 
> atapci0@pci0:2:0:       class=0x018000 card=0x4d33105a chip=0x4d38105a rev=0x01 hdr=0x00
>     vendor   = 'Promise Technology Inc'
>     device   = 'PDC20262 FastTrak66 EIDE Controller'
>     class    = mass storage
> 
> 
> I've found that I can recover from this problem by forcing
> ATAPI_DEVICE() to always return 1.  It seems to want to return 0
> for devices not on the primary ata controller.   
> 
> I'm confused..  What's the point of ATAPI_DEVICE()?  Am I not allowed
> to use extra controllers anymore?

ATAPI_DEVICE is used on those controllers that cannot do ATAPI DMA,
the test here is bogusly reversed, I'll fix asap...

-Søren

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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