Re: [Intel-gfx] [PATCH] drm/i915: Add might_sleep() check to wait_for()

2017-11-17 Thread Chris Wilson
Quoting Tvrtko Ursulin (2017-11-15 09:11:13) > > On 14/11/2017 21:56, Chris Wilson wrote: > > We should long past the time of trying to use wait_for() from inside > > atomic contexts, so add a might_sleep() check to prevent misuse. > > > > Signed-off-by: Chris Wilson > > Cc: Tvrtko Ursulin > >

Re: [Intel-gfx] [PATCH] drm/i915: Add might_sleep() check to wait_for()

2017-11-15 Thread Tvrtko Ursulin
On 14/11/2017 21:56, Chris Wilson wrote: We should long past the time of trying to use wait_for() from inside atomic contexts, so add a might_sleep() check to prevent misuse. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_drv.h | 11 ++- 1 file change

Re: [Intel-gfx] [PATCH] drm/i915: Add might_sleep() check to wait_for()

2017-11-15 Thread Mika Kuoppala
Chris Wilson writes: > We should long past the time of trying to use wait_for() from inside > atomic contexts, so add a might_sleep() check to prevent misuse. > > Signed-off-by: Chris Wilson > Cc: Tvrtko Ursulin Reviewed-by: Mika Kuoppala > --- > drivers/gpu/drm/i915/intel_drv.h | 11 ++

[Intel-gfx] [PATCH] drm/i915: Add might_sleep() check to wait_for()

2017-11-14 Thread Chris Wilson
We should long past the time of trying to use wait_for() from inside atomic contexts, so add a might_sleep() check to prevent misuse. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_drv.h | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git