]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Reset sched_engine.no_priolist immediately after dequeue
authorMatthew Brost <matthew.brost@intel.com>
Fri, 18 Jun 2021 01:06:33 +0000 (18:06 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 18 Jun 2021 22:13:20 +0000 (15:13 -0700)
commitc4fd7d8cc3caa614ab492e0efc8854328f72b719
tree6d86ebc7d662bd0ad2c4bab3ecd36b20ee5234ca
parent074bb195bce1c86b66e5cd809d6663039d3abf42
drm/i915: Reset sched_engine.no_priolist immediately after dequeue

Rather than touching schedule state in the generic PM code, reset the
priolist allocation when empty in the submission code. Add a wrapper
function to do this and update the backends to call it in the correct
place.

v3:
 (Jason Ekstrand)
  Update patch commit message with a better description

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210618010638.98941-4-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/intel_engine_pm.c
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/i915_scheduler.h