drm/i915/guc: Use a local cancel_port_requests
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 12 Aug 2019 20:36:26 +0000 (21:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 13 Aug 2019 06:54:39 +0000 (07:54 +0100)
commit5f15c1e6e181636f4b2fe7a67d582356f57cfd2c
tree9e50373ba62bdcaa83448f704b0ee857b6715696
parent478ffad6d6902298802b5b8044e542739fcb0ed1
drm/i915/guc: Use a local cancel_port_requests

Since execlists and the guc have diverged in their port tracking, we
cannot simply reuse the execlists cancellation code as it leads to
unbalanced reference counting. Use a local, simpler routine for the guc.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190812203626.3948-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c