Arjan van dev Ven fcea424d31 fix historic ioremap() abuse in AGP
Several AGP drivers right now use ioremap_nocache() on kernel ram in order
to turn a page of regular memory uncached.

There are two problems with this:

    1) This is a total nightmare for the ioremap() implementation to keep
       various mappings of the same page coherent.

    2) It's a total nightmare for the AGP code since it adds a ton of
       complexity in terms of keeping track of 2 different pointers to
       the same thing, in terms of error handling etc etc.

This patch fixes this by making the AGP drivers use the new
set_memory_XX APIs instead.

Note: amd-k7-agp.c is built on Alpha too, and generic.c is built
on ia64 as well, which do not yet have the set_memory_*() APIs,
so for them some we have a few ugly #ifdefs - hopefully they'll
be fixed soon.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Dave Airlie <airlied@linux.ie>
2008-02-19 14:46:39 +10:00
..
2008-02-19 14:46:39 +10:00
2008-02-13 16:21:18 -08:00
2008-02-06 10:41:10 -08:00
2008-02-08 09:22:41 -08:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:42:52 -07:00
2008-02-03 17:11:42 +02:00
2008-02-03 17:11:42 +02:00
2008-01-30 13:30:27 +01:00
2008-02-07 08:42:33 -08:00
2008-02-07 08:42:25 -08:00
2008-02-07 08:42:25 -08:00
2007-10-29 07:41:32 -07:00
2007-07-29 17:09:29 -07:00
2008-02-08 09:22:24 -08:00
2008-02-07 08:42:35 -08:00
2008-02-07 08:42:34 -08:00
2007-10-17 08:42:55 -07:00
2008-02-02 15:14:48 -08:00
2007-07-21 17:49:16 -07:00
2007-10-18 14:37:23 -07:00
2007-07-16 09:05:46 -07:00
2008-02-07 08:42:34 -08:00
2008-02-07 08:42:34 -08:00
2007-10-19 11:53:43 -07:00
2008-02-03 17:11:42 +02:00
2007-10-17 08:42:56 -07:00
2008-02-06 10:41:04 -08:00