[PATCH 6/6] drm/i915/disaply: Plug new struct in bxt_set_cdclk()
Anusha Srivatsa
anusha.srivatsa at intel.com
Sat Aug 27 23:51:57 UTC 2022
Signed-off-by: Anusha Srivatsa <anusha.srivatsa at intel.com>
---
drivers/gpu/drm/i915/display/intel_cdclk.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm/i915/display/intel_cdclk.c
index 406b5612dd66..750040b4fefc 100644
--- a/drivers/gpu/drm/i915/display/intel_cdclk.c
+++ b/drivers/gpu/drm/i915/display/intel_cdclk.c
@@ -1709,6 +1709,9 @@ static void bxt_set_cdclk(struct drm_i915_private *i915,
const struct intel_cdclk_config *cdclk_config,
enum pipe pipe)
{
+ struct intel_atomic_state *state;
+ const struct intel_cdclk_state *new_cdclk_state;
+ //struct cdclk_step *cdclk_steps;
int cdclk = cdclk_config->cdclk;
int vco = cdclk_config->vco;
u32 val;
@@ -1716,6 +1719,10 @@ static void bxt_set_cdclk(struct drm_i915_private *i915,
int clock;
int ret;
+ state = i915->cdclk.obj.state->state;
+ new_cdclk_state = intel_atomic_get_cdclk_state(state);
+ //cdclk_steps = new_cdclk_state->steps;
+
/* Inform power controller of upcoming frequency change. */
if (DISPLAY_VER(i915) >= 11)
ret = skl_pcode_request(&i915->uncore, SKL_PCODE_CDCLK_CONTROL,
--
2.25.1
More information about the Intel-gfx-trybot
mailing list