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)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jun 2015 20:52:32 +0000 (16:52 -0400)
commit2b42c9317db730170ba8e1eb1c0417955c6e68bb
tree299da4279fa0cccc9d5fb74d247fb7bd0e39d28e
parent35df89319901f948a9d32d1114004414346e507f
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