diff options
author | Chris Wilson <[email protected]> | 2016-08-05 10:14:13 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2016-08-05 10:54:38 +0100 |
commit | 5cba5be6b61d310590f48670f6285cdb83441b91 (patch) | |
tree | 24a6fdb77bee71ee8f5999ea847a516dfe520d0f /lib/mpi/mpi-bit.c | |
parent | 307dc25bf64fb54575d60cf700c7b5b39f183b88 (diff) |
drm/i915/shrinker: Wait before acquiring struct_mutex under oom
We can now wait for the GPU (all engines) to become idle without
requiring the struct_mutex. Inside the shrinker, we need to currently
take the struct_mutex in order to purge objects and to purge the objects
we need the GPU to be idle - causing a stall whilst we hold the
struct_mutex. We can hide most of that stall by performing the wait
before taking the struct_mutex and only doing essential waits for
new rendering on objects to be freed.
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions