Reviewed-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx> On Mon, Feb 23, 2015 at 3:03 AM, Daniel Vetter <daniel.vetter@xxxxxxxx> wrote: > Hooray! > > Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx> > --- > drivers/gpu/drm/i915/i915_gem.c | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c > index f28f0dea6c96..4e05f57b9c54 100644 > --- a/drivers/gpu/drm/i915/i915_gem.c > +++ b/drivers/gpu/drm/i915/i915_gem.c > @@ -4606,10 +4606,6 @@ i915_gem_suspend(struct drm_device *dev) > > i915_gem_retire_requests(dev); > > - /* Under UMS, be paranoid and evict. */ > - if (!drm_core_check_feature(dev, DRIVER_MODESET)) > - i915_gem_evict_everything(dev); > - > i915_gem_stop_ringbuffers(dev); > mutex_unlock(&dev->struct_mutex); > > @@ -4973,18 +4969,8 @@ i915_gem_load(struct drm_device *dev) > i915_gem_idle_work_handler); > init_waitqueue_head(&dev_priv->gpu_error.reset_queue); > > - /* On GEN3 we really need to make sure the ARB C3 LP bit is set */ > - if (!drm_core_check_feature(dev, DRIVER_MODESET) && IS_GEN3(dev)) { > - I915_WRITE(MI_ARB_STATE, > - _MASKED_BIT_ENABLE(MI_ARB_C3_LP_WRITE_ENABLE)); > - } > - > dev_priv->relative_constants_mode = I915_EXEC_CONSTANTS_REL_GENERAL; > > - /* Old X drivers will take 0-2 for front, back, depth buffers */ > - if (!drm_core_check_feature(dev, DRIVER_MODESET)) > - dev_priv->fence_reg_start = 3; > - > if (INTEL_INFO(dev)->gen >= 7 && !IS_VALLEYVIEW(dev)) > dev_priv->num_fence_regs = 32; > else if (INTEL_INFO(dev)->gen >= 4 || IS_I945G(dev) || IS_I945GM(dev) || IS_G33(dev)) > -- > 2.1.4 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Rodrigo Vivi Blog: http://blog.vivi.eng.br _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx