[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180411173411.201765ee@bbrezillon>
Date: Wed, 11 Apr 2018 17:34:11 +0200
From: Boris Brezillon <boris.brezillon@...tlin.com>
To: Peter Rosin <peda@...ntia.se>
Cc: Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Richard Weinberger <richard@....at>,
Josh Wu <rainyfeeling@...look.com>,
linux-kernel@...r.kernel.org, Marek Vasut <marek.vasut@...il.com>,
linux-mtd@...ts.infradead.org,
Cyrille Pitchen <cyrille.pitchen@...ev4u.fr>,
Brian Norris <computersforpeace@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using
dma
On Wed, 11 Apr 2018 17:10:43 +0200
Peter Rosin <peda@...ntia.se> wrote:
> On 2018-04-11 16:59, Boris Brezillon wrote:
> > On Wed, 11 Apr 2018 16:44:10 +0200
> > Peter Rosin <peda@...ntia.se> wrote:
> >
> >> Hi Nicolas,
> >>
> >> Boris asked for your input on this (the datasheet difference appears to
> >> have no bearing on the issue) elsewhere in the tree of messages. It's
> >> now been a week or so and I'm starting to wonder if you missed this
> >> altogether or if you are simply out of office or something?
> >
> > I was wondering if you had given up on this problem, it seems you did
> > not.
>
> I have my local patch to disable dma for the flash, but local patches
> are always a disappointment.
I understand that.
>
> > Did you try forcing the HLCDC to use the 2nd interface (ahb_id=1)
> > instead of the first one?
>
> Just tried, and it's better that way, but the problem still exist and is
> very visible on some (but apparently not all) flash accesses.
Then your problems are unlikely to go away even with the priority
adjustments because the DMAC do not use port 3, and priority stuff are
only useful to enforce priority between masters accessing the same
slave.
I guess the real limitation comes the DRAM link, and asking the CPU
to copy data from the NFC SRAM to the the DRAM is probably slowing
things enough to let the HLCDC go through with its data transfers. Or
maybe it has to do with the CPU data caches that are not immediately
flushed to the DRAM when you copy things through the CPU.
Powered by blists - more mailing lists