drm/i915/guc: Don't send policy update for child contexts.
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 28 Jul 2022 00:33:39 +0000 (17:33 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 1 Aug 2022 20:56:26 +0000 (13:56 -0700)
commit6c82c75230b87d986283189a58e8cb18ea0c519c
treef24e9c4082cc821a4b276588eab23f38125cf805
parentdd9d3cbe9efcdb2a0d88c80d0e492ccae54a5b63
drm/i915/guc: Don't send policy update for child contexts.

The GuC FW applies the parent context policy to all the children,
so individual updates to the children are not supported and we
should not send them.

Note that sending the message did not have any functional consequences,
because the GuC just drops it and logs an error; since we were trying
to set the child policy to match the parent anyway the message being
dropped was not a problem.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: John Harrison <john.c.harrison@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/20220728003339.2361010-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c