summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/therm
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-04-18 22:39:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-09 21:26:04 -0400
commitdd739fcb039d51606e9a5454ec0aab17bcb01965 (patch)
tree806ba8575d146367ad1be00086ca0cdae35a6b28 /drivers/gpu/nvgpu/therm
parent7e66f2a63d4855e763fa768047dfc32f6f96b771 (diff)
gpu: nvgpu: Remove gk20a_dbg* functions
Switch all logging to nvgpu_log*(). gk20a_dbg* macros are intentionally left there because of use from other repositories. Because the new functions do not work without a pointer to struct gk20a, and piping it just for logging is excessive, some log messages are deleted. Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1704148 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/therm')
-rw-r--r--drivers/gpu/nvgpu/therm/thrmchannel.c14
-rw-r--r--drivers/gpu/nvgpu/therm/thrmdev.c14
2 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmchannel.c b/drivers/gpu/nvgpu/therm/thrmchannel.c
index f8be8430..de3de62a 100644
--- a/drivers/gpu/nvgpu/therm/thrmchannel.c
+++ b/drivers/gpu/nvgpu/therm/thrmchannel.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -90,7 +90,7 @@ static struct boardobj *construct_channel_device(struct gk20a *g,
90 pchannel_device->therm_dev_idx = therm_device->therm_dev_idx; 90 pchannel_device->therm_dev_idx = therm_device->therm_dev_idx;
91 pchannel_device->therm_dev_prov_idx = therm_device->therm_dev_prov_idx; 91 pchannel_device->therm_dev_prov_idx = therm_device->therm_dev_prov_idx;
92 92
93 gk20a_dbg_info(" Done"); 93 nvgpu_log_info(g, " Done");
94 94
95 return board_obj_ptr; 95 return board_obj_ptr;
96} 96}
@@ -104,7 +104,7 @@ static u32 _therm_channel_pmudata_instget(struct gk20a *g,
104 (struct nv_pmu_therm_therm_channel_boardobj_grp_set *) 104 (struct nv_pmu_therm_therm_channel_boardobj_grp_set *)
105 pmuboardobjgrp; 105 pmuboardobjgrp;
106 106
107 gk20a_dbg_info(""); 107 nvgpu_log_info(g, " ");
108 108
109 /*check whether pmuboardobjgrp has a valid boardobj in index*/ 109 /*check whether pmuboardobjgrp has a valid boardobj in index*/
110 if (((u32)BIT(idx) & 110 if (((u32)BIT(idx) &
@@ -114,7 +114,7 @@ static u32 _therm_channel_pmudata_instget(struct gk20a *g,
114 *ppboardobjpmudata = (struct nv_pmu_boardobj *) 114 *ppboardobjpmudata = (struct nv_pmu_boardobj *)
115 &pgrp_set->objects[idx].data.board_obj; 115 &pgrp_set->objects[idx].data.board_obj;
116 116
117 gk20a_dbg_info(" Done"); 117 nvgpu_log_info(g, " Done");
118 118
119 return 0; 119 return 0;
120} 120}
@@ -137,7 +137,7 @@ static u32 devinit_get_therm_channel_table(struct gk20a *g,
137 struct therm_channel_device device; 137 struct therm_channel_device device;
138 } therm_channel_data; 138 } therm_channel_data;
139 139
140 gk20a_dbg_info(""); 140 nvgpu_log_info(g, " ");
141 141
142 therm_channel_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, 142 therm_channel_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g,
143 g->bios.perf_token, THERMAL_CHANNEL_TABLE); 143 g->bios.perf_token, THERMAL_CHANNEL_TABLE);
@@ -206,7 +206,7 @@ static u32 devinit_get_therm_channel_table(struct gk20a *g,
206 } 206 }
207 207
208done: 208done:
209 gk20a_dbg_info(" done status %x", status); 209 nvgpu_log_info(g, " done status %x", status);
210 return status; 210 return status;
211} 211}
212 212
@@ -248,6 +248,6 @@ u32 therm_channel_sw_setup(struct gk20a *g)
248 } 248 }
249 249
250done: 250done:
251 gk20a_dbg_info(" done status %x", status); 251 nvgpu_log_info(g, " done status %x", status);
252 return status; 252 return status;
253} 253}
diff --git a/drivers/gpu/nvgpu/therm/thrmdev.c b/drivers/gpu/nvgpu/therm/thrmdev.c
index 1aff119c..7371ba25 100644
--- a/drivers/gpu/nvgpu/therm/thrmdev.c
+++ b/drivers/gpu/nvgpu/therm/thrmdev.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -41,7 +41,7 @@ static struct boardobj *construct_therm_device(struct gk20a *g,
41 if (status) 41 if (status)
42 return NULL; 42 return NULL;
43 43
44 gk20a_dbg_info(" Done"); 44 nvgpu_log_info(g, " Done");
45 45
46 return board_obj_ptr; 46 return board_obj_ptr;
47} 47}
@@ -55,7 +55,7 @@ static u32 _therm_device_pmudata_instget(struct gk20a *g,
55 (struct nv_pmu_therm_therm_device_boardobj_grp_set *) 55 (struct nv_pmu_therm_therm_device_boardobj_grp_set *)
56 pmuboardobjgrp; 56 pmuboardobjgrp;
57 57
58 gk20a_dbg_info(""); 58 nvgpu_log_info(g, " ");
59 59
60 /*check whether pmuboardobjgrp has a valid boardobj in index*/ 60 /*check whether pmuboardobjgrp has a valid boardobj in index*/
61 if (((u32)BIT(idx) & 61 if (((u32)BIT(idx) &
@@ -65,7 +65,7 @@ static u32 _therm_device_pmudata_instget(struct gk20a *g,
65 *ppboardobjpmudata = (struct nv_pmu_boardobj *) 65 *ppboardobjpmudata = (struct nv_pmu_boardobj *)
66 &pgrp_set->objects[idx].data; 66 &pgrp_set->objects[idx].data;
67 67
68 gk20a_dbg_info(" Done"); 68 nvgpu_log_info(g, " Done");
69 69
70 return 0; 70 return 0;
71} 71}
@@ -87,7 +87,7 @@ static u32 devinit_get_therm_device_table(struct gk20a *g,
87 struct therm_device therm_device; 87 struct therm_device therm_device;
88 } therm_device_data; 88 } therm_device_data;
89 89
90 gk20a_dbg_info(""); 90 nvgpu_log_info(g, " ");
91 91
92 therm_device_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, 92 therm_device_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g,
93 g->bios.perf_token, THERMAL_DEVICE_TABLE); 93 g->bios.perf_token, THERMAL_DEVICE_TABLE);
@@ -153,7 +153,7 @@ static u32 devinit_get_therm_device_table(struct gk20a *g,
153 } 153 }
154 154
155done: 155done:
156 gk20a_dbg_info(" done status %x", status); 156 nvgpu_log_info(g, " done status %x", status);
157 return status; 157 return status;
158} 158}
159 159
@@ -195,6 +195,6 @@ u32 therm_device_sw_setup(struct gk20a *g)
195 } 195 }
196 196
197done: 197done:
198 gk20a_dbg_info(" done status %x", status); 198 nvgpu_log_info(g, " done status %x", status);
199 return status; 199 return status;
200} 200}