On Tue, Sep 10, 2019 at 08:42:46AM -0700, Matt Roper wrote: ... > +struct intel_cdclk_vals { > + u32 refclk; Oh, I think (at least currently) refclk would fit into u16, so we could pack this a bit tighter still. > + u32 cdclk; > + u8 divider; /* CD2X divider * 2 */ > + u8 ratio; > +}; > + > int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state); > void intel_cdclk_init(struct drm_i915_private *i915); > void intel_cdclk_uninit(struct drm_i915_private *i915); > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index e289b4ffd34b..ff6aff2a4866 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -1420,6 +1420,9 @@ struct drm_i915_private { > /* The current hardware cdclk state */ > struct intel_cdclk_state hw; > > + /* cdclk, divider, and ratio table from bspec */ > + const struct intel_cdclk_vals *table; > + > int force_min_cdclk; > } cdclk; > > -- > 2.20.1 -- Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx