linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: "Andreas Färber" <afaerber@suse.de>
Cc: linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org,
	Cristian Ciocaltea <cristian.ciocaltea@gmail.com>,
	Vinod Koul <vkoul@kernel.org>,
	dmaengine@vger.kernel.org,
	Dan Williams <dan.j.williams@intel.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/1] dma: actions: Fix lockdep splat for owl-dma
Date: Wed, 29 Apr 2020 15:28:02 +0530	[thread overview]
Message-ID: <20200429095802.GB6443@Mani-XPS-13-9360> (raw)
In-Reply-To: <a70a2352-7b22-6b85-848b-94d9ee17c022@suse.de>

Hi Andreas,

On Wed, Apr 29, 2020 at 10:36:01AM +0200, Andreas Färber wrote:
> Am 28.04.20 um 20:18 schrieb Manivannan Sadhasivam:
> > On Tue, Apr 28, 2020 at 09:11:15PM +0300, Cristian Ciocaltea wrote:
> > > On Tue, Apr 28, 2020 at 10:19:21PM +0530, Manivannan Sadhasivam wrote:
> > > > On Tue, Apr 28, 2020 at 01:56:12PM +0300, Cristian Ciocaltea wrote:
> > > > > When the kernel is build with lockdep support and the owl-dma driver is
> > > > > used, the following message is shown:
> [...]
> > > > > The required fix is to use spin_lock_init() on the pchan lock before
> > > > > attempting to call any spin_lock_irqsave() in owl_dma_get_pchan().
> > > > 
> > > > Right, this is a bug. But while looking at the code now, I feel that we don't
> > > > need 'pchan->lock'. The idea was to protect 'pchan->vchan', but I think
> > > > 'od->lock' is the better candidate for that since it already protects it in
> > > > 'owl_dma_terminate_pchan'.
> > > > 
> > > > So I'd be happy if you remove the lock from 'pchan' and just directly use the
> > > > one in 'od'.
> > > > 
> > > > Out of curiosity, on which platform you're testing this?
> > > 
> > > Totally agree, I will send a new patch revision as soon as I do some
> > > more testing.
> > 
> > Coo[l], thanks!
> > 
> > > I'm currently experimenting on an Actions S500 based board (Roseapple Pi)
> > > trying to extend, if possible, the existing mainline support for those
> > > SoCs.
> > 
> > Awesome! It's great to see that Actions platform is seeing some attention
> > these days :)
> > 
> > > I don't have much progress so far, since I started quite recently
> > > and I also lack experience in the kernel development area, but I do my
> > > best to come back with more patches once I get a consistent functionality.
> > 
> > No worries. Feel free to reach out to me if you have any questions. There is
> > a lot of work to do and for sure it will be a good learning curve.
> > 
> > We do have an IRC channel (##linux-actions) for quick discussions. Fee[l] free
> > to join!
> 
> Please also CC the linux-actions mailing list on any patches:
> 
> https://lists.infradead.org/mailman/listinfo/linux-actions
> 
> Mani, do you have a 5.7-rc1 tree set up or should I queue patches this
> round?

I haven't set up the branch. You can do the maintainership duties for this
cycle.

> It still seems missing in MAINTAINERS, and then there's Matheus'
> patches in review.
> 

Yeah, the MAINTAINERS patch has fallen through cracks:

[PATCH v2 6/6] MAINTAINERS: Add linux-actions mailing list for Actions Semi

I did this as a part of S500 clk series. Feel free to pick it up.

Thanks,
Mani

> Thanks,
> Andreas
> 
> -- 
> SUSE Software Solutions Germany GmbH
> Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Felix Imendörffer
> HRB 36809 (AG Nürnberg)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

      reply	other threads:[~2020-04-29  9:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28 10:56 [PATCH 1/1] dma: actions: Fix lockdep splat for owl-dma Cristian Ciocaltea
2020-04-28 14:02 ` Cristian Ciocaltea
2020-04-28 16:49 ` Manivannan Sadhasivam
2020-04-28 18:11   ` Cristian Ciocaltea
2020-04-28 18:18     ` Manivannan Sadhasivam
2020-04-29  8:36       ` Andreas Färber
2020-04-29  9:58         ` Manivannan Sadhasivam [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=20200429095802.GB6443@Mani-XPS-13-9360 \
    --to=manivannan.sadhasivam@linaro.org \
    --cc=afaerber@suse.de \
    --cc=cristian.ciocaltea@gmail.com \
    --cc=dan.j.williams@intel.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-actions@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vkoul@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).