linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: mgreer@animalcreek.com (Mark A. Greer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 7/7] crypto: omap_sham: Remove usage of private DMA API
Date: Wed, 14 Nov 2012 09:47:55 -0700	[thread overview]
Message-ID: <20121114164755.GA16925@animalcreek.com> (raw)
In-Reply-To: <CALLzPKZ0qC-mm4tLsywzGi7jtnK8aSQcbW5sGxr2Z1g6hyBpsA@mail.gmail.com>

On Tue, Nov 13, 2012 at 11:47:57PM -0800, Kasatkin, Dmitry wrote:
> On Fri, Nov 9, 2012 at 9:17 AM, Mark A. Greer <mgreer@animalcreek.com> wrote:
> > On Fri, Nov 09, 2012 at 06:28:16PM +0200, Kasatkin, Dmitry wrote:
> >> On Wed, Nov 7, 2012 at 4:57 AM, Mark A. Greer <mgreer@animalcreek.com> wrote:
> >> > From: "Mark A. Greer" <mgreer@animalcreek.com>
> >> >
> >> > Remove usage of the private OMAP DMA API.
> >> > The dmaengine API will be used instead.
> >> >
> >> > CC: Russell King <rmk+kernel@arm.linux.org.uk>
> >> > CC: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
> >> > Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
> >> > ---
> >> >  drivers/crypto/omap-sham.c | 117 ---------------------------------------------
> >> >  1 file changed, 117 deletions(-)
> >> >
> >> > diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c
> >> > index b57277c..ebb5255 100644
> >> > --- a/drivers/crypto/omap-sham.c
> >> > +++ b/drivers/crypto/omap-sham.c
> >
> >> > @@ -807,18 +762,6 @@ static int omap_sham_handle_queue(struct omap_sham_dev *dd,
> >> >         if (err)
> >> >                 goto err1;
> >> >
> >> > -#ifdef OMAP_SHAM_DMA_PRIVATE
> >> > -       omap_set_dma_dest_params(dd->dma_lch, 0,
> >> > -                       OMAP_DMA_AMODE_CONSTANT,
> >> > -                       dd->phys_base + SHA_REG_DIN(0), 0, 16);
> >> > -
> >> > -       omap_set_dma_dest_burst_mode(dd->dma_lch,
> >> > -                       OMAP_DMA_DATA_BURST_16);
> >> > -
> >> > -       omap_set_dma_src_burst_mode(dd->dma_lch,
> >> > -                       OMAP_DMA_DATA_BURST_4);
> >>
> >> Burst mode significantly improves performance.
> >> How do you configure burst mode with new API?
> >
> > This is (or should be) taken care of by the dmaengine infrastructure.
> > I've noted that there's an issue and there is a discussion about it
> > here:
> >
> >         http://www.spinics.net/lists/linux-omap/msg79855.html
> >
> > We probably need to extend the dmaengine API to allow API-users to
> > request specific tweaks/optimizations/whatever but that's MHO.
> >
> 
> Hello,
> 
> I am in favor of new APIs.
> The only my concern is that it performs worse..
> 
> Is it possible to keep burst mode setting there?

I'm going to respin the patch the I posted in the email thread above
to only set bursting for non-cyclic DMAs.

Mark
--

  reply	other threads:[~2012-11-14 16:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-07  2:57 [PATCH v3 0/7] crypto: omap-sham updates Mark A. Greer
2012-11-07  2:57 ` [PATCH v3 1/7] ARM: OMAP2xxx: hwmod: Convert SHAM crypto device data to hwmod Mark A. Greer
2012-11-09 16:10   ` Kasatkin, Dmitry
2012-11-09 17:07     ` Mark A. Greer
2012-11-09 17:11       ` Paul Walmsley
2012-11-09 18:00         ` Tony Lindgren
2012-11-09 18:20           ` Mark A. Greer
2012-11-07  2:57 ` [PATCH v3 2/7] ARM: OMAP2xxx: hwmod: Add DMA support for SHAM module Mark A. Greer
2012-11-07  2:57 ` [PATCH v3 3/7] ARM: OMAP3xxx: hwmod: Convert SHAM crypto device data to hwmod Mark A. Greer
2012-11-09 16:11   ` Kasatkin, Dmitry
2012-11-07  2:57 ` [PATCH v3 4/7] ARM: OMAP2+: Remove unnecessary message when no SHA IP is present Mark A. Greer
2012-11-07  2:57 ` [PATCH v3 5/7] crypto: omap-sham: Convert to use pm_runtime API Mark A. Greer
2012-11-14  1:12   ` Kevin Hilman
2012-11-07  2:57 ` [PATCH v3 6/7] crypto: omap-sham: Add code to use dmaengine API Mark A. Greer
2012-11-07  2:57 ` [PATCH v3 7/7] crypto: omap_sham: Remove usage of private DMA API Mark A. Greer
2012-11-09 16:28   ` Kasatkin, Dmitry
2012-11-09 17:17     ` Mark A. Greer
2012-11-14  7:47       ` Kasatkin, Dmitry
2012-11-14 16:47         ` Mark A. Greer [this message]
2012-11-16 22:40           ` Mark A. Greer

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=20121114164755.GA16925@animalcreek.com \
    --to=mgreer@animalcreek.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 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).