aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-07 09:55:57 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-12 16:18:06 -0400
commitdd2757f8b557ab2030154896eac9b2285557dda6 (patch)
tree8cb47f03ff7a391ac70b749fdddf5d00db2f90d2 /drivers/char/agp
parent9b990de76ced807b2d92a601fb7f03863b632c58 (diff)
drm/i915: stop using dev->agp->base
For that to work we need to export the base address of the gtt mmio window from intel-gtt. Also replace all other uses of dev->agp by values we already have at hand. Reviewed-by: Jani Nikula <jani.nikula@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/char/agp')
-rw-r--r--drivers/char/agp/intel-gtt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
index 53c4c7fca10b..2aab0a03ee42 100644
--- a/drivers/char/agp/intel-gtt.c
+++ b/drivers/char/agp/intel-gtt.c
@@ -66,7 +66,6 @@ static struct _intel_private {
66 struct pci_dev *bridge_dev; 66 struct pci_dev *bridge_dev;
67 u8 __iomem *registers; 67 u8 __iomem *registers;
68 phys_addr_t gtt_bus_addr; 68 phys_addr_t gtt_bus_addr;
69 phys_addr_t gma_bus_addr;
70 u32 PGETBL_save; 69 u32 PGETBL_save;
71 u32 __iomem *gtt; /* I915G */ 70 u32 __iomem *gtt; /* I915G */
72 bool clear_fake_agp; /* on first access via agp, fill with scratch */ 71 bool clear_fake_agp; /* on first access via agp, fill with scratch */
@@ -779,7 +778,7 @@ static bool intel_enable_gtt(void)
779 pci_read_config_dword(intel_private.pcidev, I915_GMADDR, 778 pci_read_config_dword(intel_private.pcidev, I915_GMADDR,
780 &gma_addr); 779 &gma_addr);
781 780
782 intel_private.gma_bus_addr = (gma_addr & PCI_BASE_ADDRESS_MEM_MASK); 781 intel_private.base.gma_bus_addr = (gma_addr & PCI_BASE_ADDRESS_MEM_MASK);
783 782
784 if (INTEL_GTT_GEN >= 6) 783 if (INTEL_GTT_GEN >= 6)
785 return true; 784 return true;
@@ -860,7 +859,7 @@ static int intel_fake_agp_configure(void)
860 return -EIO; 859 return -EIO;
861 860
862 intel_private.clear_fake_agp = true; 861 intel_private.clear_fake_agp = true;
863 agp_bridge->gart_bus_addr = intel_private.gma_bus_addr; 862 agp_bridge->gart_bus_addr = intel_private.base.gma_bus_addr;
864 863
865 return 0; 864 return 0;
866} 865}