Subject: Re: maxtor sata quirk
To: None <tech-kern@netbsd.org>
From: George Georgalis <george@galis.org>
List: tech-kern
Date: 03/07/2007 17:41:22
On Wed, Mar 07, 2007 at 10:37:54PM +0100, Manuel Bouyer wrote:
>On Mon, Mar 05, 2007 at 01:56:02PM -0500, George Georgalis wrote:
>> I seem to have come across a quirk for Maxtor SATA drives:
>> 
>> wd0 at atabus2 drive 0: <MAXTOR STM3200820AS>
>> wd0: drive supports 16-sector PIO transfers, LBA48 addressing
>> wd0: 186 GB, 387621 cyl, 16 head, 63 sec, 512 bytes/sect x 390721968 sectors
>> wd0: 32-bit data port
>> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
>> wd0(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
>> wd1 at atabus3 drive 0: <MAXTOR STM3200820AS>
>> wd1: drive supports 16-sector PIO transfers, LBA48 addressing
>> wd1: 186 GB, 387621 cyl, 16 head, 63 sec, 512 bytes/sect x 390721968 sectors
>> wd1: 32-bit data port
>> wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
>> wd1(viaide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
>> 
>> the center command below (only) fails on two new drives.
>> 
>>     dd if=/dev/rwd1a of=/dev/null skip=268435391 count=1
>>     dd if=/dev/rwd1a of=/dev/null skip=268435392 count=1
>>     dd if=/dev/rwd1a of=/dev/null skip=268435393 count=1
>> 
>> with kernel messages:
>> 
>> wd1a: error reading fsbn 268435392 of 268435392-268435519 (wd1 bn 268435455; cn 266305 tn 0 sn 15), retrying
>> wd1: (id not found)
>> 
>> In hex that's fffffc0 which is a little different than the Seagate
>> LBA 32/48 quirk that comes up now and then. I'm looking for
>> (hopefully) an existing quirk table that I can add my drive id to.
>> 
>> If anyone knows where to go from here, please let me know.
>
>Could you try the attached patch against current ? This should fix the
>issue for the most common cases, and hopefully it won't break any working
>setups.

thanks, nice patch.

ATM the drives are partitioned < LBA48_THRESHOLD and committed
to an important operation. We've already decided to return them
but I'll try to test your patch when they have finished their
moment of fame.

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><