]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Advance over port[0] if set and not preempting
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Nov 2017 13:37:44 +0000 (13:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Nov 2017 16:08:26 +0000 (16:08 +0000)
commited53dcbee7b29ece7165c9727c53e9f1cf2bba6b
treeea12cbc7df540574c3279ab1cc008a75e19e6732
parent51ba5498533cda1b0ee54f94ada2076335413dd4
drm/i915/guc: Advance over port[0] if set and not preempting

Our execlist emulation is intended to only use a maximum of 2 ports per
engine, so as to not overflow the wq. (By knowing the limits, we can
avoid having to handle the wq exhaustion.) However, upon adding
preemption, we lost the skip over the first port if set for the
non-preemption path. Restore it.

Reported-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Fixes: 26577e2595a2 ("drm/i915/guc: Preemption! With GuC")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171124133745.5173-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/i915/intel_guc_submission.c