[Intel-gfx] [PATCH 2/3] drm/i915: Allow fence allocations to fail

Chris Wilson chris at chris-wilson.co.uk
Wed Dec 13 11:25:55 UTC 2017


Quoting Joonas Lahtinen (2017-12-13 11:15:23)
> On Tue, 2017-12-12 at 18:06 +0000, Chris Wilson wrote:
> > If a fence allocation fails in a blocking context, we will sleep on the
> > fence as a last resort. We can therefore allow ourselves to fail and
> > sleep on the fence instead of triggering a system-wide oom. This allows
> > us to throttle malicious clients that are consuming lots of system
> > resources by capping the amount of memory used by fences.
> > 
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> 
> Claim checks out,
> 
> Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Testcase: igt/gem_shrink/execbufX
-Chris


More information about the Intel-gfx mailing list