drm/i915/gen12: Use fuse info to enable SFC
authorVenkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Wed, 21 Jul 2021 22:30:31 +0000 (15:30 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 22 Jul 2021 16:36:59 +0000 (09:36 -0700)
commit442e049aedb2aa8dac55b073595b02cf5d13899c
tree08ce6b32d5f2bddf74744c5661b38d5d2cb16e67
parent6ce40431d13cf5e89651ae7461c0555b90b86390
drm/i915/gen12: Use fuse info to enable SFC

In Gen12 there are various fuse combinations and in each configuration
vdbox engine may be connected to SFC depending on which engines are
available, so we need to set the SFC capability based on fuse value from
the hardware. Even numbered physical instance always have SFC, odd
numbered physical instances have SFC only if previous even instance is
fused off.

v2:
 - Minor style & typo fixes (Tvrtko)
 - Drop an unwanted 'inline' (Tvrtko)

Bspec: 48028
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210721223043.834562-7-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c