]> git.karo-electronics.de Git - karo-tx-linux.git/commit
agp: Fix stolen memory counting on G4X.
authorEric Anholt <eric@anholt.net>
Tue, 14 Oct 2008 18:28:58 +0000 (11:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Nov 2008 03:05:36 +0000 (19:05 -0800)
commitda76580e24c6a30c31080d3cee44ef3f335b4f83
tree91c05595944230eb674763c42f3a464073253e60
parent056c71459d3acf9fefcb2dc67abeef10e649d508
agp: Fix stolen memory counting on G4X.

commit 82e14a6215cbc9804ecc35281e973c6c8ce22fe7 upstream

On the GM45, the amount of stolen memory mapped to the GTT was underestimated,
even though we had 508KB more available since the GTT doesn't take from
stolen memory. On the non-GM45 G4X, we overestimated how much stolen was
mapped to the GTT by 4KB, resulting in GPU page faults when that page was
accessed.

This update requires a corresponding update to xf86-video-intel to work
correctly.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/agp/intel-agp.c