From: Krzysztof Kozlowski <k.kozlowski@samsung.com>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] regulator: Fix recursive mutex lockdep warning
Date: Thu, 06 Aug 2015 16:35:34 +0900 [thread overview]
Message-ID: <55C30E46.809@samsung.com> (raw)
In-Reply-To: <55C30CD9.9090408@linaro.org>
On 06.08.2015 16:29, Srinivas Kandagatla wrote:
> Thanks Krzysztof
>
> On 06/08/15 02:39, Krzysztof Kozlowski wrote:
>>> --- a/drivers/regulator/core.c
>>> >+++ b/drivers/regulator/core.c
>>> >@@ -2919,7 +2919,7 @@ static int _regulator_get_voltage(struct
>>> regulator_dev *rdev)
>>> > } else if (rdev->desc->fixed_uV && (rdev->desc->n_voltages
>>> == 1)) {
>>> > ret = rdev->desc->fixed_uV;
>>> > } else if (rdev->supply) {
>>> >- ret = regulator_get_voltage(rdev->supply);
>>> >+ ret = _regulator_get_voltage(rdev->supply->rdev);
>> Is the 'rdev' and 'rdev->supply' same regulators? If not then you are
>> just hiding false warning by removing locks thus introducing real
>> issue...
> They are the not the same regulators, and hence they are not locking the
> same mutex, looks like this is a false positive warning from lockdep. I
> can't think of any use case which could result in ABBA type lockup too,
> so we can ignore this patch for now.
>
> Not sure why did the lockdep think that this is same lock :-)
I think the warning appears because the class of lock is the same but
there is nesting information:
"May be due to missing lock nesting notation"
Fixing this would require adding the nesting information.
Best regards,
Krzysztof
next prev parent reply other threads:[~2015-08-06 7:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 16:02 [RFC PATCH] regulator: Fix recursive mutex lockdep warning Srinivas Kandagatla
2015-08-06 1:39 ` Krzysztof Kozlowski
2015-08-06 7:29 ` Srinivas Kandagatla
2015-08-06 7:35 ` Krzysztof Kozlowski [this message]
2015-08-06 7:53 ` Krzysztof Kozlowski
2015-08-06 9:43 ` Mark Brown
2015-08-06 11:01 ` Srinivas Kandagatla
2015-08-06 11:40 ` Mark Brown
2015-08-06 11:49 ` Srinivas Kandagatla
2015-08-07 14:12 ` Mark Brown
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=55C30E46.809@samsung.com \
--to=k.kozlowski@samsung.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.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