Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357940
b: refs/heads/master
c: 1c45140
h: refs/heads/master
v: v3
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Dec 20, 2012
1 parent 4d9a0b7 commit abd6bd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: 06e5598fce5ce89fe8bf081398296e5b08d993dd
refs/heads/master: 1c45140d3da0c98fa7eda2cd10f9805232a5e9ac
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ typedef struct drm_i915_private {
unsigned long stolen_base; /* limited to low memory (32-bit) */

/** "Graphics Stolen Memory" holds the global PTEs */
uint32_t __iomem *gsm;
void __iomem *gsm;

struct io_mapping *gtt_mapping;
phys_addr_t gtt_base_addr;
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/gpu/drm/i915/i915_gem_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void i915_gem_init_ppgtt(struct drm_device *dev)
return;


pd_addr = dev_priv->mm.gsm + ppgtt->pd_offset/sizeof(gtt_pte_t);
pd_addr = (gtt_pte_t __iomem*)dev_priv->mm.gsm + ppgtt->pd_offset/sizeof(gtt_pte_t);
for (i = 0; i < ppgtt->num_pd_entries; i++) {
dma_addr_t pt_addr;

Expand Down Expand Up @@ -432,7 +432,8 @@ static void gen6_ggtt_bind_object(struct drm_i915_gem_object *obj,
struct scatterlist *sg = st->sgl;
const int first_entry = obj->gtt_space->start >> PAGE_SHIFT;
const int max_entries = dev_priv->mm.gtt->gtt_total_entries - first_entry;
gtt_pte_t __iomem *gtt_entries = dev_priv->mm.gsm + first_entry;
gtt_pte_t __iomem *gtt_entries =
(gtt_pte_t __iomem *)dev_priv->mm.gsm + first_entry;
int unused, i = 0;
unsigned int len, m = 0;
dma_addr_t addr;
Expand Down

0 comments on commit abd6bd0

Please sign in to comment.