]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[AGP] Fix intel 965 AGP memory mapping function
authorLinus Torvalds <torvalds@woody.osdl.org>
Wed, 22 Nov 2006 17:37:54 +0000 (09:37 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 22 Nov 2006 17:37:54 +0000 (09:37 -0800)
commit7d915a38985d2826acbdc9dc9cca8a93e23e5278
tree6954d28e1e835a9043c1f201c0791c390e528e7f
parentb42172fc7b569a0ef2b0fa38d71382969074c0e2
[AGP] Fix intel 965 AGP memory mapping function

This introduces a i965-specific "mask_memory()" function that knows
about the extended physical addresses that the i965 supports.  This
allows us to correctly map in physical memory in the >4GB range into the
GTT.

Also simplify/clean-up the i965 case for the aperture sizing by just
returning the fixed 512kB size from "fetch_size()".  We don't really
care that not all of the aperture may be visible - the only thing that
cares about the aperture size is the Intel "stolen memory" calculation,
which depends on the fixed size.

Cc: Keith Packard <keithp@keithp.com>
Cc: Eric Anholt <eric@anholt.net>
Cc: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/agp/intel-agp.c