Displaying 5 results from an estimated 5 matches for "best_delta".
2014 Jul 10
0
[PATCH 3/3] drm/gk20a: reclocking support
...lg_calc_mnp(struct gk20a_clock_priv *priv, unsigned long rate)
+{
+ unsigned int target_clk_f, ref_clk_f, target_freq;
+ unsigned int min_vco_f, max_vco_f;
+ u32 low_pl, high_pl, best_pl;
+ unsigned int target_vco_f, vco_f;
+ u32 best_m, best_n;
+ unsigned int u_f;
+ u32 m, n, n2;
+ u32 delta, lwv, best_delta = ~0;
+ int pl;
+
+ target_clk_f = rate * 2 / MHZ;
+ ref_clk_f = priv->parent_rate / MHZ;
+
+ max_vco_f = priv->params->max_vco;
+ min_vco_f = priv->params->min_vco;
+ best_m = priv->params->max_m;
+ best_n = priv->params->min_n;
+ best_pl = priv->params->min_pl;
+...
2014 Jul 10
3
[PATCH 3/3] drm/gk20a: reclocking support
...signed long rate)
> +{
> + unsigned int target_clk_f, ref_clk_f, target_freq;
> + unsigned int min_vco_f, max_vco_f;
> + u32 low_pl, high_pl, best_pl;
> + unsigned int target_vco_f, vco_f;
> + u32 best_m, best_n;
> + unsigned int u_f;
> + u32 m, n, n2;
> + u32 delta, lwv, best_delta = ~0;
> + int pl;
> +
> + target_clk_f = rate * 2 / MHZ;
> + ref_clk_f = priv->parent_rate / MHZ;
> +
> + max_vco_f = priv->params->max_vco;
> + min_vco_f = priv->params->min_vco;
> + best_m = priv->params->max_m;
> + best_n = priv->params->min_...
2014 Jul 10
10
[PATCH 0/3] drm/gk20a: support for reclocking
This series adds support for reclocking on GK20A. The first two patches touch
the clock subsystem to allow GK20A to operate, by making the presence of the
thermal and voltage devices optional, and allowing pstates to be provided
directly instead of being probed using the BIOS (which Tegra does not have).
The last patch adds the GK20A clock device. Arguably the clock can be seen as a
stripped-down
2014 Jul 26
5
[PATCH v2 0/3] drm/gk20a: support for reclocking
Second version of the gk20a clock patches. I have tried to keep the therm and
volt devices mandatory in the clock driver, but unfortunately they are too tied
to bios to allow this, at least for the moment. Consequently this version is
mostly a port of the first version to Ben's tree.
Ben, please let me know what I have done wrong in terms of integration to your
tree, as the main purpose of
2016 Mar 11
16
[PATCH 00/16] clk/gm20b: add basic driver
This series does some refactoring in the GK20A's volt and clk drivers
(fixing a few things while we are at it) to let GM20B benefit from the
GK20A's logic with which it is compatible.
GM20B is capable of more sophisticated (and power-efficient) reclocking
which will follow later. Even after this more fancy reclocking is merged,
the present logic will remain used in the lowest speedo of