]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Distinguish between timeout and error in sideband transactions
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 14:10:20 +0000 (14:10 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Feb 2017 17:22:19 +0000 (17:22 +0000)
commitb842825043d3651fc333a25ad530fb0874582ae8
treef091ade81021b5987203709f53020e8c315d6a78
parentdc8270717a24ca2b655ad576e0ec19210ad549bb
drm/i915: Distinguish between timeout and error in sideband transactions

After initiating a sideband transaction, we only want to wait for the
transaction to become idle. If, as we are, we wait for both the busy
and error flag to clear, if an error is raised we just spin until the
timeout. Once the hw is idle, we can then check to see if the hw flagged
an error, and report it distinctly.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223141020.13250-1-chris@chris-wilson.co.uk
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_sideband.c