[U-Boot] [U-Boot, 4/8] ahci: support LBA48 data reads for 2+TB drives

Bin Meng bmeng.cn at gmail.com
Thu Jun 25 03:43:04 CEST 2015


Hi Andre,

On Sat, Jun 13, 2015 at 10:10 AM, Tom Rini <trini at konsulko.com> wrote:
> On Fri, Jun 05, 2015 at 12:58:45AM +0100, Andre Przywara wrote:
>
>> From: Mark Langsdorf <mark.langsdorf at gmail.com>
>>
>> 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 at gmail.com>
>> Signed-off-by: Andre Przywara <osp at andrep.de>
>
> With some changes to make use of CONFIG_SYS_64BIT_LBA in a few areas to
> allow the common parts to compile without warning on systems that
> don't set this:
>
> Applied to u-boot/master, thanks!
>

This commit creates a warning when CONFIG_SYS_64BIT_LBA is defined.
Please check below.

common/cmd_scsi.c: In function ‘scsi_read’:
common/cmd_scsi.c:410:3: warning: ‘smallblks’ may be used
uninitialized in this function [-Wmaybe-uninitialized]

Regards,
Bin


More information about the U-Boot mailing list