linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@the-dreams.de>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] serial: sh-sci: submit rx dma the way the DMA driver can handle it
Date: Mon, 06 Oct 2014 05:59:15 +0000	[thread overview]
Message-ID: <20141006055914.GA1266@katana> (raw)
In-Reply-To: <1412266448-20266-1-git-send-email-wsa@the-dreams.de>

[-- Attachment #1: Type: text/plain, Size: 1736 bytes --]

On Mon, Oct 06, 2014 at 10:55:40AM +0900, Simon Horman wrote:
> On Thu, Oct 02, 2014 at 06:14:08PM +0200, Wolfram Sang wrote:
> > From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> > 
> > The shdmac driver has a problem when one wants to submit two RX
> > descriptors and then use issue_pending on both (like this driver does):
> > 
> > Submit first desc
> > -> channel state after: SHDMA_PM_ESTABLISHED
> > 
> > Submit second desc
> > -> channel state after: SHDMA_PM_PENDING
> > 
> > PENDING here means: "Oh, we will wait until the first desc is finished
> > and then the second desc will be grabbed from the list anyhow"
> > 
> > However, because issue_pending does nothing for states !=
> > SHDMA_PM_ESTABLISHED, nothing ever gets active :(
> > 
> > Since the DMA driver is probably replaced soon anyhow, I decided for the
> > least intrusive workaround which is to use issue_pending on every RX
> > desc. (Yes, setting s->active_rx twice is ugly).
> > 
> > Probably not for upstream! However, this patch restores DMA capability
> > for SCIFA on my Lager board. Sadly, not for SCIF due to interrupt
> > problems still to be investigated.
> > 
> > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> Acked-by: Simon Horman <horms+renesas@verge.net.au>
> 
> sh-sci patches usually go via linux-serial@vger.kernel.org and
> Greg Kroah-Hartman <gregkh@linuxfoundation.org>. Could you repost this patch
> with those parties included?

I wanted to send this patch as RFC, but forgot to rename it :) I'd
really like some discussion about it, probably in Düsseldorf even. I am
still not sure this patch should go upstream, but we should talk about
it.

Thanks,

   Wolfram


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2014-10-06  5:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02 16:14 [PATCH] serial: sh-sci: submit rx dma the way the DMA driver can handle it Wolfram Sang
2014-10-06  1:55 ` Simon Horman
2014-10-06  5:59 ` Wolfram Sang [this message]
2014-10-06  7:39 ` Simon Horman

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=20141006055914.GA1266@katana \
    --to=wsa@the-dreams.de \
    --cc=linux-sh@vger.kernel.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).