Commit ed23abdd authored by Imre Deak's avatar Imre Deak Committed by Daniel Vetter

Revert "drm/i915: set dummy page for stolen objects"

Since for_each_sg_page supports already memory w/o backing pages we can
revert the corresponding workaround.

This reverts commit 5bd4687e.
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 2db76d7c
...@@ -222,8 +222,8 @@ i915_pages_create_for_stolen(struct drm_device *dev, ...@@ -222,8 +222,8 @@ i915_pages_create_for_stolen(struct drm_device *dev,
} }
sg = st->sgl; sg = st->sgl;
/* we set the dummy page here only to make for_each_sg_page work */ sg->offset = offset;
sg_set_page(sg, dev_priv->gtt.scratch_page, size, offset); sg->length = size;
sg_dma_address(sg) = (dma_addr_t)dev_priv->mm.stolen_base + offset; sg_dma_address(sg) = (dma_addr_t)dev_priv->mm.stolen_base + offset;
sg_dma_len(sg) = size; sg_dma_len(sg) = size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment