]> git.baikalelectronics.ru Git - kernel.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)
commit1458fd7a0e8049b1e5f1dbd9bbe42fe940cdba8b
tree6954d28e1e835a9043c1f201c0791c390e528e7f
parent45c3d68e9caf533186571244433786a74b351d1e
[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