From: Chris Wilson Date: Fri, 24 Jun 2016 13:55:56 +0000 (+0100) Subject: drm/i915: No need to wait for idle on L3 remap X-Git-Tag: v4.14-rc1~2243^2~42^2~398 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec602a0dfb394ac3a5f91d03c4d6fab6e45302cc;p=platform%2Fkernel%2Flinux-rpi.git drm/i915: No need to wait for idle on L3 remap As the L3 remapping is applied before the next execution, there is no need to wait until all previous uses are idle, the application will not occur any sooner. Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Reviewed-by: Mika Kuoppala Link: http://patchwork.freedesktop.org/patch/msgid/1466776558-21516-5-git-send-email-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c index 02507bf..a6e90fe 100644 --- a/drivers/gpu/drm/i915/i915_sysfs.c +++ b/drivers/gpu/drm/i915/i915_sysfs.c @@ -227,13 +227,6 @@ i915_l3_write(struct file *filp, struct kobject *kobj, } } - ret = i915_gpu_idle(drm_dev); - if (ret) { - kfree(temp); - mutex_unlock(&drm_dev->struct_mutex); - return ret; - } - /* TODO: Ideally we really want a GPU reset here to make sure errors * aren't propagated. Since I cannot find a stable way to reset the GPU * at this point it is left as a TODO.