From: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v1 0/2] spi: dw-mid: fix simplex DMA transfers
Date: Thu, 30 Oct 2014 09:10:54 +0200 [thread overview]
Message-ID: <1414653054.2396.66.camel@linux.intel.com> (raw)
In-Reply-To: <20141029221530.GQ18557-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
On Wed, 2014-10-29 at 22:15 +0000, Mark Brown wrote:
> On Wed, Oct 29, 2014 at 03:20:48PM +0200, Andy Shevchenko wrote:
> > On Wed, 2014-10-29 at 11:17 +0000, Mark Brown wrote:
>
> > > - how exactly has this been tested?
>
> > I don't know how it was tested before, but, besides intel-mid-dma is
> > somehow broken (I won't spend time to patch it), I'm using patch I
> > already published which converts driver to use dw_dmac driver. With it I
> > run tests on a loop back.
>
> How exactly do you run those tests though, what is the client driver?
I have a hack patch to register the spidev and I run internal test suite
written by Mika Westerberg. It uses a loop back mode to send and check
data.
>
> > > tx_dma and rx_dma
> > > *can* be provided by users but vanishingly few actually do so. Drivers
> > > must not rely on the caller doing this, the feature will be going away
> > > apart from anything else. If the driver is relying on this it probably
> > > needs to have the DMA support that's there removed as a fix and should
> > > be converted to use the core DMA mapping functionality in -next.
>
> > So, regarding to above what would you like me to do as next step?
>
> Looking at map_dma_buffers() it's probably actually safe since it checks
> that the message has is_dma_mapped set which virtually no clients will
> do. However this means that we're not bothering to DMA almost all the
> time which is silly - I'd like to see the driver converted to provide a
> can_dma() operation and let the core worry about mapping, that will mean
> a substantial performance win for most clients.
That is exactly my intention with the additional thing — to use dw_dmac
instead of intel-mid-dma.
--
Andy Shevchenko <andriy.shevchenko-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Intel Finland Oy
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2014-10-30 7:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 16:25 [PATCH v1 0/2] spi: dw-mid: fix simplex DMA transfers Andy Shevchenko
[not found] ` <1414513502-595-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-10-28 16:25 ` [PATCH v1 1/2] spi: dw-mid: refactor to use helpers Andy Shevchenko
2014-10-28 16:25 ` [PATCH v1 2/2] spi: dw-mid: split rx and tx callbacks when DMA Andy Shevchenko
2014-10-28 22:41 ` [PATCH v1 0/2] spi: dw-mid: fix simplex DMA transfers Mark Brown
[not found] ` <20141028224156.GN18557-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-10-29 10:37 ` Andy Shevchenko
[not found] ` <1414579076.2396.62.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-10-29 11:17 ` Mark Brown
[not found] ` <20141029111712.GE18557-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-10-29 13:20 ` Andy Shevchenko
[not found] ` <1414588848.2396.64.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-10-29 22:15 ` Mark Brown
[not found] ` <20141029221530.GQ18557-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-10-30 7:10 ` Andy Shevchenko [this message]
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=1414653054.2396.66.camel@linux.intel.com \
--to=andriy.shevchenko-vuqaysv1563yd54fqh9/ca@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).