agp: Fix stolen memory counting on G4X.
authorEric Anholt <eric@anholt.net>
Tue, 14 Oct 2008 18:28:58 +0000 (11:28 -0700)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Oct 2008 04:10:00 +0000 (14:10 +1000)
commit82e14a6215cbc9804ecc35281e973c6c8ce22fe7
treeef86894308387ff38d4c2dbc50e88d4ad7136bbb
parent3fa8749e584b55f1180411ab1b51117190bac1e5
agp: Fix stolen memory counting on G4X.

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>
drivers/char/agp/intel-agp.c