summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/regops_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-06-22 19:19:44 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:06 -0500
commit4b806879d582d41b20c17cc1739b537dbd41cb9a (patch)
treefa5ff220db168bc1dbaf6a26545fedaab3c35843 /drivers/gpu/nvgpu/gp10b/regops_gp10b.c
parenta22aa6d4d338f9d8fc126c4062c416b74785d728 (diff)
gpu: nvgpu: gp10b: Add regops whitelists
Add regops whitelists for gp10b. The whitelist is generated, and is the same for context switched and global registers. Bug 1633363 Change-Id: I6d4d43d036d684c9f0d836a1a032f2c452604902 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/760935
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/regops_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/regops_gp10b.c845
1 files changed, 845 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/regops_gp10b.c b/drivers/gpu/nvgpu/gp10b/regops_gp10b.c
new file mode 100644
index 00000000..0ab80b78
--- /dev/null
+++ b/drivers/gpu/nvgpu/gp10b/regops_gp10b.c
@@ -0,0 +1,845 @@
1/*
2 * Tegra GK20A GPU Debugger Driver Register Ops
3 *
4 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#include <linux/slab.h>
20#include <linux/err.h>
21#include <linux/bsearch.h>
22#include <uapi/linux/nvgpu.h>
23
24#include "gk20a/gk20a.h"
25#include "gk20a/dbg_gpu_gk20a.h"
26#include "gk20a/regops_gk20a.h"
27#include "regops_gp10b.h"
28
29static const struct regop_offset_range gp10b_global_whitelist_ranges[] = {
30 { 0x000004f0, 1},
31 { 0x00001a00, 3},
32 { 0x00002800, 128},
33 { 0x00009400, 1},
34 { 0x00009410, 1},
35 { 0x00009480, 1},
36 { 0x00020200, 24},
37 { 0x00021c00, 4},
38 { 0x00021c14, 3},
39 { 0x00021c24, 1},
40 { 0x00021c2c, 69},
41 { 0x00021d44, 1},
42 { 0x00021d4c, 1},
43 { 0x00021d54, 1},
44 { 0x00021d5c, 1},
45 { 0x00021d64, 2},
46 { 0x00021d70, 16},
47 { 0x00022430, 7},
48 { 0x00022450, 1},
49 { 0x0002245c, 1},
50 { 0x00070000, 5},
51 { 0x0008e00c, 1},
52 { 0x00100c18, 3},
53 { 0x00100c84, 1},
54 { 0x0010a0a8, 1},
55 { 0x0010a4f0, 1},
56 { 0x0013cc14, 1},
57 { 0x00140028, 1},
58 { 0x00140280, 1},
59 { 0x001402a0, 1},
60 { 0x00140350, 1},
61 { 0x00140480, 1},
62 { 0x001404a0, 1},
63 { 0x00140550, 1},
64 { 0x00142028, 1},
65 { 0x00142280, 1},
66 { 0x001422a0, 1},
67 { 0x00142350, 1},
68 { 0x00142480, 1},
69 { 0x001424a0, 1},
70 { 0x00142550, 1},
71 { 0x0017e280, 1},
72 { 0x0017e294, 1},
73 { 0x0017e29c, 2},
74 { 0x0017e2ac, 1},
75 { 0x0017e350, 1},
76 { 0x0017e39c, 1},
77 { 0x0017e480, 1},
78 { 0x0017e4a0, 1},
79 { 0x0017e550, 1},
80 { 0x00180040, 41},
81 { 0x001800ec, 9},
82 { 0x00180240, 41},
83 { 0x001802ec, 9},
84 { 0x00180440, 41},
85 { 0x001804ec, 9},
86 { 0x00180640, 41},
87 { 0x001806ec, 9},
88 { 0x00180840, 41},
89 { 0x001808ec, 9},
90 { 0x00180a40, 41},
91 { 0x00180aec, 9},
92 { 0x00180c40, 41},
93 { 0x00180cec, 9},
94 { 0x00180e40, 41},
95 { 0x00180eec, 9},
96 { 0x001a0040, 41},
97 { 0x001a00ec, 9},
98 { 0x001a0240, 41},
99 { 0x001a02ec, 9},
100 { 0x001a0440, 41},
101 { 0x001a04ec, 9},
102 { 0x001a0640, 41},
103 { 0x001a06ec, 9},
104 { 0x001a0840, 41},
105 { 0x001a08ec, 9},
106 { 0x001a0a40, 41},
107 { 0x001a0aec, 9},
108 { 0x001a0c40, 41},
109 { 0x001a0cec, 9},
110 { 0x001a0e40, 41},
111 { 0x001a0eec, 9},
112 { 0x001b0040, 41},
113 { 0x001b00ec, 9},
114 { 0x001b0240, 41},
115 { 0x001b02ec, 9},
116 { 0x001b0440, 41},
117 { 0x001b04ec, 9},
118 { 0x001b0640, 41},
119 { 0x001b06ec, 9},
120 { 0x001b0840, 41},
121 { 0x001b08ec, 9},
122 { 0x001b0a40, 41},
123 { 0x001b0aec, 9},
124 { 0x001b0c40, 41},
125 { 0x001b0cec, 9},
126 { 0x001b0e40, 41},
127 { 0x001b0eec, 9},
128 { 0x001b4000, 1},
129 { 0x001b4008, 1},
130 { 0x001b4010, 3},
131 { 0x001b4020, 3},
132 { 0x001b4030, 3},
133 { 0x001b4040, 3},
134 { 0x001b4050, 3},
135 { 0x001b4060, 4},
136 { 0x001b4074, 7},
137 { 0x001b4094, 3},
138 { 0x001b40a4, 1},
139 { 0x001b4100, 6},
140 { 0x001b4124, 1},
141 { 0x001b8000, 1},
142 { 0x001b8008, 1},
143 { 0x001b8010, 3},
144 { 0x001bc000, 1},
145 { 0x001bc008, 1},
146 { 0x001bc010, 3},
147 { 0x001be000, 1},
148 { 0x001be008, 1},
149 { 0x001be010, 3},
150 { 0x00400500, 1},
151 { 0x0040415c, 1},
152 { 0x00404468, 1},
153 { 0x00404498, 1},
154 { 0x00405800, 1},
155 { 0x00405840, 2},
156 { 0x00405850, 1},
157 { 0x00405908, 1},
158 { 0x00405b40, 1},
159 { 0x00405b50, 1},
160 { 0x00406024, 5},
161 { 0x00407010, 1},
162 { 0x00407808, 1},
163 { 0x0040803c, 1},
164 { 0x00408804, 1},
165 { 0x0040880c, 1},
166 { 0x00408900, 2},
167 { 0x00408910, 1},
168 { 0x00408944, 1},
169 { 0x00408984, 1},
170 { 0x004090a8, 1},
171 { 0x004098a0, 1},
172 { 0x00409b00, 1},
173 { 0x0041000c, 1},
174 { 0x00410110, 1},
175 { 0x00410184, 1},
176 { 0x0041040c, 1},
177 { 0x00410510, 1},
178 { 0x00410584, 1},
179 { 0x00418384, 1},
180 { 0x00418400, 2},
181 { 0x004184a0, 1},
182 { 0x00418604, 1},
183 { 0x00418680, 1},
184 { 0x00418704, 1},
185 { 0x00418714, 1},
186 { 0x00418800, 1},
187 { 0x0041881c, 1},
188 { 0x00418830, 1},
189 { 0x00418884, 1},
190 { 0x004188b0, 1},
191 { 0x004188c8, 3},
192 { 0x004188fc, 1},
193 { 0x00418b04, 1},
194 { 0x00418c04, 1},
195 { 0x00418c10, 8},
196 { 0x00418c88, 1},
197 { 0x00418d00, 1},
198 { 0x00418e00, 1},
199 { 0x00418e08, 1},
200 { 0x00418e34, 1},
201 { 0x00418e40, 4},
202 { 0x00418e58, 16},
203 { 0x00418f08, 1},
204 { 0x00419000, 1},
205 { 0x0041900c, 1},
206 { 0x00419018, 1},
207 { 0x00419854, 1},
208 { 0x00419864, 1},
209 { 0x00419a04, 2},
210 { 0x00419a14, 1},
211 { 0x00419ab0, 1},
212 { 0x00419ab8, 3},
213 { 0x00419c0c, 1},
214 { 0x00419c8c, 2},
215 { 0x00419d00, 1},
216 { 0x00419d08, 2},
217 { 0x00419e00, 11},
218 { 0x00419e34, 2},
219 { 0x00419e44, 11},
220 { 0x00419e74, 10},
221 { 0x00419ea4, 1},
222 { 0x00419eac, 2},
223 { 0x00419ee8, 1},
224 { 0x00419ef0, 28},
225 { 0x00419f70, 1},
226 { 0x00419f78, 2},
227 { 0x00419f98, 2},
228 { 0x00419fdc, 1},
229 { 0x0041a02c, 2},
230 { 0x0041a0a0, 1},
231 { 0x0041a0a8, 1},
232 { 0x0041a890, 2},
233 { 0x0041a8a0, 3},
234 { 0x0041a8b0, 2},
235 { 0x0041b014, 1},
236 { 0x0041b0cc, 1},
237 { 0x0041b1dc, 1},
238 { 0x0041be0c, 3},
239 { 0x0041becc, 1},
240 { 0x0041bfdc, 1},
241 { 0x0041c054, 1},
242 { 0x0041c2b0, 1},
243 { 0x0041c2b8, 3},
244 { 0x0041c40c, 1},
245 { 0x0041c48c, 2},
246 { 0x0041c500, 1},
247 { 0x0041c508, 2},
248 { 0x0041c600, 11},
249 { 0x0041c634, 2},
250 { 0x0041c644, 11},
251 { 0x0041c674, 10},
252 { 0x0041c6a4, 1},
253 { 0x0041c6ac, 2},
254 { 0x0041c6e8, 1},
255 { 0x0041c6f0, 28},
256 { 0x0041c770, 1},
257 { 0x0041c778, 2},
258 { 0x0041c798, 2},
259 { 0x0041c7dc, 1},
260 { 0x0041c854, 1},
261 { 0x0041cab0, 1},
262 { 0x0041cab8, 3},
263 { 0x0041cc0c, 1},
264 { 0x0041cc8c, 2},
265 { 0x0041cd00, 1},
266 { 0x0041cd08, 2},
267 { 0x0041ce00, 11},
268 { 0x0041ce34, 2},
269 { 0x0041ce44, 11},
270 { 0x0041ce74, 10},
271 { 0x0041cea4, 1},
272 { 0x0041ceac, 2},
273 { 0x0041cee8, 1},
274 { 0x0041cef0, 28},
275 { 0x0041cf70, 1},
276 { 0x0041cf78, 2},
277 { 0x0041cf98, 2},
278 { 0x0041cfdc, 1},
279 { 0x00500384, 1},
280 { 0x005004a0, 1},
281 { 0x00500604, 1},
282 { 0x00500680, 1},
283 { 0x00500714, 1},
284 { 0x0050081c, 1},
285 { 0x00500884, 1},
286 { 0x005008b0, 1},
287 { 0x005008c8, 3},
288 { 0x005008fc, 1},
289 { 0x00500b04, 1},
290 { 0x00500c04, 1},
291 { 0x00500c10, 8},
292 { 0x00500c88, 1},
293 { 0x00500d00, 1},
294 { 0x00500e08, 1},
295 { 0x00500f08, 1},
296 { 0x00501000, 1},
297 { 0x0050100c, 1},
298 { 0x00501018, 1},
299 { 0x00501854, 1},
300 { 0x00501ab0, 1},
301 { 0x00501ab8, 3},
302 { 0x00501c0c, 1},
303 { 0x00501c8c, 2},
304 { 0x00501d00, 1},
305 { 0x00501d08, 2},
306 { 0x00501e00, 11},
307 { 0x00501e34, 2},
308 { 0x00501e44, 11},
309 { 0x00501e74, 10},
310 { 0x00501ea4, 1},
311 { 0x00501eac, 2},
312 { 0x00501ee8, 1},
313 { 0x00501ef0, 28},
314 { 0x00501f70, 1},
315 { 0x00501f78, 2},
316 { 0x00501f98, 2},
317 { 0x00501fdc, 1},
318 { 0x0050202c, 2},
319 { 0x005020a0, 1},
320 { 0x005020a8, 1},
321 { 0x00502890, 2},
322 { 0x005028a0, 3},
323 { 0x005028b0, 2},
324 { 0x00503014, 1},
325 { 0x005030cc, 1},
326 { 0x005031dc, 1},
327 { 0x00503e14, 1},
328 { 0x00503ecc, 1},
329 { 0x00503fdc, 1},
330 { 0x00504054, 1},
331 { 0x005042b0, 1},
332 { 0x005042b8, 3},
333 { 0x0050440c, 1},
334 { 0x0050448c, 2},
335 { 0x00504500, 1},
336 { 0x00504508, 2},
337 { 0x00504600, 11},
338 { 0x00504634, 2},
339 { 0x00504644, 11},
340 { 0x00504674, 10},
341 { 0x005046a4, 1},
342 { 0x005046ac, 2},
343 { 0x005046e8, 1},
344 { 0x005046f0, 28},
345 { 0x00504770, 1},
346 { 0x00504778, 2},
347 { 0x00504798, 2},
348 { 0x005047dc, 1},
349 { 0x00504854, 1},
350 { 0x00504ab0, 1},
351 { 0x00504ab8, 3},
352 { 0x00504c0c, 1},
353 { 0x00504c8c, 2},
354 { 0x00504d00, 1},
355 { 0x00504d08, 2},
356 { 0x00504e00, 11},
357 { 0x00504e34, 2},
358 { 0x00504e44, 11},
359 { 0x00504e74, 10},
360 { 0x00504ea4, 1},
361 { 0x00504eac, 2},
362 { 0x00504ee8, 1},
363 { 0x00504ef0, 28},
364 { 0x00504f70, 1},
365 { 0x00504f78, 2},
366 { 0x00504f98, 2},
367 { 0x00504fdc, 1},
368 { 0x00900100, 1},
369 { 0x009a0100, 1},
370};
371static const u32 gp10b_global_whitelist_ranges_count =
372 ARRAY_SIZE(gp10b_global_whitelist_ranges);
373
374/* context */
375
376static const struct regop_offset_range gp10b_context_whitelist_ranges[] = {
377 { 0x000004f0, 1},
378 { 0x00001a00, 3},
379 { 0x00002800, 128},
380 { 0x00009400, 1},
381 { 0x00009410, 1},
382 { 0x00009480, 1},
383 { 0x00020200, 24},
384 { 0x00021c00, 4},
385 { 0x00021c14, 3},
386 { 0x00021c24, 1},
387 { 0x00021c2c, 69},
388 { 0x00021d44, 1},
389 { 0x00021d4c, 1},
390 { 0x00021d54, 1},
391 { 0x00021d5c, 1},
392 { 0x00021d64, 2},
393 { 0x00021d70, 16},
394 { 0x00022430, 7},
395 { 0x00022450, 1},
396 { 0x0002245c, 1},
397 { 0x00070000, 5},
398 { 0x0008e00c, 1},
399 { 0x00100c18, 3},
400 { 0x00100c84, 1},
401 { 0x0010a0a8, 1},
402 { 0x0010a4f0, 1},
403 { 0x0013cc14, 1},
404 { 0x00140028, 1},
405 { 0x00140280, 1},
406 { 0x001402a0, 1},
407 { 0x00140350, 1},
408 { 0x00140480, 1},
409 { 0x001404a0, 1},
410 { 0x00140550, 1},
411 { 0x00142028, 1},
412 { 0x00142280, 1},
413 { 0x001422a0, 1},
414 { 0x00142350, 1},
415 { 0x00142480, 1},
416 { 0x001424a0, 1},
417 { 0x00142550, 1},
418 { 0x0017e280, 1},
419 { 0x0017e294, 1},
420 { 0x0017e29c, 2},
421 { 0x0017e2ac, 1},
422 { 0x0017e350, 1},
423 { 0x0017e39c, 1},
424 { 0x0017e480, 1},
425 { 0x0017e4a0, 1},
426 { 0x0017e550, 1},
427 { 0x00180040, 41},
428 { 0x001800ec, 9},
429 { 0x00180240, 41},
430 { 0x001802ec, 9},
431 { 0x00180440, 41},
432 { 0x001804ec, 9},
433 { 0x00180640, 41},
434 { 0x001806ec, 9},
435 { 0x00180840, 41},
436 { 0x001808ec, 9},
437 { 0x00180a40, 41},
438 { 0x00180aec, 9},
439 { 0x00180c40, 41},
440 { 0x00180cec, 9},
441 { 0x00180e40, 41},
442 { 0x00180eec, 9},
443 { 0x001a0040, 41},
444 { 0x001a00ec, 9},
445 { 0x001a0240, 41},
446 { 0x001a02ec, 9},
447 { 0x001a0440, 41},
448 { 0x001a04ec, 9},
449 { 0x001a0640, 41},
450 { 0x001a06ec, 9},
451 { 0x001a0840, 41},
452 { 0x001a08ec, 9},
453 { 0x001a0a40, 41},
454 { 0x001a0aec, 9},
455 { 0x001a0c40, 41},
456 { 0x001a0cec, 9},
457 { 0x001a0e40, 41},
458 { 0x001a0eec, 9},
459 { 0x001b0040, 41},
460 { 0x001b00ec, 9},
461 { 0x001b0240, 41},
462 { 0x001b02ec, 9},
463 { 0x001b0440, 41},
464 { 0x001b04ec, 9},
465 { 0x001b0640, 41},
466 { 0x001b06ec, 9},
467 { 0x001b0840, 41},
468 { 0x001b08ec, 9},
469 { 0x001b0a40, 41},
470 { 0x001b0aec, 9},
471 { 0x001b0c40, 41},
472 { 0x001b0cec, 9},
473 { 0x001b0e40, 41},
474 { 0x001b0eec, 9},
475 { 0x001b4000, 1},
476 { 0x001b4008, 1},
477 { 0x001b4010, 3},
478 { 0x001b4020, 3},
479 { 0x001b4030, 3},
480 { 0x001b4040, 3},
481 { 0x001b4050, 3},
482 { 0x001b4060, 4},
483 { 0x001b4074, 7},
484 { 0x001b4094, 3},
485 { 0x001b40a4, 1},
486 { 0x001b4100, 6},
487 { 0x001b4124, 1},
488 { 0x001b8000, 1},
489 { 0x001b8008, 1},
490 { 0x001b8010, 3},
491 { 0x001bc000, 1},
492 { 0x001bc008, 1},
493 { 0x001bc010, 3},
494 { 0x001be000, 1},
495 { 0x001be008, 1},
496 { 0x001be010, 3},
497 { 0x00400500, 1},
498 { 0x0040415c, 1},
499 { 0x00404468, 1},
500 { 0x00404498, 1},
501 { 0x00405800, 1},
502 { 0x00405840, 2},
503 { 0x00405850, 1},
504 { 0x00405908, 1},
505 { 0x00405b40, 1},
506 { 0x00405b50, 1},
507 { 0x00406024, 5},
508 { 0x00407010, 1},
509 { 0x00407808, 1},
510 { 0x0040803c, 1},
511 { 0x00408804, 1},
512 { 0x0040880c, 1},
513 { 0x00408900, 2},
514 { 0x00408910, 1},
515 { 0x00408944, 1},
516 { 0x00408984, 1},
517 { 0x004090a8, 1},
518 { 0x004098a0, 1},
519 { 0x00409b00, 1},
520 { 0x0041000c, 1},
521 { 0x00410110, 1},
522 { 0x00410184, 1},
523 { 0x0041040c, 1},
524 { 0x00410510, 1},
525 { 0x00410584, 1},
526 { 0x00418384, 1},
527 { 0x00418400, 2},
528 { 0x004184a0, 1},
529 { 0x00418604, 1},
530 { 0x00418680, 1},
531 { 0x00418704, 1},
532 { 0x00418714, 1},
533 { 0x00418800, 1},
534 { 0x0041881c, 1},
535 { 0x00418830, 1},
536 { 0x00418884, 1},
537 { 0x004188b0, 1},
538 { 0x004188c8, 3},
539 { 0x004188fc, 1},
540 { 0x00418b04, 1},
541 { 0x00418c04, 1},
542 { 0x00418c10, 8},
543 { 0x00418c88, 1},
544 { 0x00418d00, 1},
545 { 0x00418e00, 1},
546 { 0x00418e08, 1},
547 { 0x00418e34, 1},
548 { 0x00418e40, 4},
549 { 0x00418e58, 16},
550 { 0x00418f08, 1},
551 { 0x00419000, 1},
552 { 0x0041900c, 1},
553 { 0x00419018, 1},
554 { 0x00419854, 1},
555 { 0x00419864, 1},
556 { 0x00419a04, 2},
557 { 0x00419a14, 1},
558 { 0x00419ab0, 1},
559 { 0x00419ab8, 3},
560 { 0x00419c0c, 1},
561 { 0x00419c8c, 2},
562 { 0x00419d00, 1},
563 { 0x00419d08, 2},
564 { 0x00419e00, 11},
565 { 0x00419e34, 2},
566 { 0x00419e44, 11},
567 { 0x00419e74, 10},
568 { 0x00419ea4, 1},
569 { 0x00419eac, 2},
570 { 0x00419ee8, 1},
571 { 0x00419ef0, 28},
572 { 0x00419f70, 1},
573 { 0x00419f78, 2},
574 { 0x00419f98, 2},
575 { 0x00419fdc, 1},
576 { 0x0041a02c, 2},
577 { 0x0041a0a0, 1},
578 { 0x0041a0a8, 1},
579 { 0x0041a890, 2},
580 { 0x0041a8a0, 3},
581 { 0x0041a8b0, 2},
582 { 0x0041b014, 1},
583 { 0x0041b0cc, 1},
584 { 0x0041b1dc, 1},
585 { 0x0041be0c, 3},
586 { 0x0041becc, 1},
587 { 0x0041bfdc, 1},
588 { 0x0041c054, 1},
589 { 0x0041c2b0, 1},
590 { 0x0041c2b8, 3},
591 { 0x0041c40c, 1},
592 { 0x0041c48c, 2},
593 { 0x0041c500, 1},
594 { 0x0041c508, 2},
595 { 0x0041c600, 11},
596 { 0x0041c634, 2},
597 { 0x0041c644, 11},
598 { 0x0041c674, 10},
599 { 0x0041c6a4, 1},
600 { 0x0041c6ac, 2},
601 { 0x0041c6e8, 1},
602 { 0x0041c6f0, 28},
603 { 0x0041c770, 1},
604 { 0x0041c778, 2},
605 { 0x0041c798, 2},
606 { 0x0041c7dc, 1},
607 { 0x0041c854, 1},
608 { 0x0041cab0, 1},
609 { 0x0041cab8, 3},
610 { 0x0041cc0c, 1},
611 { 0x0041cc8c, 2},
612 { 0x0041cd00, 1},
613 { 0x0041cd08, 2},
614 { 0x0041ce00, 11},
615 { 0x0041ce34, 2},
616 { 0x0041ce44, 11},
617 { 0x0041ce74, 10},
618 { 0x0041cea4, 1},
619 { 0x0041ceac, 2},
620 { 0x0041cee8, 1},
621 { 0x0041cef0, 28},
622 { 0x0041cf70, 1},
623 { 0x0041cf78, 2},
624 { 0x0041cf98, 2},
625 { 0x0041cfdc, 1},
626 { 0x00500384, 1},
627 { 0x005004a0, 1},
628 { 0x00500604, 1},
629 { 0x00500680, 1},
630 { 0x00500714, 1},
631 { 0x0050081c, 1},
632 { 0x00500884, 1},
633 { 0x005008b0, 1},
634 { 0x005008c8, 3},
635 { 0x005008fc, 1},
636 { 0x00500b04, 1},
637 { 0x00500c04, 1},
638 { 0x00500c10, 8},
639 { 0x00500c88, 1},
640 { 0x00500d00, 1},
641 { 0x00500e08, 1},
642 { 0x00500f08, 1},
643 { 0x00501000, 1},
644 { 0x0050100c, 1},
645 { 0x00501018, 1},
646 { 0x00501854, 1},
647 { 0x00501ab0, 1},
648 { 0x00501ab8, 3},
649 { 0x00501c0c, 1},
650 { 0x00501c8c, 2},
651 { 0x00501d00, 1},
652 { 0x00501d08, 2},
653 { 0x00501e00, 11},
654 { 0x00501e34, 2},
655 { 0x00501e44, 11},
656 { 0x00501e74, 10},
657 { 0x00501ea4, 1},
658 { 0x00501eac, 2},
659 { 0x00501ee8, 1},
660 { 0x00501ef0, 28},
661 { 0x00501f70, 1},
662 { 0x00501f78, 2},
663 { 0x00501f98, 2},
664 { 0x00501fdc, 1},
665 { 0x0050202c, 2},
666 { 0x005020a0, 1},
667 { 0x005020a8, 1},
668 { 0x00502890, 2},
669 { 0x005028a0, 3},
670 { 0x005028b0, 2},
671 { 0x00503014, 1},
672 { 0x005030cc, 1},
673 { 0x005031dc, 1},
674 { 0x00503e14, 1},
675 { 0x00503ecc, 1},
676 { 0x00503fdc, 1},
677 { 0x00504054, 1},
678 { 0x005042b0, 1},
679 { 0x005042b8, 3},
680 { 0x0050440c, 1},
681 { 0x0050448c, 2},
682 { 0x00504500, 1},
683 { 0x00504508, 2},
684 { 0x00504600, 11},
685 { 0x00504634, 2},
686 { 0x00504644, 11},
687 { 0x00504674, 10},
688 { 0x005046a4, 1},
689 { 0x005046ac, 2},
690 { 0x005046e8, 1},
691 { 0x005046f0, 28},
692 { 0x00504770, 1},
693 { 0x00504778, 2},
694 { 0x00504798, 2},
695 { 0x005047dc, 1},
696 { 0x00504854, 1},
697 { 0x00504ab0, 1},
698 { 0x00504ab8, 3},
699 { 0x00504c0c, 1},
700 { 0x00504c8c, 2},
701 { 0x00504d00, 1},
702 { 0x00504d08, 2},
703 { 0x00504e00, 11},
704 { 0x00504e34, 2},
705 { 0x00504e44, 11},
706 { 0x00504e74, 10},
707 { 0x00504ea4, 1},
708 { 0x00504eac, 2},
709 { 0x00504ee8, 1},
710 { 0x00504ef0, 28},
711 { 0x00504f70, 1},
712 { 0x00504f78, 2},
713 { 0x00504f98, 2},
714 { 0x00504fdc, 1},
715 { 0x00900100, 1},
716 { 0x009a0100, 1},
717};
718static const u32 gp10b_context_whitelist_ranges_count =
719 ARRAY_SIZE(gp10b_context_whitelist_ranges);
720
721/* runcontrol */
722static const u32 gp10b_runcontrol_whitelist[] = {
723};
724static const u32 gp10b_runcontrol_whitelist_count =
725 ARRAY_SIZE(gp10b_runcontrol_whitelist);
726
727static const struct regop_offset_range gp10b_runcontrol_whitelist_ranges[] = {
728};
729static const u32 gp10b_runcontrol_whitelist_ranges_count =
730 ARRAY_SIZE(gp10b_runcontrol_whitelist_ranges);
731
732
733/* quad ctl */
734static const u32 gp10b_qctl_whitelist[] = {
735};
736static const u32 gp10b_qctl_whitelist_count =
737 ARRAY_SIZE(gp10b_qctl_whitelist);
738
739static const struct regop_offset_range gp10b_qctl_whitelist_ranges[] = {
740};
741static const u32 gp10b_qctl_whitelist_ranges_count =
742 ARRAY_SIZE(gp10b_qctl_whitelist_ranges);
743
744static const struct regop_offset_range *gp10b_get_global_whitelist_ranges(void)
745{
746 return gp10b_global_whitelist_ranges;
747}
748
749static int gp10b_get_global_whitelist_ranges_count(void)
750{
751 return gp10b_global_whitelist_ranges_count;
752}
753
754static const struct regop_offset_range *gp10b_get_context_whitelist_ranges(void)
755{
756 return gp10b_context_whitelist_ranges;
757}
758
759static int gp10b_get_context_whitelist_ranges_count(void)
760{
761 return gp10b_context_whitelist_ranges_count;
762}
763
764static const u32 *gp10b_get_runcontrol_whitelist(void)
765{
766 return gp10b_runcontrol_whitelist;
767}
768
769static int gp10b_get_runcontrol_whitelist_count(void)
770{
771 return gp10b_runcontrol_whitelist_count;
772}
773
774static const
775struct regop_offset_range *gp10b_get_runcontrol_whitelist_ranges(void)
776{
777 return gp10b_runcontrol_whitelist_ranges;
778}
779
780static int gp10b_get_runcontrol_whitelist_ranges_count(void)
781{
782 return gp10b_runcontrol_whitelist_ranges_count;
783}
784
785static const u32 *gp10b_get_qctl_whitelist(void)
786{
787 return gp10b_qctl_whitelist;
788}
789
790static int gp10b_get_qctl_whitelist_count(void)
791{
792 return gp10b_qctl_whitelist_count;
793}
794
795static const struct regop_offset_range *gp10b_get_qctl_whitelist_ranges(void)
796{
797 return gp10b_qctl_whitelist_ranges;
798}
799
800static int gp10b_get_qctl_whitelist_ranges_count(void)
801{
802 return gp10b_qctl_whitelist_ranges_count;
803}
804
805static int gp10b_apply_smpc_war(struct dbg_session_gk20a *dbg_s)
806{
807 /* Not needed on gp10b */
808 return 0;
809}
810
811void gp10b_init_regops(struct gpu_ops *gops)
812{
813 gops->regops.get_global_whitelist_ranges =
814 gp10b_get_global_whitelist_ranges;
815 gops->regops.get_global_whitelist_ranges_count =
816 gp10b_get_global_whitelist_ranges_count;
817
818 gops->regops.get_context_whitelist_ranges =
819 gp10b_get_context_whitelist_ranges;
820 gops->regops.get_context_whitelist_ranges_count =
821 gp10b_get_context_whitelist_ranges_count;
822
823 gops->regops.get_runcontrol_whitelist =
824 gp10b_get_runcontrol_whitelist;
825 gops->regops.get_runcontrol_whitelist_count =
826 gp10b_get_runcontrol_whitelist_count;
827
828 gops->regops.get_runcontrol_whitelist_ranges =
829 gp10b_get_runcontrol_whitelist_ranges;
830 gops->regops.get_runcontrol_whitelist_ranges_count =
831 gp10b_get_runcontrol_whitelist_ranges_count;
832
833 gops->regops.get_qctl_whitelist =
834 gp10b_get_qctl_whitelist;
835 gops->regops.get_qctl_whitelist_count =
836 gp10b_get_qctl_whitelist_count;
837
838 gops->regops.get_qctl_whitelist_ranges =
839 gp10b_get_qctl_whitelist_ranges;
840 gops->regops.get_qctl_whitelist_ranges_count =
841 gp10b_get_qctl_whitelist_ranges_count;
842
843 gops->regops.apply_smpc_war =
844 gp10b_apply_smpc_war;
845}