Skip to content

clk/tegra: improve code and add DFS support

Alexandre Courbot nouveau 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15tegra: fetch gpu_speedo_iddrm/nouveau/include/nvkm/core/tegra.h drm/nouveau/nvkm/engine/device/tegra.c lib/include/nvif/os.h+3 -00 replies
2/15volt/gk20a: make unused public functions staticdrm/nouveau/nvkm/subdev/volt/gk20a.c drm/nouveau/nvkm/subdev/volt/gk20a.h+4 -90 replies
3/15volt/gk20a: constify and name v_scaledrm/nouveau/nvkm/subdev/volt/gk20a.c+2 -10 replies
4/15volt/gk20a: rename constructordrm/nouveau/nvkm/subdev/volt/gk20a.c drm/nouveau/nvkm/subdev/volt/gk20a.h drm/nouveau/nvkm/subdev/volt/gm20b.c+10 -100 replies
5/15volt/gm20b: add support for vmin parameterdrm/nouveau/nvkm/subdev/volt/gk20a.c drm/nouveau/nvkm/subdev/volt/gk20a.h drm/nouveau/nvkm/subdev/volt/gm20b.c+22 -70 replies
6/15clk/gk20a: properly protect macro argumentdrm/nouveau/nvkm/subdev/clk/gk20a.c drm/nouveau/nvkm/subdev/clk/gm20b.c+2 -20 replies
7/15clk/gk20a: setup slide once during initdrm/nouveau/nvkm/subdev/clk/gk20a.c drm/nouveau/nvkm/subdev/clk/gk20a.h drm/nouveau/nvkm/subdev/clk/gm20b.c+46 -60 replies
8/15clk/gk20a: reorganize MNP calculation a bitdrm/nouveau/nvkm/subdev/clk/gk20a.c+5 -80 replies
9/15clk/gk20a: use nvkm_ functions in slide()drm/nouveau/nvkm/subdev/clk/gk20a.c+10 -160 replies
10/15clk/gk20a: add and use MNP programming functionsdrm/nouveau/nvkm/subdev/clk/gk20a.c+22 -130 replies
11/15clk/gk20a: parameterize PLL settingsdrm/nouveau/nvkm/subdev/clk/gk20a.c+27 -240 replies
12/15clk/gk20a: factorize n_lo computation codedrm/nouveau/nvkm/subdev/clk/gk20a.c+10 -90 replies
13/15clk/gk20a: improve MNP programmingdrm/nouveau/nvkm/subdev/clk/gk20a.c+96 -890 replies
14/15clk/gk20a: rename constructordrm/nouveau/nvkm/subdev/clk/gk20a.c drm/nouveau/nvkm/subdev/clk/gk20a.h drm/nouveau/nvkm/subdev/clk/gm20b.c+5 -50 replies
15/15clk/gm20b: add glitchless and DFS supportdrm/nouveau/nvkm/subdev/clk/gk20a.c drm/nouveau/nvkm/subdev/clk/gk20a.h drm/nouveau/nvkm/subdev/clk/gm20b.c +1 more+1000 -980 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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 only consists of code additions thanks to the big refactoring work done by the first 14 patches.

This refactoring makes GK20A's clock code much simpler to read and understand, and flexible enough to be reused by GM20B's when relevant. Note that the sliding and MNP programming had to be re-implemented due to the differences introduced by DFS - trying to factor them out with more abstractions resulted in rather ugly code IMHO.

The first few patches also improve GK20A's volt driver a bit, mainly in order to support a minimum voltage that GM20B requires.

Alexandre Courbot (15):
tegra: fetch gpu_speedo_id
volt/gk20a: make unused public functions static volt/gk20a: constify and name v_scale volt/gk20a: rename constructor volt/gm20b: add support for vmin parameter clk/gk20a: properly protect macro argument clk/gk20a: setup slide once during init clk/gk20a: reorganize MNP calculation a bit clk/gk20a: use nvkm_ functions in slide() clk/gk20a: add and use MNP programming functions clk/gk20a: parameterize PLL settings clk/gk20a: factorize n_lo computation code clk/gk20a: improve MNP programming clk/gk20a: rename constructor
clk/gm20b: add glitchless and DFS support

 drm/nouveau/include/nvkm/core/tegra.h  |   1 +
 drm/nouveau/nvkm/engine/device/tegra.c |   1 +
 drm/nouveau/nvkm/subdev/clk/gk20a.c    | 394 +++++++--------
 drm/nouveau/nvkm/subdev/clk/gk20a.h    |  96 +++-
 drm/nouveau/nvkm/subdev/clk/gm20b.c    | 894 ++++++++++++++++++++++++++++++++-
 drm/nouveau/nvkm/subdev/volt/gk20a.c   |  27 +-
 drm/nouveau/nvkm/subdev/volt/gk20a.h   |  11 +-
 drm/nouveau/nvkm/subdev/volt/gm20b.c   |  40 +-
 lib/include/nvif/os.h                  |   1 +
 9 files changed, 1216 insertions(+), 249 deletions(-)
Signature · 6 lines
2.8.3

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau