public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Use ranges for voltage level lookup
@ 2019-06-10 21:44 Lucas De Marchi
  2019-06-10 21:48 ` [PATCH v2 1/3] drm/i915/icl: use " Lucas De Marchi
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Lucas De Marchi @ 2019-06-10 21:44 UTC (permalink / raw)
  To: intel-gfx; +Cc: Lucas De Marchi

Version 2 of https://patchwork.freedesktop.org/series/61742/, this time
applied to all possible platforms, not only Ice Lake.

I also changed the if else chain to use big to small frequency values
according to the suggestion from Ville.

$ git grep -e "static.*_calc_voltage_level" -- drivers/gpu/drm/i915
drivers/gpu/drm/i915/intel_cdclk.c:static u8 vlv_calc_voltage_level(struct drm_i915_private *dev_priv, int cdclk)
drivers/gpu/drm/i915/intel_cdclk.c:static u8 bdw_calc_voltage_level(int cdclk)
drivers/gpu/drm/i915/intel_cdclk.c:static u8 skl_calc_voltage_level(int cdclk)
drivers/gpu/drm/i915/intel_cdclk.c:static u8 bxt_calc_voltage_level(int cdclk)
drivers/gpu/drm/i915/intel_cdclk.c:static u8 cnl_calc_voltage_level(int cdclk)
drivers/gpu/drm/i915/intel_cdclk.c:static u8 icl_calc_voltage_level(int cdclk)


vlv: already using ranges (and not applicable for chv)
bdw: not applicable as levels don't respect the ranges (confirmed in
     spec, too)
bxt: not applicable as it just divides the cdclk

The rest is in this series.

Lucas De Marchi (3):
  drm/i915/icl: use ranges for voltage level lookup
  drm/i915/cnl: use ranges for voltage level lookup
  drm/i915/skl: use ranges for voltage level lookup

 drivers/gpu/drm/i915/intel_cdclk.c | 52 ++++++++++--------------------
 1 file changed, 17 insertions(+), 35 deletions(-)

-- 
2.21.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-12  4:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-10 21:44 [PATCH v2 0/3] Use ranges for voltage level lookup Lucas De Marchi
2019-06-10 21:48 ` [PATCH v2 1/3] drm/i915/icl: use " Lucas De Marchi
2019-06-11 15:49   ` Ville Syrjälä
2019-06-10 21:48 ` [PATCH v2 2/3] drm/i915/cnl: " Lucas De Marchi
2019-06-10 21:48 ` [PATCH v2 3/3] drm/i915/skl: " Lucas De Marchi
2019-06-10 22:24 ` ✓ Fi.CI.BAT: success for Use " Patchwork
2019-06-12  4:26 ` ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox