OpenCloudOS-Kernel/drivers/char/agp
Linus Torvalds 66c669baa7 [AGP] Allocate AGP pages with GFP_DMA32 by default
Not all graphic page remappers support physical addresses over the 4GB
mark for remapping, so while some do (the AMD64 GART always did, and I
just fixed the i965 to do so properly), we're safest off just forcing
GFP_DMA32 allocations to make sure graphics pages get allocated in the
low 32-bit address space by default.

AGP sub-drivers that really care, and can do better, could just choose
to implement their own allocator (or we could add another "64-bit safe"
default allocator for their use), but quite frankly, you're not likely
to care in practice.

So for now, this trivial change means that we won't be allocating pages
that we can't map correctly by mistake on x86-64.

[ On traditional 32-bit x86, this could never happen, because GFP_KERNEL
  would never allocate any highmem memory anyway ]

Acked-by: Andi Kleen <ak@suse.de>
Acked-by: Dave Jones <davej@redhat.com>
Cc: Eric Anholt <eric@anholt.net>
Cc: Keith Packard <keithp@keithp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-11-22 14:55:29 -08:00
..
Kconfig [PARISC] Add support for Quicksilver AGPGART 2006-10-04 06:50:16 -06:00
Makefile [PARISC] Add support for Quicksilver AGPGART 2006-10-04 06:50:16 -06:00
agp.h [AGPGART] agp.h: constify struct agp_bridge_data::version 2006-09-05 17:19:51 -04:00
ali-agp.c [AGPGART] Lots of CodingStyle/whitespace cleanups. 2006-02-28 00:54:25 -05:00
alpha-agp.c [AGPGART] alpha-agp warning fix 2006-06-08 22:41:17 -04:00
amd-k7-agp.c spelling fixes 2006-06-26 18:35:02 +02:00
amd64-agp.c [AGPGART] Use pci_get_slot not pci_find_slot 2006-09-26 23:05:55 -04:00
ati-agp.c Merge ../linus 2006-06-29 16:01:54 -04:00
backend.c [AGPGART] Const'ify the agpgart driver version. 2006-08-11 18:02:27 -04:00
efficeon-agp.c [AGPGART] CONFIG_PM=n slim: drivers/char/agp/efficeon-agp.c 2006-08-11 18:10:27 -04:00
frontend.c [AGPGART] remove private page protection map 2006-07-26 19:58:39 -04:00
generic.c [AGP] Allocate AGP pages with GFP_DMA32 by default 2006-11-22 14:55:29 -08:00
hp-agp.c ACPI: ia64 buildfix 2006-04-01 23:45:39 -05:00
i460-agp.c [AGPGART] Lots of CodingStyle/whitespace cleanups. 2006-02-28 00:54:25 -05:00
intel-agp.c [AGP] Allocate AGP pages with GFP_DMA32 by default 2006-11-22 14:55:29 -08:00
isoch.c [AGPGART] Lots of CodingStyle/whitespace cleanups. 2006-02-28 00:54:25 -05:00
nvidia-agp.c [AGPGART] remove unused variable 2006-06-24 01:54:14 -04:00
parisc-agp.c [PARISC] Add support for Quicksilver AGPGART 2006-10-04 06:50:16 -06:00
sgi-agp.c [PATCH] Remove redundant NULL checks before [kv]free - in drivers/ 2006-06-27 17:32:48 -07:00
sis-agp.c [AGPGART] Lots of CodingStyle/whitespace cleanups. 2006-02-28 00:54:25 -05:00
sworks-agp.c [AGPGART] Lots of CodingStyle/whitespace cleanups. 2006-02-28 00:54:25 -05:00
uninorth-agp.c [AGPGART] uninorth: Add module param 'aperture' for aperture size 2006-10-15 19:49:59 -04:00
via-agp.c [AGPGART] const'ify VIA AGP PCI table. 2006-08-11 18:13:41 -04:00