From: Mathieu Desnoyers <mathieu.desnoyers-scC8bbJcJLCw5LPnMra/2Q@public.gmane.org>
To: "Pallipadi,
Venkatesh"
<venkatesh.pallipadi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kernel Testers List
<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"Li,
Shaohua" <shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
davej-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: [Bug #13424] possible deadlock when doing governor switching
Date: Mon, 29 Jun 2009 15:05:41 -0400 [thread overview]
Message-ID: <20090629190541.GA16719@Krystal> (raw)
In-Reply-To: <1246300665.4534.26170.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
* Pallipadi, Venkatesh (venkatesh.pallipadi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org) wrote:
> On Sun, 2009-06-28 at 18:25 -0700, Mathieu Desnoyers wrote:
> > * Rafael J. Wysocki (rjw-KKrjLPT3xs0@public.gmane.org) wrote:
> > > This message has been generated automatically as a part of a report
> > > of regressions introduced between 2.6.29 and 2.6.30.
> > >
> > > The following bug entry is on the current list of known regressions
> > > introduced between 2.6.29 and 2.6.30. Please verify if it still should
> > > be listed and let me know (either way).
> > >
> >
> > Yep, it still exists. Venkatesh Pallipadi from Intel is working on it.
> > We need to figure out a proper way to fix policy rwlock vs dbs_mutex vs
> > timer mutex dependency.
> >
>
> Yes. Still working on it. I thought I had a fix for this. But, over the
> weekend test run resulted in a WARN_ON with sysfs_remove_group as below.
> Looks like I need a day or two more to work through the web of locks
> here..
>
A quick fix I thought about is to add a mutex to cpufreq.c.
This mutex would be taken outside of the rwlock write lock each time
this lock is taken in cpufreq.c.
This mutex would also be taken from the ondemand and conservator module
sysfs operations.
We remove the dbs_mutexes, given they would now be replaced by this
new cpufreq.c mutex.
Note that the GOV_STOP call should be done while this new mutex is held,
but the rwlock is _not_ held.
I did not implement it because cpufreq.c:cpufreq_add_dev() first needs a
big cleanup for the error handling paths. They are currently completely
bogus and I don't want to add a lock into code that is not currently
correct.
If you find time to do this cleanup and lock implementation, I'll be
glad to review it and provide advice.
Thanks,
Mathieu
> Thanks,
> Venki
>
> [10412.466195] ------------[ cut here ]------------
> [10412.466201] WARNING:
> at /home/venkip/src/linus/linux-2.6/fs/sysfs/group.c:138
> sysfs_remove_group+0x3e/0xa3()
> [10412.466204] Hardware name: Santa Rosa platform
> [10412.466206] sysfs group c16df3b0 not found for kobject 'cpufreq'
> [10412.466207] Modules linked in:
> [10412.466210] Pid: 20609, comm: write_syscpufre Not tainted 2.6.31-rc1
> #195
> [10412.466212] Call Trace:
> [10412.466217] [<c102a0a4>] warn_slowpath_common+0x60/0x90
> [10412.466220] [<c102a108>] warn_slowpath_fmt+0x24/0x27
> [10412.466223] [<c10e0422>] sysfs_remove_group+0x3e/0xa3
> [10412.466227] [<c131b7fc>] cpufreq_governor_dbs+0x1f7/0x25b
> [10412.466231] [<c1319469>] __cpufreq_governor+0x7c/0xb3
> [10412.466234] [<c1319608>] __cpufreq_set_policy+0x13f/0x1c3
> [10412.466238] [<c1319e74>] store_scaling_governor+0x18a/0x1b2
> [10412.466241] [<c131aa50>] ? handle_update+0x0/0x28
> [10412.466244] [<c131a2a5>] ? lock_policy_rwsem_write+0x33/0x5b
> [10412.466247] [<c1319cea>] ? store_scaling_governor+0x0/0x1b2
> [10412.466250] [<c131a942>] store+0x48/0x61
> [10412.466254] [<c10de532>] sysfs_write_file+0xb4/0xdf
> [10412.466265] [<c10de47e>] ? sysfs_write_file+0x0/0xdf
> [10412.466269] [<c10a0172>] vfs_write+0x84/0xdf
> [10412.466272] [<c10a0266>] sys_write+0x3b/0x60
> [10412.466276] [<c1002a04>] sysenter_do_call+0x12/0x22
> [10412.466278] ---[ end trace 31a730d96cbc1841 ]---
>
>
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
next prev parent reply other threads:[~2009-06-29 19:05 UTC|newest]
Thread overview: 118+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 0:26 2.6.31-rc1-git3: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-06-29 0:26 ` [Bug #13109] High latency on /sys/class/thermal Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13119] Trouble with make-install from a NFS mount Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13277] 2.6.30 regression - hang on 2nd resume - bisected - Thinkpad X40 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13306] hibernate slow on _second_ run Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13179] CD-R: wodim intermittent failures Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13318] AGP doesn't work anymore on nforce2 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13219] Intel 440GX: Since kernel 2.6.30-rc1, computers hangs randomly but not with kernel <= 2.6.29.4 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13337] [post 2.6.29 regression] hang during suspend of b44/b43 modules Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13319] Page allocation failures with b43 and p54usb Rafael J. Wysocki
2009-06-29 16:51 ` Larry Finger
[not found] ` <4A48F114.1010702-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org>
2009-06-29 23:15 ` Rafael J. Wysocki
2009-06-29 23:47 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906291642520.17663-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 2:06 ` Larry Finger
2009-06-30 5:47 ` David Rientjes
2009-06-30 6:55 ` Pekka Enberg
[not found] ` <84144f020906292355o7cf63f7ch47bd19961cf92da3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-30 7:47 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906300032310.11018-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 8:24 ` Pekka Enberg
2009-06-30 14:38 ` Larry Finger
[not found] ` <84144f020906300124n24e206b5tc85dd5cc4661bde7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-30 20:25 ` David Rientjes
2009-06-30 14:32 ` Christoph Lameter
2009-06-30 15:01 ` Pekka Enberg
2009-06-30 15:14 ` Christoph Lameter
[not found] ` <alpine.DEB.1.10.0906301114450.3879-gkYfJU5Cukgdnm+yROfE0A@public.gmane.org>
2009-06-30 20:04 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906301248000.16312-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 21:05 ` Christoph Lameter
[not found] ` <alpine.DEB.1.10.0906301632570.22158-gkYfJU5Cukgdnm+yROfE0A@public.gmane.org>
2009-06-30 21:15 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906301413460.24397-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 21:23 ` Christoph Lameter
[not found] ` <alpine.DEB.1.10.0906301722280.17682-gkYfJU5Cukgdnm+yROfE0A@public.gmane.org>
2009-06-30 21:52 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906301445070.26290-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 22:18 ` Christoph Lameter
2009-07-01 5:53 ` Pekka Enberg
[not found] ` <84144f020906302253n2424d4a5k3aaf124838a041df-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-02 17:18 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0907021016380.30890-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-03 7:23 ` Pekka Enberg
[not found] ` <84144f020907030023v2d09632bt13b6c25f96c0b803-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-07 6:02 ` [patch] slub: add option to disable higher order debugging slabs David Rientjes
[not found] ` <alpine.DEB.2.00.0907062252500.9699-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-07 7:14 ` [patch v2] " David Rientjes
[not found] ` <alpine.DEB.2.00.0907070013400.14978-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-07 15:57 ` Christoph Lameter
[not found] ` <alpine.DEB.1.10.0907071150010.5124-gkYfJU5Cukgdnm+yROfE0A@public.gmane.org>
2009-07-09 23:26 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0907091620470.16817-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-10 6:54 ` Pekka Enberg
2009-07-10 18:47 ` Christoph Lameter
2009-06-29 0:30 ` [Bug #13328] b44: eth0: BUG! Timeout waiting for bit 00000002 of register 42c to clear Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13341] Random Oops at boot at loading ip6tables rules Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13362] rt2x00: slow wifi with correct basic rate bitmap Rafael J. Wysocki
2009-06-30 18:37 ` Alejandro Riveira Fernández
2009-06-29 0:30 ` [Bug #13373] fbcon, intelfb, i915: INFO: possible circular locking dependency detected Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13374] reiserfs blocked for more than 120secs Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13351] 2.6.30 corrupts my system after suspend resume with readonly mounted hard disk Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13401] pktcdvd writing is really slow with CFQ scheduler (bisected) Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13408] Performance regression in 2.6.30-rc7 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13424] possible deadlock when doing governor switching Rafael J. Wysocki
2009-06-29 1:25 ` Mathieu Desnoyers
2009-06-29 18:37 ` Pallipadi, Venkatesh
[not found] ` <1246300665.4534.26170.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-06-29 19:05 ` Mathieu Desnoyers [this message]
2009-06-29 0:30 ` [Bug #13389] Warning 'Invalid throttling state, reset' gets displayed when it should not be Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13407] adb trackpad disappears after suspend to ram Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13471] Loading parport_pc kills the keyboard if ACPI is enabled Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13472] Oops with minicom and USB serial Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13512] D43 on 2.6.30 doesn't suspend anymore Rafael J. Wysocki
2009-06-29 6:21 ` Daniel Smolik
[not found] ` <4A485D71.5020204-0pWKB23IDFjrBKCeMvbIDA@public.gmane.org>
2009-06-29 23:20 ` Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13475] suspend/hibernate lockdep warning Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13502] GPE storm causes polling mode, which causes /proc/acpi/battery read to take 4 seconds - MacBookPro4,1 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13528] au0828: major drop in reception quality between 2.6.29.4 and 2.6.30 on HVR-950q Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13518] slab grows with NFS write activity Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13554] linux-image-2.6.30-1-686, KMS enabled: black screen, no X window Rafael J. Wysocki
2009-06-29 3:27 ` Jos van Wolput
[not found] ` <4A4834B9.2080507-kN7GrHn7egj0B9fh5IxImPP6llvjuJOh@public.gmane.org>
2009-06-29 23:24 ` Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13514] acer_wmi causes stack corruption Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13558] Tracelog during resume Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13621] xfs hangs with assertion failed Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13613] lockups with JFS (inconsistent lock state) Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13581] ath9k doesn't work with newer kernels Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13620] acpi_enforce_resources broken - conflicting i2c module loaded on some EeePCs Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13624] usb: wrong autosuspend initialization Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13646] warn_on tty_io.c, broken bluetooth Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13644] hibernation/swsusp lockup due to acpi-cpufreq Rafael J. Wysocki
2009-06-30 0:40 ` Johannes Stezenbach
[not found] ` <20090630004041.GA11641-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>
2009-06-30 12:48 ` Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13634] [drm:drm_wait_vblank] *ERROR* failed to acquire vblank counter, -22 Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13647] fb/mmap lockdep report Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13648] nfsd: page allocation failure Rafael J. Wysocki
2009-06-30 0:02 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906291659550.17663-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 8:05 ` Justin Piszcz
[not found] ` <alpine.DEB.2.00.0906300404210.13871-0qmrozcXWo8bm2hyYBkBBg@public.gmane.org>
2009-06-30 8:48 ` David Rientjes
2009-06-29 0:31 ` [Bug #13649] Bad page state in process with various applications Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13651] Anyone know what happened with PC speaker in 2.6.30? Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13660] Crashes during boot on 2.6.30 / 2.6.31-rc, random programs Rafael J. Wysocki
2009-07-01 20:36 ` Joao Correia
[not found] ` <a5d9929e0907011336g31599a29hca3c204f1b53b775-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-07 14:05 ` Américo Wang
[not found] ` <2375c9f90907070705p1ae6ebe4x61bda34dd072c1c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-07 14:22 ` Joao Correia
2009-07-07 14:44 ` Américo Wang
2009-06-29 0:31 ` [Bug #13668] Can't boot 2.6.30 powerpc kernel under qemu Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13663] suspend to ram regression (IDE related) Rafael J. Wysocki
2009-06-29 10:29 ` Etienne Basset
2009-06-29 10:37 ` David Miller
[not found] ` <20090629.033730.193709457.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2009-06-29 15:51 ` Etienne Basset
[not found] ` <4A48E307.2010208-Bf/eaXMDFuuXqB7oj33eUg@public.gmane.org>
2009-06-29 16:21 ` Jeff Chua
[not found] ` <b6a2187b0906290921w15afd443qccb943ccfd48688b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-01 14:31 ` Jeff Chua
[not found] ` <b6a2187b0907010731k510150b5u1c7fce8cbed7c33b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-01 14:47 ` Wu Zhangjin
2009-07-01 16:21 ` Bartlomiej Zolnierkiewicz
[not found] ` <200907011821.26091.bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-07-01 16:29 ` Bartlomiej Zolnierkiewicz
[not found] ` <200907011829.16850.bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-07-01 17:28 ` Jeff Chua
[not found] ` <b6a2187b0907011028r27d35be4xc62c7ed4496dfb2f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-01 21:30 ` Etienne Basset
2009-07-02 1:46 ` Wu Zhangjin
2009-07-02 2:09 ` Jeff Chua
2009-07-02 10:46 ` Ralf Baechle
2009-07-02 16:13 ` Bartlomiej Zolnierkiewicz
[not found] ` <200907021813.57322.bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-07-03 3:58 ` Wu Zhangjin
2009-07-03 4:06 ` Wu Zhangjin
2009-07-03 13:08 ` Bartlomiej Zolnierkiewicz
2009-07-03 15:31 ` Wu Zhangjin
2009-07-06 14:57 ` Bartlomiej Zolnierkiewicz
2009-07-06 19:22 ` David Miller
2009-06-29 17:45 ` Bartlomiej Zolnierkiewicz
2009-06-29 0:31 ` [Bug #13669] Kernel bug with dock driver Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2009-07-26 20:41 2.6.31-rc4: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-07-26 20:45 ` [Bug #13424] possible deadlock when doing governor switching Rafael J. Wysocki
2009-07-27 16:48 ` Mathieu Desnoyers
2009-07-27 21:38 ` Rafael J. Wysocki
2009-07-06 23:57 2.6.31-rc2: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-07-07 0:00 ` [Bug #13424] possible deadlock when doing governor switching Rafael J. Wysocki
2009-06-07 9:47 2.6.30-rc8-git4: Reported regressions from 2.6.29 Rafael J. Wysocki
2009-06-07 9:52 ` [Bug #13424] possible deadlock when doing governor switching Rafael J. Wysocki
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=20090629190541.GA16719@Krystal \
--to=mathieu.desnoyers-scc8bbjcjlcw5lpnmra/2q@public.gmane.org \
--cc=davej-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.org \
--cc=shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=venkatesh.pallipadi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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).