Subject: WD_QUIRK_FORCE_LBA48 for ST3200826AS
To: None <bouyer@antioche.eu.org>
From: rudolf <netbsd@eq.cz>
List: tech-kern
Date: 09/05/2005 15:41:06
This is a multi-part message in MIME format.
--------------070409020308070601080700
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

this drive also seems to need the WD_QUIRK_FORCE_LBA48:

wd0 at atabus0 drive 0: <ST3200826AS>
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(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using 
DMA)

I have encountered following errors (bn is allways 268435455):

Sep  2 21:39:06 gordon /netbsd: wd0g: error reading fsbn 192657984 of 
192657984-192658015 (wd0 bn 268435455; cn 266305 tn 0 sn 15), retrying

and it wasn't possible to newfs it (wtfs: write error for sector 16: 
Read-only file system) when it was configured as a raid device 
(raidframe). With the quirk is everything ok.

r.

--------------070409020308070601080700
Content-Type: text/plain;
 name="wd.c-ST3200826AS-lba48_quirk.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="wd.c-ST3200826AS-lba48_quirk.patch"

--- wd.c-orig	2005-09-04 13:11:13.000000000 +0200
+++ wd.c	2005-09-04 13:15:46.000000000 +0200
@@ -239,6 +239,8 @@
 	  WD_QUIRK_FORCE_LBA48 },
 	{ "ST3200822A*",
 	  WD_QUIRK_FORCE_LBA48 },
+	{ "ST3200826AS",
+	  WD_QUIRK_FORCE_LBA48 },
 	{ "ST3250823A*",
 	  WD_QUIRK_FORCE_LBA48 },
 

--------------070409020308070601080700--