From: Kasper Dupont <kasperd@daimi.au.dk>
To: Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Panic in i810
Date: Wed, 26 Feb 2003 13:43:48 +0100 [thread overview]
Message-ID: <3E5CB684.5A26BCA6@daimi.au.dk> (raw)
In-Reply-To: 3E595ED3.5D86FE45@daimi.au.dk
[-- Attachment #1: Type: text/plain, Size: 792 bytes --]
Kasper Dupont wrote:
>
> I have a reproducable kernel panic with different 2.4.x kernels.
> I'm using XFree86-4.2.0-8 with a i810 onboard chipset. Sometimes
> when I log off X the kernel panics. This can be reproduced by
> loging in on a VC as root and typing:
>
> while [ ! -f /tmp/stopit ] ; do
> killall gdmlogin || killall gdm ; sleep 7 ; deallocvt
> done
I made a patch, that at least prevents the system from panicing.
This is just a workaround, probably the problem is really
somewhere else. My guess is that something in the driver cleanup
is being done in an incorrect order, but I do have some problems
following this code.
--
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);
[-- Attachment #2: i810.patch --]
[-- Type: text/plain, Size: 711 bytes --]
diff -Nur linux.old/drivers/char/drm/i810_dma.c linux.new/drivers/char/drm/i810_dma.c
--- linux.old/drivers/char/drm/i810_dma.c Wed Feb 26 13:36:14 2003
+++ linux.new/drivers/char/drm/i810_dma.c Wed Feb 26 13:36:20 2003
@@ -894,6 +894,7 @@
void i810_dma_service(int irq, void *device, struct pt_regs *regs)
{
drm_device_t *dev = (drm_device_t *)device;
+ if (dev && dev->dev_private && dev->counts) {
drm_i810_private_t *dev_priv = (drm_i810_private_t *)dev->dev_private;
u16 temp;
@@ -907,6 +908,9 @@
queue_task(&dev->tq, &tq_immediate);
mark_bh(IMMEDIATE_BH);
+ } else {
+ printk(KERN_CRIT __FUNCTION__ ": NULL pointer\n");
+ }
}
void i810_dma_immediate_bh(void *device)
next prev parent reply other threads:[~2003-02-26 12:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-23 23:52 Panic in i810 Kasper Dupont
2003-02-24 1:50 ` Toplica Tanasković
2003-02-24 10:08 ` Kasper Dupont
2003-02-26 12:43 ` Kasper Dupont [this message]
2003-02-26 16:04 ` Kasper Dupont
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=3E5CB684.5A26BCA6@daimi.au.dk \
--to=kasperd@daimi.au.dk \
--cc=linux-kernel@vger.kernel.org \
/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