OSDN Git Service

drm/i915/guc: Support programming the EU priority in the GuC descriptor
authorMatthew Brost <matthew.brost@intel.com>
Wed, 4 May 2022 23:46:36 +0000 (16:46 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 20 Jul 2022 01:24:48 +0000 (21:24 -0400)
commite7999fa14f19254ee6a8b52e2711de1f6bef2a1c
tree113d3e0e1f0ac6ec2456f7d2da07b8bf6e3d03f2
parentff6992735ade75aae3e35d16b17da1008d753d28
drm/i915/guc: Support programming the EU priority in the GuC descriptor

In GuC submission mode the EU priority must be updated by the GuC rather
than the driver as the GuC owns the programming of the context descriptor.

Given that the GuC code uses the GuC priorities, we can't use a generic
function using i915 priorities for both execlists and GuC submission.
The existing function has therefore been pushed to the execlists
back-end while a new one has been added for GuC.

v2: correctly use the GuC prio.

Cc: John Harrison <john.c.harrison@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Aravind Iddamsetty <aravind.iddamsetty@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220504234636.2119794-1-daniele.ceraolospurio@intel.com
(cherry picked from commit a5c89f7c43c12c592a882a0ec2a15e9df0011e80)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
drivers/gpu/drm/i915/gt/intel_lrc.h
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c