On pe, 2017-08-04 at 11:41 +0100, Chris Wilson wrote: > In order for us to successfully detect the end of a timeslice, > preemption must be disabled. Otherwise, inside the loop we may be > preempted many times without our noticing, and each time our timeslice > will be reset, invalidating need_resched() > > Reported-by: Joonas Lahtinen <[email protected]> > Reported-by: Tomi Sarvela <[email protected]> > Fixes: 290271de34f6 ("drm/i915: Spin for struct_mutex inside shrinker") > Signed-off-by: Chris Wilson <[email protected]> > Cc: Mika Kuoppala <[email protected]> > Cc: Joonas Lahtinen <[email protected]> > Cc: <[email protected]> # v4.13-rc1+
Gets rid of the hang for my BDW. Tested-by: Joonas Lahtinen <[email protected]> Reviewed-by: Joonas Lahtinen <[email protected]> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
