On Wed, 2003-02-26 at 22:26, Alan Cox 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.
> > 

Can we just stop interrupt generation by the CGC during cleanup?

Tony

(diff is against linux-drm-4.2.0-kernelsource.tar.gz)

diff -Naur drm-4.2.0/i810_dma.c drm/i810_dma.c
--- drm-4.2.0/i810_dma.c        2002-08-22 14:57:39.000000000 +0000
+++ drm/i810_dma.c      2003-02-26 14:35:31.000000000 +0000
@@ -313,6 +313,12 @@
                drm_i810_private_t *dev_priv =
                        (drm_i810_private_t *) dev->dev_private;
 
+               /*
+                * disable and mask interrupts 
+                */
+               I810_WRITE16(0xFFFF, I810REG_INT_MASK_R);
+               I810_WRITE16(0, I810REG_INT_ENABLE_R);
+
                if(dev_priv->ring.virtual_start) {
                        DRM(ioremapfree)((void *) dev_priv->ring.virtual_start,
                                         dev_priv->ring.Size);



-------------------------------------------------------
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

Reply via email to