[32/32] clk: Add trace message when setting a new cstate

Submitted by Karol Herbst on Nov. 17, 2017, 12:04 a.m.

Details

Message ID 20171117000436.2432-33-karolherbst@gmail.com
State New
Headers show
Series "Updated State of my clk patches" ( rev: 1 ) in Nouveau

Not browsing as part of any series.

Commit Message

Karol Herbst Nov. 17, 2017, 12:04 a.m.
From: Karol Herbst <kherbst@redhat.com>

Signed-off-by: Karol Herbst <kherbst@redhat.com>
---
 drm/nouveau/nvkm/subdev/clk/base.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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) {