]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Use the BIT when checking the flags, not the index
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Jan 2020 12:25:09 +0000 (12:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Jan 2020 14:01:58 +0000 (14:01 +0000)
commit5d8510a077f20cad776b014c6c5d70b8e55b4558
treefe64c72cde6f57021207aa1035bc16aeb52cb2e4
parent0272aa3ce7cfb4727585ab7c9bd45f406cade92b
drm/i915/gt: Use the BIT when checking the flags, not the index

In converting over to using set_bit()/test_bit(), when manually
inspecting the rq->fence.flags, we need to use BIT().

Fixes: 51aa0406a02e ("drm/i915: Merge i915_request.flags with i915_request.fence.flags")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200115122509.2673075-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c