[Intel-gfx] [PATCH 1/2] drm/i915/gem: Excise the per-batch whitelist from the context

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Tue Nov 26 14:38:00 UTC 2019


Quoting Chris Wilson (2019-11-25 17:27:09)
> One does not lightly add a new hidden struct_mutex dependency deep within
> the execbuf bowels! The immediate suspicion in seeing the whitelist
> cached on the context, is that it is intended to be preserved between
> batches, as the kernel is quite adept at caching small allocations
> itself. But no, it's sole purpose is to serialise command submission in
> order to save a kmalloc on a slow, slow path!

When memory pressure increases, it could be the pre-existing clients
that that fail to allocate the jumplist and start failing instead of
the new ones...

But if you think many other places will fall apart before that happens,
feel free to make it dynamic.

Regards, Joonas


More information about the Intel-gfx mailing list