Re: [Intel-gfx] [PATCH v2 1/5] drm/i915/skl: use previous pll hw readout

2019-03-25 Thread Ville Syrjälä
On Fri, Mar 22, 2019 at 03:37:47PM -0700, Lucas De Marchi wrote: > By the time skl_ddi_clock_get() is called - and thus > skl_calc_wrpll_link() - we've just got the hw state from the pll > registers. We don't need to read them again: we can rather reuse what > was cached in the dpll_hw_state. > >

[Intel-gfx] [PATCH v2 1/5] drm/i915/skl: use previous pll hw readout

2019-03-22 Thread Lucas De Marchi
By the time skl_ddi_clock_get() is called - and thus skl_calc_wrpll_link() - we've just got the hw state from the pll registers. We don't need to read them again: we can rather reuse what was cached in the dpll_hw_state. v2: rename state variable to pll_state, make argument const in skl_calc_w