Re: HPA patches

From: Matthew Garrett
Date: Wed Mar 28 2007 - 17:29:14 EST


On Wed, Mar 28, 2007 at 10:54:31PM +0100, Alan Cox wrote:

> I wonder if the firmware is dying when we ask the disk to go zero sized
> rather than erroring politely. I'm not sure hth HPA sectors can come back
> as zero but we can be fairly sure 0 means "no HPA" in this case I guess ?

No, it seems to be looking at 0 because ata_read_native_max_address_ext
returns 0 in the error case - the error that ata_exec_internal generates
seems to be AC_ERR_HSM. Since 0 isn't > the size reported, we'll never
try to resize it anyway, judging by ata_hpa_resize - that is, it seems
to be the ata_read_native_max_address_ext call that breaks it.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/