]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Don't call switch_to_kernel_context with GuC submission
authorMatthew Brost <matthew.brost@intel.com>
Thu, 14 Oct 2021 17:19:44 +0000 (10:19 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 15 Oct 2021 17:37:28 +0000 (10:37 -0700)
commitea2d0063be1250df27fde2adcf0bfaae1b438e6b
treed13e79653dfc92179c0d83d6ea19acbd50618f15
parent89f52dc8dde2b7128ac81f0bb5cc5cf23630c039
drm/i915/guc: Don't call switch_to_kernel_context with GuC submission

Calling switch_to_kernel_context isn't needed if the engine PM reference
is taken while all user contexts are pinned as if don't have PM ref that
guarantees that all user contexts scheduling is disabled. By not calling
switch_to_kernel_context we save on issuing a request to the engine.

v2:
 (Daniel Vetter)
  - Add FIXME comment about pushing switch_to_kernel_context to backend
v3:
 (John Harrison)
  - Update commit message
  - Fix workding comment

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211014172005.27155-5-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/intel_engine_pm.c