From: bruno.roussel@free.fr
To: Jean Delvare <khali@linux-fr.org>
Cc: Jiri Kosina <jkosina@suse.cz>,
Christian Kujau <lists@nerdbynature.de>,
bruno.roussel@free.fr, LKML <linux-kernel@vger.kernel.org>,
i2c@lm-sensors.org
Subject: Re: possible recursive locking detected
Date: Sat, 15 Mar 2008 18:00:16 +0100 [thread overview]
Message-ID: <1205600416.47dc00a0cd55b@imp.free.fr> (raw)
In-Reply-To: <20080310142921.2696e8b9@hyperion.delvare>
I have switch to the new 2.6.24.3 kernel version and it's OK now
Strange ...
Thank's for all
Selon Jean Delvare <khali@linux-fr.org>:
> On Sun, 9 Mar 2008 23:41:50 +0100 (CET), Jiri Kosina wrote:
> > On Sun, 9 Mar 2008, Christian Kujau wrote:
> >
> > > > =============================================
> > > > [ INFO: possible recursive locking detected ]
> > > > 2.6.24.2-1mdv #1
> > > > ---------------------------------------------
> > > Hm, strange: a similiar looking issue has been reported back in 2006, it
> > > even comes with a patch: http://lkml.org/lkml/2006/10/14/38
> > > ..but I cannot tell if the patch made it into mainline. I've Cc'ed the
> i2c
> > > folks, maybe they can tell what's going on here.
> >
> > I don't recall this, but from looking at the source it seems that only
> > part of my patch made it upstream for some reason ...
>
> I applied the i2c-core part:
>
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=6ea23039cb1cc7c379eb5fba0ed2c53291e9bea7
>
> But I have no idea what happened to the DVB device-driver specific part.
>
> >
> > Bruno, does the patch below remove the warning for you? (we should rather
> > used lockdep_set_class() now, when this is already available ... it wasn't
> > in the time I was doping the original patch back in 2006).
> >
> >
> >
> > Set locking depth properly (level == 0 for DVB frontend, level == 1 for
> > DVB adapter).
> >
> > Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> >
> > diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
> b/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
> > index 23428cd..8c5dc35 100644
> > --- a/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
> > +++ b/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
> > @@ -27,6 +27,7 @@ int dvb_usb_i2c_init(struct dvb_usb_device *d)
> > #endif
> > d->i2c_adap.algo = d->props.i2c_algo;
> > d->i2c_adap.algo_data = NULL;
> > + d->i2c_adap.level = 1;
> > d->i2c_adap.dev.parent = &d->udev->dev;
> >
> > i2c_set_adapdata(&d->i2c_adap, d);
> > diff --git a/drivers/media/dvb/frontends/dibx000_common.c
> b/drivers/media/dvb/frontends/dibx000_common.c
> > index 315e09e..a3ed8cf 100644
> > --- a/drivers/media/dvb/frontends/dibx000_common.c
> > +++ b/drivers/media/dvb/frontends/dibx000_common.c
> > @@ -111,6 +111,7 @@ static int i2c_adapter_init(struct i2c_adapter
> *i2c_adap, struct i2c_algorithm *
> > i2c_adap->class = I2C_CLASS_TV_DIGITAL,
> > i2c_adap->algo = algo;
> > i2c_adap->algo_data = NULL;
> > + i2c_adap->level = 0;
> > i2c_set_adapdata(i2c_adap, mst);
> > if (i2c_add_adapter(i2c_adap) < 0)
> > return -ENODEV;
>
> Also note:
>
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=cea443a81c9c6257bf2d00f1392f7d1d4ce03b75
>
> This patch that was applied recently to i2c-core might cause lockdep
> issues. For some reason there's no "nested" variant of mutex_trylock?
>
> --
> Jean Delvare
>
next prev parent reply other threads:[~2008-03-15 17:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-09 17:08 possible recursive locking detected bruno.roussel
2008-03-09 21:16 ` Christian Kujau
[not found] ` <alpine.DEB.1.00.0803092215010.5349-F0SnE0R9v5eQ/Pez2Lbyp4QuADTiUCJX@public.gmane.org>
2008-03-09 22:41 ` Jiri Kosina
2008-03-09 22:41 ` Jiri Kosina
[not found] ` <Pine.LNX.4.64.0803092332160.18589-1ReQVI26iDCaZKY3DrU6dA@public.gmane.org>
2008-03-10 13:29 ` Jean Delvare
2008-03-10 13:29 ` Jean Delvare
2008-03-15 17:00 ` bruno.roussel [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-16 14:50 Bernd Schubert
2007-05-16 17:35 ` Eric Sandeen
2007-04-02 18:18 Christian Kujau
2007-04-23 16:08 ` Christian Kujau
2007-04-23 19:46 ` Eric Sandeen
2007-04-23 21:19 ` Christoph Hellwig
2007-04-24 6:46 ` Christian Kujau
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=1205600416.47dc00a0cd55b@imp.free.fr \
--to=bruno.roussel@free.fr \
--cc=i2c@lm-sensors.org \
--cc=jkosina@suse.cz \
--cc=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lists@nerdbynature.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.