public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
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 18:32:10 -0500	[thread overview]
Message-ID: <1438039930.2993.315.camel@freescale.com> (raw)
In-Reply-To: <CAPnjgZ2u912CVaXUV0vN1mLjsWoT501Y2hKkJ+jqgaRJF-z8Wg@mail.gmail.com>

On Mon, 2015-07-27 at 17:28 -0600, Simon Glass wrote:
> Hi Scott,
> 
> On 27 July 2015 at 13:57, Scott Wood <scottwood@freescale.com> wrote:
> > 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?
> 
> MMC has it. I feel that in general we should be able to ask the
> higher-level systems to do the right thing and align their data.
> Otherwise it introduces inefficiencies into the stack. But at least if
> we do introduce this, we should use common infrastructure, hence my
> request.

OK, so your request wasn't to move this into the driver, just about how to 
implement it if it's done in the driver?  Marcel, why did you change to 
handling this in the driver?

-Scott

  reply	other threads:[~2015-07-27 23:32 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
2015-07-27 23:28     ` Simon Glass
2015-07-27 23:32       ` Scott Wood [this message]
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=1438039930.2993.315.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