Commit 7d2cb39c authored by Chris Wilson's avatar Chris Wilson

drm/i915: Release fenced GTT mapping on suspend

... so that upon first use after resume we will reacquire the fence reg.
Reported-by: default avatarKeith Packard <keithp@keithp.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 3619df03
......@@ -1794,8 +1794,15 @@ static void i915_gem_reset_fences(struct drm_device *dev)
for (i = 0; i < 16; i++) {
struct drm_i915_fence_reg *reg = &dev_priv->fence_regs[i];
if (reg->obj)
i915_gem_clear_fence_reg(reg->obj);
struct drm_i915_gem_object *obj = reg->obj;
if (!obj)
continue;
if (obj->tiling_mode)
i915_gem_release_mmap(obj);
i915_gem_clear_fence_reg(obj);
}
}
......
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