public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix lguest w/ lockdep
       [not found] <20070628001425.GR11115@waste.org>
@ 2007-06-28 13:31 ` Rusty Russell
  2007-06-28 13:51   ` Jeremy Fitzhardinge
  0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2007-06-28 13:31 UTC (permalink / raw)
  To: Matt Mackall
  Cc: lkml - Kernel Mailing List, Andrew Morton, Jeremy Fitzhardinge

On Wed, 2007-06-27 at 19:14 -0500, Matt Mackall wrote:
> lguest: unhandled trap 14 at 0xc01362f7 (0x0)
> Dump of assembler code for function __lock_acquire:

Thanks for the bug report Matt!  I wonder if other
paravirt_disable_iospace users have the same issue...
===

Fix "lguest: unhandled trap 14 at 0xc013630f (0x0)" with CONFIG_LOCKDEP=y

paravirt_disable_iospace -> request_resource -> write_lock -> __lock_acquire()

lockdep_init() is already idempotent: simply call it before
paravirt_disable_iospace().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

diff -r bea2b8147985 drivers/lguest/lguest.c
--- a/drivers/lguest/lguest.c	Thu Jun 07 22:50:36 2007 +1000
+++ b/drivers/lguest/lguest.c	Thu Jun 28 23:21:26 2007 +1000
@@ -593,6 +593,8 @@ __init void lguest_init(void *boot)
 
 	reserve_top_address(lguest_data.reserve_mem);
 
+	lockdep_init();
+
 	paravirt_disable_iospace();
 
 	cpu_detect(&new_cpu_data);



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix lguest w/ lockdep
  2007-06-28 13:31 ` [PATCH] Fix lguest w/ lockdep Rusty Russell
@ 2007-06-28 13:51   ` Jeremy Fitzhardinge
  0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Fitzhardinge @ 2007-06-28 13:51 UTC (permalink / raw)
  To: Rusty Russell
  Cc: Matt Mackall, lkml - Kernel Mailing List, Andrew Morton,
	Jeremy Fitzhardinge

Rusty Russell wrote:
> On Wed, 2007-06-27 at 19:14 -0500, Matt Mackall wrote:
>   
>> lguest: unhandled trap 14 at 0xc01362f7 (0x0)
>> Dump of assembler code for function __lock_acquire:
>>     
>
> Thanks for the bug report Matt!  I wonder if other
> paravirt_disable_iospace users have the same issue...
>   

I call it a little later (from arch_setup), and I think lockdep_init 
will have already been called at that point.  Hm, yes, it gets called at 
the top of start_kernel.

    J

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-28 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20070628001425.GR11115@waste.org>
2007-06-28 13:31 ` [PATCH] Fix lguest w/ lockdep Rusty Russell
2007-06-28 13:51   ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox