Expose power budget cap via hwmon
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 0 repliesNew
- v33 patches 5 repliesSuperseded
- v13 patches 2 repliesSuperseded
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | nvbios/power_budget: Add basic power budget parsingdrm/ drm/ drm/ | +153 | 0 replies | |
| 2/3 | subdev/iccsense: Parse max and crit power leveldrm/ drm/ | +21 | 0 replies | |
| 3/3 | hwmon: expose power_max and power_critdrm/ | +44 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH v4 0/3] Expose power budget cap via hwmon
There is an optinal header field in the power budget table we can use to read out the power cap of the GPU.
The meaning of this header field was confirmed with nvidia-smi -q:
The rows "Min Power Limit", "Power Limit" and "Max Power Limit" are set to the "min", "avg" and "max" values from the referenced power budget entry respectively.
We should have this in the kernel before actually using it to catch errors and see how reliable this is, but as it seems it works on all GPUs as expected on Kepler und Maxwells with the power cap field set in the vbios.
This series keeps things really simple for now until we figure out more about the power budget table and are able to parse the power cap for vbios without that field set.
v3: big rework of the actual vbios parsing to prevent memory leakage and
silly memory handling
v4: little reworks
Karol Herbst (3):
nvbios/power_budget: Add basic power budget parsing subdev/iccsense: Parse max and crit power level
hwmon: expose power_max and power_crit
.../include/nvkm/subdev/bios/power_budget.h | 26 +++++ drm/nouveau/include/nvkm/subdev/iccsense.h | 3 + drm/nouveau/nouveau_hwmon.c | 44 +++++++ drm/nouveau/nvkm/subdev/bios/Kbuild | 1 + drm/nouveau/nvkm/subdev/bios/power_budget.c | 126 +++++++++++++++++++++ drm/nouveau/nvkm/subdev/iccsense/base.c | 20 +++- 6 files changed, 218 insertions(+), 2 deletions(-) create mode 100644 drm/nouveau/include/nvkm/subdev/bios/power_budget.h create mode 100644 drm/nouveau/nvkm/subdev/bios/power_budget.c
Signature · 6 lines
2.11.0 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau