Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357999
b: refs/heads/master
c: dabb7a9
h: refs/heads/master
i:
  357997: 17447f3
  357995: 9916c40
  357991: df7c928
  357983: 8667212
v: v3
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Jan 17, 2013
1 parent 27b7718 commit 2a892aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d4545aef561ad47f91bcf75814af20c104b5a9e
refs/heads/master: dabb7a91ae6442d642a52e0de22d781a8ad2af12
3 changes: 1 addition & 2 deletions trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ static void i915_kick_out_firmware_fb(struct drm_i915_private *dev_priv)
if (!ap)
return;

ap->ranges[0].base = dev_priv->mm.gtt->gma_bus_addr;
ap->ranges[0].base = dev_priv->gtt.mappable_base;
ap->ranges[0].size =
dev_priv->mm.gtt->gtt_mappable_entries << PAGE_SHIFT;
primary =
Expand Down Expand Up @@ -1543,7 +1543,6 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
}

aperture_size = dev_priv->mm.gtt->gtt_mappable_entries << PAGE_SHIFT;
dev_priv->gtt.mappable_base = dev_priv->mm.gtt->gma_bus_addr;

dev_priv->gtt.mappable =
io_mapping_create_wc(dev_priv->gtt.mappable_base,
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ static int intel_init_ring_buffer(struct drm_device *dev,
goto err_unpin;

ring->virtual_start =
ioremap_wc(dev_priv->mm.gtt->gma_bus_addr + obj->gtt_offset,
ioremap_wc(dev_priv->gtt.mappable_base + obj->gtt_offset,
ring->size);
if (ring->virtual_start == NULL) {
DRM_ERROR("Failed to map ringbuffer.\n");
Expand Down

0 comments on commit 2a892aa

Please sign in to comment.