[Nouveau] [PATCH 32/32] clk: Add trace message when setting a new cstate
Karol Herbst
karolherbst at gmail.com
Fri Nov 17 00:04:36 UTC 2017
From: Karol Herbst <kherbst at redhat.com>
Signed-off-by: Karol Herbst <kherbst at redhat.com>
---
drm/nouveau/nvkm/subdev/clk/base.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drm/nouveau/nvkm/subdev/clk/base.c b/drm/nouveau/nvkm/subdev/clk/base.c
index 1f136862..2c7fbeb0 100644
--- a/drm/nouveau/nvkm/subdev/clk/base.c
+++ b/drm/nouveau/nvkm/subdev/clk/base.c
@@ -205,6 +205,8 @@ nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate,
return nvkm_volt_set_id(volt, cstate->voltage,
pstate->base.voltage, clk->temp, 0);
+ nvkm_trace(subdev, "setting cstate to %d\n", cstate->id);
+
if (therm) {
ret = nvkm_therm_cstate(therm, pstate->fanspeed, +1);
if (ret && ret != -ENODEV) {
--
2.15.0
More information about the Nouveau
mailing list