linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Daniel Mack <zonque@gmail.com>
Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
	neumann@teufel.de, vinod.koul@intel.com,
	dan.j.williams@intel.com, balbi@ti.com
Subject: Re: [PATCH 0/3] dma: cppi41: more suspend/resume patches
Date: Wed, 02 Oct 2013 14:57:17 +0200	[thread overview]
Message-ID: <524C182D.7040901@linutronix.de> (raw)
In-Reply-To: <524BFE60.6050707@gmail.com>

On 10/02/2013 01:07 PM, Daniel Mack wrote:
> No, as stated, the line numbers in the kernel message are somewhat off
> due to added debugging code. What kicks in here is this one:
> 
>         if (!c->td_desc_seen) {
>                 desc_phys = cppi41_pop_desc(cdd, c->q_comp_num);
>                 if (desc_phys) {
>                         __iormb();
>                         WARN_ON(c->desc_phys != desc_phys);
>                         c->td_desc_seen = 1;
>                 }
>         }

Ach okay. So something completed but it wasn't the expected descriptor.

>> So you get the warning because
>> you tried to stop a channel which was not busy. But then you should not
>> be called at all because cppi41_dma_channel_abort() shouldn't call dma
>> driver on idle channels.
> 
> However, I see nothing that forbids you from calling
> dmaengine_terminate_all() on idle channels. If that's not handled
> properly by the cppi driver, I'd say it needs fixing.

No argue about that.

>> How does your suspend & resume thingy work? Is it completly shutdown
>> i.e. powered off? According to you earlier patches I would assume so. In
>> that case the request is not enqueued and there is nothing to be removed
>> from the engine, right?
> 
> No, my debugging showed that the channel has actually been prepared and
> submitted before. It's just being torn down shortly after that. That's
> what makes be believe in a race condition here.

I see.

> Thanks,
> Daniel

Sebastian

  reply	other threads:[~2013-10-02 12:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-01 13:31 [PATCH 0/3] dma: cppi41: more suspend/resume patches Daniel Mack
     [not found] ` <1380634271-27588-1-git-send-email-zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-10-01 13:31   ` [PATCH 1/3] dma: cppi41: restore more registers Daniel Mack
2013-10-01 13:31   ` [PATCH 2/3] dma: cppi41: use cppi41_pop_desc() where possible Daniel Mack
2013-10-01 13:31   ` [PATCH 3/3] dma: cppi41: move -EAGAIN in tear_down Daniel Mack
     [not found]     ` <1380634271-27588-4-git-send-email-zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-10-02  8:29       ` Sebastian Andrzej Siewior
2013-10-02  9:19         ` Daniel Mack
2013-10-02 10:25           ` Sebastian Andrzej Siewior
2013-10-02 11:38             ` Daniel Mack
2013-10-02 10:20 ` [PATCH 0/3] dma: cppi41: more suspend/resume patches Sebastian Andrzej Siewior
     [not found]   ` <20131002102033.GB16680-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-10-02 11:07     ` Daniel Mack
2013-10-02 12:57       ` Sebastian Andrzej Siewior [this message]
2013-10-09  6:41 ` Sebastian Andrzej Siewior
2013-10-09  7:23   ` Daniel Mack
     [not found]     ` <5255047A.5010609-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-10-09  7:28       ` Sebastian Andrzej Siewior
2013-10-09  7:31         ` Daniel Mack

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=524C182D.7040901@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=balbi@ti.com \
    --cc=dan.j.williams@intel.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=neumann@teufel.de \
    --cc=vinod.koul@intel.com \
    --cc=zonque@gmail.com \
    /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).