]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ahci: support LBA48 data reads for 2+TB drives
authorMark Langsdorf <mark.langsdorf@gmail.com>
Thu, 4 Jun 2015 23:58:45 +0000 (00:58 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:42:49 +0000 (00:42 +0200)
commit099228de416b12dced4c28e9205d79e4713920f3
tree768d573b147417d1f3441044324ea46f2b9b11e3
parentfb45e70a1a9a1b2a6e399c51156961e100a0bf7e
ahci: support LBA48 data reads for 2+TB drives

Enable full 48-bit LBA48 data reads by passing the upper word of the
LBA block pointer in bytes 9 and 10 of the FIS.

This allows uboot to load data from any arbitrary sector on a drive
with 2 or more TB of available data connected to an AHCI controller.

Signed-off-by: Mark Langsdorf <mark.langsdorf@gmail.com>
Signed-off-by: Andre Przywara <osp@andrep.de>
[trini: Make use of CONFIG_SYS_64BIT_LBA in a few places to drop
 warnings on platforms that don't enable that feature ]
Signed-off-by: Tom Rini <trini@konsulko.com>
common/cmd_scsi.c
drivers/block/ahci.c
include/scsi.h