From: vinod.koul@intel.com (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/7] dmaengine: at_xdmac: prefer usage of readl/writel_relaxed
Date: Mon, 17 Nov 2014 14:04:00 +0530 [thread overview]
Message-ID: <20141117083400.GS24582@intel.com> (raw)
In-Reply-To: <20141113154551.GV3639@ldesroches-Latitude-E6320>
On Thu, Nov 13, 2014 at 04:45:51PM +0100, Ludovic Desroches wrote:
> On Thu, Nov 13, 2014 at 09:04:49PM +0530, Vinod Koul wrote:
> > On Thu, Nov 13, 2014 at 12:01:49PM +0100, Arnd Bergmann wrote:
> > > On Thursday 13 November 2014 11:52:39 Ludovic Desroches wrote:
> > > > _relaxed version of readl and writel are not implemented on all
> > > > architecture so COMPILE_TEST has to be removed in order to not cause
> > > > some build failures.
> > > >
> > > > Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> > > > ---
> > > >
> > >
> > > I've queued up Will Deacon's series to enable the relaxed accessors
> > > on all architectures, so the Kconfig change should no longer
> > > be required in 3.19.
> > And why is _relaxed() version required for thsi driver. Why cant readl(),
> > writel() with barriers do?
>
> Required not but preferred to my mind. I don't need a barrier for all
> read and write I am performing. Barriers have been added when needed.
>
> When you have fixed my code because of the compilation breakage on other
> architecture, you only change the read and write macros. Currently, there are
> some redundancies because of the barriers added in the code.
>
> To be honest, I have no idea about the performance impact between the
> use of read/write and read/write_relaxed. Then two choices:
> - go back to relaxed version, good new can keep COMPILE_TEST thanks to
> Will Deacon
But that would merged after merge window. This was also reported on next.
So lets keep this patch for now and you can enabled COMPILE_TEST after next
merge window.
> - remove barrier since they are no more needed if using readl/writel
I think that should be right fix along with checking performance of driver and
optimize/stress it
So for now, I am applying this whole series.
--
~Vinod
WARNING: multiple messages have this Message-ID (diff)
From: Vinod Koul <vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
cyrille.pitchen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org,
nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH 1/7] dmaengine: at_xdmac: prefer usage of readl/writel_relaxed
Date: Mon, 17 Nov 2014 14:04:00 +0530 [thread overview]
Message-ID: <20141117083400.GS24582@intel.com> (raw)
In-Reply-To: <20141113154551.GV3639@ldesroches-Latitude-E6320>
On Thu, Nov 13, 2014 at 04:45:51PM +0100, Ludovic Desroches wrote:
> On Thu, Nov 13, 2014 at 09:04:49PM +0530, Vinod Koul wrote:
> > On Thu, Nov 13, 2014 at 12:01:49PM +0100, Arnd Bergmann wrote:
> > > On Thursday 13 November 2014 11:52:39 Ludovic Desroches wrote:
> > > > _relaxed version of readl and writel are not implemented on all
> > > > architecture so COMPILE_TEST has to be removed in order to not cause
> > > > some build failures.
> > > >
> > > > Signed-off-by: Ludovic Desroches <ludovic.desroches-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
> > > > ---
> > > >
> > >
> > > I've queued up Will Deacon's series to enable the relaxed accessors
> > > on all architectures, so the Kconfig change should no longer
> > > be required in 3.19.
> > And why is _relaxed() version required for thsi driver. Why cant readl(),
> > writel() with barriers do?
>
> Required not but preferred to my mind. I don't need a barrier for all
> read and write I am performing. Barriers have been added when needed.
>
> When you have fixed my code because of the compilation breakage on other
> architecture, you only change the read and write macros. Currently, there are
> some redundancies because of the barriers added in the code.
>
> To be honest, I have no idea about the performance impact between the
> use of read/write and read/write_relaxed. Then two choices:
> - go back to relaxed version, good new can keep COMPILE_TEST thanks to
> Will Deacon
But that would merged after merge window. This was also reported on next.
So lets keep this patch for now and you can enabled COMPILE_TEST after next
merge window.
> - remove barrier since they are no more needed if using readl/writel
I think that should be right fix along with checking performance of driver and
optimize/stress it
So for now, I am applying this whole series.
--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-11-17 8:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 10:52 [PATCH 0/7] fixes and update for at_xdmac Ludovic Desroches
2014-11-13 10:52 ` Ludovic Desroches
2014-11-13 10:52 ` [PATCH 1/7] dmaengine: at_xdmac: prefer usage of readl/writel_relaxed Ludovic Desroches
2014-11-13 10:52 ` Ludovic Desroches
2014-11-13 11:01 ` Arnd Bergmann
2014-11-13 11:01 ` Arnd Bergmann
2014-11-13 14:21 ` Ludovic Desroches
2014-11-13 14:21 ` Ludovic Desroches
2014-11-13 15:34 ` Vinod Koul
2014-11-13 15:34 ` Vinod Koul
2014-11-13 15:45 ` Ludovic Desroches
2014-11-13 15:45 ` Ludovic Desroches
2014-11-17 8:34 ` Vinod Koul [this message]
2014-11-17 8:34 ` Vinod Koul
2014-11-13 10:52 ` [PATCH 2/7] dmaengine: at_xdmac: remove chancnt affectation Ludovic Desroches
2014-11-13 10:52 ` Ludovic Desroches
2014-11-13 10:52 ` [PATCH 3/7] dmaengine: at_xdmac: fix software lockup at_xdmac_tx_status() Ludovic Desroches
2014-11-13 10:52 ` Ludovic Desroches
2014-11-13 10:52 ` [PATCH 4/7] dmaengine: at_xdmac: fix a bug in transfer residue computation Ludovic Desroches
2014-11-13 10:52 ` Ludovic Desroches
2014-11-13 10:52 ` [PATCH 5/7] dmaengine: at_xdmac: fix missing spin_unlock Ludovic Desroches
2014-11-13 10:52 ` Ludovic Desroches
2014-11-17 8:31 ` Vinod Koul
2014-11-17 8:31 ` Vinod Koul
2014-11-13 10:52 ` [PATCH 6/7] ARM: dts: at_xdmac: fix bad value of dma-cells in documentation Ludovic Desroches
2014-11-13 10:52 ` Ludovic Desroches
2014-11-13 10:52 ` [PATCH 7/7] dmaengine: at_xdmac: Add DMA_PRIVATE Ludovic Desroches
2014-11-13 10:52 ` Ludovic Desroches
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=20141117083400.GS24582@intel.com \
--to=vinod.koul@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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.