diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index b90fdcee992ac8066fed6b752e5a05d59997ac6a..b3cd9e21c8dae4e1c72b0d8d160d44621acd5602 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c @@ -422,16 +422,12 @@ static struct i915_page_scratch *alloc_scratch_page(struct drm_device *dev) return ERR_PTR(ret); } - set_pages_uc(px_page(sp), 1); - return sp; } static void free_scratch_page(struct drm_device *dev, struct i915_page_scratch *sp) { - set_pages_wb(px_page(sp), 1); - cleanup_px(dev, sp); kfree(sp); }