linux/drivers/char/agp
Eric Anholt e517a5e970 agp/intel: Fix the pre-9xx chipset flush.
Ever since we enabled GEM, the pre-9xx chipsets (particularly 865) have had
serious stability issues.  Back in May a wbinvd was added to the DRM to
work around much of the problem.  Some failure remained -- easily visible
by dragging a window around on an X -retro desktop, or by looking at bugzilla.

The chipset flush was on the right track -- hitting the right amount of
memory, and it appears to be the only way to flush on these chipsets, but the
flush page was mapped uncached.  As a result, the writes trying to clear the
writeback cache ended up bypassing the cache, and not flushing anything!  The
wbinvd would flush out other writeback data and often cause the data we wanted
to get flushed, but not always.  By removing the setting of the page to UC
and instead just clflushing the data we write to try to flush it, we get the
desired behavior with no wbinvd.

This exports clflush_cache_range(), which was laying around and happened to
basically match the code I was otherwise going to copy from the DRM.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Brice Goglin <Brice.Goglin@ens-lyon.org>
Cc: stable@kernel.org
2009-09-11 11:39:23 -07:00
..
agp.h agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
ali-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
alpha-agp.c agp: enable optimized agp_alloc_pages methods 2008-08-22 06:07:33 +02:00
amd-k7-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
amd64-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
ati-agp.c agp: add user mapping support to ATI AGP bridge. 2009-06-19 10:52:57 +10:00
backend.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
compat_ioctl.c agp: more boolean conversions. 2008-06-19 10:42:17 +10:00
compat_ioctl.h agp: add chipset flushing support to AGP interface 2008-02-05 14:33:32 +10:00
efficeon-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
frontend.c Merge commit 'v2.6.26' into bkl-removal 2008-07-14 15:29:34 -06:00
generic.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
hp-agp.c Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 2009-06-20 10:15:30 -07:00
i460-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
intel-agp.c agp/intel: Fix the pre-9xx chipset flush. 2009-09-11 11:39:23 -07:00
isoch.c agp: use dev_printk when possible 2008-08-12 10:13:38 +10:00
Kconfig x86 gart: rename CONFIG_IOMMU to CONFIG_GART_IOMMU 2007-10-30 00:22:22 +01:00
Makefile [AGPGART] Fix modular agpgart ia64 allmodconfig 2007-02-20 14:18:01 -05:00
nvidia-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
parisc-agp.c parisc: parisc-agp.c - use correct page_mask function 2009-08-02 15:35:43 +02:00
sgi-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
sis-agp.c agp: enable optimized agp_alloc_pages methods 2008-08-22 06:07:33 +02:00
sworks-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
uninorth-agp.c agp: switch AGP to use page array instead of unsigned long array 2009-06-19 10:21:42 +10:00
via-agp.c Update email addresses. 2008-10-20 12:50:03 -07:00