-----Forwarded Message----- > From: Kasper Dupont <[EMAIL PROTECTED]> > To: Linux-Kernel <[EMAIL PROTECTED]> > Subject: Re: Panic in i810 > Date: 26 Feb 2003 13:43:48 +0100 > > 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:[EMAIL PROTECTED] > for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_); > ---- >
> 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) -- Alan Cox <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel