[Bug 26119] Re: Possible fake host protected area (hpa) detected in ide drive causing SectorIdNotFound

Josep Vicent Sala jvsala at gmail.com
Tue Sep 11 12:38:48 UTC 2007


It seems it is already there and will be available with 2.6.23.

>From the 2.6.23-rc4 changelog
(http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.23-rc4):

commit b0244a00451c1ad64bf0a51f50679f7146786780
Author: Bartlomiej Zolnierkiewicz <bzolnier at gmail.com>
Date:   Mon Aug 20 22:42:57 2007 +0200

    ide-disk: workaround for buggy HPA support on ST340823A (take 3)
    
    This disk reports total number of sectors instead of maximum sector address
    in response to READ_NATIVE_MAX_ADDRESS command and also happily accepts
    SET_MAX_ADDRESS command with the bogus value.  This results in +1 sector
    capacity being used and errors on attempts to use the last sector.
    
    ...
    hdd: Host Protected Area detected.
    Â  Â  Â  Â  current capacity is 78165360 sectors (40020 MB)
            native  capacity is 78165361 sectors (40020 MB)
    hdd: Host Protected Area disabled.
    ...
    hdd: reading: block=78165360, sectors=1, buffer=0xc1e63000
    hdd: dma_intr: status=0x51 { DriveReady SeekComplete Error }
    hdd: dma_intr: error=0x10 { SectorIdNotFound }, LBAsect=78165360, sector=78165360
    ...
    
    Add hpa_list[] table and workaround the issue in idedisk_check_hpa().
    
    v2:
    * Add missing export and improve patch description a bit.
    
    v3:
    * Add list termination.  (From Mikko)
    
    Fixes kernel bugzilla bug #8816.
    
    Thanks to Mikko for investigating the issue and helping with this patch.
    
    Cc: Mikko Rapeli <mikko.rapeli at iki.fi>
    Cc: Alan Cox <alan at lxorguk.ukuu.org.uk>
    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier at gmail.com>

-- 
Possible fake host protected area (hpa) detected in ide drive causing SectorIdNotFound
https://bugs.launchpad.net/bugs/26119
You received this bug notification because you are a member of Kernel
Bugs, which is a direct subscriber.




More information about the kernel-bugs mailing list