summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-03-09 16:01:58 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-30 17:54:05 -0400
commit3d90f0aad537d92b42bc8250252f521b649077f8 (patch)
treeb4be8531026e6b445c9ad68ed0b1e90889d808c7
parenta697d0053835f90187bfd53499510d2dc3e9afa7 (diff)
gpu: nvgpu: Delete unused regops data
Flaged by CLANG, this data is unused and may now be deleted. JIRA NVGPU-525 Change-Id: Idf232b98aa3dfa6b03d29ec8b38cde58de20d29f Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1673819 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gk20a/regops_gk20a.c320
1 files changed, 0 insertions, 320 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c
index a2aeb1b3..60162f9d 100644
--- a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c
@@ -52,326 +52,6 @@ static inline bool linear_search(u32 offset, const u32 *list, int size)
52 return false; 52 return false;
53} 53}
54 54
55static const struct regop_offset_range gk20a_global_whitelist_ranges[] = {
56 { 0x000004f0, 1 },
57 { 0x00001a00, 3 },
58 { 0x0000259c, 1 },
59 { 0x0000280c, 1 },
60 { 0x00009400, 1 },
61 { 0x00009410, 1 },
62 { 0x00022430, 7 },
63 { 0x00022548, 1 },
64 { 0x00100c18, 3 },
65 { 0x00100c84, 1 },
66 { 0x00100cc4, 1 },
67 { 0x00106640, 1 },
68 { 0x0010a0a8, 1 },
69 { 0x0010a4f0, 1 },
70 { 0x0010e064, 1 },
71 { 0x0010e164, 1 },
72 { 0x0010e490, 1 },
73 { 0x00110100, 1 },
74 { 0x00140028, 1 },
75 { 0x001408dc, 1 },
76 { 0x00140a5c, 1 },
77 { 0x001410dc, 1 },
78 { 0x0014125c, 1 },
79 { 0x0017e028, 1 },
80 { 0x0017e8dc, 1 },
81 { 0x0017ea5c, 1 },
82 { 0x0017f0dc, 1 },
83 { 0x0017f25c, 1 },
84 { 0x00180000, 68 },
85 { 0x00180200, 68 },
86 { 0x001a0000, 68 },
87 { 0x001b0000, 68 },
88 { 0x001b0200, 68 },
89 { 0x001b0400, 68 },
90 { 0x001b0600, 68 },
91 { 0x001b4000, 3 },
92 { 0x001b4010, 3 },
93 { 0x001b4020, 3 },
94 { 0x001b4040, 3 },
95 { 0x001b4050, 3 },
96 { 0x001b4060, 4 },
97 { 0x001b4074, 11 },
98 { 0x001b40a4, 1 },
99 { 0x001b4100, 6 },
100 { 0x001b4124, 2 },
101 { 0x001b8000, 7 },
102 { 0x001bc000, 7 },
103 { 0x001be000, 7 },
104 { 0x00400500, 1 },
105 { 0x00400700, 1 },
106 { 0x0040415c, 1 },
107 { 0x00405850, 1 },
108 { 0x00405908, 1 },
109 { 0x00405b40, 1 },
110 { 0x00405b50, 1 },
111 { 0x00406024, 1 },
112 { 0x00407010, 1 },
113 { 0x00407808, 1 },
114 { 0x0040803c, 1 },
115 { 0x0040880c, 1 },
116 { 0x00408910, 1 },
117 { 0x00408984, 1 },
118 { 0x004090a8, 1 },
119 { 0x004098a0, 1 },
120 { 0x0041000c, 1 },
121 { 0x00410110, 1 },
122 { 0x00410184, 1 },
123 { 0x00418384, 1 },
124 { 0x004184a0, 1 },
125 { 0x00418604, 1 },
126 { 0x00418680, 1 },
127 { 0x00418714, 1 },
128 { 0x0041881c, 1 },
129 { 0x004188c8, 2 },
130 { 0x00418b04, 1 },
131 { 0x00418c04, 1 },
132 { 0x00418c64, 2 },
133 { 0x00418c88, 1 },
134 { 0x00418cb4, 2 },
135 { 0x00418d00, 1 },
136 { 0x00418d28, 2 },
137 { 0x00418e08, 1 },
138 { 0x00418e1c, 2 },
139 { 0x00418f08, 1 },
140 { 0x00418f20, 2 },
141 { 0x00419000, 1 },
142 { 0x0041900c, 1 },
143 { 0x00419018, 1 },
144 { 0x00419854, 1 },
145 { 0x00419ab0, 1 },
146 { 0x00419ab8, 3 },
147 { 0x00419ac8, 1 },
148 { 0x00419c0c, 1 },
149 { 0x00419c8c, 3 },
150 { 0x00419ca8, 1 },
151 { 0x00419d08, 2 },
152 { 0x00419e00, 1 },
153 { 0x00419e0c, 1 },
154 { 0x00419e14, 2 },
155 { 0x00419e24, 2 },
156 { 0x00419e34, 2 },
157 { 0x00419e44, 4 },
158 { 0x00419ea4, 1 },
159 { 0x00419eb0, 1 },
160 { 0x0041a0a0, 1 },
161 { 0x0041a0a8, 1 },
162 { 0x0041a17c, 1 },
163 { 0x0041a890, 2 },
164 { 0x0041a8a0, 3 },
165 { 0x0041a8b0, 2 },
166 { 0x0041b014, 1 },
167 { 0x0041b0a0, 1 },
168 { 0x0041b0cc, 1 },
169 { 0x0041b0e8, 2 },
170 { 0x0041b1dc, 1 },
171 { 0x0041b1f8, 2 },
172 { 0x0041be14, 1 },
173 { 0x0041bea0, 1 },
174 { 0x0041becc, 1 },
175 { 0x0041bee8, 2 },
176 { 0x0041bfdc, 1 },
177 { 0x0041bff8, 2 },
178 { 0x0041c054, 1 },
179 { 0x0041c2b0, 1 },
180 { 0x0041c2b8, 3 },
181 { 0x0041c2c8, 1 },
182 { 0x0041c40c, 1 },
183 { 0x0041c48c, 3 },
184 { 0x0041c4a8, 1 },
185 { 0x0041c508, 2 },
186 { 0x0041c600, 1 },
187 { 0x0041c60c, 1 },
188 { 0x0041c614, 2 },
189 { 0x0041c624, 2 },
190 { 0x0041c634, 2 },
191 { 0x0041c644, 4 },
192 { 0x0041c6a4, 1 },
193 { 0x0041c6b0, 1 },
194 { 0x00500384, 1 },
195 { 0x005004a0, 1 },
196 { 0x00500604, 1 },
197 { 0x00500680, 1 },
198 { 0x00500714, 1 },
199 { 0x0050081c, 1 },
200 { 0x005008c8, 2 },
201 { 0x00500b04, 1 },
202 { 0x00500c04, 1 },
203 { 0x00500c64, 2 },
204 { 0x00500c88, 1 },
205 { 0x00500cb4, 2 },
206 { 0x00500d00, 1 },
207 { 0x00500d28, 2 },
208 { 0x00500e08, 1 },
209 { 0x00500e1c, 2 },
210 { 0x00500f08, 1 },
211 { 0x00500f20, 2 },
212 { 0x00501000, 1 },
213 { 0x0050100c, 1 },
214 { 0x00501018, 1 },
215 { 0x00501854, 1 },
216 { 0x00501ab0, 1 },
217 { 0x00501ab8, 3 },
218 { 0x00501ac8, 1 },
219 { 0x00501c0c, 1 },
220 { 0x00501c8c, 3 },
221 { 0x00501ca8, 1 },
222 { 0x00501d08, 2 },
223 { 0x00501e00, 1 },
224 { 0x00501e0c, 1 },
225 { 0x00501e14, 2 },
226 { 0x00501e24, 2 },
227 { 0x00501e34, 2 },
228 { 0x00501e44, 4 },
229 { 0x00501ea4, 1 },
230 { 0x00501eb0, 1 },
231 { 0x005020a0, 1 },
232 { 0x005020a8, 1 },
233 { 0x0050217c, 1 },
234 { 0x00502890, 2 },
235 { 0x005028a0, 3 },
236 { 0x005028b0, 2 },
237 { 0x00503014, 1 },
238 { 0x005030a0, 1 },
239 { 0x005030cc, 1 },
240 { 0x005030e8, 2 },
241 { 0x005031dc, 1 },
242 { 0x005031f8, 2 },
243 { 0x00503e14, 1 },
244 { 0x00503ea0, 1 },
245 { 0x00503ecc, 1 },
246 { 0x00503ee8, 2 },
247 { 0x00503fdc, 1 },
248 { 0x00503ff8, 2 },
249 { 0x00504054, 1 },
250 { 0x005042b0, 1 },
251 { 0x005042b8, 3 },
252 { 0x005042c8, 1 },
253 { 0x0050440c, 1 },
254 { 0x0050448c, 3 },
255 { 0x005044a8, 1 },
256 { 0x00504508, 2 },
257 { 0x00504600, 1 },
258 { 0x0050460c, 1 },
259 { 0x00504614, 2 },
260 { 0x00504624, 2 },
261 { 0x00504634, 2 },
262 { 0x00504644, 4 },
263 { 0x005046a4, 1 },
264 { 0x005046b0, 1 },
265};
266static const u32 gk20a_global_whitelist_ranges_count =
267 ARRAY_SIZE(gk20a_global_whitelist_ranges);
268
269/* context */
270
271static const struct regop_offset_range gk20a_context_whitelist_ranges[] = {
272 { 0x0000280c, 1 },
273 { 0x00100cc4, 1 },
274 { 0x00400500, 1 },
275 { 0x00405b40, 1 },
276 { 0x00419000, 1 },
277 { 0x00419c8c, 3 },
278 { 0x00419d08, 2 },
279 { 0x00419e04, 3 },
280 { 0x00419e14, 2 },
281 { 0x00419e24, 2 },
282 { 0x00419e34, 2 },
283 { 0x00419e44, 4 },
284 { 0x00419e58, 6 },
285 { 0x00419e84, 5 },
286 { 0x00419ea4, 1 },
287 { 0x00419eac, 2 },
288 { 0x00419f30, 8 },
289 { 0x0041c48c, 3 },
290 { 0x0041c508, 2 },
291 { 0x0041c604, 3 },
292 { 0x0041c614, 2 },
293 { 0x0041c624, 2 },
294 { 0x0041c634, 2 },
295 { 0x0041c644, 4 },
296 { 0x0041c658, 6 },
297 { 0x0041c684, 5 },
298 { 0x0041c6a4, 1 },
299 { 0x0041c6ac, 2 },
300 { 0x0041c730, 8 },
301 { 0x00501000, 1 },
302 { 0x00501c8c, 3 },
303 { 0x00501d08, 2 },
304 { 0x00501e04, 3 },
305 { 0x00501e14, 2 },
306 { 0x00501e24, 2 },
307 { 0x00501e34, 2 },
308 { 0x00501e44, 4 },
309 { 0x00501e58, 6 },
310 { 0x00501e84, 5 },
311 { 0x00501ea4, 1 },
312 { 0x00501eac, 2 },
313 { 0x00501f30, 8 },
314 { 0x0050448c, 3 },
315 { 0x00504508, 2 },
316 { 0x00504604, 3 },
317 { 0x00504614, 2 },
318 { 0x00504624, 2 },
319 { 0x00504634, 2 },
320 { 0x00504644, 4 },
321 { 0x00504658, 6 },
322 { 0x00504684, 5 },
323 { 0x005046a4, 1 },
324 { 0x005046ac, 2 },
325 { 0x00504730, 8 },
326};
327static const u32 gk20a_context_whitelist_ranges_count =
328 ARRAY_SIZE(gk20a_context_whitelist_ranges);
329
330/* runcontrol */
331static const u32 gk20a_runcontrol_whitelist[] = {
332 0x00419e10,
333 0x0041c610,
334 0x00501e10,
335 0x00504610,
336};
337static const u32 gk20a_runcontrol_whitelist_count =
338 ARRAY_SIZE(gk20a_runcontrol_whitelist);
339
340static const struct regop_offset_range gk20a_runcontrol_whitelist_ranges[] = {
341 { 0x00419e10, 1 },
342 { 0x0041c610, 1 },
343 { 0x00501e10, 1 },
344 { 0x00504610, 1 },
345};
346static const u32 gk20a_runcontrol_whitelist_ranges_count =
347 ARRAY_SIZE(gk20a_runcontrol_whitelist_ranges);
348
349
350/* quad ctl */
351static const u32 gk20a_qctl_whitelist[] = {
352 0x00504670,
353 0x00504674,
354 0x00504678,
355 0x0050467c,
356 0x00504680,
357 0x00504730,
358 0x00504734,
359 0x00504738,
360 0x0050473c,
361};
362static const u32 gk20a_qctl_whitelist_count =
363 ARRAY_SIZE(gk20a_qctl_whitelist);
364
365static const struct regop_offset_range gk20a_qctl_whitelist_ranges[] = {
366 { 0x00504670, 1 },
367 { 0x00504730, 4 },
368};
369static const u32 gk20a_qctl_whitelist_ranges_count =
370 ARRAY_SIZE(gk20a_qctl_whitelist_ranges);
371
372
373
374
375static bool validate_reg_ops(struct dbg_session_gk20a *dbg_s, 55static bool validate_reg_ops(struct dbg_session_gk20a *dbg_s,
376 u32 *ctx_rd_count, u32 *ctx_wr_count, 56 u32 *ctx_rd_count, u32 *ctx_wr_count,
377 struct nvgpu_dbg_reg_op *ops, 57 struct nvgpu_dbg_reg_op *ops,