[lkml]   [2002]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.4.19-pre9, IDE on Sparc, Big Disks
    I just pulled a copy of Marcello's tree from bk and compiled it on my sparc
(that's a sun ultra 5). Everything went well but the IDE.
I have a large ide disk connected to this guy (around 120GB if memory
serves) and it used to work properly in the 2.4.17 era.
Now when I boot, I got this:

hdc: -612473816857182208 sectors

Well, clearly your bug is here.
This number is F7800E4F00000000 hex.
On the other hand, your disk has 240121728 sectors, which is 0E4FF780 hex.

So, someone assumed somewhere that the world is little-endian
with long the same size as int.

Precisely what happened is easiest to trace with the identify data in hand.
For example, maybe the sparc code still has to be extended to fix the
order of lba_capacity48 or so (in ide_fix_driveid).


[So, if you cannot find the culprit yourself, please give the identify data.
On some old kernel, the real, clean, identify data, as read directly from
the disk; not the stuff modified by the kernel. Maybe "cat /proc/ide/hdc/identify"
or so works.]

BTW, this fixing in-place of the driveid is a very bad idea.
Nobody should ever touch driveid. It is a read-only variable.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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