linux/drivers/video/matrox
Mikulas Patocka 4d7d9fb810 matroxfb: perform a dummy read of M_STATUS
commit 972754cfae upstream.

I had occasional screen corruption with the matrox framebuffer driver and
I found out that the reason for the corruption is that the hardware
blitter accesses the videoram while it is being written to.

The matrox driver has a macro WaitTillIdle() that should wait until the
blitter is idle, but it sometimes doesn't work. I added a dummy read
mga_inl(M_STATUS) to WaitTillIdle() to fix the problem. The dummy read
will flush the write buffer in the PCI chipset, and the next read of
M_STATUS will return the hardware status.

Since applying this patch, I had no screen corruption at all.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-06-30 20:11:56 -07:00
..
g450_pll.c matroxfb: fix problems with display stability 2009-12-16 07:20:05 -08:00
g450_pll.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
i2c-matroxfb.c i2c: Add support for custom probe function 2010-08-11 18:20:56 +02:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
matroxfb_accel.c matroxfb: restore the registers M_ACCESS and M_PITCH 2014-05-13 13:32:50 +02:00
matroxfb_accel.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_base.c framebuffer: Use fb_<level> 2013-10-29 12:53:07 +02:00
matroxfb_base.h matroxfb: perform a dummy read of M_STATUS 2014-06-30 20:11:56 -07:00
matroxfb_crtc2.c fbdev: matroxfb: Fix compilation after fb_var_screeninfo change 2011-12-21 02:26:11 +00:00
matroxfb_crtc2.h matroxfb: color setting fixes 2007-07-17 10:23:13 -07:00
matroxfb_DAC1064.c video: Remove unnecessary semicolons 2013-10-30 13:34:52 +02:00
matroxfb_DAC1064.h Fix common misspellings 2011-03-31 11:26:23 -03:00
matroxfb_g450.c matroxfb: get rid of unneeded macro MINFO_FROM 2009-09-23 07:39:57 -07:00
matroxfb_g450.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_maven.c video/matrox/matroxfb_maven: Use module_i2c_driver to register driver 2013-09-19 13:30:10 +03:00
matroxfb_maven.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
matroxfb_misc.c matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_misc.h matroxfb: get rid of unneeded macros WPMINFO and friends 2009-09-23 07:39:57 -07:00
matroxfb_Ti3026.c video: Remove unnecessary semicolons 2013-10-30 13:34:52 +02:00
matroxfb_Ti3026.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00