drm/i915/guc: Properly initialise kernel contexts
authorJohn Harrison <John.C.Harrison@Intel.com>
Wed, 2 Nov 2022 19:21:08 +0000 (12:21 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 4 Nov 2022 20:45:44 +0000 (13:45 -0700)
commitde51de9672a17e242ebe3727b5e6ec0f2b4c1ab4
tree296a62f7efd8d0f7dd0caf06d01361328ffb13b7
parentcc2e0cf0ad47db7f51283e5c9bd2212a994ad527
drm/i915/guc: Properly initialise kernel contexts

If a context has already been registered prior to first submission
then context init code was not being called. The noticeable effect of
that was the scheduling priority was left at zero (meaning super high
priority) instead of being set to normal. This would occur with
kernel contexts at start of day as they are manually pinned up front
rather than on first submission. So add a call to initialise those
when they are pinned.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221102192109.2492625-2-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c