mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: "Satyam Sharma" <satyam.sharma@gmail.com>
Cc: "Ingo Molnar" <mingo@elte.hu>,
	linux-kernel@vger.kernel.org, "Wim Van Sebroeck" <wim@iguana.be>,
	"Greg KH" <gregkh@suse.de>
Subject: Re: [bug] pcwd_init_module(): WARNING: at lib/kref.c:33 kref_get()
Date: Mon, 23 Jul 2007 09:33:02 +0200	[thread overview]
Message-ID: <20070723093302.2a2bf9d4@gondolin.boeblingen.de.ibm.com> (raw)
In-Reply-To: <a781481a0707220753q2754f3cfy47941405f92c833d@mail.gmail.com>

On Sun, 22 Jul 2007 20:23:20 +0530,
"Satyam Sharma" <satyam.sharma@gmail.com> wrote:

> On 7/22/07, Ingo Molnar <mingo@elte.hu> wrote:
> >
> > enabling CONFIG_PCWATCHDOG=y crashes bzImage bootup, see below. Tested
> > on latest -git.
> >
> >         Ingo
> >
> > ------------------->
> > Calling initcall 0xc1e81f8c: pcwd_init_module+0x0/0x14()
> > WARNING: at lib/kref.c:33 kref_get()
> >  [<c0105f6e>] show_trace_log_lvl+0x19/0x2e
> >  [<c0106067>] show_trace+0x12/0x14
> >  [<c010607d>] dump_stack+0x14/0x16
> >  [<c051aa54>] kref_get+0x37/0x40
> >  [<c0519dfe>] kobject_get+0x12/0x17
> >  [<c06fd12a>] get_bus+0x11/0x21
> >  [<c06fd729>] bus_add_driver+0x18/0x16b
> >  [<c06fe45a>] driver_register+0x66/0x6b
> >  [<c0702575>] isa_register_driver+0x27/0x126
> >  [<c1e81f9e>] pcwd_init_module+0x12/0x14
> >  [<c1e50838>] kernel_init+0x15a/0x2df
> >  [<c0105d87>] kernel_thread_helper+0x7/0x10
> >  =======================
> 
> Trying to kref_get() isa_driver.device_driver.bus->subsys.kobj.kref
> but it hasn't even been kref_init()'ed yet/already.
> 
> > WARNING: at lib/kref.c:33 kref_get()
> >  [<c0105f6e>] show_trace_log_lvl+0x19/0x2e
> >  [<c0106067>] show_trace+0x12/0x14
> >  [<c010607d>] dump_stack+0x14/0x16
> >  [<c051aa54>] kref_get+0x37/0x40
> >  [<c0519dfe>] kobject_get+0x12/0x17
> >  [<c051a429>] kobject_init+0x32/0x43
> >  [<c051a4c3>] kobject_register+0x15/0x31
> >  [<c06fd76d>] bus_add_driver+0x5c/0x16b
> >  [<c06fe45a>] driver_register+0x66/0x6b
> >  [<c0702575>] isa_register_driver+0x27/0x126
> >  [<c1e81f9e>] pcwd_init_module+0x12/0x14
> >  [<c1e50838>] kernel_init+0x15a/0x2df
> >  [<c0105d87>] kernel_thread_helper+0x7/0x10
> >  =======================
> 
> Trying to kref_get() isa_driver.device_driver.kobj.kset->kobj.kref
> but it hasn't even been kref_init()'ed yet/already.
> 
> > BUG: spinlock bad magic on CPU#0, swapper/1
> >  lock: c1b6a888, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
> >  [<c0105f6e>] show_trace_log_lvl+0x19/0x2e
> >  [<c0106067>] show_trace+0x12/0x14
> >  [<c010607d>] dump_stack+0x14/0x16
> >  [<c052b0be>] spin_bug+0xa1/0xa9
> >  [<c052b289>] _raw_spin_lock+0x1e/0x104
> >  [<c1385f7e>] _spin_lock+0x54/0x62
> >  [<c051a026>] kobject_shadow_add+0x84/0x171
> >  [<c051a11d>] kobject_add+0xa/0xc
> >  [<c051a4ca>] kobject_register+0x1c/0x31
> >  [<c06fd76d>] bus_add_driver+0x5c/0x16b
> >  [<c06fe45a>] driver_register+0x66/0x6b
> >  [<c0702575>] isa_register_driver+0x27/0x126
> >  [<c1e81f9e>] pcwd_init_module+0x12/0x14
> >  [<c1e50838>] kernel_init+0x15a/0x2df
> >  [<c0105d87>] kernel_thread_helper+0x7/0x10
> >  =======================
> 
> Trying to spin_lock() isa_driver.device_driver.kobj.kset->list_lock
> but it hasn't even been spin_lock_init()'ed already.
> 
> Greg/Cornelia, any idea when/why would such errors normally occur?

Might be some ordering problem (bus not registered yet). Is the isa bus
already up? Changing link order or initcall levels might help.

  parent reply	other threads:[~2007-07-23  7:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-22 12:42 Ingo Molnar
2007-07-22 14:53 ` Satyam Sharma
2007-07-22 21:47   ` Wim Van Sebroeck
2007-07-23  7:33   ` Cornelia Huck [this message]
2007-07-29 19:06     ` Wim Van Sebroeck
2007-07-30 19:18       ` Ingo Molnar

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=20070723093302.2a2bf9d4@gondolin.boeblingen.de.ibm.com \
    --to=cornelia.huck@de.ibm.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=satyam.sharma@gmail.com \
    --cc=wim@iguana.be \
    /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

all inboxes | Powered by JetHome®