]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Unwind context requests in reverse order
authorMatthew Brost <matthew.brost@intel.com>
Thu, 9 Sep 2021 16:47:24 +0000 (09:47 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 13 Sep 2021 18:30:27 +0000 (11:30 -0700)
commite3983e588e13c6e48cc4a7120fc031d667c59461
tree5dfbf190054910691520f83889658d157cd55a2e
parent665de2ddae29a7e63c0f67aba53d20c68638bfb4
drm/i915/guc: Unwind context requests in reverse order

When unwinding requests on a reset context, if other requests in the
context are in the priority list the requests could be resubmitted out
of seqno order. Traverse the list of active requests in reverse and
append to the head of the priority list to fix this.

Fixes: 81ab2f1fdb42 ("drm/i915/guc: Reset implementation for new GuC interface")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210909164744.31249-4-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c