linux_old1/drivers/char/agp
Andy Lutomirski f435046d38 drm, agpgart: Use pgprot_writecombine for AGP maps and make the MTRR optional
I'm not sure I understand the intent of the previous behavior.  mmap
on /dev/agpgart and DRM_AGP maps had no cache flags set, so they
would be fully cacheable.  But the DRM code (most of the time) would
add a write-combining MTRR that would change the effective memory
type to WC.

The new behavior just requests WC explicitly for all AGP maps.

If there is any code out there that expects cacheable access to the
AGP aperture (because the drm driver doesn't request an MTRR or
because it's using /dev/agpgart directly), then it will now end up
with a UC or WC mapping, depending on the architecture and PAT
availability.  But cacheable access to the aperture seems like it's
asking for trouble, because, AIUI, the aperture is an alias of RAM.

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:31 +10:00
..
Kconfig Revert "agp: AMD AGP is used on UP1100 & UP1500 alpha boxen" 2011-02-04 09:42:25 +10:00
Makefile agp/intel: make intel-gtt.c into a real source file 2010-09-08 21:20:06 +01:00
agp.h Fix common misspellings 2011-03-31 11:26:23 -03:00
ali-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
alpha-agp.c const: mark struct vm_struct_operations 2009-09-27 11:39:25 -07:00
amd-k7-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
amd64-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
ati-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
backend.c agp: fix scratch page cleanup 2012-01-26 18:36:48 +00:00
compat_ioctl.c agp: kill agp_flush_chipset and corresponding ioctl 2010-11-23 20:14:45 +00:00
compat_ioctl.h agp: kill agp_flush_chipset and corresponding ioctl 2010-11-23 20:14:45 +00:00
efficeon-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
frontend.c drm, agpgart: Use pgprot_writecombine for AGP maps and make the MTRR optional 2013-05-31 13:37:31 +10:00
generic.c agp: Use u32 __iomem annotation to silence sparse warning. 2012-04-12 17:56:21 +01:00
hp-agp.c [IA64] agp/hp-agp: Allow binding user memory to the AGP GART 2011-08-23 13:31:59 -07:00
i460-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
intel-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
intel-agp.h drm/i915: Kill off now unused gen6+ AGP code 2012-11-11 23:51:43 +01:00
intel-gtt.c drm/i915: Disable WC PTE updates to w/a buggy IOMMU on ILK 2013-02-20 00:21:49 +01:00
isoch.c agp: use dev_printk when possible 2008-08-12 10:13:38 +10:00
nvidia-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
parisc-agp.c parisc-agp: fix missing slab.h include 2010-10-29 13:26:48 -04:00
sgi-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
sis-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
sworks-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
uninorth-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
via-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00