On Tue, 12 Jul 2005 23:49:35 +0900 Tejun Heo wrote: > Matthew Garrett wrote: > > On boot, Linux will attempt to disable the host protected area on a > > disk. After a suspend/resume cycle, the BIOS may reenable it (seen on a > > Thinkpad T40 and R40). As a result, the kernel is now unable to access > > the HPA. > > > > Is there any issue with just adding a call to idedisk_check_hpa() in the > > IDE resume code? > > This has come up several times now. One thing I'm curious about is > why we are disabling HPA on boot without consent from the user. AFAIK, > HPA is mostly used to implement hidden recovery/suspend storage areas > and disabling automatically on boot increases the likeliness of > destroying them. What do we gain by disabling HPA on boot? Are there > some dumb machines which unnecessarily sets HPA and reduces the capacity > of drives excessively? Even in such cases, wouldn't it be better to do > idedisk_check_hpa() only when kernel parameter explicitly says so?
Support for disabling HPA during boot is needed mainly for old machines with BIOS limitations. Some disks have jumpers which limit capacity to 32 GB, so that such old BIOSes can recognize the disk without hanging at boot; disabling HPA gives access to the whole capacity.
pgpZlocQxcHUO.pgp
Description: PGP signature
