Files
linux/drivers/video
Mikulas Patocka 031767d310 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>
2014-06-30 20:09:42 -07:00
..
2013-02-22 23:31:31 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2014-05-13 13:59:42 +02:00
2013-04-18 13:03:53 +10:00
2013-02-22 23:31:31 -05:00
2013-04-24 08:41:41 +03:00
2013-04-26 08:28:56 +03:00
2013-03-20 16:26:32 +01:00
2013-04-12 14:01:40 +10:00
2013-11-20 12:27:47 -08:00
2013-05-02 14:59:21 +03:00
2013-04-12 15:21:36 +02:00
2013-04-24 08:41:42 +03:00
2013-04-26 08:28:56 +03:00
2013-04-12 15:21:36 +02:00
2014-05-30 21:52:12 -07:00
2013-04-26 08:28:56 +03:00
2013-04-26 08:28:56 +03:00