[PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-24 Thread Peter Zijlstra
On Mon, 2012-09-24 at 14:54 +0200, Daniel Vetter wrote: > I've read through the patches and I'm hoping you don't volunteer me to > pick these up ... ;-) Worth a try, right? :-) > But there doesn't seem to be anything that would > get worse through this lockdep annotation patch, right? No

[PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-24 Thread Daniel Vetter
On Mon, Sep 24, 2012 at 2:24 PM, Peter Zijlstra wrote: > On Mon, 2012-09-24 at 14:17 +0200, Peter Zijlstra wrote: >> On Tue, 2012-09-18 at 01:03 +0200, Daniel Vetter wrote: >> > - In the printk code there's a special trylock, only used to kick off >> > the logbuffer printk'ing in

[PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-24 Thread Peter Zijlstra
On Mon, 2012-09-24 at 14:17 +0200, Peter Zijlstra wrote: > On Tue, 2012-09-18 at 01:03 +0200, Daniel Vetter wrote: > > - In the printk code there's a special trylock, only used to kick off > > the logbuffer printk'ing in console_unlock. But all that happens > > while lockdep is disable (since

[PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-24 Thread Peter Zijlstra
On Tue, 2012-09-18 at 01:03 +0200, Daniel Vetter wrote: > - In the printk code there's a special trylock, only used to kick off > the logbuffer printk'ing in console_unlock. But all that happens > while lockdep is disable (since printk does a few other evil > tricks). So no issue there,

Re: [PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-24 Thread Peter Zijlstra
On Mon, 2012-09-24 at 14:17 +0200, Peter Zijlstra wrote: On Tue, 2012-09-18 at 01:03 +0200, Daniel Vetter wrote: - In the printk code there's a special trylock, only used to kick off the logbuffer printk'ing in console_unlock. But all that happens while lockdep is disable (since printk

Re: [PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-24 Thread Daniel Vetter
On Mon, Sep 24, 2012 at 2:24 PM, Peter Zijlstra pet...@infradead.org wrote: On Mon, 2012-09-24 at 14:17 +0200, Peter Zijlstra wrote: On Tue, 2012-09-18 at 01:03 +0200, Daniel Vetter wrote: - In the printk code there's a special trylock, only used to kick off the logbuffer printk'ing in

Re: [PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-24 Thread Peter Zijlstra
On Mon, 2012-09-24 at 14:54 +0200, Daniel Vetter wrote: I've read through the patches and I'm hoping you don't volunteer me to pick these up ... ;-) Worth a try, right? :-) But there doesn't seem to be anything that would get worse through this lockdep annotation patch, right? No indeed,

Re: [PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-24 Thread Peter Zijlstra
On Tue, 2012-09-18 at 01:03 +0200, Daniel Vetter wrote: - In the printk code there's a special trylock, only used to kick off the logbuffer printk'ing in console_unlock. But all that happens while lockdep is disable (since printk does a few other evil tricks). So no issue there, either.

[PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-19 Thread Daniel Vetter
On Tue, Sep 18, 2012 at 10:33:28AM +0300, Jani Nikula wrote: > On Tue, 18 Sep 2012, Daniel Vetter wrote: > > +#ifdef CONFIG_LOCKDEP > > +struct lockdep_map console_lock_dep_map = { > > + .name = "console_lock" > > +}; > > +#endif > > static? Yeah, static. I'm travelling atm, so will take a

Re: [PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-19 Thread Daniel Vetter
On Tue, Sep 18, 2012 at 10:33:28AM +0300, Jani Nikula wrote: On Tue, 18 Sep 2012, Daniel Vetter daniel.vet...@ffwll.ch wrote: +#ifdef CONFIG_LOCKDEP +struct lockdep_map console_lock_dep_map = { + .name = console_lock +}; +#endif static? Yeah, static. I'm travelling atm, so will

[PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-18 Thread Jani Nikula
On Tue, 18 Sep 2012, Daniel Vetter wrote: > +#ifdef CONFIG_LOCKDEP > +struct lockdep_map console_lock_dep_map = { > + .name = "console_lock" > +}; > +#endif static? BR, Jani.

[PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-18 Thread Daniel Vetter
Dave Airlie recently discovered a locking bug in the fbcon layer, where a timer_del_sync (for the blinking cursor) deadlocks with the timer itself, since both (want to) hold the console_lock: https://lkml.org/lkml/2012/8/21/36 Unfortunately the console_lock isn't a plain mutex and hence has no

Re: [PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-18 Thread Jani Nikula
On Tue, 18 Sep 2012, Daniel Vetter daniel.vet...@ffwll.ch wrote: +#ifdef CONFIG_LOCKDEP +struct lockdep_map console_lock_dep_map = { + .name = console_lock +}; +#endif static? BR, Jani. ___ dri-devel mailing list

[PATCH 2/2] [RESEND] console: implement lockdep support for console_lock

2012-09-17 Thread Daniel Vetter
Dave Airlie recently discovered a locking bug in the fbcon layer, where a timer_del_sync (for the blinking cursor) deadlocks with the timer itself, since both (want to) hold the console_lock: https://lkml.org/lkml/2012/8/21/36 Unfortunately the console_lock isn't a plain mutex and hence has no