Displaying 10 results from an estimated 10 matches for "tegra_sku_info".
2014 Dec 01
0
[RESEND V2 PATCH 1/3] soc/tegra: fuse: export tegra_sku_info for module use
...Vince Hsu wrote:
> Some Tegra drivers might be complied as kernel modules, and
"compiled"
> they need the fuse information for initialization. One
> example is the GK20A Nouveau driver. It needs the GPU speedo
> value to calculate frequency-voltage table. So export
> the tegra_sku_info.
Also please wrap the commit message at around 72 characters. If you make
the lines too short it becomes almost as difficult to readable as if
they're too long.
Other than these small nitpicks this looks like a reasonable change to
me.
>
> Signed-off-by: Vince Hsu <vinceh at nvidia...
2014 Dec 01
2
[V3 PATCH 1/3] soc/tegra: fuse: export tegra_sku_info
Some Tegra drivers might be compiled as kernel modules, and they need the
fuse information for initialization. One example is the GK20A Nouveau
driver. It needs the GPU speedo value to calculate frequency-voltage
table. So export the tegra_sku_info.
Signed-off-by: Vince Hsu <vinceh at nvidia.com>
Acked-by: Alexandre Courbot <acourbot at nvidia.com>
Acked-by: Thierry Reding <treding at nvidia.com>
---
v3: fix subject and typo, add reviewers' Acked-by
v2: add more description why we need this patch
drivers/soc/tegra/f...
2014 Dec 02
3
[V3 PATCH 1/4] soc/tegra: fuse: export tegra_sku_info
Some Tegra drivers might be compiled as kernel modules, and they need the
fuse information for initialization. One example is the GK20A Nouveau
driver. It needs the GPU speedo value to calculate frequency-voltage
table. So export the tegra_sku_info.
Signed-off-by: Vince Hsu <vinceh at nvidia.com>
Acked-by: Alexandre Courbot <acourbot at nvidia.com>
Acked-by: Thierry Reding <treding at nvidia.com>
---
v3: fix subject and typo, add reviewers' Acked-by
v2: add more description why we need this patch
drivers/soc/tegra/f...
2014 Nov 28
8
[RESEND V2 PATCH 1/3] soc/tegra: fuse: export tegra_sku_info for module use
Some Tegra drivers might be complied as kernel modules, and
they need the fuse information for initialization. One
example is the GK20A Nouveau driver. It needs the GPU speedo
value to calculate frequency-voltage table. So export
the tegra_sku_info.
Signed-off-by: Vince Hsu <vinceh at nvidia.com>
---
v2: add more description why we need this patch
drivers/soc/tegra/fuse/fuse-tegra.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c
index 11a5043959dc..011a33...
2014 Nov 28
0
[PATCH 2/2] volt: add support for GK20A
The voltage value are calculated by the hardware characterized
result.
Signed-off-by: Vince Hsu <vinceh at nvidia.com>
---
Hi,
The tegra_sku_info needs to be exported from Tegra fuse driver.
I've sent the patch to the linux-tegra mailing list. Just FYI.
Thanks,
Vince
drm/Kbuild | 1 +
drm/core/subdev/volt/gk20a.c | 1 +
nvkm/engine/device/nve0.c | 1 +
nvkm/include/subdev/volt.h | 1 +
nvkm/subdev/clock/...
2014 Nov 28
2
[PATCH 1/2] volt: allow non-bios voltage scaling
Signed-off-by: Vince Hsu <vinceh at nvidia.com>
---
nvkm/subdev/volt/base.c | 67 ++++++++++++++++++++++++++++---------------------
1 file changed, 38 insertions(+), 29 deletions(-)
diff --git a/nvkm/subdev/volt/base.c b/nvkm/subdev/volt/base.c
index 32794a999106..26ccd8df193f 100644
--- a/nvkm/subdev/volt/base.c
+++ b/nvkm/subdev/volt/base.c
@@ -101,6 +101,41 @@ nouveau_volt_set_id(struct
2014 Nov 28
0
[RESEND PATCH nouveau 3/3] volt: add support for GK20A
...;
+
+ mv = DIV_ROUND_CLOSEST(coef->c3 * speedo, s_scale) + coef->c4 +
+ DIV_ROUND_CLOSEST(coef->c5 * temp, t_scale);
+ mv = DIV_ROUND_CLOSEST(mv * temp, t_scale) + cvb_mv;
+ return mv;
+}
+
+static int
+gk20a_volt_calc_voltage(const struct cvb_coef *coef)
+{
+ int speedo, mv;
+
+ speedo = tegra_sku_info.gpu_speedo_value;
+
+ mv = gk20a_volt_get_cvb_t_voltage(speedo, -10, 100, 10, coef);
+ mv = DIV_ROUND_UP(mv, 1000);
+
+ return mv * 1000;
+}
+
+static int
+gk20a_volt_vid_get(struct nouveau_volt *volt)
+{
+ struct gk20a_volt_priv *priv = (void *)volt;
+ int i, uv;
+
+ uv = regulator_get_voltage(pri...
2016 Jun 01
15
[PATCH 00/15] clk/tegra: improve code and add DFS support
This series adds support for GM20B PLL's Maxwell features, namely glitchless
switch and (more importantly) DFS support. DFS lets the PLL lower its output
speed according to input current variations, making the clock more stable and
allowing it to run safely at lower voltage.
All GM20B additions are done in the last patch, which consequently ends up
being considerably big ; fortunately, it
2014 Nov 28
2
[RESEND PATCH nouveau 3/3] volt: add support for GK20A
...ale) + coef->c4 +
> + DIV_ROUND_CLOSEST(coef->c5 * temp, t_scale);
> + mv = DIV_ROUND_CLOSEST(mv * temp, t_scale) + cvb_mv;
> + return mv;
> +}
> +
> +static int
> +gk20a_volt_calc_voltage(const struct cvb_coef *coef)
> +{
> + int speedo, mv;
> +
> + speedo = tegra_sku_info.gpu_speedo_value;
> +
> + mv = gk20a_volt_get_cvb_t_voltage(speedo, -10, 100, 10, coef);
> + mv = DIV_ROUND_UP(mv, 1000);
> +
> + return mv * 1000;
> +}
> +
> +static int
> +gk20a_volt_vid_get(struct nouveau_volt *volt)
> +{
> + struct gk20a_volt_priv *priv = (void...
2014 Nov 28
0
[RESEND PATCH nouveau 3/3] volt: add support for GK20A
...>c5 * temp, t_scale);
>> + mv = DIV_ROUND_CLOSEST(mv * temp, t_scale) + cvb_mv;
>> + return mv;
>> +}
>> +
>> +static int
>> +gk20a_volt_calc_voltage(const struct cvb_coef *coef)
>> +{
>> + int speedo, mv;
>> +
>> + speedo = tegra_sku_info.gpu_speedo_value;
>> +
>> + mv = gk20a_volt_get_cvb_t_voltage(speedo, -10, 100, 10, coef);
>> + mv = DIV_ROUND_UP(mv, 1000);
>> +
>> + return mv * 1000;
>> +}
>> +
>> +static int
>> +gk20a_volt_vid_get(struct nouveau_volt *volt)
>>...