]> 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)
commit5bb61f14865110ef894d571e76684ade5bf24b5f
treed7cb8e230897d17c86ed17e3bfc9a69f7cd8b1dd
parent0d123b222ef3b456c0e309c373a7d7ebf32dea4f
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