linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bogus LBA48 drives
@ 2004-03-30 15:22 Geert Uytterhoeven
  2004-03-30 15:26 ` Geert Uytterhoeven
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2004-03-30 15:22 UTC (permalink / raw)
  To: André Hedrick, Bartlomiej Zolnierkiewicz
  Cc: Lionel Bergeret, JunHyeok Heo, Linux Kernel Development,
	linux-ide


Apparently some IDE drives (e.g. a pile of 80 GB ST380020ACE drives I have
access to) advertise to support LBA48, but don't, causing kernels that support
LBA48 (i.e. anything newer than 2.4.18, including 2.4.25 and 2.6.4) to fail on
them.  Older kernels (including 2.2.20 on the Debian woody CDs) work fine.

One problem with those drives is that the lba_capacity_2 field in their drive
identification is set to 0, making the IDE driver think the disk is 0 bytes
large. At first I tried modifying the driver to use lba_capacity if
lba_capacity_2 is set to 0, but this caused disk errors. So it looks like those
drives don't support the increased transfer size of LBA48 neither.

I added a workaround for these drives to both 2.4.25 and 2.6.4. I'll send
patches in follow-up emails.

BTW, this problem (incl. a small patch to fix it for 2.4.19, which doesn't work
on 2.4.25 anymore) was reported a while ago by JunHyeok Heo, cfr.
http://www.cs.helsinki.fi/linux/linux-kernel/2002-42/0312.html

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-04-01 18:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-30 15:22 [PATCH] Bogus LBA48 drives Geert Uytterhoeven
2004-03-30 15:26 ` Geert Uytterhoeven
2004-03-30 15:28 ` Geert Uytterhoeven
2004-03-30 15:51 ` Bartlomiej Zolnierkiewicz
2004-03-30 16:38 ` Andre Hedrick
2004-03-30 16:50   ` Jeff Garzik
2004-03-31 18:34   ` Andries Brouwer
2004-03-31 18:58     ` Jeff Garzik
2004-04-01  9:06       ` Geert Uytterhoeven
2004-04-01 18:24         ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).