Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307131
b: refs/heads/master
c: 211c568
h: refs/heads/master
i:
  307129: df2337a
  307127: 1efdeac
v: v3
  • Loading branch information
Daniel Vetter committed Apr 12, 2012
1 parent 75239fe commit 72c5f77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: e3aef17286850a77f11a6dac28d972f65cde2235
refs/heads/master: 211c568bc6a1ebd51e35724f6d733e76717ce368
10 changes: 4 additions & 6 deletions trunk/drivers/gpu/drm/i915/i915_gem_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ int i915_gem_init_aliasing_ppgtt(struct drm_device *dev)
GFP_KERNEL);
if (!ppgtt->pt_dma_addr)
goto err_pt_alloc;
}

for (i = 0; i < ppgtt->num_pd_entries; i++) {
dma_addr_t pt_addr;
if (dev_priv->mm.gtt->needs_dmar) {
for (i = 0; i < ppgtt->num_pd_entries; i++) {
dma_addr_t pt_addr;

pt_addr = pci_map_page(dev->pdev, ppgtt->pt_pages[i],
0, 4096,
PCI_DMA_BIDIRECTIONAL);
Expand All @@ -112,8 +111,7 @@ int i915_gem_init_aliasing_ppgtt(struct drm_device *dev)

}
ppgtt->pt_dma_addr[i] = pt_addr;
} else
pt_addr = page_to_phys(ppgtt->pt_pages[i]);
}
}

ppgtt->scratch_page_dma_addr = dev_priv->mm.gtt->scratch_page_dma;
Expand Down

0 comments on commit 72c5f77

Please sign in to comment.