From: Lucas De Marchi <lucas.demarchi@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Subject: [PATCH v2 0/3] Use ranges for voltage level lookup
Date: Mon, 10 Jun 2019 14:44:49 -0700 [thread overview]
Message-ID: <20190610214449.9447-1-lucas.demarchi@intel.com> (raw)
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
next reply other threads:[~2019-06-10 21:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-10 21:44 Lucas De Marchi [this message]
2019-06-10 21:48 ` [PATCH v2 1/3] drm/i915/icl: use ranges for voltage level lookup 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190610214449.9447-1-lucas.demarchi@intel.com \
--to=lucas.demarchi@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox