summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_guc_fwif.h
diff options
context:
space:
mode:
authorDave Gordon <david.s.gordon@intel.com>2016-05-13 17:36:33 +0300
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2016-05-23 16:21:53 +0300
commit551aaecd8873b728a85c1fcb2b8ca502e9ffc49c (patch)
tree2f9890e8f01bd619da27eecb7a7be23b658f823c /drivers/gpu/drm/i915/intel_guc_fwif.h
parent7c2c270d27dd4e52529deee9814493c27f956218 (diff)
downloadlinux-551aaecd8873b728a85c1fcb2b8ca502e9ffc49c.tar.xz
drm/i915/guc: don't spinwait if the GuC's workqueue is full
Rather than wait to see whether more space becomes available in the GuC submission workqueue, we can just return -EAGAIN and let the caller try again in a little while. This gets rid of an uninterruptable sleep in the polling code :) We'll also add a counter to the GuC client statistics, to see how often we find the WQ full. v2: Flag the likely() code path (Tvtrko Ursulin). v4: Add/update comments about failure counters (Tvtrko Ursulin). Signed-off-by: Dave Gordon <david.s.gordon@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_guc_fwif.h')
0 files changed, 0 insertions, 0 deletions