Re: [Intel-gfx] [PATCH] drm/i915: Replace open-coded wait-for loop

2018-01-23 Thread Mika Kuoppala
Chris Wilson writes: > Now that we can pass arbitrary commands into the base __wait_for() > macro, we can reimplement the open-coded wait-for inside > i915_gem_idle_work_handler() using the macro. This means that instead of > using ktime, we now use jiffies, and benefit

[Intel-gfx] [PATCH] drm/i915: Replace open-coded wait-for loop

2018-01-22 Thread Chris Wilson
Now that we can pass arbitrary commands into the base __wait_for() macro, we can reimplement the open-coded wait-for inside i915_gem_idle_work_handler() using the macro. This means that instead of using ktime, we now use jiffies, and benefit from the exponential sleep backoff that allows a fast