Andy Lutomirski 63e28a7a5f uvesafb: Clean up MTRR code
The old code allowed very strange memory types.  Now it works like
all the other video drivers: ioremap_wc is used unconditionally,
and MTRRs are set if PAT is unavailable (unless MTRR is disabled
by a module parameter).

UC, WB, and WT support is gone.  If there are MTRR conflicts that prevent
addition of a WC MTRR, adding a non-conflicting MTRR is pointless; it's
better to just turn off MTRR support entirely.

As an added bonus, any MTRR added is freed on unload.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-05-31 13:37:36 +10:00
..
2007-05-09 07:19:14 +02:00
2005-04-16 15:20:36 -07:00
2008-03-19 18:53:37 -07:00
2008-02-06 10:41:15 -08:00
2009-09-23 07:39:51 -07:00
2005-04-16 15:20:36 -07:00
2007-05-08 11:15:32 -07:00
2005-04-16 15:20:36 -07:00
2006-10-03 22:49:15 +02:00
2005-04-16 15:20:36 -07:00
2008-07-24 10:47:37 -07:00
2013-05-31 13:37:36 +10:00
2008-10-16 11:21:41 -07:00
2011-03-31 11:26:23 -03:00