android_kernel_lge_bullhead/drivers/video/matrox
Mikulas Patocka 031767d310 matroxfb: perform a dummy read of M_STATUS
commit 972754cfaee94d6e25acf94a497bc0a864d91b7e 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>
2014-06-30 20:09:42 -07:00
..
Makefile
g450_pll.c
g450_pll.h
i2c-matroxfb.c
matroxfb_DAC1064.c
matroxfb_DAC1064.h
matroxfb_Ti3026.c
matroxfb_Ti3026.h
matroxfb_accel.c matroxfb: restore the registers M_ACCESS and M_PITCH 2014-05-13 13:59:42 +02:00
matroxfb_accel.h
matroxfb_base.c fbdev: matroxfb: Fix compilation after fb_var_screeninfo change 2011-12-21 02:26:11 +00:00
matroxfb_base.h matroxfb: perform a dummy read of M_STATUS 2014-06-30 20:09:42 -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_g450.c
matroxfb_g450.h
matroxfb_maven.c matroxfb: convert struct i2c_msg initialization to C99 format 2013-04-29 15:54:26 -07:00
matroxfb_maven.h
matroxfb_misc.c
matroxfb_misc.h