Subject: Re: maxtor sata quirk
To: None <tech-kern@netbsd.org>
From: George Georgalis <george@galis.org>
List: tech-kern
Date: 03/05/2007 16:18:45
On Mon, Mar 05, 2007 at 03:55:25PM -0500, Greg Troxel wrote:
>"George Georgalis" <george@galis.org> writes:
>
>> 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:
>>>
>>>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)
>>>
>>>    dd if=/dev/rwd1a of=/dev/null skip=268435392 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)
>>
>> I get the same (single) bad block on two new drives.
>> that's fffffc0 and I don't see an existing quirk
>> table for Maxtor SATA drives.
>>
>> if someone plans to make one and wants me to test, let me know
>> asap, since I'll be returning the drives shortly.
>
>Note that a range was tried, and that the failing bn was 268435455.
>So, this looks like the same 0xfffffff problem as Seagate.
>
>Try bs=1b or bs=512 so that with any luck dd reads only 1 block rather
>than 64k.  I don't understand why it isn't following the documented
>default of 12 bytes; I wonder if it's "optimizing" the reads.

okay, right.

rock# dd if=/dev/rwd1d of=/dev/null skip=268435454 count=1 bs=1b 
1+0 records in
1+0 records out
512 bytes transferred in 0.014 secs (36571 bytes/sec)
rock# dd if=/dev/rwd1d of=/dev/null skip=268435455 count=1 bs=1b 
dd: /dev/rwd1d: Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 3.352 secs (0 bytes/sec)
rock# dd if=/dev/rwd1d of=/dev/null skip=268435456 count=1 bs=1b 
1+0 records in
1+0 records out
512 bytes transferred in 0.007 secs (73142 bytes/sec)

wd1d: error reading fsbn 268435455 (wd1 bn 268435455; cn 266305 tn 0 sn 15), retrying
wd1: (id not found)
wd1d: error reading fsbn 268435455 (wd1 bn 268435455; cn 266305 tn 0 sn 15), retrying
wd1: (id not found)
wd1d: error reading fsbn 268435455 (wd1 bn 268435455; cn 266305 tn 0 sn 15), retrying
wd1: (id not found)
wd1d: error reading fsbn 268435455 (wd1 bn 268435455; cn 266305 tn 0 sn 15), retrying
wd1: (id not found)
wd1d: error reading fsbn 268435455 (wd1 bn 268435455; cn 266305 tn 0 sn 15), retrying
wd1: (id not found)
wd1d: error reading fsbn 268435455 (wd1 bn 268435455; cn 266305 tn 0 sn 15)wd1: (id not found)

// George


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