diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-09-26 09:59:10 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-14 07:58:37 +0000 |
commit | 103af7286e2d1014e3d7126691fe046ab2c9f73e (patch) | |
tree | ed6fbbd6cb8c52c7624c59e475999f97a704a33c /lib/igt_pm.h | |
parent | ea7015f1fabbdfdd52a145162c658d2e90161ec5 (diff) |
lib: Ask the kernel to quiesce the GPU
Since the introduction of debugfs/i915_drop_caches, we have offered the
ability to wait upon all outstanding batches. This is more efficient and
less error prone (one example is the use of context priorities, we have
to idle at the lowest in order not to jump over any low priority tasks
we want to wait upon) than trying to do it all in userspace. Though we
could if we wanted to, it's just easier to use the existing facility
designed for the purpose -- that we were already partially using!
Note that debugfs/i915_drop_caches has only existed since v4.2.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_pm.h')
0 files changed, 0 insertions, 0 deletions