From: Mark Brown <broonie@kernel.org>
To: Nicolas Boichat <drinkcat@chromium.org>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
Antti Palosaari <crope@iki.fi>, Ingo Molnar <mingo@redhat.com>,
Arjan van de Ven <arjan@linux.intel.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, Bard Liao <bardliao@realtek.com>,
Oder Chiou <oder_chiou@realtek.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org,
Anatol Pomozov <anatol.pomozov@gmail.com>
Subject: Re: [RFC PATCH 1/2] regmap: add configurable lock class key for lockdep
Date: Thu, 25 Jun 2015 15:49:48 +0100 [thread overview]
Message-ID: <20150625144948.GO14071@sirena.org.uk> (raw)
In-Reply-To: <1435224904-35517-1-git-send-email-drinkcat@chromium.org>
[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]
On Thu, Jun 25, 2015 at 05:35:03PM +0800, Nicolas Boichat wrote:
> I'm trying to revive Antti's patch [1], as we are hitting similar issue
> with rt5677 driver. I only updated the commit message and documentation,
> I kept both Signed-off-by and From lines, with a small note highlighting
> my changes, let me know if that's not appropriate.
This continues to have the same problems as the previous version of the
patch where I can't really tell how users are supposed to figure out if
they should use this or not. There will be cases where there is a clear
use within the driver itself but as far as I can tell almost any driver
might be bitten by this if some underlying driver on a given system
happens to use a regmap so should be allocating a class.
> One issue that was raised by Mark at the time is that a per-regmap_config
> lock class might not be enough (Mark mentioned clocks as an example). The
> current implementation should be good enough as long as the clock regmaps
> do not access each other. If this is a problem, maybe we should consider
> replacing lockdep_lock_class_key by a boolean use_own_lock_class that would
> allocate/use a per regmap instance lock class, or have devm_regmap_init
> take an extra parameter specifying the lock class.
I think this is a problem and making this something that every regmap
does by default was my original suggestion, there's also Arjan's
suggestion of just using nested mutexes rather than classes.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-06-25 15:27 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-25 9:35 Nicolas Boichat
2015-06-25 9:35 ` [RFC PATCH 2/2] ASoC: rt5677: Add lockdep class to silence lockdep warnings Nicolas Boichat
2015-06-25 13:21 ` [RFC PATCH 1/2] regmap: add configurable lock class key for lockdep Arjan van de Ven
2015-06-25 14:29 ` Mark Brown
2015-06-25 15:03 ` Lars-Peter Clausen
2015-06-25 15:33 ` Mark Brown
2015-06-25 15:47 ` Lars-Peter Clausen
2015-06-25 16:08 ` Mark Brown
2015-06-26 3:16 ` Nicolas Boichat
2015-06-29 12:51 ` Nicolas Boichat
2015-06-29 12:59 ` Lars-Peter Clausen
2015-06-29 14:03 ` Nicolas Boichat
2015-06-29 14:18 ` Lars-Peter Clausen
2015-06-29 15:34 ` Mark Brown
2015-06-30 4:56 ` Nicolas Boichat
2015-06-30 11:02 ` [alsa-devel] " Lars-Peter Clausen
2015-06-29 14:22 ` Mark Brown
2015-06-29 14:35 ` Arjan van de Ven
2015-06-29 15:32 ` Mark Brown
2015-06-29 15:36 ` Arjan van de Ven
2015-06-29 16:02 ` Mark Brown
2015-06-29 14:19 ` Mark Brown
2015-06-25 14:49 ` Mark Brown [this message]
2015-06-25 15:59 ` Lars-Peter Clausen
2015-06-26 2:34 ` Nicolas Boichat
2015-06-26 8:31 ` Lars-Peter Clausen
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=20150625144948.GO14071@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=anatol.pomozov@gmail.com \
--cc=arjan@linux.intel.com \
--cc=bardliao@realtek.com \
--cc=crope@iki.fi \
--cc=drinkcat@chromium.org \
--cc=gregkh@linuxfoundation.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=mingo@redhat.com \
--cc=oder_chiou@realtek.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.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
Powered by JetHome