diff options
Diffstat (limited to 'drivers/gpu/nvgpu/therm/thrmpmu.c')
-rw-r--r-- | drivers/gpu/nvgpu/therm/thrmpmu.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmpmu.c b/drivers/gpu/nvgpu/therm/thrmpmu.c index 50df55c0..3d80eff3 100644 --- a/drivers/gpu/nvgpu/therm/thrmpmu.c +++ b/drivers/gpu/nvgpu/therm/thrmpmu.c | |||
@@ -29,15 +29,13 @@ static void therm_pmucmdhandler(struct gk20a *g, struct pmu_msg *msg, | |||
29 | (struct therm_pmucmdhandler_params *)param; | 29 | (struct therm_pmucmdhandler_params *)param; |
30 | 30 | ||
31 | if (msg->msg.therm.msg_type != NV_PMU_THERM_MSG_ID_RPC) { | 31 | if (msg->msg.therm.msg_type != NV_PMU_THERM_MSG_ID_RPC) { |
32 | gk20a_err(dev_from_gk20a(g), | 32 | nvgpu_err(g, "unknow msg %x", |
33 | "unknow msg %x", | ||
34 | msg->msg.pmgr.msg_type); | 33 | msg->msg.pmgr.msg_type); |
35 | return; | 34 | return; |
36 | } | 35 | } |
37 | 36 | ||
38 | if (!phandlerparams->prpccall->b_supported) | 37 | if (!phandlerparams->prpccall->b_supported) |
39 | gk20a_err(dev_from_gk20a(g), | 38 | nvgpu_err(g, "RPC msg %x failed", |
40 | "RPC msg %x failed", | ||
41 | msg->msg.pmgr.msg_type); | 39 | msg->msg.pmgr.msg_type); |
42 | else | 40 | else |
43 | phandlerparams->success = 1; | 41 | phandlerparams->success = 1; |
@@ -52,7 +50,7 @@ u32 therm_send_pmgr_tables_to_pmu(struct gk20a *g) | |||
52 | pboardobjgrp = &g->therm_pmu.therm_deviceobjs.super.super; | 50 | pboardobjgrp = &g->therm_pmu.therm_deviceobjs.super.super; |
53 | status = pboardobjgrp->pmuinithandle(g, pboardobjgrp); | 51 | status = pboardobjgrp->pmuinithandle(g, pboardobjgrp); |
54 | if (status) { | 52 | if (status) { |
55 | gk20a_err(dev_from_gk20a(g), | 53 | nvgpu_err(g, |
56 | "therm_send_pmgr_tables_to_pmu - therm_device failed %x", | 54 | "therm_send_pmgr_tables_to_pmu - therm_device failed %x", |
57 | status); | 55 | status); |
58 | goto exit; | 56 | goto exit; |
@@ -64,7 +62,7 @@ u32 therm_send_pmgr_tables_to_pmu(struct gk20a *g) | |||
64 | pboardobjgrp = &g->therm_pmu.therm_channelobjs.super.super; | 62 | pboardobjgrp = &g->therm_pmu.therm_channelobjs.super.super; |
65 | status = pboardobjgrp->pmuinithandle(g, pboardobjgrp); | 63 | status = pboardobjgrp->pmuinithandle(g, pboardobjgrp); |
66 | if (status) { | 64 | if (status) { |
67 | gk20a_err(dev_from_gk20a(g), | 65 | nvgpu_err(g, |
68 | "therm_send_pmgr_tables_to_pmu - therm_channel failed %x", | 66 | "therm_send_pmgr_tables_to_pmu - therm_channel failed %x", |
69 | status); | 67 | status); |
70 | goto exit; | 68 | goto exit; |
@@ -90,7 +88,7 @@ static u32 therm_pmu_cmd_post(struct gk20a *g, struct pmu_cmd *cmd, | |||
90 | seq_desc, | 88 | seq_desc, |
91 | timeout); | 89 | timeout); |
92 | if (status) { | 90 | if (status) { |
93 | gk20a_err(dev_from_gk20a(g), | 91 | nvgpu_err(g, |
94 | "unable to post therm cmd for unit %x cmd id %x size %x", | 92 | "unable to post therm cmd for unit %x cmd id %x size %x", |
95 | cmd->hdr.unit_id, cmd->cmd.therm.cmd_type, cmd->hdr.size); | 93 | cmd->hdr.unit_id, cmd->cmd.therm.cmd_type, cmd->hdr.size); |
96 | goto exit; | 94 | goto exit; |
@@ -104,7 +102,7 @@ static u32 therm_pmu_cmd_post(struct gk20a *g, struct pmu_cmd *cmd, | |||
104 | &handlerparams->success, 1); | 102 | &handlerparams->success, 1); |
105 | 103 | ||
106 | if (handlerparams->success == 0) { | 104 | if (handlerparams->success == 0) { |
107 | gk20a_err(dev_from_gk20a(g), "could not process cmd\n"); | 105 | nvgpu_err(g, "could not process cmd\n"); |
108 | status = -ETIMEDOUT; | 106 | status = -ETIMEDOUT; |
109 | goto exit; | 107 | goto exit; |
110 | } | 108 | } |
@@ -225,7 +223,7 @@ u32 therm_configure_therm_alert(struct gk20a *g) | |||
225 | 223 | ||
226 | status = therm_enable_slct_notification_request(g); | 224 | status = therm_enable_slct_notification_request(g); |
227 | if (status) { | 225 | if (status) { |
228 | gk20a_err(dev_from_gk20a(g), | 226 | nvgpu_err(g, |
229 | "therm_enable_slct_notification_request-failed %d", | 227 | "therm_enable_slct_notification_request-failed %d", |
230 | status); | 228 | status); |
231 | goto exit; | 229 | goto exit; |
@@ -233,7 +231,7 @@ u32 therm_configure_therm_alert(struct gk20a *g) | |||
233 | 231 | ||
234 | status = therm_send_slct_configuration_to_pmu(g); | 232 | status = therm_send_slct_configuration_to_pmu(g); |
235 | if (status) { | 233 | if (status) { |
236 | gk20a_err(dev_from_gk20a(g), | 234 | nvgpu_err(g, |
237 | "therm_send_slct_configuration_to_pmu-failed %d", | 235 | "therm_send_slct_configuration_to_pmu-failed %d", |
238 | status); | 236 | status); |
239 | goto exit; | 237 | goto exit; |
@@ -241,7 +239,7 @@ u32 therm_configure_therm_alert(struct gk20a *g) | |||
241 | 239 | ||
242 | status = therm_set_warn_temp_limit(g); | 240 | status = therm_set_warn_temp_limit(g); |
243 | if (status) { | 241 | if (status) { |
244 | gk20a_err(dev_from_gk20a(g), | 242 | nvgpu_err(g, |
245 | "therm_set_warn_temp_limit-failed %d", | 243 | "therm_set_warn_temp_limit-failed %d", |
246 | status); | 244 | status); |
247 | goto exit; | 245 | goto exit; |