]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Don't touch guc_state.sched_state without a lock
authorMatthew Brost <matthew.brost@intel.com>
Thu, 9 Sep 2021 16:47:34 +0000 (09:47 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 13 Sep 2021 18:30:42 +0000 (11:30 -0700)
commitf16d5cb981a557c1a32bc43ef28b5dc254f7239c
treed7cb8e230897d17c86ed17e3bfc9a69f7cd8b1dd
parent422cda4f50091bdfa114c7d19fce31919c920fe1
drm/i915/guc: Don't touch guc_state.sched_state without a lock

Before we did some clever tricks to not use the a lock when touching
guc_state.sched_state in certain cases. Don't do that, enforce the use
of the lock.

v2:
 (kernel test robo )
  - Add __maybe_unused to sched_state_is_init()

v3: rebase after the unused code path removal has been moved to an
earlier patch.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210909164744.31249-14-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c