From: Roger Quadros <rogerq@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/8] ahci: Fix cache align error messages
Date: Mon, 11 Nov 2013 15:57:15 +0200 [thread overview]
Message-ID: <5280E23B.60707@ti.com> (raw)
In-Reply-To: <20131111135600.GO5925@bill-the-cat>
On 11/11/2013 03:56 PM, Tom Rini wrote:
> On Mon, Nov 11, 2013 at 03:31:16PM +0200, Roger Quadros wrote:
>> Align the ATA ID buffer to the cache-line boundary. This gets rid
>> of the below error mesages on ARM v7 platforms.
>>
>> scanning bus for devices...
>> ERROR: v7_dcache_inval_range - start address is not aligned - 0xfee48618
>> ERROR: v7_dcache_inval_range - stop address is not aligned - 0xfee48818
>>
>> CC: Aneesh V <aneesh@ti.com>
>> Signed-off-by: Roger Quadros <rogerq@ti.com>
>> ---
>> drivers/block/ahci.c | 8 +-------
>> 1 file changed, 1 insertion(+), 7 deletions(-)
>>
>> diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
>> index e24d634..e64df4f 100644
>> --- a/drivers/block/ahci.c
>> +++ b/drivers/block/ahci.c
>> @@ -623,7 +623,7 @@ static int ata_scsiop_inquiry(ccb *pccb)
>> 95 - 4,
>> };
>> u8 fis[20];
>> - u16 *tmpid;
>> + ALLOC_CACHE_ALIGN_BUFFER(u16, tmpid, ATA_ID_WORDS);
> [snip]
>> - tmpid = malloc(ATA_ID_WORDS * 2);
>> - if (!tmpid) {
>> - printf("%s: No memory for tmpid\n", __func__);
>> - return -ENOMEM;
>> - }
>>
>> if (ahci_device_data_io(port, (u8 *) &fis, sizeof(fis), (u8 *)tmpid,
>> ATA_ID_WORDS * 2, 0)) {
>
> We should be calling ALLOC_CACHE_ALIGN_BUFFER with ATA_ID_WORDS * 2,
> right?
>
No, as is u16.
cheers,
-roger
next prev parent reply other threads:[~2013-11-11 13:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-11 13:31 [U-Boot] [PATCH v2 0/8] SATA support for omap5_uevm and dra7_evm Roger Quadros
2013-11-11 13:31 ` [U-Boot] [PATCH v2 1/8] ahci: Error out with message on malloc() failure Roger Quadros
2013-11-11 13:31 ` [U-Boot] [PATCH v2 2/8] ahci: Fix cache align error messages Roger Quadros
2013-11-11 13:56 ` Tom Rini
2013-11-11 13:57 ` Roger Quadros [this message]
2013-11-11 13:31 ` [U-Boot] [PATCH v2 3/8] ARM: OMAP5: Add Pipe3 PHY driver Roger Quadros
2013-11-11 13:31 ` [U-Boot] [PATCH v2 4/8] ARM: OMAP5: Add PRCM and Control information for SATA Roger Quadros
2013-11-11 13:31 ` [U-Boot] [PATCH v2 5/8] ARM: OMAP5: Add SATA platform glue Roger Quadros
2013-11-11 13:31 ` [U-Boot] [PATCH v2 6/8] ARM: omap5_uevm: Add SATA support Roger Quadros
2013-11-11 13:31 ` [U-Boot] [PATCH v2 7/8] ARM: DRA7xx: Add PRCM and Control information for SATA Roger Quadros
2013-11-11 13:31 ` [U-Boot] [PATCH v2 8/8] ARM: dra7_evm: Add SATA support Roger Quadros
2013-11-11 13:58 ` [U-Boot] [PATCH v2 0/8] SATA support for omap5_uevm and dra7_evm Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5280E23B.60707@ti.com \
--to=rogerq@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.