Skip to contentSkip to conversation

Large "clipped" IDE disk support for 2.4 when using old BIOS

PATCH Andre Hedrick 2 participants 3 messages Nov 20, 2000 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Andries,

Don't you mean

(drive->id->cfs_enable_1 & 0x0400) word85
and not
(drive->id->command_set_1 & 0x0400) word82

Because when bit 10 of word 85 is not set then clip or HPArea is not enabled.

Cheers,

Andre Hedrick
CTO Timpanogas Research Group
EVP Linux Development, TRG
Linux ATA Development

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
In reply to a message not in the archive
Quoted 3 lines

Both disks claim support for the Host Protected Area feature set. No doubt early disks had firmware flaws.

So it's yet another "borken hardware"... Is there anything like SCSI "blacklist" for IDE driver? Then it could be handled easily by registering the drive there and check that out before autodetection.

Quoted 2 lines

- The routine idedisk_supports_host_protected_area() should look at bit 10 of command_set_1, but it does a "& 0x0a".

Oh, no. Thanks for catching that. It should obviously be 0x0400.

# I guess it got converted in a way like this: 10th bit -> 10 -> 0x0a. Ugh.

Quoted 1 line

- The assignment "hd_cap = hd_max;" is one off:

Now that explains one missing sector reported previously. Yes, ATA spec says that the command returns "maximum address", not number of sectors.

I'll make a fix and resend a patch - or since the fix is so simple, I guess Andre can just add these fixes to IDE driver directly.

--
Taisuke Yamada <[email protected]>
PGP fingerprint = 6B 57 1B ED 65 4C 7D AE 57 1B 49 A7 F7 C8 23 46 -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw

Fixed now and working on it..

Quoted 21 lines · T. Yamada
Quoted 3 lines

Both disks claim support for the Host Protected Area feature set. No doubt early disks had firmware flaws.

So it's yet another "borken hardware"... Is there anything like SCSI "blacklist" for IDE driver? Then it could be handled easily by registering the drive there and check that out before autodetection.

Quoted 2 lines

- The routine idedisk_supports_host_protected_area() should look at bit 10 of command_set_1, but it does a "& 0x0a".

Oh, no. Thanks for catching that. It should obviously be 0x0400.

# I guess it got converted in a way like this: 10th bit -> 10 -> 0x0a. Ugh.

Quoted 1 line

- The assignment "hd_cap = hd_max;" is one off:

Now that explains one missing sector reported previously. Yes, ATA spec says that the command returns "maximum address", not number of sectors.

Quoted 7 lines

I'll make a fix and resend a patch - or since the fix is so simple, I guess Andre can just add these fixes to IDE driver directly.

--
Taisuke Yamada <[email protected]>
PGP fingerprint = 6B 57 1B ED 65 4C 7D AE 57 1B 49 A7 F7 C8 23 46

Andre Hedrick
CTO Timpanogas Research Group
EVP Linux Development, TRG
Linux ATA Development

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/