From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chanwoo Choi Subject: Re: [PATCH 0/7] PM / devfreq: Add NoCP devfreq-event and support busfreq on exyno5422-odroidxu3 Date: Mon, 11 Apr 2016 13:03:59 +0900 Message-ID: <570B222F.4030503@samsung.com> References: <1460091646-28701-1-git-send-email-cw00.choi@samsung.com> <570B08F2.50302@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-reply-to: Sender: linux-kernel-owner@vger.kernel.org To: Anand Moon Cc: "myungjoo.ham@samsung.com" , Kyungmin Park , =?UTF-8?B?S3J6eXN6dG9mIEtvesWCb3dza2k=?= , Kukjin Kim , Sylwester Nawrocki , Tomasz Figa , "Rafael J. Wysocki" , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Markus Reichl , Tobias Jakobi , "inki.dae@samsung.com" , Linux Kernel , Linux PM list , "linux-samsung-soc@vger.kernel.org" , linux-arm-kernel List-Id: linux-pm@vger.kernel.org Hi Anand, On 2016=EB=85=84 04=EC=9B=94 11=EC=9D=BC 13:01, Anand Moon wrote: > Hi Chanwoo, >=20 > On 11 April 2016 at 07:46, Chanwoo Choi wrote= : >> Hi Anand, >> >> On 2016=EB=85=84 04=EC=9B=94 09=EC=9D=BC 03:24, Chanwoo Choi wrote: >>> Hi Anand, >>> >>> On Sat, Apr 9, 2016 at 3:11 AM, Anand Moon = wrote: >>>> Hi Chanwoo, >>>> >> >> [snip] >> >>>>> >>>> >>>> I am observing following deadlock. Both on Odroid U3 and Odroid XU= 4. >>> >>> Thanks for your test. I'll test it again and fix it. >> >> This possible recursive locking is fixed with following diff: >> >> Thanks for your report. I'll fix it on next patchset[1] (v9). >> [1] https://lkml.org/lkml/2016/4/8/14 >> >> >> diff --git a/drivers/devfreq/governor_passive.c b/drivers/devfreq/go= vernor_passive.c >> index 28a9ae32d330..a4b0b02ee797 100644 >> --- a/drivers/devfreq/governor_passive.c >> +++ b/drivers/devfreq/governor_passive.c >> @@ -102,7 +102,7 @@ static int update_devfreq_passive(struct devfreq= *devfreq, unsigned long freq) >> if (!devfreq->governor) >> return -EINVAL; >> >> - mutex_lock(&devfreq->lock); >> + mutex_lock_nested(&devfreq->lock, SINGLE_DEPTH_NESTING); >> >> ret =3D devfreq->governor->get_target_freq(devfreq, &freq); >> if (ret < 0) >> >> Best Regards, >> Chanwoo Choi >> >=20 > Thanks you for these patches on devfreq. > These changes fix the warning. >=20 > Tested-by: Anand Moon >=20 > Tested on Odroid XU4 and Odroid U3. Thanks for your test and report. Best Regards, Chanwoo Choi