Skip to content

RFC Thermal throttling

Karol Herbst nouveau 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest13 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13clk: Rename nvkm_pstate_calc to nvkm_clk_update and export itdrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c+17 -100 replies
2/13clk: Remove dstatedrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c+2 -160 replies
3/13clk: Make pstate a pointer to nvkm_pstatedrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/engine/device/ctrl.c drm/nouveau/nvkm/subdev/clk/base.c +1 more+26 -180 replies
4/13clk: Hold information about the current cstate statusdrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c+27 -70 replies
5/13clk: We should pass the pstate id around not the index in the listdrm/nouveau/nouveau_debugfs.c drm/nouveau/nvkm/subdev/clk/base.c+41 -430 replies
6/13clk: Set clocks to pre suspend state after suspenddrm/nouveau/nvkm/subdev/clk/base.c+7 -30 replies
7/13clk: Check pm_runtime status before reclockingdrm/nouveau/nvkm/subdev/clk/base.c+12 -20 replies
8/13therm: Don't cancel the timerdrm/nouveau/nvkm/subdev/therm/base.c+2 -70 replies
9/13therm: Move the temp readout into the alarmdrm/nouveau/include/nvkm/subdev/therm.h drm/nouveau/nvkm/subdev/therm/base.c+16 -150 replies
10/13therm: Trigger reclock in temperature daemondrm/nouveau/nvkm/subdev/therm/base.c+7 -00 replies
11/13bios: add thermal policies tabledrm/nouveau/include/nvkm/subdev/bios/thermal_policies.h drm/nouveau/nvkm/subdev/bios/Kbuild drm/nouveau/nvkm/subdev/bios/thermal_policies.c+109 -00 replies
12/13clk: parse thermal policies for throttling thresholdsdrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c+44 -02 replies
13/13clk: thermal throttlingdrm/nouveau/include/nvkm/subdev/clk.h drm/nouveau/nvkm/subdev/clk/base.c+32 -41 reply

Reviews trailers per patch

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

PatchMartin Peres
1/13
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13R-b
7/13
8/13R-b
9/13
10/13R-b
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/13] Thermal throttling

Adds Nouveau controlled thermal throttling for Kepler+ GPUs. With this I feel safe enough to add support for Maxwell2 reclocking later on (still hidden behind a switch, but we can be fairly sure to not overheat hardware if a user isn't carefull enough)

Contains all patches from my clk update series, but I thought it makes sense to include those in this series as well for completness.

Please comment

Karol Herbst (13):
clk: Rename nvkm_pstate_calc to nvkm_clk_update and export it
clk: Remove dstate
clk: Make pstate a pointer to nvkm_pstate
clk: Hold information about the current cstate status
clk: We should pass the pstate id around not the index in the list
clk: Set clocks to pre suspend state after suspend
clk: Check pm_runtime status before reclocking
therm: Don't cancel the timer
therm: Move the temp readout into the alarm
therm: Trigger reclock in temperature daemon
bios: add thermal policies table
clk: parse thermal policies for throttling thresholds
clk: thermal throttling

 .../include/nvkm/subdev/bios/thermal_policies.h    |  27 +++
 drm/nouveau/include/nvkm/subdev/clk.h              |  12 +-
 drm/nouveau/include/nvkm/subdev/therm.h            |   1 +
 drm/nouveau/nouveau_debugfs.c                      |   6 +-
 drm/nouveau/nvkm/engine/device/ctrl.c              |   5 +-
 drm/nouveau/nvkm/subdev/bios/Kbuild                |   1 +
 drm/nouveau/nvkm/subdev/bios/thermal_policies.c    |  81 +++++++
 drm/nouveau/nvkm/subdev/clk/base.c                 | 248 +++++++++++++++------
 drm/nouveau/nvkm/subdev/pmu/gk20a.c                |  18 +-
 drm/nouveau/nvkm/subdev/therm/base.c               |  46 ++--
 10 files changed, 331 insertions(+), 114 deletions(-)
 create mode 100644 drm/nouveau/include/nvkm/subdev/bios/thermal_policies.h
 create mode 100644 drm/nouveau/nvkm/subdev/bios/thermal_policies.c
Signature · 6 lines
2.13.2

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