From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 09/16] mtd/nand/tegra: alignment workaround
Date: Mon, 27 Jul 2015 14:57:14 -0500 [thread overview]
Message-ID: <1438027034.2993.303.camel@freescale.com> (raw)
In-Reply-To: <a948adcd9699f934734603c8ffc25ff6b4c9997d.1437426110.git.marcel.ziswiler@toradex.com>
On Tue, 2015-07-21 at 00:35 +0200, Marcel Ziswiler wrote:
> From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
>
> Integrate cache alignment bounce buffer to workaround issues as follows:
>
> Loading file '/boot/zImage' to addr 0x01000000 with size 4499152
> (0x0044a6d0)...
> ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108
> ERROR: v7_dcache_inval_range - stop address is not aligned - 0x1f7f1108
> Done
> Kernel image @ 0x1000000 [ 0x000000 - 0x44a6d0 ]
>
> Starting kernel ...
>
> undefined instruction
> pc : [<005ff03c>] lr : [<0000800c>]
> sp : 0144b6e8 ip : 01000188 fp : 0144a6c8
> r10: 00000000 r9 : 411fc090 r8 : 00000100
> r7 : 00000cfb r6 : 0144a6d0 r5 : 00000000 r4 : 00008000
> r3 : 0000000c r2 : 00000100 r1 : 00000cfb r0 : 00000000
> Flags: nZCv IRQs off FIQs off Mode SVC_32
> Resetting CPU ...
>
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> ---
> Changes in v2:
> Migrated to using generic bounce buffer implementation as suggested by
> Simon.
I didn't see Simon's suggestion, but what is the general policy in U-Boot
supposed to be for I/O alignment? Responsibility of the API user, or of the
driver? Are there other drivers with the same problem?
> - writel(virt_to_phys(buf), &info->reg->data_block_ptr);
> + writel((u32)bbstate.bounce_buffer, &info->reg->data_block_ptr);
Why are you converting usage of virt_to_phys() into a u32 cast?
-Scott
next prev parent reply other threads:[~2015-07-27 19:57 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 22:35 [U-Boot] [PATCH v2 00/16] assortment of tegra fixes/enhancements Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 01/16] ARM: tegra: allow custom usb manufacturer/product/vendor ids/strings Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 02/16] ARM: tegra: allow reading recovery mode boot type Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 03/16] apalis/colibri_t20/t30: integrate recovery mode detection Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 04/16] colibri_t20: fix device-tree compatible node Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 05/16] colibri_t20: add lcd display support Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 06/16] colibri_t20: add i2c support Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 07/16] colibri_t20: disable PMIC sleep mode on low supply voltage Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 08/16] tegra: nand: fix read_byte required for proper onfi detection Marcel Ziswiler
2015-07-27 20:00 ` Scott Wood
2015-07-28 2:05 ` Marcel Ziswiler
2015-07-28 2:17 ` Scott Wood
2015-07-20 22:35 ` [U-Boot] [PATCH v2 09/16] mtd/nand/tegra: alignment workaround Marcel Ziswiler
2015-07-27 19:57 ` Scott Wood [this message]
2015-07-27 23:28 ` Simon Glass
2015-07-27 23:32 ` Scott Wood
2015-07-28 2:09 ` Marcel Ziswiler
2015-07-28 1:55 ` Marcel Ziswiler
2015-07-28 2:15 ` Scott Wood
2015-08-05 22:12 ` Marcel Ziswiler
2015-08-05 22:16 ` Scott Wood
2015-07-20 22:35 ` [U-Boot] [PATCH v2 10/16] colibri_t20: enable mtdparts support Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 11/16] colibri_t20: enable ubi/ubifs support Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 12/16] apalis/colibri_t20/t30: enable raw initrd support Marcel Ziswiler
2015-07-27 19:45 ` Stephen Warren
2015-07-28 1:27 ` Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 13/16] apalis/colibri_t20/t30: increase tftp blocksize Marcel Ziswiler
2015-07-27 19:46 ` Stephen Warren
2015-07-28 1:38 ` Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 14/16] apalis/colibri_t20/30: clean-up Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 15/16] colibri_t20: fix reset out pin Marcel Ziswiler
2015-07-20 22:35 ` [U-Boot] [PATCH v2 16/16] apalis/colibri_t30: fix usb dm regression Marcel Ziswiler
2015-07-27 19:48 ` Stephen Warren
2015-07-28 1:44 ` Marcel Ziswiler
2015-07-27 19:49 ` [U-Boot] [PATCH v2 00/16] assortment of tegra fixes/enhancements Stephen Warren
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=1438027034.2993.303.camel@freescale.com \
--to=scottwood@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox