OSDN Git Service

drm/i915/guc: Move GuC guc_id allocation under submission state sub-struct
authorMatthew Brost <matthew.brost@intel.com>
Thu, 14 Oct 2021 17:19:41 +0000 (10:19 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 15 Oct 2021 17:37:22 +0000 (10:37 -0700)
commit0ea92ace8b95f67224ee26c4955efc7104d8e8e1
treedcf9dd41ebcb29b1e77fcb37f49af3dfc11ecaab
parent82a149a62b6b50ecd21b6e5e9cbdc8f6064a55d2
drm/i915/guc: Move GuC guc_id allocation under submission state sub-struct

Move guc_id allocation under submission state sub-struct as a future
patch will reuse the spin lock as a global submission state lock. Moving
this into sub-struct makes ownership of fields / lock clear.

v2:
 (Docs)
  - Add comment for submission_state sub-structure
v3:
 (John Harrison)
  - Fixup a few comments
v4:
 (John Harrison)
  - Fix typo

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