Lines Matching +full:0 +full:x00010006
71 0x98fc,
72 0x98f0,
73 0x9834,
74 0x9838,
75 0x9870,
76 0x9874,
77 0x8a14,
78 0x8b24,
79 0x8bcc,
80 0x8b10,
81 0x8c30,
82 0x8d00,
83 0x8d04,
84 0x8c00,
85 0x8c04,
86 0x8c10,
87 0x8c14,
88 0x8d8c,
89 0x8cf0,
90 0x8e38,
91 0x9508,
92 0x9688,
93 0x9608,
94 0x960c,
95 0x9610,
96 0x9614,
97 0x88c4,
98 0x8978,
99 0x88d4,
100 0x900c,
101 0x9100,
102 0x913c,
103 0x90e8,
104 0x9354,
105 0xa008,
106 0x98f8,
107 0x9148,
108 0x914c,
109 0x3f94,
110 0x98f4,
111 0x9b7c,
112 0x3f8c,
113 0x8950,
114 0x8954,
115 0x8a18,
116 0x8b28,
117 0x9144,
118 0x3f90,
119 0x915c,
120 0x9160,
121 0x9178,
122 0x917c,
123 0x9180,
124 0x918c,
125 0x9190,
126 0x9194,
127 0x9198,
128 0x919c,
129 0x91a8,
130 0x91ac,
131 0x91b0,
132 0x91b4,
133 0x91b8,
134 0x91c4,
135 0x91c8,
136 0x91cc,
137 0x91d0,
138 0x91d4,
139 0x91e0,
140 0x91e4,
141 0x91ec,
142 0x91f0,
143 0x91f4,
144 0x9200,
145 0x9204,
146 0x929c,
147 0x8030,
148 0x9150,
149 0x9a60,
150 0x920c,
151 0x9210,
152 0x9228,
153 0x922c,
154 0x9244,
155 0x9248,
156 0x91e8,
157 0x9294,
158 0x9208,
159 0x9224,
160 0x9240,
161 0x9220,
162 0x923c,
163 0x9258,
164 0x9744,
165 0xa200,
166 0xa204,
167 0xa208,
168 0xa20c,
169 0x8d58,
170 0x9030,
171 0x9034,
172 0x9038,
173 0x903c,
174 0x9040,
175 0x9654,
176 0x897c,
177 0xa210,
178 0xa214,
179 0x9868,
180 0xa02c,
181 0x9664,
182 0x9698,
183 0x949c,
184 0x8e10,
185 0x8e18,
186 0x8c50,
187 0x8c58,
188 0x8c60,
189 0x8c68,
190 0x89b4,
191 0x9830,
192 0x802c,
221 0x3e5c, 0xffffffff, 0x00000000,
222 0x3e48, 0xffffffff, 0x00000000,
223 0x3e4c, 0xffffffff, 0x00000000,
224 0x3e64, 0xffffffff, 0x00000000,
225 0x3e50, 0xffffffff, 0x00000000,
226 0x3e60, 0xffffffff, 0x00000000
231 0x5eb4, 0xffffffff, 0x00000002,
232 0x5e78, 0x8f311ff1, 0x001000f0,
233 0x3f90, 0xffff0000, 0xff000000,
234 0x9148, 0xffff0000, 0xff000000,
235 0x3f94, 0xffff0000, 0xff000000,
236 0x914c, 0xffff0000, 0xff000000,
237 0xc78, 0x00000080, 0x00000080,
238 0xbd4, 0x70073777, 0x00011003,
239 0xd02c, 0xbfffff1f, 0x08421000,
240 0xd0b8, 0x73773777, 0x02011003,
241 0x5bc0, 0x00200000, 0x50100000,
242 0x98f8, 0x33773777, 0x02011003,
243 0x98fc, 0xffffffff, 0x76541032,
244 0x7030, 0x31000311, 0x00000011,
245 0x2f48, 0x33773777, 0x42010001,
246 0x6b28, 0x00000010, 0x00000012,
247 0x7728, 0x00000010, 0x00000012,
248 0x10328, 0x00000010, 0x00000012,
249 0x10f28, 0x00000010, 0x00000012,
250 0x11b28, 0x00000010, 0x00000012,
251 0x12728, 0x00000010, 0x00000012,
252 0x240c, 0x000007ff, 0x00000000,
253 0x8a14, 0xf000001f, 0x00000007,
254 0x8b24, 0x3fff3fff, 0x00ff0fff,
255 0x8b10, 0x0000ff0f, 0x00000000,
256 0x28a4c, 0x07ffffff, 0x06000000,
257 0x10c, 0x00000001, 0x00010003,
258 0xa02c, 0xffffffff, 0x0000009b,
259 0x913c, 0x0000010f, 0x01000100,
260 0x8c04, 0xf8ff00ff, 0x40600060,
261 0x28350, 0x00000f01, 0x00000000,
262 0x9508, 0x3700001f, 0x00000002,
263 0x960c, 0xffffffff, 0x54763210,
264 0x88c4, 0x001f3ae3, 0x00000082,
265 0x88d0, 0xffffffff, 0x0f40df40,
266 0x88d4, 0x0000001f, 0x00000010,
267 0x8974, 0xffffffff, 0x00000000
272 0x8f8, 0xffffffff, 0,
273 0x8fc, 0x00380000, 0,
274 0x8f8, 0xffffffff, 1,
275 0x8fc, 0x0e000000, 0
280 0x690, 0x3fff3fff, 0x20c00033,
281 0x918c, 0x0fff0fff, 0x00010006,
282 0x91a8, 0x0fff0fff, 0x00010006,
283 0x9150, 0xffffdfff, 0x6e944040,
284 0x917c, 0x0fff0fff, 0x00030002,
285 0x9198, 0x0fff0fff, 0x00030002,
286 0x915c, 0x0fff0fff, 0x00010000,
287 0x3f90, 0xffff0001, 0xff000000,
288 0x9178, 0x0fff0fff, 0x00070000,
289 0x9194, 0x0fff0fff, 0x00070000,
290 0x9148, 0xffff0001, 0xff000000,
291 0x9190, 0x0fff0fff, 0x00090008,
292 0x91ac, 0x0fff0fff, 0x00090008,
293 0x3f94, 0xffff0000, 0xff000000,
294 0x914c, 0xffff0000, 0xff000000,
295 0x929c, 0x00000fff, 0x00000001,
296 0x55e4, 0xff607fff, 0xfc000100,
297 0x8a18, 0xff000fff, 0x00000100,
298 0x8b28, 0xff000fff, 0x00000100,
299 0x9144, 0xfffc0fff, 0x00000100,
300 0x6ed8, 0x00010101, 0x00010000,
301 0x9830, 0xffffffff, 0x00000000,
302 0x9834, 0xf00fffff, 0x00000400,
303 0x9838, 0xfffffffe, 0x00000000,
304 0xd0c0, 0xff000fff, 0x00000100,
305 0xd02c, 0xbfffff1f, 0x08421000,
306 0xd0b8, 0x73773777, 0x12010001,
307 0x5bb0, 0x000000f0, 0x00000070,
308 0x98f8, 0x73773777, 0x12010001,
309 0x98fc, 0xffffffff, 0x00000010,
310 0x9b7c, 0x00ff0000, 0x00fc0000,
311 0x8030, 0x00001f0f, 0x0000100a,
312 0x2f48, 0x73773777, 0x12010001,
313 0x2408, 0x00030000, 0x000c007f,
314 0x8a14, 0xf000003f, 0x00000007,
315 0x8b24, 0x3fff3fff, 0x00ff0fff,
316 0x8b10, 0x0000ff0f, 0x00000000,
317 0x28a4c, 0x07ffffff, 0x06000000,
318 0x4d8, 0x00000fff, 0x00000100,
319 0xa008, 0xffffffff, 0x00010000,
320 0x913c, 0xffff03ff, 0x01000100,
321 0x8c00, 0x000000ff, 0x00000003,
322 0x8c04, 0xf8ff00ff, 0x40600060,
323 0x8cf0, 0x1fff1fff, 0x08e00410,
324 0x28350, 0x00000f01, 0x00000000,
325 0x9508, 0xf700071f, 0x00000002,
326 0x960c, 0xffffffff, 0x54763210,
327 0x20ef8, 0x01ff01ff, 0x00000002,
328 0x20e98, 0xfffffbff, 0x00200000,
329 0x2015c, 0xffffffff, 0x00000f40,
330 0x88c4, 0x001f3ae3, 0x00000082,
331 0x8978, 0x3fffffff, 0x04050140,
332 0x88d4, 0x0000001f, 0x00000010,
333 0x8974, 0xffffffff, 0x00000000
338 0x690, 0x3fff3fff, 0x20c00033,
339 0x918c, 0x0fff0fff, 0x00010006,
340 0x918c, 0x0fff0fff, 0x00010006,
341 0x91a8, 0x0fff0fff, 0x00010006,
342 0x91a8, 0x0fff0fff, 0x00010006,
343 0x9150, 0xffffdfff, 0x6e944040,
344 0x9150, 0xffffdfff, 0x6e944040,
345 0x917c, 0x0fff0fff, 0x00030002,
346 0x917c, 0x0fff0fff, 0x00030002,
347 0x9198, 0x0fff0fff, 0x00030002,
348 0x9198, 0x0fff0fff, 0x00030002,
349 0x915c, 0x0fff0fff, 0x00010000,
350 0x915c, 0x0fff0fff, 0x00010000,
351 0x3f90, 0xffff0001, 0xff000000,
352 0x3f90, 0xffff0001, 0xff000000,
353 0x9178, 0x0fff0fff, 0x00070000,
354 0x9178, 0x0fff0fff, 0x00070000,
355 0x9194, 0x0fff0fff, 0x00070000,
356 0x9194, 0x0fff0fff, 0x00070000,
357 0x9148, 0xffff0001, 0xff000000,
358 0x9148, 0xffff0001, 0xff000000,
359 0x9190, 0x0fff0fff, 0x00090008,
360 0x9190, 0x0fff0fff, 0x00090008,
361 0x91ac, 0x0fff0fff, 0x00090008,
362 0x91ac, 0x0fff0fff, 0x00090008,
363 0x3f94, 0xffff0000, 0xff000000,
364 0x3f94, 0xffff0000, 0xff000000,
365 0x914c, 0xffff0000, 0xff000000,
366 0x914c, 0xffff0000, 0xff000000,
367 0x929c, 0x00000fff, 0x00000001,
368 0x929c, 0x00000fff, 0x00000001,
369 0x55e4, 0xff607fff, 0xfc000100,
370 0x8a18, 0xff000fff, 0x00000100,
371 0x8a18, 0xff000fff, 0x00000100,
372 0x8b28, 0xff000fff, 0x00000100,
373 0x8b28, 0xff000fff, 0x00000100,
374 0x9144, 0xfffc0fff, 0x00000100,
375 0x9144, 0xfffc0fff, 0x00000100,
376 0x6ed8, 0x00010101, 0x00010000,
377 0x9830, 0xffffffff, 0x00000000,
378 0x9830, 0xffffffff, 0x00000000,
379 0x9834, 0xf00fffff, 0x00000400,
380 0x9834, 0xf00fffff, 0x00000400,
381 0x9838, 0xfffffffe, 0x00000000,
382 0x9838, 0xfffffffe, 0x00000000,
383 0xd0c0, 0xff000fff, 0x00000100,
384 0xd02c, 0xbfffff1f, 0x08421000,
385 0xd02c, 0xbfffff1f, 0x08421000,
386 0xd0b8, 0x73773777, 0x12010001,
387 0xd0b8, 0x73773777, 0x12010001,
388 0x5bb0, 0x000000f0, 0x00000070,
389 0x98f8, 0x73773777, 0x12010001,
390 0x98f8, 0x73773777, 0x12010001,
391 0x98fc, 0xffffffff, 0x00000010,
392 0x98fc, 0xffffffff, 0x00000010,
393 0x9b7c, 0x00ff0000, 0x00fc0000,
394 0x9b7c, 0x00ff0000, 0x00fc0000,
395 0x8030, 0x00001f0f, 0x0000100a,
396 0x8030, 0x00001f0f, 0x0000100a,
397 0x2f48, 0x73773777, 0x12010001,
398 0x2f48, 0x73773777, 0x12010001,
399 0x2408, 0x00030000, 0x000c007f,
400 0x8a14, 0xf000003f, 0x00000007,
401 0x8a14, 0xf000003f, 0x00000007,
402 0x8b24, 0x3fff3fff, 0x00ff0fff,
403 0x8b24, 0x3fff3fff, 0x00ff0fff,
404 0x8b10, 0x0000ff0f, 0x00000000,
405 0x8b10, 0x0000ff0f, 0x00000000,
406 0x28a4c, 0x07ffffff, 0x06000000,
407 0x28a4c, 0x07ffffff, 0x06000000,
408 0x4d8, 0x00000fff, 0x00000100,
409 0x4d8, 0x00000fff, 0x00000100,
410 0xa008, 0xffffffff, 0x00010000,
411 0xa008, 0xffffffff, 0x00010000,
412 0x913c, 0xffff03ff, 0x01000100,
413 0x913c, 0xffff03ff, 0x01000100,
414 0x90e8, 0x001fffff, 0x010400c0,
415 0x8c00, 0x000000ff, 0x00000003,
416 0x8c00, 0x000000ff, 0x00000003,
417 0x8c04, 0xf8ff00ff, 0x40600060,
418 0x8c04, 0xf8ff00ff, 0x40600060,
419 0x8c30, 0x0000000f, 0x00040005,
420 0x8cf0, 0x1fff1fff, 0x08e00410,
421 0x8cf0, 0x1fff1fff, 0x08e00410,
422 0x900c, 0x00ffffff, 0x0017071f,
423 0x28350, 0x00000f01, 0x00000000,
424 0x28350, 0x00000f01, 0x00000000,
425 0x9508, 0xf700071f, 0x00000002,
426 0x9508, 0xf700071f, 0x00000002,
427 0x9688, 0x00300000, 0x0017000f,
428 0x960c, 0xffffffff, 0x54763210,
429 0x960c, 0xffffffff, 0x54763210,
430 0x20ef8, 0x01ff01ff, 0x00000002,
431 0x20e98, 0xfffffbff, 0x00200000,
432 0x2015c, 0xffffffff, 0x00000f40,
433 0x88c4, 0x001f3ae3, 0x00000082,
434 0x88c4, 0x001f3ae3, 0x00000082,
435 0x8978, 0x3fffffff, 0x04050140,
436 0x8978, 0x3fffffff, 0x04050140,
437 0x88d4, 0x0000001f, 0x00000010,
438 0x88d4, 0x0000001f, 0x00000010,
439 0x8974, 0xffffffff, 0x00000000,
440 0x8974, 0xffffffff, 0x00000000
455 if ((rdev->pdev->device == 0x9900) || in ni_init_golden_registers()
456 (rdev->pdev->device == 0x9901) || in ni_init_golden_registers()
457 (rdev->pdev->device == 0x9903) || in ni_init_golden_registers()
458 (rdev->pdev->device == 0x9904) || in ni_init_golden_registers()
459 (rdev->pdev->device == 0x9905) || in ni_init_golden_registers()
460 (rdev->pdev->device == 0x9906) || in ni_init_golden_registers()
461 (rdev->pdev->device == 0x9907) || in ni_init_golden_registers()
462 (rdev->pdev->device == 0x9908) || in ni_init_golden_registers()
463 (rdev->pdev->device == 0x9909) || in ni_init_golden_registers()
464 (rdev->pdev->device == 0x990A) || in ni_init_golden_registers()
465 (rdev->pdev->device == 0x990B) || in ni_init_golden_registers()
466 (rdev->pdev->device == 0x990C) || in ni_init_golden_registers()
467 (rdev->pdev->device == 0x990D) || in ni_init_golden_registers()
468 (rdev->pdev->device == 0x990E) || in ni_init_golden_registers()
469 (rdev->pdev->device == 0x990F) || in ni_init_golden_registers()
470 (rdev->pdev->device == 0x9910) || in ni_init_golden_registers()
471 (rdev->pdev->device == 0x9913) || in ni_init_golden_registers()
472 (rdev->pdev->device == 0x9917) || in ni_init_golden_registers()
473 (rdev->pdev->device == 0x9918)) { in ni_init_golden_registers()
497 {0x00000077, 0xff010100},
498 {0x00000078, 0x00000000},
499 {0x00000079, 0x00001434},
500 {0x0000007a, 0xcc08ec08},
501 {0x0000007b, 0x00040000},
502 {0x0000007c, 0x000080c0},
503 {0x0000007d, 0x09000000},
504 {0x0000007e, 0x00210404},
505 {0x00000081, 0x08a8e800},
506 {0x00000082, 0x00030444},
507 {0x00000083, 0x00000000},
508 {0x00000085, 0x00000001},
509 {0x00000086, 0x00000002},
510 {0x00000087, 0x48490000},
511 {0x00000088, 0x20244647},
512 {0x00000089, 0x00000005},
513 {0x0000008b, 0x66030000},
514 {0x0000008c, 0x00006603},
515 {0x0000008d, 0x00000100},
516 {0x0000008f, 0x00001c0a},
517 {0x00000090, 0xff000001},
518 {0x00000094, 0x00101101},
519 {0x00000095, 0x00000fff},
520 {0x00000096, 0x00116fff},
521 {0x00000097, 0x60010000},
522 {0x00000098, 0x10010000},
523 {0x00000099, 0x00006000},
524 {0x0000009a, 0x00001000},
525 {0x0000009f, 0x00946a00}
529 {0x00000077, 0xff010100},
530 {0x00000078, 0x00000000},
531 {0x00000079, 0x00001434},
532 {0x0000007a, 0xcc08ec08},
533 {0x0000007b, 0x00040000},
534 {0x0000007c, 0x000080c0},
535 {0x0000007d, 0x09000000},
536 {0x0000007e, 0x00210404},
537 {0x00000081, 0x08a8e800},
538 {0x00000082, 0x00030444},
539 {0x00000083, 0x00000000},
540 {0x00000085, 0x00000001},
541 {0x00000086, 0x00000002},
542 {0x00000087, 0x48490000},
543 {0x00000088, 0x20244647},
544 {0x00000089, 0x00000005},
545 {0x0000008b, 0x66030000},
546 {0x0000008c, 0x00006603},
547 {0x0000008d, 0x00000100},
548 {0x0000008f, 0x00001c0a},
549 {0x00000090, 0xff000001},
550 {0x00000094, 0x00101101},
551 {0x00000095, 0x00000fff},
552 {0x00000096, 0x00116fff},
553 {0x00000097, 0x60010000},
554 {0x00000098, 0x10010000},
555 {0x00000099, 0x00006000},
556 {0x0000009a, 0x00001000},
557 {0x0000009f, 0x00936a00}
561 {0x00000077, 0xff010100},
562 {0x00000078, 0x00000000},
563 {0x00000079, 0x00001434},
564 {0x0000007a, 0xcc08ec08},
565 {0x0000007b, 0x00040000},
566 {0x0000007c, 0x000080c0},
567 {0x0000007d, 0x09000000},
568 {0x0000007e, 0x00210404},
569 {0x00000081, 0x08a8e800},
570 {0x00000082, 0x00030444},
571 {0x00000083, 0x00000000},
572 {0x00000085, 0x00000001},
573 {0x00000086, 0x00000002},
574 {0x00000087, 0x48490000},
575 {0x00000088, 0x20244647},
576 {0x00000089, 0x00000005},
577 {0x0000008b, 0x66030000},
578 {0x0000008c, 0x00006603},
579 {0x0000008d, 0x00000100},
580 {0x0000008f, 0x00001c0a},
581 {0x00000090, 0xff000001},
582 {0x00000094, 0x00101101},
583 {0x00000095, 0x00000fff},
584 {0x00000096, 0x00116fff},
585 {0x00000097, 0x60010000},
586 {0x00000098, 0x10010000},
587 {0x00000099, 0x00006000},
588 {0x0000009a, 0x00001000},
589 {0x0000009f, 0x00916a00}
593 {0x00000077, 0xff010100},
594 {0x00000078, 0x00000000},
595 {0x00000079, 0x00001434},
596 {0x0000007a, 0xcc08ec08},
597 {0x0000007b, 0x00040000},
598 {0x0000007c, 0x000080c0},
599 {0x0000007d, 0x09000000},
600 {0x0000007e, 0x00210404},
601 {0x00000081, 0x08a8e800},
602 {0x00000082, 0x00030444},
603 {0x00000083, 0x00000000},
604 {0x00000085, 0x00000001},
605 {0x00000086, 0x00000002},
606 {0x00000087, 0x48490000},
607 {0x00000088, 0x20244647},
608 {0x00000089, 0x00000005},
609 {0x0000008b, 0x66030000},
610 {0x0000008c, 0x00006603},
611 {0x0000008d, 0x00000100},
612 {0x0000008f, 0x00001c0a},
613 {0x00000090, 0xff000001},
614 {0x00000094, 0x00101101},
615 {0x00000095, 0x00000fff},
616 {0x00000096, 0x00116fff},
617 {0x00000097, 0x60010000},
618 {0x00000098, 0x10010000},
619 {0x00000099, 0x00006000},
620 {0x0000009a, 0x00001000},
621 {0x0000009f, 0x00976b00}
627 u32 mem_type, running, blackout = 0; in ni_mc_load_microcode()
661 if ((mem_type == MC_SEQ_MISC0_GDDR5_VALUE) && (running == 0)) { in ni_mc_load_microcode()
668 WREG32(MC_SEQ_SUP_CNTL, 0x00000008); in ni_mc_load_microcode()
669 WREG32(MC_SEQ_SUP_CNTL, 0x00000010); in ni_mc_load_microcode()
672 for (i = 0; i < regs_size; i++) { in ni_mc_load_microcode()
678 for (i = 0; i < ucode_size; i++) in ni_mc_load_microcode()
682 WREG32(MC_SEQ_SUP_CNTL, 0x00000008); in ni_mc_load_microcode()
683 WREG32(MC_SEQ_SUP_CNTL, 0x00000004); in ni_mc_load_microcode()
684 WREG32(MC_SEQ_SUP_CNTL, 0x00000001); in ni_mc_load_microcode()
687 for (i = 0; i < rdev->usec_timeout; i++) { in ni_mc_load_microcode()
697 return 0; in ni_mc_load_microcode()
705 size_t smc_req_size = 0; in ni_init_microcode()
755 mc_req_size = 0; in ni_init_microcode()
813 err = 0; in ni_init_microcode()
845 * Returns 0 for success or -EINVAL for an invalid register
861 return 0; in cayman_get_allowed_info_register()
869 u32 temp = RREG32_SMC(TN_CURRENT_GNB_TEMP) & 0x7ff; in tn_get_temp()
880 u32 gb_addr_config = 0; in cayman_gpu_init()
910 rdev->config.cayman.sc_prim_fifo_size = 0x100; in cayman_gpu_init()
911 rdev->config.cayman.sc_hiz_tile_fifo_size = 0x30; in cayman_gpu_init()
912 rdev->config.cayman.sc_earlyz_tile_fifo_size = 0x130; in cayman_gpu_init()
920 if ((rdev->pdev->device == 0x9900) || in cayman_gpu_init()
921 (rdev->pdev->device == 0x9901) || in cayman_gpu_init()
922 (rdev->pdev->device == 0x9905) || in cayman_gpu_init()
923 (rdev->pdev->device == 0x9906) || in cayman_gpu_init()
924 (rdev->pdev->device == 0x9907) || in cayman_gpu_init()
925 (rdev->pdev->device == 0x9908) || in cayman_gpu_init()
926 (rdev->pdev->device == 0x9909) || in cayman_gpu_init()
927 (rdev->pdev->device == 0x990B) || in cayman_gpu_init()
928 (rdev->pdev->device == 0x990C) || in cayman_gpu_init()
929 (rdev->pdev->device == 0x990F) || in cayman_gpu_init()
930 (rdev->pdev->device == 0x9910) || in cayman_gpu_init()
931 (rdev->pdev->device == 0x9917) || in cayman_gpu_init()
932 (rdev->pdev->device == 0x9999) || in cayman_gpu_init()
933 (rdev->pdev->device == 0x999C)) { in cayman_gpu_init()
940 } else if ((rdev->pdev->device == 0x9903) || in cayman_gpu_init()
941 (rdev->pdev->device == 0x9904) || in cayman_gpu_init()
942 (rdev->pdev->device == 0x990A) || in cayman_gpu_init()
943 (rdev->pdev->device == 0x990D) || in cayman_gpu_init()
944 (rdev->pdev->device == 0x990E) || in cayman_gpu_init()
945 (rdev->pdev->device == 0x9913) || in cayman_gpu_init()
946 (rdev->pdev->device == 0x9918) || in cayman_gpu_init()
947 (rdev->pdev->device == 0x999D)) { in cayman_gpu_init()
954 } else if ((rdev->pdev->device == 0x9919) || in cayman_gpu_init()
955 (rdev->pdev->device == 0x9990) || in cayman_gpu_init()
956 (rdev->pdev->device == 0x9991) || in cayman_gpu_init()
957 (rdev->pdev->device == 0x9994) || in cayman_gpu_init()
958 (rdev->pdev->device == 0x9995) || in cayman_gpu_init()
959 (rdev->pdev->device == 0x9996) || in cayman_gpu_init()
960 (rdev->pdev->device == 0x999A) || in cayman_gpu_init()
961 (rdev->pdev->device == 0x99A0)) { in cayman_gpu_init()
984 rdev->config.cayman.sc_prim_fifo_size = 0x40; in cayman_gpu_init()
985 rdev->config.cayman.sc_hiz_tile_fifo_size = 0x30; in cayman_gpu_init()
986 rdev->config.cayman.sc_earlyz_tile_fifo_size = 0x130; in cayman_gpu_init()
992 for (i = 0, j = 0; i < 32; i++, j += 0x18) { in cayman_gpu_init()
993 WREG32((0x2c14 + j), 0x00000000); in cayman_gpu_init()
994 WREG32((0x2c18 + j), 0x00000000); in cayman_gpu_init()
995 WREG32((0x2c1c + j), 0x00000000); in cayman_gpu_init()
996 WREG32((0x2c20 + j), 0x00000000); in cayman_gpu_init()
997 WREG32((0x2c24 + j), 0x00000000); in cayman_gpu_init()
1000 WREG32(GRBM_CNTL, GRBM_READ_TIMEOUT(0xff)); in cayman_gpu_init()
1001 WREG32(SRBM_INT_CNTL, 0x1); in cayman_gpu_init()
1002 WREG32(SRBM_INT_ACK, 0x1); in cayman_gpu_init()
1034 * bits 3:0 num_pipes in cayman_gpu_init()
1039 rdev->config.cayman.tile_config = 0; in cayman_gpu_init()
1043 rdev->config.cayman.tile_config |= (0 << 0); in cayman_gpu_init()
1046 rdev->config.cayman.tile_config |= (1 << 0); in cayman_gpu_init()
1049 rdev->config.cayman.tile_config |= (2 << 0); in cayman_gpu_init()
1052 rdev->config.cayman.tile_config |= (3 << 0); in cayman_gpu_init()
1056 /* num banks is 8 on all fusion asics. 0 = 4, 1 = 8, 2 = 16 */ in cayman_gpu_init()
1061 case 0: /* four banks */ in cayman_gpu_init()
1062 rdev->config.cayman.tile_config |= 0 << 4; in cayman_gpu_init()
1078 tmp = 0; in cayman_gpu_init()
1079 for (i = (rdev->config.cayman.max_shader_engines - 1); i >= 0; i--) { in cayman_gpu_init()
1084 rb_disable_bitmap = (RREG32(CC_RB_BACKEND_DISABLE) & 0x00ff0000) >> 16; in cayman_gpu_init()
1090 tmp = 0; in cayman_gpu_init()
1091 …for (i = 0; i < (rdev->config.cayman.max_backends_per_se * rdev->config.cayman.max_shader_engines)… in cayman_gpu_init()
1095 …for (i = 0; i < (rdev->config.cayman.max_backends_per_se * rdev->config.cayman.max_shader_engines)… in cayman_gpu_init()
1099 for (i = 0; i < rdev->config.cayman.max_shader_engines; i++) { in cayman_gpu_init()
1104 simd_disable_bitmap = (RREG32(CC_GC_SHADER_PIPE_CONFIG) & 0xffff0000) >> 16; in cayman_gpu_init()
1105 simd_disable_bitmap |= 0xffffffff << rdev->config.cayman.max_simds_per_se; in cayman_gpu_init()
1129 tmp = 0x00000000; in cayman_gpu_init()
1132 tmp = 0x11111111; in cayman_gpu_init()
1144 cgts_tcc_disable = 0xffff0000; in cayman_gpu_init()
1145 for (i = 0; i < rdev->config.cayman.max_texture_channel_caches; i++) in cayman_gpu_init()
1154 for (i = 0; i < 16; i++) in cayman_gpu_init()
1159 WREG32(CP_MEQ_THRESHOLDS, MEQ1_START(0x30) | MEQ2_START(0x60)); in cayman_gpu_init()
1166 smx_dc_ctl0 &= ~NUMBER_OF_SETS(0x1ff); in cayman_gpu_init()
1173 WREG32(VGT_OFFCHIP_LDS_BASE, 0); in cayman_gpu_init()
1174 WREG32(SQ_LSTMP_RING_BASE, 0); in cayman_gpu_init()
1175 WREG32(SQ_HSTMP_RING_BASE, 0); in cayman_gpu_init()
1176 WREG32(SQ_ESTMP_RING_BASE, 0); in cayman_gpu_init()
1177 WREG32(SQ_GSTMP_RING_BASE, 0); in cayman_gpu_init()
1178 WREG32(SQ_VSTMP_RING_BASE, 0); in cayman_gpu_init()
1179 WREG32(SQ_PSTMP_RING_BASE, 0); in cayman_gpu_init()
1194 WREG32(CP_PERFMON_CNTL, 0); in cayman_gpu_init()
1197 FETCH_FIFO_HIWATER(0x4) | in cayman_gpu_init()
1198 DONE_FIFO_HIWATER(0xe0) | in cayman_gpu_init()
1199 ALU_UPDATE_FIFO_HIWATER(0x8))); in cayman_gpu_init()
1204 GFX_PRIO(0) | in cayman_gpu_init()
1205 CS1_PRIO(0) | in cayman_gpu_init()
1216 WREG32(PA_SC_LINE_STIPPLE_STATE, 0); in cayman_gpu_init()
1218 WREG32(CB_PERF_CTR0_SEL_0, 0); in cayman_gpu_init()
1219 WREG32(CB_PERF_CTR0_SEL_1, 0); in cayman_gpu_init()
1220 WREG32(CB_PERF_CTR1_SEL_0, 0); in cayman_gpu_init()
1221 WREG32(CB_PERF_CTR1_SEL_1, 0); in cayman_gpu_init()
1222 WREG32(CB_PERF_CTR2_SEL_0, 0); in cayman_gpu_init()
1223 WREG32(CB_PERF_CTR2_SEL_1, 0); in cayman_gpu_init()
1224 WREG32(CB_PERF_CTR3_SEL_0, 0); in cayman_gpu_init()
1225 WREG32(CB_PERF_CTR3_SEL_1, 0); in cayman_gpu_init()
1241 tmp &= ~0x00380000; in cayman_gpu_init()
1244 tmp &= ~0x0e000000; in cayman_gpu_init()
1255 WREG32(HDP_MEM_COHERENCY_FLUSH_CNTL, 0x1); in cayman_pcie_gart_tlb_flush()
1257 /* bits 0-7 are the VM contexts0-7 */ in cayman_pcie_gart_tlb_flush()
1274 (0xA << 7) | in cayman_pcie_gart_enable()
1297 WREG32(VM_CONTEXT0_CNTL2, 0); in cayman_pcie_gart_enable()
1298 WREG32(VM_CONTEXT0_CNTL, ENABLE_CONTEXT | PAGE_TABLE_DEPTH(0) | in cayman_pcie_gart_enable()
1301 WREG32(0x15D4, 0); in cayman_pcie_gart_enable()
1302 WREG32(0x15D8, 0); in cayman_pcie_gart_enable()
1303 WREG32(0x15DC, 0); in cayman_pcie_gart_enable()
1311 WREG32(VM_CONTEXT0_PAGE_TABLE_START_ADDR + (i << 2), 0); in cayman_pcie_gart_enable()
1338 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n", in cayman_pcie_gart_enable()
1342 return 0; in cayman_pcie_gart_enable()
1355 WREG32(VM_CONTEXT0_CNTL, 0); in cayman_pcie_gart_disable()
1356 WREG32(VM_CONTEXT1_CNTL, 0); in cayman_pcie_gart_disable()
1366 WREG32(VM_L2_CNTL2, 0); in cayman_pcie_gart_disable()
1400 radeon_ring_write(ring, 0xFFFFFFFF); in cayman_fence_ring_emit()
1401 radeon_ring_write(ring, 0); in cayman_fence_ring_emit()
1407 radeon_ring_write(ring, (upper_32_bits(addr) & 0xff) | DATA_SEL(1) | INT_SEL(2)); in cayman_fence_ring_emit()
1409 radeon_ring_write(ring, 0); in cayman_fence_ring_emit()
1415 unsigned vm_id = ib->vm ? ib->vm->ids[ib->ring].id : 0; in cayman_ring_ib_execute()
1420 radeon_ring_write(ring, PACKET3(PACKET3_MODE_CONTROL, 0)); in cayman_ring_ib_execute()
1434 (2 << 0) | in cayman_ring_ib_execute()
1436 (ib->gpu_addr & 0xFFFFFFFC)); in cayman_ring_ib_execute()
1437 radeon_ring_write(ring, upper_32_bits(ib->gpu_addr) & 0xFF); in cayman_ring_ib_execute()
1443 radeon_ring_write(ring, 0xFFFFFFFF); in cayman_ring_ib_execute()
1444 radeon_ring_write(ring, 0); in cayman_ring_ib_execute()
1451 WREG32(CP_ME_CNTL, 0); in cayman_cp_enable()
1456 WREG32(SCRATCH_UMSK, 0); in cayman_cp_enable()
1521 WREG32(CP_PFP_UCODE_ADDR, 0); in cayman_cp_load_microcode()
1522 for (i = 0; i < CAYMAN_PFP_UCODE_SIZE; i++) in cayman_cp_load_microcode()
1524 WREG32(CP_PFP_UCODE_ADDR, 0); in cayman_cp_load_microcode()
1527 WREG32(CP_ME_RAM_WADDR, 0); in cayman_cp_load_microcode()
1528 for (i = 0; i < CAYMAN_PM4_UCODE_SIZE; i++) in cayman_cp_load_microcode()
1531 WREG32(CP_PFP_UCODE_ADDR, 0); in cayman_cp_load_microcode()
1532 WREG32(CP_ME_RAM_WADDR, 0); in cayman_cp_load_microcode()
1533 WREG32(CP_ME_RAM_RADDR, 0); in cayman_cp_load_microcode()
1534 return 0; in cayman_cp_load_microcode()
1548 radeon_ring_write(ring, 0x1); in cayman_cp_start()
1549 radeon_ring_write(ring, 0x0); in cayman_cp_start()
1552 radeon_ring_write(ring, 0); in cayman_cp_start()
1553 radeon_ring_write(ring, 0); in cayman_cp_start()
1565 radeon_ring_write(ring, PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in cayman_cp_start()
1568 for (i = 0; i < cayman_default_size; i++) in cayman_cp_start()
1571 radeon_ring_write(ring, PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in cayman_cp_start()
1575 radeon_ring_write(ring, PACKET3(PACKET3_CLEAR_STATE, 0)); in cayman_cp_start()
1576 radeon_ring_write(ring, 0); in cayman_cp_start()
1579 radeon_ring_write(ring, 0xc0026f00); in cayman_cp_start()
1580 radeon_ring_write(ring, 0x00000000); in cayman_cp_start()
1581 radeon_ring_write(ring, 0x00000000); in cayman_cp_start()
1582 radeon_ring_write(ring, 0x00000000); in cayman_cp_start()
1585 radeon_ring_write(ring, 0xc0036f00); in cayman_cp_start()
1586 radeon_ring_write(ring, 0x00000bc4); in cayman_cp_start()
1587 radeon_ring_write(ring, 0xffffffff); in cayman_cp_start()
1588 radeon_ring_write(ring, 0xffffffff); in cayman_cp_start()
1589 radeon_ring_write(ring, 0xffffffff); in cayman_cp_start()
1591 radeon_ring_write(ring, 0xc0026900); in cayman_cp_start()
1592 radeon_ring_write(ring, 0x00000316); in cayman_cp_start()
1593 radeon_ring_write(ring, 0x0000000e); /* VGT_VERTEX_REUSE_BLOCK_CNTL */ in cayman_cp_start()
1594 radeon_ring_write(ring, 0x00000010); /* */ in cayman_cp_start()
1600 return 0; in cayman_cp_start()
1660 WREG32(GRBM_SOFT_RESET, 0); in cayman_cp_resume()
1663 WREG32(CP_SEM_WAIT_TIMER, 0x0); in cayman_cp_resume()
1664 WREG32(CP_SEM_INCOMPLETE_TIMER_CNTL, 0x0); in cayman_cp_resume()
1667 WREG32(CP_RB_WPTR_DELAY, 0); in cayman_cp_resume()
1672 WREG32(SCRATCH_ADDR, ((rdev->wb.gpu_addr + RADEON_WB_SCRATCH_OFFSET) >> 8) & 0xFFFFFFFF); in cayman_cp_resume()
1673 WREG32(SCRATCH_UMSK, 0xff); in cayman_cp_resume()
1675 for (i = 0; i < 3; ++i) { in cayman_cp_resume()
1690 WREG32(cp_rb_rptr_addr[i], addr & 0xFFFFFFFC); in cayman_cp_resume()
1691 WREG32(cp_rb_rptr_addr_hi[i], upper_32_bits(addr) & 0xFF); in cayman_cp_resume()
1695 for (i = 0; i < 3; ++i) { in cayman_cp_resume()
1700 for (i = 0; i < 3; ++i) { in cayman_cp_resume()
1705 ring->wptr = 0; in cayman_cp_resume()
1706 WREG32(cp_rb_rptr[i], 0); in cayman_cp_resume()
1710 WREG32_P(cp_rb_cntl[i], 0, ~RB_RPTR_WR_ENA); in cayman_cp_resume()
1730 return 0; in cayman_cp_resume()
1735 u32 reset_mask = 0; in cayman_gpu_check_soft_reset()
1755 /* DMA_STATUS_REG 0 */ in cayman_gpu_check_soft_reset()
1804 DRM_DEBUG("MC busy: 0x%08X, clearing.\n", reset_mask); in cayman_gpu_check_soft_reset()
1814 u32 grbm_soft_reset = 0, srbm_soft_reset = 0; in cayman_gpu_soft_reset()
1817 if (reset_mask == 0) in cayman_gpu_soft_reset()
1820 dev_info(rdev->dev, "GPU softreset: 0x%08X\n", reset_mask); in cayman_gpu_soft_reset()
1823 dev_info(rdev->dev, " VM_CONTEXT0_PROTECTION_FAULT_ADDR 0x%08X\n", in cayman_gpu_soft_reset()
1824 RREG32(0x14F8)); in cayman_gpu_soft_reset()
1825 dev_info(rdev->dev, " VM_CONTEXT0_PROTECTION_FAULT_STATUS 0x%08X\n", in cayman_gpu_soft_reset()
1826 RREG32(0x14D8)); in cayman_gpu_soft_reset()
1827 dev_info(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x%08X\n", in cayman_gpu_soft_reset()
1828 RREG32(0x14FC)); in cayman_gpu_soft_reset()
1829 dev_info(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x%08X\n", in cayman_gpu_soft_reset()
1830 RREG32(0x14DC)); in cayman_gpu_soft_reset()
1909 dev_info(rdev->dev, "GRBM_SOFT_RESET=0x%08X\n", tmp); in cayman_gpu_soft_reset()
1923 dev_info(rdev->dev, "SRBM_SOFT_RESET=0x%08X\n", tmp); in cayman_gpu_soft_reset()
1949 return 0; in cayman_asic_reset()
1966 return 0; in cayman_asic_reset()
2034 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; in cayman_uvd_start()
2046 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); in cayman_uvd_resume()
2114 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size = 0; in cayman_vce_start()
2115 rdev->ring[TN_RING_TYPE_VCE2_INDEX].ring_size = 0; in cayman_vce_start()
2127 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0); in cayman_vce_resume()
2133 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0); in cayman_vce_resume()
2248 DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0)); in cayman_startup()
2254 DMA_PACKET(DMA_PACKET_NOP, 0, 0, 0)); in cayman_startup()
2288 return 0; in cayman_startup()
2332 return 0; in cayman_suspend()
2459 return 0; in cayman_init()
2501 rdev->vm_manager.vram_base_offset = 0; in cayman_vm_init()
2502 return 0; in cayman_vm_init()
2664 printk("VM fault (0x%02x, vmid %d) at page %u, %s from %s (%d)\n", in cayman_vm_decode_fault()
2679 radeon_ring_write(ring, PACKET0(VM_CONTEXT0_PAGE_TABLE_BASE_ADDR + (vm_id << 2), 0)); in cayman_vm_flush()
2683 radeon_ring_write(ring, PACKET0(HDP_MEM_COHERENCY_FLUSH_CNTL, 0)); in cayman_vm_flush()
2684 radeon_ring_write(ring, 0x1); in cayman_vm_flush()
2686 /* bits 0-7 are the VM contexts0-7 */ in cayman_vm_flush()
2687 radeon_ring_write(ring, PACKET0(VM_INVALIDATE_REQUEST, 0)); in cayman_vm_flush()
2692 radeon_ring_write(ring, (WAIT_REG_MEM_FUNCTION(0) | /* always */ in cayman_vm_flush()
2693 WAIT_REG_MEM_ENGINE(0))); /* me */ in cayman_vm_flush()
2695 radeon_ring_write(ring, 0); in cayman_vm_flush()
2696 radeon_ring_write(ring, 0); /* ref */ in cayman_vm_flush()
2697 radeon_ring_write(ring, 0); /* mask */ in cayman_vm_flush()
2698 radeon_ring_write(ring, 0x20); /* poll interval */ in cayman_vm_flush()
2701 radeon_ring_write(ring, PACKET3(PACKET3_PFP_SYNC_ME, 0)); in cayman_vm_flush()
2702 radeon_ring_write(ring, 0x0); in cayman_vm_flush()
2715 for (i = 0; i < 100; i++) { in tn_set_vce_clocks()
2725 for (i = 0; i < 100; i++) { in tn_set_vce_clocks()
2733 return 0; in tn_set_vce_clocks()