]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop stealing of bits from i915_sw_fence function pointer
authorMatthew Brost <matthew.brost@intel.com>
Tue, 16 Nov 2021 19:49:29 +0000 (11:49 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Wed, 1 Dec 2021 01:52:15 +0000 (17:52 -0800)
commitc6b1d858dd908faab4f69cc5fcb4546c533fcae9
tree06fd81e743597e0243ac25a7aeaf93bbc84ef997
parente3ebd2a380b16f6be2ee19b39d620de2d277a194
drm/i915: Drop stealing of bits from i915_sw_fence function pointer

Rather than stealing bits from i915_sw_fence function pointer use
separate fields for function pointer and flags. If using two different
fields, the 4 byte alignment for the i915_sw_fence function pointer can
also be dropped.

v2:
 (CI)
  - Set new function field rather than flags in __i915_sw_fence_init
v3:
 (Tvrtko)
  - Remove BUG_ON(!fence->flags) in reinit as that will now blow up
  - Only define fence->flags if CONFIG_DRM_I915_SW_FENCE_CHECK_DAG is
    defined
v4:
  - Rebase, resend for CI

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211116194929.10211-1-matthew.brost@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/gt/intel_context.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_sw_fence.c
drivers/gpu/drm/i915/i915_sw_fence.h
drivers/gpu/drm/i915/i915_sw_fence_work.c
drivers/gpu/drm/i915/selftests/i915_sw_fence.c
drivers/gpu/drm/i915/selftests/lib_sw_fence.c