drm/i915: Remove use on gma_bus_addr on gen6+
[deliverable/linux.git] / drivers / gpu / drm / i915 / i915_gem_gtt.c
index 61bfb12e1016bfcbb4d2727a13761d2394533875..0b89305779536e7bf1a7696439612badcff43848 100644 (file)
@@ -691,6 +691,8 @@ int i915_gem_gtt_init(struct drm_device *dev)
        u16 snb_gmch_ctl;
        int ret;
 
+       dev_priv->gtt.mappable_base = pci_resource_start(dev->pdev, 2);
+
        /* On modern platforms we need not worry ourself with the legacy
         * hostbridge query stuff. Skip it entirely
         */
@@ -723,7 +725,6 @@ int i915_gem_gtt_init(struct drm_device *dev)
 
        /* For GEN6+ the PTEs for the ggtt live at 2MB + BAR0 */
        gtt_bus_addr = pci_resource_start(dev->pdev, 0) + (2<<20);
-       dev_priv->mm.gtt->gma_bus_addr = pci_resource_start(dev->pdev, 2);
 
        /* i9xx_setup */
        pci_read_config_word(dev->pdev, SNB_GMCH_CTRL, &snb_gmch_ctl);
This page took 0.027999 seconds and 5 git commands to generate.