]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[AGPGART] Remove unnecessary flushes when inserting and removing pages.
authorThomas Hellstrom <thomas@tungstengraphics.com>
Wed, 20 Dec 2006 15:33:41 +0000 (16:33 +0100)
committerDave Jones <davej@redhat.com>
Sat, 23 Dec 2006 03:44:09 +0000 (22:44 -0500)
commit5aa80c72263904f1e52eee8ed8cb75887b1d1dc3
tree1ab5970066b59a07067765135645224c630424de
parentd5cb8d38cd0029b3573e1c8d5d99d99c86dbdbd6
[AGPGART] Remove unnecessary flushes when inserting and removing pages.

This patch is to speed up flipping of pages in and out of the AGP aperture as
needed by the new drm memory manager.

A number of global cache flushes are removed as well as some PCI posting flushes.
The following guidelines have been used:

1) Memory that is only mapped uncached and that has been subject to a global
cache flush after the mapping was changed to uncached does not need any more
cache flushes. Neither before binding to the aperture nor after unbinding.

2) Only do one PCI posting flush after a sequence of writes modifying page
entries in the GATT.

Signed-off-by: Thomas Hellstrom <thomas@tungstengraphics.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/char/agp/generic.c
drivers/char/agp/intel-agp.c