All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Andrew Morton <akpm@osdl.org>,
	netdev@oss.sgi.com, mangus@deprecated.it, webvenza@libero.it
Subject: Re: Fw: [Bugme-new] [Bug 4223] New: sis900 kernel oop at boot
Date: Fri, 19 Aug 2005 04:04:55 -0400	[thread overview]
Message-ID: <430592A7.30101@pobox.com> (raw)
In-Reply-To: <20050305084537.GA12678@gondor.apana.org.au>

Herbert Xu wrote:
> Hi:
> 
> Here is the version that moves the necessary code above register_netdev
> instead of using init.  It's against netdev-2.6.
> 
> 
>>Feb 15 18:26:20 saturno kernel: Unable to handle kernel NULL pointer
>>dereference at virtual address 0000000e
>>Feb 15 18:26:20 saturno kernel:  printing eip:
>>Feb 15 18:26:20 saturno kernel: e1113417
>>Feb 15 18:26:20 saturno kernel: *pde = 00000000
>>Feb 15 18:26:20 saturno kernel: Oops: 0000 [#1]
>>Feb 15 18:26:20 saturno kernel: PREEMPT
>>Feb 15 18:26:20 saturno kernel: Modules linked in: sis900 nvidia 8250_pci 8250
>>serial_core psmouse
>>Feb 15 18:26:20 saturno kernel: CPU:    0
>>Feb 15 18:26:20 saturno kernel: EIP:    0060:[<e1113417>]    Tainted: P
>>VLI
>>Feb 15 18:26:20 saturno kernel: EFLAGS: 00010296   (2.6.10-M7)
>>Feb 15 18:26:20 saturno kernel: EIP is at sis900_check_mode+0x17/0xa0 [sis900]
> 
> 
> OK, this happened because we got preempted before sis900_mii_probe
> finished setting the sis_priv->mii.  Theoretically this can happen
> with SMP as well but I suppose the number of SMP machines with sis900
> is fairly small.
> 
> Anyway, the fix is to make sure that sis900_mii_probe is done before
> the device can be opened.  This patch does it by moving the setup
> before register_netdevice.
> 
> Since the netdev name is not available before register_netdev, I've
> changed the relevant printk's to use pci_name instead.  Note that
> one of those printk's may be called after register_netdev as well.
> 
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Is this patch still needed?

	Jeff

  reply	other threads:[~2005-08-19  8:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-17 21:44 Fw: [Bugme-new] [Bug 4223] New: sis900 kernel oop at boot Andrew Morton
2005-02-18 11:20 ` Herbert Xu
2005-02-18 18:17   ` Daniele Venzano
2005-02-18 22:18     ` Herbert Xu
2005-03-05  8:45   ` Fw: " Herbert Xu
2005-08-19  8:04     ` Jeff Garzik [this message]
2005-08-19  8:08       ` Herbert Xu

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=430592A7.30101@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=akpm@osdl.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=mangus@deprecated.it \
    --cc=netdev@oss.sgi.com \
    --cc=webvenza@libero.it \
    /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.