Skip to content

Engine Reclocking Fixes for Fermi-Maxwell2

Karol Herbst nouveau 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest20 patches 1 replyIn review

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20clk: Fix potential NULL pointer access when there is no fb subdevdrm/nouveau/nvkm/subdev/clk/base.c+3 -20 replies
2/20fb/ramgk104: Touch 0x62c000 only when there is a display enginedrm/nouveau/nvkm/subdev/fb/ramgk104.c+12 -40 replies
3/20bios/volt: Handle voltage table version 0x50 with 0ed headerdrm/nouveau/nvkm/subdev/bios/volt.c+3 -00 replies
4/20volt: Properly detect entry based voltage tablesdrm/nouveau/include/nvkm/subdev/bios/volt.h drm/nouveau/nvkm/subdev/bios/volt.c drm/nouveau/nvkm/subdev/volt/base.c+17 -70 replies
5/20clk: Don't create cstates with voltages higher than what the gpu can dodrm/nouveau/include/nvkm/subdev/volt.h drm/nouveau/nvkm/subdev/clk/base.c drm/nouveau/nvkm/subdev/volt/base.c+27 -00 replies
6/20volt: Parse the max voltage map entriesdrm/nouveau/include/nvkm/subdev/bios/vmap.h drm/nouveau/include/nvkm/subdev/volt.h drm/nouveau/nvkm/subdev/bios/vmap.c +1 more+36 -00 replies
7/20volt: Add min_id parameter to nvkm_volt_set_iddrm/nouveau/include/nvkm/subdev/volt.h drm/nouveau/nvkm/subdev/clk/base.c drm/nouveau/nvkm/subdev/volt/base.c+9 -40 replies
8/20clk: Add index field to nvkm_cstatedrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c+2 -00 replies
9/20clk: Let nvkm_clk_tstate take a temperature valuedrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c+11 -120 replies
10/20volt: Add temperature parameter to nvkm_volt_mapdrm/nouveau/include/nvkm/subdev/volt.h drm/nouveau/nvkm/subdev/clk/base.c drm/nouveau/nvkm/subdev/volt/base.c+11 -80 replies
11/20clk: Fixup cstate selectiondrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c+21 -20 replies
12/20clk: Respect voltage limits in nvkm_cstate_progdrm/nouveau/include/nvkm/subdev/volt.h drm/nouveau/nvkm/subdev/clk/base.c drm/nouveau/nvkm/subdev/volt/base.c+54 -10 replies
13/20bios: Add parsing of VPSTATE tabledrm/nouveau/include/nvkm/subdev/bios/vpstate.h drm/nouveau/nvkm/subdev/bios/Kbuild drm/nouveau/nvkm/subdev/bios/vpstate.c+107 -00 replies
14/20clk: Allow boosting only when NvBoost is setdrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c drm/nouveau/nvkm/subdev/clk/gf100.c +1 more+42 -40 replies
15/20volt: Don't require perfect fitdrm/nouveau/nvkm/subdev/volt/base.c+17 -50 replies
16/20bios/vmap: unk0 field is the modedrm/nouveau/include/nvkm/subdev/bios/vmap.h drm/nouveau/nvkm/subdev/bios/vmap.c+2 -20 replies
17/20volt: Add implementation for gf100drm/nouveau/include/nvkm/subdev/volt.h drm/nouveau/nvkm/engine/device/base.c drm/nouveau/nvkm/subdev/volt/Kbuild +1 more+55 -80 replies
18/20volt/gf100-: Add speedodrm/nouveau/include/nvkm/subdev/volt.h drm/nouveau/nvkm/subdev/volt/base.c drm/nouveau/nvkm/subdev/volt/gf100.c +2 more+77 -00 replies
19/20volt: Make use of cvb coefficientsdrm/nouveau/nvkm/subdev/volt/base.c+36 -20 replies
20/20fb/ram: Use Kepler implementation on Maxwelldrm/nouveau/nvkm/subdev/fb/ram.h drm/nouveau/nvkm/subdev/fb/ramgk104.c drm/nouveau/nvkm/subdev/fb/ramgm107.c+9 -120 replies

Reviews trailers per patch

13 of 20 patches have a Reviewed-by or Acked-by.

PatchAidan EpsteinMartin PeresPierre Moreau
1/20
2/20T-b
3/20R-b T-b
4/20R-b T-b
5/20R-b T-b
6/20R-b
7/20R-b
8/20
9/20
10/20R-b
11/20
12/20R-b
13/20R-b
14/20R-b
15/20R-b
16/20R-b
17/20
18/20R-b
19/20R-b
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/20] Engine Reclocking Fixes for Fermi-Maxwell2

I've splitted my big series between the part which actually fixes the engine reclocking bits and the part handling voltage/clock updates on temperature change, so that the more reviewed parts can be merged in faster.

This series fixes a lot of Engine reclocking issues found on Fermi, Kepler and all Maxwell generation GPUs. It does _not_ fix memory reclocking on Fermi.

It mostly contains of simple fixes or simple patches without affecting current code.

As a bonus point, it indeed enables memory and engine reclocking on maxwell1 GPUs (maxwell2 works, too, but it is currently a bit too messy to actually do it, but it works).

Have fun.

Karol Herbst (20):
clk: Fix potential NULL pointer access when there is no fb subdev fb/ramgk104: Touch 0x62c000 only when there is a display engine bios/volt: Handle voltage table version 0x50 with 0ed header
volt: Properly detect entry based voltage tables
clk: Don't create cstates with voltages higher than what the gpu can
do
volt: Parse the max voltage map entries
volt: Add min_id parameter to nvkm_volt_set_id
clk: Add index field to nvkm_cstate
clk: Let nvkm_clk_tstate take a temperature value
volt: Add temperature parameter to nvkm_volt_map
clk: Fixup cstate selection
clk: Respect voltage limits in nvkm_cstate_prog
bios: Add parsing of VPSTATE table
clk: Allow boosting only when NvBoost is set
volt: Don't require perfect fit
bios/vmap: unk0 field is the mode
volt: Add implementation for gf100
volt/gf100-: Add speedo
volt: Make use of cvb coefficients
fb/ram: Use Kepler implementation on Maxwell

 drm/nouveau/include/nvkm/subdev/bios/vmap.h    |   5 +-
 drm/nouveau/include/nvkm/subdev/bios/volt.h    |   5 +-
 drm/nouveau/include/nvkm/subdev/bios/vpstate.h |  24 +++++
 drm/nouveau/include/nvkm/subdev/clk.h          |  18 +++-
 drm/nouveau/include/nvkm/subdev/volt.h         |  18 +++-
 drm/nouveau/nvkm/engine/device/base.c          |  17 +--
 drm/nouveau/nvkm/subdev/bios/Kbuild            |   1 +
 drm/nouveau/nvkm/subdev/bios/vmap.c            |  12 ++-
 drm/nouveau/nvkm/subdev/bios/volt.c            |  15 ++-
 drm/nouveau/nvkm/subdev/bios/vpstate.c         |  82 +++++++++++++++
 drm/nouveau/nvkm/subdev/clk/base.c             | 139 ++++++++++++++++++++++---
 drm/nouveau/nvkm/subdev/clk/gf100.c            |   2 +-
 drm/nouveau/nvkm/subdev/clk/gk104.c            |   2 +-
 drm/nouveau/nvkm/subdev/fb/ram.h               |   1 +
 drm/nouveau/nvkm/subdev/fb/ramgk104.c          |  24 ++++-
 drm/nouveau/nvkm/subdev/fb/ramgm107.c          |  12 +--
 drm/nouveau/nvkm/subdev/volt/Kbuild            |   1 +
 drm/nouveau/nvkm/subdev/volt/base.c            | 137 +++++++++++++++++++++---
 drm/nouveau/nvkm/subdev/volt/gf100.c           |  70 +++++++++++++
 drm/nouveau/nvkm/subdev/volt/gk104.c           |  21 ++++
 drm/nouveau/nvkm/subdev/volt/priv.h            |   4 +
 21 files changed, 544 insertions(+), 66 deletions(-)
 create mode 100644 drm/nouveau/include/nvkm/subdev/bios/vpstate.h
 create mode 100644 drm/nouveau/nvkm/subdev/bios/vpstate.c
 create mode 100644 drm/nouveau/nvkm/subdev/volt/gf100.c
Signature · 6 lines
2.9.2

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