]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
AGPGART: intel_agp: fix G965 GTT size detect
authorWang Zhenyu <zhenyu.z.wang@intel.com>
Wed, 25 Apr 2007 19:07:38 +0000 (15:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 May 2007 00:06:03 +0000 (17:06 -0700)
[AGPGART] intel_agp: fix G965 GTT size detect

On G965, I810_PGETBL_CTL is a mmio offset, but we wrongly take it
as pci config space offset in detecting GTT size. This one line patch
fixs this.

Signed-off-by: Wang Zhenyu <zhenyu.z.wang@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/agp/intel-agp.c

index 84787ce5f72a01774110cc09fa81bd8a3b7e82e1..ed1d380905c71c8dd2db6835ab0a92ec0555dce7 100644 (file)
@@ -405,9 +405,8 @@ static void intel_i830_init_gtt_entries(void)
 
        if (IS_I965) {
                u32 pgetbl_ctl;
+               pgetbl_ctl = readl(intel_i830_private.registers+I810_PGETBL_CTL);
 
-               pci_read_config_dword(agp_bridge->dev, I810_PGETBL_CTL,
-                                     &pgetbl_ctl);
                /* The 965 has a field telling us the size of the GTT,
                 * which may be larger than what is necessary to map the
                 * aperture.