[PATCH 0/4] Make cdclk_state accessible from dev_priv

Anusha Srivatsa anusha.srivatsa at intel.com
Tue Sep 13 23:04:25 UTC 2022


Add intel_cdclk_state pointer to dev_priv so we can access the state
from rest of the cdclk funcs in intel_cdclk.c. Also mkae a copy of cdclk_state
in intel_calc_modeset. By the time bxt_set_cdclk is called in atomic_commit
phase, driver does not have a copy of the new cdclk state. But we need it
for the overall cdclk churn/refactoring. Having the new_cdclk_state copied
so it can be accessed vis drm_i915_private object is one way to ensure we
keep the function signature same and dont need an overhaul of modeset changes.`

v2: Add a wrapper around cdclk_state in bxt_set_cdclk(). In cases of suspend
it should not expect a valid dev_priv

Anusha Srivatsa (4):
  drm/i195/display: add cdclk action struct to cdclk_state
  drm/i915/display: Plug squash to cdclk atomic changes
  drm/i915/display: Add cdclk_state in drm_i915_private
  drm/display/cdclk: Access new_cdclk_state from bxt_set_cdclk

 drivers/gpu/drm/i915/display/intel_cdclk.c    | 20 +++++++++++++++++--
 drivers/gpu/drm/i915/display/intel_cdclk.h    | 15 ++++++++++++++
 .../gpu/drm/i915/display/intel_display_core.h |  2 ++
 3 files changed, 35 insertions(+), 2 deletions(-)

-- 
2.25.1



More information about the Intel-gfx-trybot mailing list