]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ahci: Expand HDD Logical Block addressability up to 32 bits
authorWalter Murphy <wmurphy@google.com>
Mon, 29 Oct 2012 05:24:03 +0000 (05:24 +0000)
committerTom Rini <trini@ti.com>
Fri, 2 Nov 2012 22:20:43 +0000 (15:20 -0700)
commitfe1f808ce79de0caa4674340958f02780b2f81f9
tree41192d4b7e04eea0e6565c8042a0a48733d4cc86
parent766b16fe180087d8c59a79a4f6a92d1a500fa524
ahci: Expand HDD Logical Block addressability up to 32 bits

Currently, this driver uses a 28bit interface to AHCI, this
limits the number of blocks addressable to 2^28, or the max
disk size to 512(2^28) or about 137GB. This change allows
supporting drives up to about 2TB.

Testing this is a bit difficult. There is test code that
can be inserted into U-Boot that will write test patterns
into certain unused blocks. These patterns can be manually
checked using 'dd' after boot. Another way is to confirm the
original error that exposed this bug is fixed. IOW: see if
AU (Auto Update) will now work on the drive. Also, check
that there are no warning messages from the 'cgpt' utility.

Signed-off-by: Walter Murphy <wmurphy@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/ahci.c