drm/i915/mtl: Synchronize i915/BIOS on C6 enabling
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Thu, 23 Mar 2023 22:58:52 +0000 (15:58 -0700)
committerUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Fri, 24 Mar 2023 15:43:32 +0000 (08:43 -0700)
commit3735040978a43c25a19aa8015ab1a50dffe48f79
treebf73c1b3a816a0f4b2cd2be8f533198a369c4753
parent2810ac6c753d17ee2572ffb57fe2382a786a080a
drm/i915/mtl: Synchronize i915/BIOS on C6 enabling

If BIOS enables/disables C6, i915 should do the same. Also, retain
this value across driver reloads. This is needed only for MTL as
of now due to an existing bug in OA which needs C6 disabled for
it to function. BIOS behavior is also different across platforms
in terms of how C6 is enabled.

Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230323225901.3743681-3-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/gt/intel_rc6.c
drivers/gpu/drm/i915/gt/intel_rc6.h
drivers/gpu/drm/i915/gt/intel_rc6_types.h