linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Scott Wood <scottwood@freescale.com>,
	Jerry Huang <Chang-Ming.Huang@freescale.com>,
	devicetree-discuss <devicetree-discuss@lists.ozlabs.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: lockdep dump on devtree_lock (involving esdhc)
Date: Tue, 3 Jun 2014 15:10:54 +0100	[thread overview]
Message-ID: <CACxGe6ufSLJUnsM9emkDUeGHojmb37JeY8_OFMnSdrB_oMeScg@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1306120948430.22970@ionos>

On Wed, Jun 12, 2013 at 8:49 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Tue, 11 Jun 2013, Scott Wood wrote:
>
>> I get the following lockdump output on p2020rdb using
>> v3.10-rc5-43-g34376a5.  While it's not particularly polite for the
>> esdhc driver to be calling OF functions while holding another lock which
>> can be acquired from interrupt context, why is devtree_lock usually
>> acquired in an irqsafe manner but sometimes not?
>>
>> Both types of usage were added by the same commit:
>>
>> commit d6d3c4e656513dcea61ce900f0ecb9ca820ee7cd
>> Author: Thomas Gleixner <tglx@linutronix.de>
>> Date:   Wed Feb 6 15:30:56 2013 -0500
>>
>>     OF: convert devtree lock from rw_lock to raw spinlock
>>
>> Stephen, you asked about this here:
>> http://lkml.indiana.edu/hypermail/linux/kernel/1302.1/01383.html
>>
>> Did you ever get an answer?
>
> https://patchwork.kernel.org/patch/2470731/
>
>> I'm also curious why devtree_lock was made raw to begin with...
>> Iterating over a device tree doesn't seem like something you'd want to
>> trust to be low-latency.
>
> The reason is that it's taken in low level cpu bringup code and I did
> not find a different solution. :(

Hey, Thomas,

Do you remember where the offending code is? I'm looking at completely
refactoring FDT locking so I'd like to take a crack and solving the
cpu bringup problem.

g.

  reply	other threads:[~2014-06-03 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-11 23:33 lockdep dump on devtree_lock (involving esdhc) Scott Wood
2013-06-12  7:49 ` Thomas Gleixner
2014-06-03 14:10   ` Grant Likely [this message]
2014-06-03 15:00     ` Thomas Gleixner
2014-06-03 15:07       ` Grant Likely
2013-06-12 15:43 ` Stephen Warren
2013-06-12 16:56   ` Scott Wood

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=CACxGe6ufSLJUnsM9emkDUeGHojmb37JeY8_OFMnSdrB_oMeScg@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --cc=Chang-Ming.Huang@freescale.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=scottwood@freescale.com \
    --cc=tglx@linutronix.de \
    /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).