lkml.org 
[lkml]   [1999]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: pre-patch-2.2.8-series candidate, TESTERS NEEDED...


On Tue, 4 May 1999, Andre M. Hedrick wrote:

>
> Patch will not be uploaded to the list......get it at ::
> http://www.dyer.vanderbilt.edu/
> server/udma/2.2.7.uniform-ide-6.19.delta.patch.gz

Andre, while we are at it, could you apply the following patch to
ide-disk.c? Bright IBM boys produced a large disk that reports
0x3fff*15*63 instead of 0x3fff*16*63. The patch below fixed the problem.
TIA,
Al

--- ide-disk.c.old Tue May 4 04:21:48 1999
+++ ide-disk.c Tue May 4 04:27:06 1999
@@ -101,6 +101,15 @@
id->cyls = lba_sects / (16 * 63); /* correct cyls */
return 1; /* lba_capacity is our only option */
}
+ /*
+ * ... and at least one TLA VBC has POS instead of brain and can't
+ * tell 16 from 15.
+ */
+ if ((id->lba_capacity >= 15481935) && (id->cyls == 0x3fff) &&
+ (id->heads == 15) && (id->sectors == 63)) {
+ id->cyls = lba_sects / (15 * 63); /* correct cyls */
+ return 1; /* lba_capacity is our only option */
+ }
/* perform a rough sanity check on lba_sects: within 10% is "okay" */
if ((lba_sects - chs_sects) < _10_percent) {
return 1; /* lba_capacity is good */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.075 / U:1.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site