drm/i915/guc: Move GuC priority fields in context under guc_active
authorMatthew Brost <matthew.brost@intel.com>
Thu, 9 Sep 2021 16:47:41 +0000 (09:47 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 13 Sep 2021 18:30:51 +0000 (11:30 -0700)
commit9798b1724ba43f19deb44d2aa729af0e1cf4cd0d
tree2dce452313b1a96388ba994d550e07ec538f6253
parent5b116c17e6babc6de2e26714bc66228c74038b71
drm/i915/guc: Move GuC priority fields in context under guc_active

Move GuC management fields in context under guc_active struct as this is
where the lock that protects theses fields lives. Also only set guc_prio
field once during context init.

v2:
 (Daniele)
  - set CONTEXT_SET_INIT

Signed-off-by: Matthew Brost <matthew.brost@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-21-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/intel_context_types.h
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/i915_trace.h