summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/volt/volt_rail.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-06 15:47:54 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-10 22:04:20 -0400
commita9c4c5d88db75d5ba2327fe16d3be1654518ccaf (patch)
tree33deafe68e266e23559103146c755f11469c0f5b /drivers/gpu/nvgpu/volt/volt_rail.c
parent57d624f900896a257e2e918e93e99a14f734aea5 (diff)
gpu: nvgpu: volt: Use new error macros
gk20a_err() and gk20a_warn() require a struct device pointer, which is not portable across operating systems. The new nvgpu_err() and nvgpu_warn() macros take struct gk20a pointer. Convert code to use the more portable macros. JIRA NVGPU-16 Change-Id: Iea4a2f81d3aa2ff409fbb4bf9db441401f3a41e5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1457352 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/volt/volt_rail.c')
-rw-r--r--drivers/gpu/nvgpu/volt/volt_rail.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/volt/volt_rail.c b/drivers/gpu/nvgpu/volt/volt_rail.c
index aaad86a5..778c531e 100644
--- a/drivers/gpu/nvgpu/volt/volt_rail.c
+++ b/drivers/gpu/nvgpu/volt/volt_rail.c
@@ -64,7 +64,7 @@ u32 volt_rail_volt_dev_register(struct gk20a *g, struct voltage_rail
64 64
65exit: 65exit:
66 if (status) 66 if (status)
67 gk20a_err(dev_from_gk20a(g), "Failed to register VOLTAGE_DEVICE"); 67 nvgpu_err(g, "Failed to register VOLTAGE_DEVICE");
68 68
69 return status; 69 return status;
70} 70}
@@ -94,7 +94,7 @@ static u32 volt_rail_state_init(struct gk20a *g,
94 94
95 status = boardobjgrpmask_e32_init(&pvolt_rail->volt_dev_mask, NULL); 95 status = boardobjgrpmask_e32_init(&pvolt_rail->volt_dev_mask, NULL);
96 if (status) { 96 if (status) {
97 gk20a_err(dev_from_gk20a(g), 97 nvgpu_err(g,
98 "Failed to initialize BOARDOBJGRPMASK of VOLTAGE_DEVICEs"); 98 "Failed to initialize BOARDOBJGRPMASK of VOLTAGE_DEVICEs");
99 } 99 }
100 100
@@ -138,7 +138,7 @@ static u32 volt_rail_init_pmudata_super(struct gk20a *g,
138 prail->volt_dev_mask.super.bitcount, 138 prail->volt_dev_mask.super.bitcount,
139 &rail_pmu_data->volt_dev_mask.super); 139 &rail_pmu_data->volt_dev_mask.super);
140 if (status) 140 if (status)
141 gk20a_err(dev_from_gk20a(g), 141 nvgpu_err(g,
142 "Failed to export BOARDOBJGRPMASK of VOLTAGE_DEVICEs"); 142 "Failed to export BOARDOBJGRPMASK of VOLTAGE_DEVICEs");
143 143
144 gk20a_dbg_info("Done"); 144 gk20a_dbg_info("Done");
@@ -370,7 +370,7 @@ u32 volt_rail_sw_setup(struct gk20a *g)
370 status = boardobjgrpconstruct_e32(&g->perf_pmu.volt.volt_rail_metadata. 370 status = boardobjgrpconstruct_e32(&g->perf_pmu.volt.volt_rail_metadata.
371 volt_rails); 371 volt_rails);
372 if (status) { 372 if (status) {
373 gk20a_err(dev_from_gk20a(g), 373 nvgpu_err(g,
374 "error creating boardobjgrp for volt rail, status - 0x%x", 374 "error creating boardobjgrp for volt rail, status - 0x%x",
375 status); 375 status);
376 goto done; 376 goto done;
@@ -396,7 +396,7 @@ u32 volt_rail_sw_setup(struct gk20a *g)
396 status = BOARDOBJGRP_PMU_CMD_GRP_SET_CONSTRUCT(g, pboardobjgrp, 396 status = BOARDOBJGRP_PMU_CMD_GRP_SET_CONSTRUCT(g, pboardobjgrp,
397 volt, VOLT, volt_rail, VOLT_RAIL); 397 volt, VOLT, volt_rail, VOLT_RAIL);
398 if (status) { 398 if (status) {
399 gk20a_err(dev_from_gk20a(g), 399 nvgpu_err(g,
400 "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x", 400 "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x",
401 status); 401 status);
402 goto done; 402 goto done;
@@ -406,7 +406,7 @@ u32 volt_rail_sw_setup(struct gk20a *g)
406 &g->perf_pmu.volt.volt_rail_metadata.volt_rails.super, 406 &g->perf_pmu.volt.volt_rail_metadata.volt_rails.super,
407 volt, VOLT, volt_rail, VOLT_RAIL); 407 volt, VOLT, volt_rail, VOLT_RAIL);
408 if (status) { 408 if (status) {
409 gk20a_err(dev_from_gk20a(g), 409 nvgpu_err(g,
410 "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x", 410 "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x",
411 status); 411 status);
412 goto done; 412 goto done;
@@ -418,7 +418,7 @@ u32 volt_rail_sw_setup(struct gk20a *g)
418 struct voltage_rail *, pvolt_rail, i) { 418 struct voltage_rail *, pvolt_rail, i) {
419 status = volt_rail_state_init(g, pvolt_rail); 419 status = volt_rail_state_init(g, pvolt_rail);
420 if (status) { 420 if (status) {
421 gk20a_err(dev_from_gk20a(g), 421 nvgpu_err(g,
422 "Failure while executing RAIL's state init railIdx = %d", 422 "Failure while executing RAIL's state init railIdx = %d",
423 i); 423 i);
424 goto done; 424 goto done;