OSDN Git Service

drm/i915/guc: Only assign guc_id.id when stealing guc_id
authorMatthew Brost <matthew.brost@intel.com>
Tue, 14 Dec 2021 17:04:55 +0000 (09:04 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 16 Dec 2021 03:09:21 +0000 (19:09 -0800)
commit939d8e9c87e704fd5437e2c8b80929591fe540eb
tree4e1c899c562563e4207f9aab3b76f3f2df9b68bb
parentb25db8c782ad7ae80d4cea2a09c222f4f8980bb9
drm/i915/guc: Only assign guc_id.id when stealing guc_id

Previously assigned whole guc_id structure (list, spin lock) which is
incorrect, only assign the guc_id.id.

Fixes: 0f7976506de61 ("drm/i915/guc: Rework and simplify locking")
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/20211214170500.28569-3-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c