[ltp] Host Protected Area (HPA) and kernel 2.6.10

wes schreiner linux-thinkpad@linux-thinkpad.org
Tue, 28 Dec 2004 07:09:25 -0600


This is a multi-part message in MIME format.
--------------050407030305030208030907
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

T. Ivarsson wrote:

>----- Original Message -----
>From: "wes schreiner" <wes@infosink.com>
>  
>
>>T. Ivarsson wrote:
>>
>>    
>>
>>>I've made the jump from kernel 2.6.8.1 to 2.6.10. When checking 
>>>/var/log/dmesg for the two versions, I notice that the Host 
>>>Protected Area (HPA) gets disabled when I boot 2.6.10 [1], but 
>>>not disabled with 2.6.8.1 [2]. How can I enable the HPA again?
>>>
>>>      
>>>
>>It never was enabled!  Look at "current capacity" below, it is the 
>>same under both kernels.
>>    
>>
>>>[1] /var/log/dmesg for 2.6.10
>>>------
>>>hda: max request size: 128KiB
>>>hda: Host Protected Area detected.
>>>       current capacity is 71838709 sectors (36781 MB)
>>>       native  capacity is 78140160 sectors (40007 MB)
>>>hda: Host Protected Area disabled.
>>>hda: 78140160 sectors (40007 MB) w/1768KiB Cache, CHS=65535/16/63, UDMA(100)
>>>hda: cache flushes not supported
>>>/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 >
>>>------
>>>
>>>[2] /var/log/dmesg for 2.6.8.1
>>>------
>>>hda: max request size: 128KiB
>>>hda: Host Protected Area detected.
>>>       current capacity is 71838709 sectors (36781 MB)
>>>       native  capacity is 78140160 sectors (40007 MB)
>>>hda: 71838709 sectors (36781 MB) w/1768KiB Cache, CHS=65535/16/63, UDMA(100)
>>>/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 >
>>>------
>>>      
>>>
>
>Yes, but what about the lines:
>
>  
>
>>>hda: 78140160 sectors (40007 MB) w/1768KiB Cache, CHS=65535/16/63, UDMA(100)
>>>hda: 71838709 sectors (36781 MB) w/1768KiB Cache, CHS=65535/16/63, UDMA(100)
>>>      
>>>
>
>Don't they show the details of what's being seen?
>
>Confused,
>T.
>  
>
What's confusing you is the change in the way disk capacity is being 
reported.  Before, with the HPA disabled, the kernel reported the "fake" 
disk capacity.  Now, the kernel reports the true disk capacity and also 
reports that the HPA is disabled, if that is the case.  The new way is 
closer to what is actually the state of the disk, but it requires more 
understanding by the viewer.  Nothing has changed on your disk, and 
nothing is different about how Linux is treating your disk, it is just 
that now the kernel is giving you more information than before.  There's 
nothing to worry about.

wes

--------------050407030305030208030907
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=iso-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
T. Ivarsson wrote:
<blockquote cite="mid20041228124654.16C733384B@ws7-3.us4.outblaze.com"
 type="cite">
  <pre wrap="">----- Original Message -----
From: "wes schreiner" <a class="moz-txt-link-rfc2396E" href="mailto:wes@infosink.com">&lt;wes@infosink.com&gt;</a>
  </pre>
  <blockquote type="cite">
    <pre wrap="">T. Ivarsson wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">I've made the jump from kernel 2.6.8.1 to 2.6.10. When checking 
/var/log/dmesg for the two versions, I notice that the Host 
Protected Area (HPA) gets disabled when I boot 2.6.10 [1], but 
not disabled with 2.6.8.1 [2]. How can I enable the HPA again?

      </pre>
    </blockquote>
    <pre wrap="">It never was enabled!  Look at "current capacity" below, it is the 
same under both kernels.
    </pre>
    <blockquote type="cite">
      <pre wrap="">[1] /var/log/dmesg for 2.6.10
------
hda: max request size: 128KiB
hda: Host Protected Area detected.
       current capacity is 71838709 sectors (36781 MB)
       native  capacity is 78140160 sectors (40007 MB)
hda: Host Protected Area disabled.
hda: 78140160 sectors (40007 MB) w/1768KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes not supported
/dev/ide/host0/bus0/target0/lun0: p1 p2 &lt; p5 p6 p7 p8 &gt;
------

[2] /var/log/dmesg for 2.6.8.1
------
hda: max request size: 128KiB
hda: Host Protected Area detected.
       current capacity is 71838709 sectors (36781 MB)
       native  capacity is 78140160 sectors (40007 MB)
hda: 71838709 sectors (36781 MB) w/1768KiB Cache, CHS=65535/16/63, UDMA(100)
/dev/ide/host0/bus0/target0/lun0: p1 p2 &lt; p5 p6 p7 p8 &gt;
------
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
Yes, but what about the lines:

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">hda: 78140160 sectors (40007 MB) w/1768KiB Cache, CHS=65535/16/63, UDMA(100)
hda: 71838709 sectors (36781 MB) w/1768KiB Cache, CHS=65535/16/63, UDMA(100)
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
Don't they show the details of what's being seen?

Confused,
T.
  </pre>
</blockquote>
What's confusing you is the change in the way disk capacity is being
reported.&nbsp; Before, with the HPA disabled, the kernel reported the
"fake" disk capacity.&nbsp; Now, the kernel reports the true disk capacity
and also reports that the HPA is disabled, if that is the case.&nbsp; The
new way is closer to what is actually the state of the disk, but it
requires more understanding by the viewer.&nbsp; Nothing has changed on your
disk, and nothing is different about how Linux is treating your disk,
it is just that now the kernel is giving you more information than
before.&nbsp; There's nothing to worry about.<br>
<br>
wes<br>
</body>
</html>

--------------050407030305030208030907--