linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] r128 DRM module -- hardware bug
@ 2001-02-28 13:05 Gareth Hughes
  0 siblings, 0 replies; only message in thread
From: Gareth Hughes @ 2001-02-28 13:05 UTC (permalink / raw)
  To: linux-kernel

The following patch addresses a serious problem with older Rage 128
chipsets, up to and including at least the Rage 128 RF chipset found on
the Xpert 2000.  The workaround should be classed as a critical fix, as
without it such cards will lock almost immediately.

-- Gareth

--- linux/drivers/char/drm/r128_drv.h	Fri Jan  5 08:03:20 2001
+++ linux.gh/drivers/char/drm/r128_drv.h	Thu Mar  1 00:03:35 2001
@@ -447,6 +447,11 @@
 		DRM_INFO( "ADVANCE_RING() tail=0x%06x wr=0x%06x\n",	\
 			  write, dev_priv->ring.tail );			\
 	}								\
+	if ( write < 32 ) {						\
+		memcpy( dev_priv->ring.end,				\
+			dev_priv->ring.start,				\
+			write * sizeof(u32) );				\
+	}								\
 	r128_flush_write_combine();					\
 	dev_priv->ring.tail = write;					\
 	R128_WRITE( R128_PM4_BUFFER_DL_WPTR, write );			\

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-28 13:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-28 13:05 [PATCH] r128 DRM module -- hardware bug Gareth Hughes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).