Skip to content

Commit 7807bf2

Browse files
mbrost05jnikula
authored andcommitted
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: 0f79765 ("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 (cherry picked from commit 939d8e9) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 64d16ac commit 7807bf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ static int steal_guc_id(struct intel_guc *guc, struct intel_context *ce)
16621662
GEM_BUG_ON(intel_context_is_parent(cn));
16631663

16641664
list_del_init(&cn->guc_id.link);
1665-
ce->guc_id = cn->guc_id;
1665+
ce->guc_id.id = cn->guc_id.id;
16661666

16671667
spin_lock(&cn->guc_state.lock);
16681668
clr_context_registered(cn);

0 commit comments

Comments
 (0)