Lines Matching +full:0 +full:x00000072
159 * Returns 0 for success or -EINVAL for an invalid register
179 return 0; in cik_get_allowed_info_register()
214 int actual_temp = 0; in ci_get_temp()
219 if (temp & 0x200) in ci_get_temp()
222 actual_temp = temp & 0x1ff; in ci_get_temp()
231 int actual_temp = 0; in kv_get_temp()
233 temp = RREG32_SMC(0xC0300E0C); in kv_get_temp()
238 actual_temp = 0; in kv_get_temp()
273 (0x0e00 << 16) | (0xc12c >> 2),
274 0x00000000,
275 (0x0e00 << 16) | (0xc140 >> 2),
276 0x00000000,
277 (0x0e00 << 16) | (0xc150 >> 2),
278 0x00000000,
279 (0x0e00 << 16) | (0xc15c >> 2),
280 0x00000000,
281 (0x0e00 << 16) | (0xc168 >> 2),
282 0x00000000,
283 (0x0e00 << 16) | (0xc170 >> 2),
284 0x00000000,
285 (0x0e00 << 16) | (0xc178 >> 2),
286 0x00000000,
287 (0x0e00 << 16) | (0xc204 >> 2),
288 0x00000000,
289 (0x0e00 << 16) | (0xc2b4 >> 2),
290 0x00000000,
291 (0x0e00 << 16) | (0xc2b8 >> 2),
292 0x00000000,
293 (0x0e00 << 16) | (0xc2bc >> 2),
294 0x00000000,
295 (0x0e00 << 16) | (0xc2c0 >> 2),
296 0x00000000,
297 (0x0e00 << 16) | (0x8228 >> 2),
298 0x00000000,
299 (0x0e00 << 16) | (0x829c >> 2),
300 0x00000000,
301 (0x0e00 << 16) | (0x869c >> 2),
302 0x00000000,
303 (0x0600 << 16) | (0x98f4 >> 2),
304 0x00000000,
305 (0x0e00 << 16) | (0x98f8 >> 2),
306 0x00000000,
307 (0x0e00 << 16) | (0x9900 >> 2),
308 0x00000000,
309 (0x0e00 << 16) | (0xc260 >> 2),
310 0x00000000,
311 (0x0e00 << 16) | (0x90e8 >> 2),
312 0x00000000,
313 (0x0e00 << 16) | (0x3c000 >> 2),
314 0x00000000,
315 (0x0e00 << 16) | (0x3c00c >> 2),
316 0x00000000,
317 (0x0e00 << 16) | (0x8c1c >> 2),
318 0x00000000,
319 (0x0e00 << 16) | (0x9700 >> 2),
320 0x00000000,
321 (0x0e00 << 16) | (0xcd20 >> 2),
322 0x00000000,
323 (0x4e00 << 16) | (0xcd20 >> 2),
324 0x00000000,
325 (0x5e00 << 16) | (0xcd20 >> 2),
326 0x00000000,
327 (0x6e00 << 16) | (0xcd20 >> 2),
328 0x00000000,
329 (0x7e00 << 16) | (0xcd20 >> 2),
330 0x00000000,
331 (0x8e00 << 16) | (0xcd20 >> 2),
332 0x00000000,
333 (0x9e00 << 16) | (0xcd20 >> 2),
334 0x00000000,
335 (0xae00 << 16) | (0xcd20 >> 2),
336 0x00000000,
337 (0xbe00 << 16) | (0xcd20 >> 2),
338 0x00000000,
339 (0x0e00 << 16) | (0x89bc >> 2),
340 0x00000000,
341 (0x0e00 << 16) | (0x8900 >> 2),
342 0x00000000,
343 0x3,
344 (0x0e00 << 16) | (0xc130 >> 2),
345 0x00000000,
346 (0x0e00 << 16) | (0xc134 >> 2),
347 0x00000000,
348 (0x0e00 << 16) | (0xc1fc >> 2),
349 0x00000000,
350 (0x0e00 << 16) | (0xc208 >> 2),
351 0x00000000,
352 (0x0e00 << 16) | (0xc264 >> 2),
353 0x00000000,
354 (0x0e00 << 16) | (0xc268 >> 2),
355 0x00000000,
356 (0x0e00 << 16) | (0xc26c >> 2),
357 0x00000000,
358 (0x0e00 << 16) | (0xc270 >> 2),
359 0x00000000,
360 (0x0e00 << 16) | (0xc274 >> 2),
361 0x00000000,
362 (0x0e00 << 16) | (0xc278 >> 2),
363 0x00000000,
364 (0x0e00 << 16) | (0xc27c >> 2),
365 0x00000000,
366 (0x0e00 << 16) | (0xc280 >> 2),
367 0x00000000,
368 (0x0e00 << 16) | (0xc284 >> 2),
369 0x00000000,
370 (0x0e00 << 16) | (0xc288 >> 2),
371 0x00000000,
372 (0x0e00 << 16) | (0xc28c >> 2),
373 0x00000000,
374 (0x0e00 << 16) | (0xc290 >> 2),
375 0x00000000,
376 (0x0e00 << 16) | (0xc294 >> 2),
377 0x00000000,
378 (0x0e00 << 16) | (0xc298 >> 2),
379 0x00000000,
380 (0x0e00 << 16) | (0xc29c >> 2),
381 0x00000000,
382 (0x0e00 << 16) | (0xc2a0 >> 2),
383 0x00000000,
384 (0x0e00 << 16) | (0xc2a4 >> 2),
385 0x00000000,
386 (0x0e00 << 16) | (0xc2a8 >> 2),
387 0x00000000,
388 (0x0e00 << 16) | (0xc2ac >> 2),
389 0x00000000,
390 (0x0e00 << 16) | (0xc2b0 >> 2),
391 0x00000000,
392 (0x0e00 << 16) | (0x301d0 >> 2),
393 0x00000000,
394 (0x0e00 << 16) | (0x30238 >> 2),
395 0x00000000,
396 (0x0e00 << 16) | (0x30250 >> 2),
397 0x00000000,
398 (0x0e00 << 16) | (0x30254 >> 2),
399 0x00000000,
400 (0x0e00 << 16) | (0x30258 >> 2),
401 0x00000000,
402 (0x0e00 << 16) | (0x3025c >> 2),
403 0x00000000,
404 (0x4e00 << 16) | (0xc900 >> 2),
405 0x00000000,
406 (0x5e00 << 16) | (0xc900 >> 2),
407 0x00000000,
408 (0x6e00 << 16) | (0xc900 >> 2),
409 0x00000000,
410 (0x7e00 << 16) | (0xc900 >> 2),
411 0x00000000,
412 (0x8e00 << 16) | (0xc900 >> 2),
413 0x00000000,
414 (0x9e00 << 16) | (0xc900 >> 2),
415 0x00000000,
416 (0xae00 << 16) | (0xc900 >> 2),
417 0x00000000,
418 (0xbe00 << 16) | (0xc900 >> 2),
419 0x00000000,
420 (0x4e00 << 16) | (0xc904 >> 2),
421 0x00000000,
422 (0x5e00 << 16) | (0xc904 >> 2),
423 0x00000000,
424 (0x6e00 << 16) | (0xc904 >> 2),
425 0x00000000,
426 (0x7e00 << 16) | (0xc904 >> 2),
427 0x00000000,
428 (0x8e00 << 16) | (0xc904 >> 2),
429 0x00000000,
430 (0x9e00 << 16) | (0xc904 >> 2),
431 0x00000000,
432 (0xae00 << 16) | (0xc904 >> 2),
433 0x00000000,
434 (0xbe00 << 16) | (0xc904 >> 2),
435 0x00000000,
436 (0x4e00 << 16) | (0xc908 >> 2),
437 0x00000000,
438 (0x5e00 << 16) | (0xc908 >> 2),
439 0x00000000,
440 (0x6e00 << 16) | (0xc908 >> 2),
441 0x00000000,
442 (0x7e00 << 16) | (0xc908 >> 2),
443 0x00000000,
444 (0x8e00 << 16) | (0xc908 >> 2),
445 0x00000000,
446 (0x9e00 << 16) | (0xc908 >> 2),
447 0x00000000,
448 (0xae00 << 16) | (0xc908 >> 2),
449 0x00000000,
450 (0xbe00 << 16) | (0xc908 >> 2),
451 0x00000000,
452 (0x4e00 << 16) | (0xc90c >> 2),
453 0x00000000,
454 (0x5e00 << 16) | (0xc90c >> 2),
455 0x00000000,
456 (0x6e00 << 16) | (0xc90c >> 2),
457 0x00000000,
458 (0x7e00 << 16) | (0xc90c >> 2),
459 0x00000000,
460 (0x8e00 << 16) | (0xc90c >> 2),
461 0x00000000,
462 (0x9e00 << 16) | (0xc90c >> 2),
463 0x00000000,
464 (0xae00 << 16) | (0xc90c >> 2),
465 0x00000000,
466 (0xbe00 << 16) | (0xc90c >> 2),
467 0x00000000,
468 (0x4e00 << 16) | (0xc910 >> 2),
469 0x00000000,
470 (0x5e00 << 16) | (0xc910 >> 2),
471 0x00000000,
472 (0x6e00 << 16) | (0xc910 >> 2),
473 0x00000000,
474 (0x7e00 << 16) | (0xc910 >> 2),
475 0x00000000,
476 (0x8e00 << 16) | (0xc910 >> 2),
477 0x00000000,
478 (0x9e00 << 16) | (0xc910 >> 2),
479 0x00000000,
480 (0xae00 << 16) | (0xc910 >> 2),
481 0x00000000,
482 (0xbe00 << 16) | (0xc910 >> 2),
483 0x00000000,
484 (0x0e00 << 16) | (0xc99c >> 2),
485 0x00000000,
486 (0x0e00 << 16) | (0x9834 >> 2),
487 0x00000000,
488 (0x0000 << 16) | (0x30f00 >> 2),
489 0x00000000,
490 (0x0001 << 16) | (0x30f00 >> 2),
491 0x00000000,
492 (0x0000 << 16) | (0x30f04 >> 2),
493 0x00000000,
494 (0x0001 << 16) | (0x30f04 >> 2),
495 0x00000000,
496 (0x0000 << 16) | (0x30f08 >> 2),
497 0x00000000,
498 (0x0001 << 16) | (0x30f08 >> 2),
499 0x00000000,
500 (0x0000 << 16) | (0x30f0c >> 2),
501 0x00000000,
502 (0x0001 << 16) | (0x30f0c >> 2),
503 0x00000000,
504 (0x0600 << 16) | (0x9b7c >> 2),
505 0x00000000,
506 (0x0e00 << 16) | (0x8a14 >> 2),
507 0x00000000,
508 (0x0e00 << 16) | (0x8a18 >> 2),
509 0x00000000,
510 (0x0600 << 16) | (0x30a00 >> 2),
511 0x00000000,
512 (0x0e00 << 16) | (0x8bf0 >> 2),
513 0x00000000,
514 (0x0e00 << 16) | (0x8bcc >> 2),
515 0x00000000,
516 (0x0e00 << 16) | (0x8b24 >> 2),
517 0x00000000,
518 (0x0e00 << 16) | (0x30a04 >> 2),
519 0x00000000,
520 (0x0600 << 16) | (0x30a10 >> 2),
521 0x00000000,
522 (0x0600 << 16) | (0x30a14 >> 2),
523 0x00000000,
524 (0x0600 << 16) | (0x30a18 >> 2),
525 0x00000000,
526 (0x0600 << 16) | (0x30a2c >> 2),
527 0x00000000,
528 (0x0e00 << 16) | (0xc700 >> 2),
529 0x00000000,
530 (0x0e00 << 16) | (0xc704 >> 2),
531 0x00000000,
532 (0x0e00 << 16) | (0xc708 >> 2),
533 0x00000000,
534 (0x0e00 << 16) | (0xc768 >> 2),
535 0x00000000,
536 (0x0400 << 16) | (0xc770 >> 2),
537 0x00000000,
538 (0x0400 << 16) | (0xc774 >> 2),
539 0x00000000,
540 (0x0400 << 16) | (0xc778 >> 2),
541 0x00000000,
542 (0x0400 << 16) | (0xc77c >> 2),
543 0x00000000,
544 (0x0400 << 16) | (0xc780 >> 2),
545 0x00000000,
546 (0x0400 << 16) | (0xc784 >> 2),
547 0x00000000,
548 (0x0400 << 16) | (0xc788 >> 2),
549 0x00000000,
550 (0x0400 << 16) | (0xc78c >> 2),
551 0x00000000,
552 (0x0400 << 16) | (0xc798 >> 2),
553 0x00000000,
554 (0x0400 << 16) | (0xc79c >> 2),
555 0x00000000,
556 (0x0400 << 16) | (0xc7a0 >> 2),
557 0x00000000,
558 (0x0400 << 16) | (0xc7a4 >> 2),
559 0x00000000,
560 (0x0400 << 16) | (0xc7a8 >> 2),
561 0x00000000,
562 (0x0400 << 16) | (0xc7ac >> 2),
563 0x00000000,
564 (0x0400 << 16) | (0xc7b0 >> 2),
565 0x00000000,
566 (0x0400 << 16) | (0xc7b4 >> 2),
567 0x00000000,
568 (0x0e00 << 16) | (0x9100 >> 2),
569 0x00000000,
570 (0x0e00 << 16) | (0x3c010 >> 2),
571 0x00000000,
572 (0x0e00 << 16) | (0x92a8 >> 2),
573 0x00000000,
574 (0x0e00 << 16) | (0x92ac >> 2),
575 0x00000000,
576 (0x0e00 << 16) | (0x92b4 >> 2),
577 0x00000000,
578 (0x0e00 << 16) | (0x92b8 >> 2),
579 0x00000000,
580 (0x0e00 << 16) | (0x92bc >> 2),
581 0x00000000,
582 (0x0e00 << 16) | (0x92c0 >> 2),
583 0x00000000,
584 (0x0e00 << 16) | (0x92c4 >> 2),
585 0x00000000,
586 (0x0e00 << 16) | (0x92c8 >> 2),
587 0x00000000,
588 (0x0e00 << 16) | (0x92cc >> 2),
589 0x00000000,
590 (0x0e00 << 16) | (0x92d0 >> 2),
591 0x00000000,
592 (0x0e00 << 16) | (0x8c00 >> 2),
593 0x00000000,
594 (0x0e00 << 16) | (0x8c04 >> 2),
595 0x00000000,
596 (0x0e00 << 16) | (0x8c20 >> 2),
597 0x00000000,
598 (0x0e00 << 16) | (0x8c38 >> 2),
599 0x00000000,
600 (0x0e00 << 16) | (0x8c3c >> 2),
601 0x00000000,
602 (0x0e00 << 16) | (0xae00 >> 2),
603 0x00000000,
604 (0x0e00 << 16) | (0x9604 >> 2),
605 0x00000000,
606 (0x0e00 << 16) | (0xac08 >> 2),
607 0x00000000,
608 (0x0e00 << 16) | (0xac0c >> 2),
609 0x00000000,
610 (0x0e00 << 16) | (0xac10 >> 2),
611 0x00000000,
612 (0x0e00 << 16) | (0xac14 >> 2),
613 0x00000000,
614 (0x0e00 << 16) | (0xac58 >> 2),
615 0x00000000,
616 (0x0e00 << 16) | (0xac68 >> 2),
617 0x00000000,
618 (0x0e00 << 16) | (0xac6c >> 2),
619 0x00000000,
620 (0x0e00 << 16) | (0xac70 >> 2),
621 0x00000000,
622 (0x0e00 << 16) | (0xac74 >> 2),
623 0x00000000,
624 (0x0e00 << 16) | (0xac78 >> 2),
625 0x00000000,
626 (0x0e00 << 16) | (0xac7c >> 2),
627 0x00000000,
628 (0x0e00 << 16) | (0xac80 >> 2),
629 0x00000000,
630 (0x0e00 << 16) | (0xac84 >> 2),
631 0x00000000,
632 (0x0e00 << 16) | (0xac88 >> 2),
633 0x00000000,
634 (0x0e00 << 16) | (0xac8c >> 2),
635 0x00000000,
636 (0x0e00 << 16) | (0x970c >> 2),
637 0x00000000,
638 (0x0e00 << 16) | (0x9714 >> 2),
639 0x00000000,
640 (0x0e00 << 16) | (0x9718 >> 2),
641 0x00000000,
642 (0x0e00 << 16) | (0x971c >> 2),
643 0x00000000,
644 (0x0e00 << 16) | (0x31068 >> 2),
645 0x00000000,
646 (0x4e00 << 16) | (0x31068 >> 2),
647 0x00000000,
648 (0x5e00 << 16) | (0x31068 >> 2),
649 0x00000000,
650 (0x6e00 << 16) | (0x31068 >> 2),
651 0x00000000,
652 (0x7e00 << 16) | (0x31068 >> 2),
653 0x00000000,
654 (0x8e00 << 16) | (0x31068 >> 2),
655 0x00000000,
656 (0x9e00 << 16) | (0x31068 >> 2),
657 0x00000000,
658 (0xae00 << 16) | (0x31068 >> 2),
659 0x00000000,
660 (0xbe00 << 16) | (0x31068 >> 2),
661 0x00000000,
662 (0x0e00 << 16) | (0xcd10 >> 2),
663 0x00000000,
664 (0x0e00 << 16) | (0xcd14 >> 2),
665 0x00000000,
666 (0x0e00 << 16) | (0x88b0 >> 2),
667 0x00000000,
668 (0x0e00 << 16) | (0x88b4 >> 2),
669 0x00000000,
670 (0x0e00 << 16) | (0x88b8 >> 2),
671 0x00000000,
672 (0x0e00 << 16) | (0x88bc >> 2),
673 0x00000000,
674 (0x0400 << 16) | (0x89c0 >> 2),
675 0x00000000,
676 (0x0e00 << 16) | (0x88c4 >> 2),
677 0x00000000,
678 (0x0e00 << 16) | (0x88c8 >> 2),
679 0x00000000,
680 (0x0e00 << 16) | (0x88d0 >> 2),
681 0x00000000,
682 (0x0e00 << 16) | (0x88d4 >> 2),
683 0x00000000,
684 (0x0e00 << 16) | (0x88d8 >> 2),
685 0x00000000,
686 (0x0e00 << 16) | (0x8980 >> 2),
687 0x00000000,
688 (0x0e00 << 16) | (0x30938 >> 2),
689 0x00000000,
690 (0x0e00 << 16) | (0x3093c >> 2),
691 0x00000000,
692 (0x0e00 << 16) | (0x30940 >> 2),
693 0x00000000,
694 (0x0e00 << 16) | (0x89a0 >> 2),
695 0x00000000,
696 (0x0e00 << 16) | (0x30900 >> 2),
697 0x00000000,
698 (0x0e00 << 16) | (0x30904 >> 2),
699 0x00000000,
700 (0x0e00 << 16) | (0x89b4 >> 2),
701 0x00000000,
702 (0x0e00 << 16) | (0x3c210 >> 2),
703 0x00000000,
704 (0x0e00 << 16) | (0x3c214 >> 2),
705 0x00000000,
706 (0x0e00 << 16) | (0x3c218 >> 2),
707 0x00000000,
708 (0x0e00 << 16) | (0x8904 >> 2),
709 0x00000000,
710 0x5,
711 (0x0e00 << 16) | (0x8c28 >> 2),
712 (0x0e00 << 16) | (0x8c2c >> 2),
713 (0x0e00 << 16) | (0x8c30 >> 2),
714 (0x0e00 << 16) | (0x8c34 >> 2),
715 (0x0e00 << 16) | (0x9600 >> 2),
720 (0x0e00 << 16) | (0xc12c >> 2),
721 0x00000000,
722 (0x0e00 << 16) | (0xc140 >> 2),
723 0x00000000,
724 (0x0e00 << 16) | (0xc150 >> 2),
725 0x00000000,
726 (0x0e00 << 16) | (0xc15c >> 2),
727 0x00000000,
728 (0x0e00 << 16) | (0xc168 >> 2),
729 0x00000000,
730 (0x0e00 << 16) | (0xc170 >> 2),
731 0x00000000,
732 (0x0e00 << 16) | (0xc204 >> 2),
733 0x00000000,
734 (0x0e00 << 16) | (0xc2b4 >> 2),
735 0x00000000,
736 (0x0e00 << 16) | (0xc2b8 >> 2),
737 0x00000000,
738 (0x0e00 << 16) | (0xc2bc >> 2),
739 0x00000000,
740 (0x0e00 << 16) | (0xc2c0 >> 2),
741 0x00000000,
742 (0x0e00 << 16) | (0x8228 >> 2),
743 0x00000000,
744 (0x0e00 << 16) | (0x829c >> 2),
745 0x00000000,
746 (0x0e00 << 16) | (0x869c >> 2),
747 0x00000000,
748 (0x0600 << 16) | (0x98f4 >> 2),
749 0x00000000,
750 (0x0e00 << 16) | (0x98f8 >> 2),
751 0x00000000,
752 (0x0e00 << 16) | (0x9900 >> 2),
753 0x00000000,
754 (0x0e00 << 16) | (0xc260 >> 2),
755 0x00000000,
756 (0x0e00 << 16) | (0x90e8 >> 2),
757 0x00000000,
758 (0x0e00 << 16) | (0x3c000 >> 2),
759 0x00000000,
760 (0x0e00 << 16) | (0x3c00c >> 2),
761 0x00000000,
762 (0x0e00 << 16) | (0x8c1c >> 2),
763 0x00000000,
764 (0x0e00 << 16) | (0x9700 >> 2),
765 0x00000000,
766 (0x0e00 << 16) | (0xcd20 >> 2),
767 0x00000000,
768 (0x4e00 << 16) | (0xcd20 >> 2),
769 0x00000000,
770 (0x5e00 << 16) | (0xcd20 >> 2),
771 0x00000000,
772 (0x6e00 << 16) | (0xcd20 >> 2),
773 0x00000000,
774 (0x7e00 << 16) | (0xcd20 >> 2),
775 0x00000000,
776 (0x0e00 << 16) | (0x89bc >> 2),
777 0x00000000,
778 (0x0e00 << 16) | (0x8900 >> 2),
779 0x00000000,
780 0x3,
781 (0x0e00 << 16) | (0xc130 >> 2),
782 0x00000000,
783 (0x0e00 << 16) | (0xc134 >> 2),
784 0x00000000,
785 (0x0e00 << 16) | (0xc1fc >> 2),
786 0x00000000,
787 (0x0e00 << 16) | (0xc208 >> 2),
788 0x00000000,
789 (0x0e00 << 16) | (0xc264 >> 2),
790 0x00000000,
791 (0x0e00 << 16) | (0xc268 >> 2),
792 0x00000000,
793 (0x0e00 << 16) | (0xc26c >> 2),
794 0x00000000,
795 (0x0e00 << 16) | (0xc270 >> 2),
796 0x00000000,
797 (0x0e00 << 16) | (0xc274 >> 2),
798 0x00000000,
799 (0x0e00 << 16) | (0xc28c >> 2),
800 0x00000000,
801 (0x0e00 << 16) | (0xc290 >> 2),
802 0x00000000,
803 (0x0e00 << 16) | (0xc294 >> 2),
804 0x00000000,
805 (0x0e00 << 16) | (0xc298 >> 2),
806 0x00000000,
807 (0x0e00 << 16) | (0xc2a0 >> 2),
808 0x00000000,
809 (0x0e00 << 16) | (0xc2a4 >> 2),
810 0x00000000,
811 (0x0e00 << 16) | (0xc2a8 >> 2),
812 0x00000000,
813 (0x0e00 << 16) | (0xc2ac >> 2),
814 0x00000000,
815 (0x0e00 << 16) | (0x301d0 >> 2),
816 0x00000000,
817 (0x0e00 << 16) | (0x30238 >> 2),
818 0x00000000,
819 (0x0e00 << 16) | (0x30250 >> 2),
820 0x00000000,
821 (0x0e00 << 16) | (0x30254 >> 2),
822 0x00000000,
823 (0x0e00 << 16) | (0x30258 >> 2),
824 0x00000000,
825 (0x0e00 << 16) | (0x3025c >> 2),
826 0x00000000,
827 (0x4e00 << 16) | (0xc900 >> 2),
828 0x00000000,
829 (0x5e00 << 16) | (0xc900 >> 2),
830 0x00000000,
831 (0x6e00 << 16) | (0xc900 >> 2),
832 0x00000000,
833 (0x7e00 << 16) | (0xc900 >> 2),
834 0x00000000,
835 (0x4e00 << 16) | (0xc904 >> 2),
836 0x00000000,
837 (0x5e00 << 16) | (0xc904 >> 2),
838 0x00000000,
839 (0x6e00 << 16) | (0xc904 >> 2),
840 0x00000000,
841 (0x7e00 << 16) | (0xc904 >> 2),
842 0x00000000,
843 (0x4e00 << 16) | (0xc908 >> 2),
844 0x00000000,
845 (0x5e00 << 16) | (0xc908 >> 2),
846 0x00000000,
847 (0x6e00 << 16) | (0xc908 >> 2),
848 0x00000000,
849 (0x7e00 << 16) | (0xc908 >> 2),
850 0x00000000,
851 (0x4e00 << 16) | (0xc90c >> 2),
852 0x00000000,
853 (0x5e00 << 16) | (0xc90c >> 2),
854 0x00000000,
855 (0x6e00 << 16) | (0xc90c >> 2),
856 0x00000000,
857 (0x7e00 << 16) | (0xc90c >> 2),
858 0x00000000,
859 (0x4e00 << 16) | (0xc910 >> 2),
860 0x00000000,
861 (0x5e00 << 16) | (0xc910 >> 2),
862 0x00000000,
863 (0x6e00 << 16) | (0xc910 >> 2),
864 0x00000000,
865 (0x7e00 << 16) | (0xc910 >> 2),
866 0x00000000,
867 (0x0e00 << 16) | (0xc99c >> 2),
868 0x00000000,
869 (0x0e00 << 16) | (0x9834 >> 2),
870 0x00000000,
871 (0x0000 << 16) | (0x30f00 >> 2),
872 0x00000000,
873 (0x0000 << 16) | (0x30f04 >> 2),
874 0x00000000,
875 (0x0000 << 16) | (0x30f08 >> 2),
876 0x00000000,
877 (0x0000 << 16) | (0x30f0c >> 2),
878 0x00000000,
879 (0x0600 << 16) | (0x9b7c >> 2),
880 0x00000000,
881 (0x0e00 << 16) | (0x8a14 >> 2),
882 0x00000000,
883 (0x0e00 << 16) | (0x8a18 >> 2),
884 0x00000000,
885 (0x0600 << 16) | (0x30a00 >> 2),
886 0x00000000,
887 (0x0e00 << 16) | (0x8bf0 >> 2),
888 0x00000000,
889 (0x0e00 << 16) | (0x8bcc >> 2),
890 0x00000000,
891 (0x0e00 << 16) | (0x8b24 >> 2),
892 0x00000000,
893 (0x0e00 << 16) | (0x30a04 >> 2),
894 0x00000000,
895 (0x0600 << 16) | (0x30a10 >> 2),
896 0x00000000,
897 (0x0600 << 16) | (0x30a14 >> 2),
898 0x00000000,
899 (0x0600 << 16) | (0x30a18 >> 2),
900 0x00000000,
901 (0x0600 << 16) | (0x30a2c >> 2),
902 0x00000000,
903 (0x0e00 << 16) | (0xc700 >> 2),
904 0x00000000,
905 (0x0e00 << 16) | (0xc704 >> 2),
906 0x00000000,
907 (0x0e00 << 16) | (0xc708 >> 2),
908 0x00000000,
909 (0x0e00 << 16) | (0xc768 >> 2),
910 0x00000000,
911 (0x0400 << 16) | (0xc770 >> 2),
912 0x00000000,
913 (0x0400 << 16) | (0xc774 >> 2),
914 0x00000000,
915 (0x0400 << 16) | (0xc798 >> 2),
916 0x00000000,
917 (0x0400 << 16) | (0xc79c >> 2),
918 0x00000000,
919 (0x0e00 << 16) | (0x9100 >> 2),
920 0x00000000,
921 (0x0e00 << 16) | (0x3c010 >> 2),
922 0x00000000,
923 (0x0e00 << 16) | (0x8c00 >> 2),
924 0x00000000,
925 (0x0e00 << 16) | (0x8c04 >> 2),
926 0x00000000,
927 (0x0e00 << 16) | (0x8c20 >> 2),
928 0x00000000,
929 (0x0e00 << 16) | (0x8c38 >> 2),
930 0x00000000,
931 (0x0e00 << 16) | (0x8c3c >> 2),
932 0x00000000,
933 (0x0e00 << 16) | (0xae00 >> 2),
934 0x00000000,
935 (0x0e00 << 16) | (0x9604 >> 2),
936 0x00000000,
937 (0x0e00 << 16) | (0xac08 >> 2),
938 0x00000000,
939 (0x0e00 << 16) | (0xac0c >> 2),
940 0x00000000,
941 (0x0e00 << 16) | (0xac10 >> 2),
942 0x00000000,
943 (0x0e00 << 16) | (0xac14 >> 2),
944 0x00000000,
945 (0x0e00 << 16) | (0xac58 >> 2),
946 0x00000000,
947 (0x0e00 << 16) | (0xac68 >> 2),
948 0x00000000,
949 (0x0e00 << 16) | (0xac6c >> 2),
950 0x00000000,
951 (0x0e00 << 16) | (0xac70 >> 2),
952 0x00000000,
953 (0x0e00 << 16) | (0xac74 >> 2),
954 0x00000000,
955 (0x0e00 << 16) | (0xac78 >> 2),
956 0x00000000,
957 (0x0e00 << 16) | (0xac7c >> 2),
958 0x00000000,
959 (0x0e00 << 16) | (0xac80 >> 2),
960 0x00000000,
961 (0x0e00 << 16) | (0xac84 >> 2),
962 0x00000000,
963 (0x0e00 << 16) | (0xac88 >> 2),
964 0x00000000,
965 (0x0e00 << 16) | (0xac8c >> 2),
966 0x00000000,
967 (0x0e00 << 16) | (0x970c >> 2),
968 0x00000000,
969 (0x0e00 << 16) | (0x9714 >> 2),
970 0x00000000,
971 (0x0e00 << 16) | (0x9718 >> 2),
972 0x00000000,
973 (0x0e00 << 16) | (0x971c >> 2),
974 0x00000000,
975 (0x0e00 << 16) | (0x31068 >> 2),
976 0x00000000,
977 (0x4e00 << 16) | (0x31068 >> 2),
978 0x00000000,
979 (0x5e00 << 16) | (0x31068 >> 2),
980 0x00000000,
981 (0x6e00 << 16) | (0x31068 >> 2),
982 0x00000000,
983 (0x7e00 << 16) | (0x31068 >> 2),
984 0x00000000,
985 (0x0e00 << 16) | (0xcd10 >> 2),
986 0x00000000,
987 (0x0e00 << 16) | (0xcd14 >> 2),
988 0x00000000,
989 (0x0e00 << 16) | (0x88b0 >> 2),
990 0x00000000,
991 (0x0e00 << 16) | (0x88b4 >> 2),
992 0x00000000,
993 (0x0e00 << 16) | (0x88b8 >> 2),
994 0x00000000,
995 (0x0e00 << 16) | (0x88bc >> 2),
996 0x00000000,
997 (0x0400 << 16) | (0x89c0 >> 2),
998 0x00000000,
999 (0x0e00 << 16) | (0x88c4 >> 2),
1000 0x00000000,
1001 (0x0e00 << 16) | (0x88c8 >> 2),
1002 0x00000000,
1003 (0x0e00 << 16) | (0x88d0 >> 2),
1004 0x00000000,
1005 (0x0e00 << 16) | (0x88d4 >> 2),
1006 0x00000000,
1007 (0x0e00 << 16) | (0x88d8 >> 2),
1008 0x00000000,
1009 (0x0e00 << 16) | (0x8980 >> 2),
1010 0x00000000,
1011 (0x0e00 << 16) | (0x30938 >> 2),
1012 0x00000000,
1013 (0x0e00 << 16) | (0x3093c >> 2),
1014 0x00000000,
1015 (0x0e00 << 16) | (0x30940 >> 2),
1016 0x00000000,
1017 (0x0e00 << 16) | (0x89a0 >> 2),
1018 0x00000000,
1019 (0x0e00 << 16) | (0x30900 >> 2),
1020 0x00000000,
1021 (0x0e00 << 16) | (0x30904 >> 2),
1022 0x00000000,
1023 (0x0e00 << 16) | (0x89b4 >> 2),
1024 0x00000000,
1025 (0x0e00 << 16) | (0x3e1fc >> 2),
1026 0x00000000,
1027 (0x0e00 << 16) | (0x3c210 >> 2),
1028 0x00000000,
1029 (0x0e00 << 16) | (0x3c214 >> 2),
1030 0x00000000,
1031 (0x0e00 << 16) | (0x3c218 >> 2),
1032 0x00000000,
1033 (0x0e00 << 16) | (0x8904 >> 2),
1034 0x00000000,
1035 0x5,
1036 (0x0e00 << 16) | (0x8c28 >> 2),
1037 (0x0e00 << 16) | (0x8c2c >> 2),
1038 (0x0e00 << 16) | (0x8c30 >> 2),
1039 (0x0e00 << 16) | (0x8c34 >> 2),
1040 (0x0e00 << 16) | (0x9600 >> 2),
1045 0x30800, 0xe0ffffff, 0xe0000000
1050 0xc770, 0xffffffff, 0x00000800,
1051 0xc774, 0xffffffff, 0x00000800,
1052 0xc798, 0xffffffff, 0x00007fbf,
1053 0xc79c, 0xffffffff, 0x00007faf
1058 0x3354, 0x00000333, 0x00000333,
1059 0x3350, 0x000c0fc0, 0x00040200,
1060 0x9a10, 0x00010000, 0x00058208,
1061 0x3c000, 0xffff1fff, 0x00140000,
1062 0x3c200, 0xfdfc0fff, 0x00000100,
1063 0x3c234, 0x40000000, 0x40000200,
1064 0x9830, 0xffffffff, 0x00000000,
1065 0x9834, 0xf00fffff, 0x00000400,
1066 0x9838, 0x0002021c, 0x00020200,
1067 0xc78, 0x00000080, 0x00000000,
1068 0x5bb0, 0x000000f0, 0x00000070,
1069 0x5bc0, 0xf0311fff, 0x80300000,
1070 0x98f8, 0x73773777, 0x12010001,
1071 0x350c, 0x00810000, 0x408af000,
1072 0x7030, 0x31000111, 0x00000011,
1073 0x2f48, 0x73773777, 0x12010001,
1074 0x220c, 0x00007fb6, 0x0021a1b1,
1075 0x2210, 0x00007fb6, 0x002021b1,
1076 0x2180, 0x00007fb6, 0x00002191,
1077 0x2218, 0x00007fb6, 0x002121b1,
1078 0x221c, 0x00007fb6, 0x002021b1,
1079 0x21dc, 0x00007fb6, 0x00002191,
1080 0x21e0, 0x00007fb6, 0x00002191,
1081 0x3628, 0x0000003f, 0x0000000a,
1082 0x362c, 0x0000003f, 0x0000000a,
1083 0x2ae4, 0x00073ffe, 0x000022a2,
1084 0x240c, 0x000007ff, 0x00000000,
1085 0x8a14, 0xf000003f, 0x00000007,
1086 0x8bf0, 0x00002001, 0x00000001,
1087 0x8b24, 0xffffffff, 0x00ffffff,
1088 0x30a04, 0x0000ff0f, 0x00000000,
1089 0x28a4c, 0x07ffffff, 0x06000000,
1090 0x4d8, 0x00000fff, 0x00000100,
1091 0x3e78, 0x00000001, 0x00000002,
1092 0x9100, 0x03000000, 0x0362c688,
1093 0x8c00, 0x000000ff, 0x00000001,
1094 0xe40, 0x00001fff, 0x00001fff,
1095 0x9060, 0x0000007f, 0x00000020,
1096 0x9508, 0x00010000, 0x00010000,
1097 0xac14, 0x000003ff, 0x000000f3,
1098 0xac0c, 0xffffffff, 0x00001032
1103 0xc420, 0xffffffff, 0xfffffffc,
1104 0x30800, 0xffffffff, 0xe0000000,
1105 0x3c2a0, 0xffffffff, 0x00000100,
1106 0x3c208, 0xffffffff, 0x00000100,
1107 0x3c2c0, 0xffffffff, 0xc0000100,
1108 0x3c2c8, 0xffffffff, 0xc0000100,
1109 0x3c2c4, 0xffffffff, 0xc0000100,
1110 0x55e4, 0xffffffff, 0x00600100,
1111 0x3c280, 0xffffffff, 0x00000100,
1112 0x3c214, 0xffffffff, 0x06000100,
1113 0x3c220, 0xffffffff, 0x00000100,
1114 0x3c218, 0xffffffff, 0x06000100,
1115 0x3c204, 0xffffffff, 0x00000100,
1116 0x3c2e0, 0xffffffff, 0x00000100,
1117 0x3c224, 0xffffffff, 0x00000100,
1118 0x3c200, 0xffffffff, 0x00000100,
1119 0x3c230, 0xffffffff, 0x00000100,
1120 0x3c234, 0xffffffff, 0x00000100,
1121 0x3c250, 0xffffffff, 0x00000100,
1122 0x3c254, 0xffffffff, 0x00000100,
1123 0x3c258, 0xffffffff, 0x00000100,
1124 0x3c25c, 0xffffffff, 0x00000100,
1125 0x3c260, 0xffffffff, 0x00000100,
1126 0x3c27c, 0xffffffff, 0x00000100,
1127 0x3c278, 0xffffffff, 0x00000100,
1128 0x3c210, 0xffffffff, 0x06000100,
1129 0x3c290, 0xffffffff, 0x00000100,
1130 0x3c274, 0xffffffff, 0x00000100,
1131 0x3c2b4, 0xffffffff, 0x00000100,
1132 0x3c2b0, 0xffffffff, 0x00000100,
1133 0x3c270, 0xffffffff, 0x00000100,
1134 0x30800, 0xffffffff, 0xe0000000,
1135 0x3c020, 0xffffffff, 0x00010000,
1136 0x3c024, 0xffffffff, 0x00030002,
1137 0x3c028, 0xffffffff, 0x00040007,
1138 0x3c02c, 0xffffffff, 0x00060005,
1139 0x3c030, 0xffffffff, 0x00090008,
1140 0x3c034, 0xffffffff, 0x00010000,
1141 0x3c038, 0xffffffff, 0x00030002,
1142 0x3c03c, 0xffffffff, 0x00040007,
1143 0x3c040, 0xffffffff, 0x00060005,
1144 0x3c044, 0xffffffff, 0x00090008,
1145 0x3c048, 0xffffffff, 0x00010000,
1146 0x3c04c, 0xffffffff, 0x00030002,
1147 0x3c050, 0xffffffff, 0x00040007,
1148 0x3c054, 0xffffffff, 0x00060005,
1149 0x3c058, 0xffffffff, 0x00090008,
1150 0x3c05c, 0xffffffff, 0x00010000,
1151 0x3c060, 0xffffffff, 0x00030002,
1152 0x3c064, 0xffffffff, 0x00040007,
1153 0x3c068, 0xffffffff, 0x00060005,
1154 0x3c06c, 0xffffffff, 0x00090008,
1155 0x3c070, 0xffffffff, 0x00010000,
1156 0x3c074, 0xffffffff, 0x00030002,
1157 0x3c078, 0xffffffff, 0x00040007,
1158 0x3c07c, 0xffffffff, 0x00060005,
1159 0x3c080, 0xffffffff, 0x00090008,
1160 0x3c084, 0xffffffff, 0x00010000,
1161 0x3c088, 0xffffffff, 0x00030002,
1162 0x3c08c, 0xffffffff, 0x00040007,
1163 0x3c090, 0xffffffff, 0x00060005,
1164 0x3c094, 0xffffffff, 0x00090008,
1165 0x3c098, 0xffffffff, 0x00010000,
1166 0x3c09c, 0xffffffff, 0x00030002,
1167 0x3c0a0, 0xffffffff, 0x00040007,
1168 0x3c0a4, 0xffffffff, 0x00060005,
1169 0x3c0a8, 0xffffffff, 0x00090008,
1170 0x3c000, 0xffffffff, 0x96e00200,
1171 0x8708, 0xffffffff, 0x00900100,
1172 0xc424, 0xffffffff, 0x0020003f,
1173 0x38, 0xffffffff, 0x0140001c,
1174 0x3c, 0x000f0000, 0x000f0000,
1175 0x220, 0xffffffff, 0xC060000C,
1176 0x224, 0xc0000fff, 0x00000100,
1177 0xf90, 0xffffffff, 0x00000100,
1178 0xf98, 0x00000101, 0x00000000,
1179 0x20a8, 0xffffffff, 0x00000104,
1180 0x55e4, 0xff000fff, 0x00000100,
1181 0x30cc, 0xc0000fff, 0x00000104,
1182 0xc1e4, 0x00000001, 0x00000001,
1183 0xd00c, 0xff000ff0, 0x00000100,
1184 0xd80c, 0xff000ff0, 0x00000100
1189 0x30800, 0xe0ffffff, 0xe0000000
1194 0xc770, 0xffffffff, 0x00000800,
1195 0xc774, 0xffffffff, 0x00000800,
1196 0xc798, 0xffffffff, 0x00007fbf,
1197 0xc79c, 0xffffffff, 0x00007faf
1202 0x3c000, 0xffff1fff, 0x96940200,
1203 0x3c00c, 0xffff0001, 0xff000000,
1204 0x3c200, 0xfffc0fff, 0x00000100,
1205 0x6ed8, 0x00010101, 0x00010000,
1206 0x9834, 0xf00fffff, 0x00000400,
1207 0x9838, 0xfffffffc, 0x00020200,
1208 0x5bb0, 0x000000f0, 0x00000070,
1209 0x5bc0, 0xf0311fff, 0x80300000,
1210 0x98f8, 0x73773777, 0x12010001,
1211 0x9b7c, 0x00ff0000, 0x00fc0000,
1212 0x2f48, 0x73773777, 0x12010001,
1213 0x8a14, 0xf000003f, 0x00000007,
1214 0x8b24, 0xffffffff, 0x00ffffff,
1215 0x28350, 0x3f3f3fff, 0x00000082,
1216 0x28354, 0x0000003f, 0x00000000,
1217 0x3e78, 0x00000001, 0x00000002,
1218 0x913c, 0xffff03df, 0x00000004,
1219 0xc768, 0x00000008, 0x00000008,
1220 0x8c00, 0x000008ff, 0x00000800,
1221 0x9508, 0x00010000, 0x00010000,
1222 0xac0c, 0xffffffff, 0x54763210,
1223 0x214f8, 0x01ff01ff, 0x00000002,
1224 0x21498, 0x007ff800, 0x00200000,
1225 0x2015c, 0xffffffff, 0x00000f40,
1226 0x30934, 0xffffffff, 0x00000001
1231 0xc420, 0xffffffff, 0xfffffffc,
1232 0x30800, 0xffffffff, 0xe0000000,
1233 0x3c2a0, 0xffffffff, 0x00000100,
1234 0x3c208, 0xffffffff, 0x00000100,
1235 0x3c2c0, 0xffffffff, 0x00000100,
1236 0x3c2c8, 0xffffffff, 0x00000100,
1237 0x3c2c4, 0xffffffff, 0x00000100,
1238 0x55e4, 0xffffffff, 0x00600100,
1239 0x3c280, 0xffffffff, 0x00000100,
1240 0x3c214, 0xffffffff, 0x06000100,
1241 0x3c220, 0xffffffff, 0x00000100,
1242 0x3c218, 0xffffffff, 0x06000100,
1243 0x3c204, 0xffffffff, 0x00000100,
1244 0x3c2e0, 0xffffffff, 0x00000100,
1245 0x3c224, 0xffffffff, 0x00000100,
1246 0x3c200, 0xffffffff, 0x00000100,
1247 0x3c230, 0xffffffff, 0x00000100,
1248 0x3c234, 0xffffffff, 0x00000100,
1249 0x3c250, 0xffffffff, 0x00000100,
1250 0x3c254, 0xffffffff, 0x00000100,
1251 0x3c258, 0xffffffff, 0x00000100,
1252 0x3c25c, 0xffffffff, 0x00000100,
1253 0x3c260, 0xffffffff, 0x00000100,
1254 0x3c27c, 0xffffffff, 0x00000100,
1255 0x3c278, 0xffffffff, 0x00000100,
1256 0x3c210, 0xffffffff, 0x06000100,
1257 0x3c290, 0xffffffff, 0x00000100,
1258 0x3c274, 0xffffffff, 0x00000100,
1259 0x3c2b4, 0xffffffff, 0x00000100,
1260 0x3c2b0, 0xffffffff, 0x00000100,
1261 0x3c270, 0xffffffff, 0x00000100,
1262 0x30800, 0xffffffff, 0xe0000000,
1263 0x3c020, 0xffffffff, 0x00010000,
1264 0x3c024, 0xffffffff, 0x00030002,
1265 0x3c028, 0xffffffff, 0x00040007,
1266 0x3c02c, 0xffffffff, 0x00060005,
1267 0x3c030, 0xffffffff, 0x00090008,
1268 0x3c034, 0xffffffff, 0x00010000,
1269 0x3c038, 0xffffffff, 0x00030002,
1270 0x3c03c, 0xffffffff, 0x00040007,
1271 0x3c040, 0xffffffff, 0x00060005,
1272 0x3c044, 0xffffffff, 0x00090008,
1273 0x3c048, 0xffffffff, 0x00010000,
1274 0x3c04c, 0xffffffff, 0x00030002,
1275 0x3c050, 0xffffffff, 0x00040007,
1276 0x3c054, 0xffffffff, 0x00060005,
1277 0x3c058, 0xffffffff, 0x00090008,
1278 0x3c05c, 0xffffffff, 0x00010000,
1279 0x3c060, 0xffffffff, 0x00030002,
1280 0x3c064, 0xffffffff, 0x00040007,
1281 0x3c068, 0xffffffff, 0x00060005,
1282 0x3c06c, 0xffffffff, 0x00090008,
1283 0x3c070, 0xffffffff, 0x00010000,
1284 0x3c074, 0xffffffff, 0x00030002,
1285 0x3c078, 0xffffffff, 0x00040007,
1286 0x3c07c, 0xffffffff, 0x00060005,
1287 0x3c080, 0xffffffff, 0x00090008,
1288 0x3c084, 0xffffffff, 0x00010000,
1289 0x3c088, 0xffffffff, 0x00030002,
1290 0x3c08c, 0xffffffff, 0x00040007,
1291 0x3c090, 0xffffffff, 0x00060005,
1292 0x3c094, 0xffffffff, 0x00090008,
1293 0x3c098, 0xffffffff, 0x00010000,
1294 0x3c09c, 0xffffffff, 0x00030002,
1295 0x3c0a0, 0xffffffff, 0x00040007,
1296 0x3c0a4, 0xffffffff, 0x00060005,
1297 0x3c0a8, 0xffffffff, 0x00090008,
1298 0x3c0ac, 0xffffffff, 0x00010000,
1299 0x3c0b0, 0xffffffff, 0x00030002,
1300 0x3c0b4, 0xffffffff, 0x00040007,
1301 0x3c0b8, 0xffffffff, 0x00060005,
1302 0x3c0bc, 0xffffffff, 0x00090008,
1303 0x3c000, 0xffffffff, 0x96e00200,
1304 0x8708, 0xffffffff, 0x00900100,
1305 0xc424, 0xffffffff, 0x0020003f,
1306 0x38, 0xffffffff, 0x0140001c,
1307 0x3c, 0x000f0000, 0x000f0000,
1308 0x220, 0xffffffff, 0xC060000C,
1309 0x224, 0xc0000fff, 0x00000100,
1310 0xf90, 0xffffffff, 0x00000100,
1311 0xf98, 0x00000101, 0x00000000,
1312 0x20a8, 0xffffffff, 0x00000104,
1313 0x55e4, 0xff000fff, 0x00000100,
1314 0x30cc, 0xc0000fff, 0x00000104,
1315 0xc1e4, 0x00000001, 0x00000001,
1316 0xd00c, 0xff000ff0, 0x00000100,
1317 0xd80c, 0xff000ff0, 0x00000100
1322 0x30800, 0xe0ffffff, 0xe0000000
1327 0xc770, 0xffffffff, 0x00000800,
1328 0xc774, 0xffffffff, 0x00000800,
1329 0xc798, 0xffffffff, 0x00007fbf,
1330 0xc79c, 0xffffffff, 0x00007faf
1335 0x3c000, 0xffffdfff, 0x6e944040,
1336 0x55e4, 0xff607fff, 0xfc000100,
1337 0x3c220, 0xff000fff, 0x00000100,
1338 0x3c224, 0xff000fff, 0x00000100,
1339 0x3c200, 0xfffc0fff, 0x00000100,
1340 0x6ed8, 0x00010101, 0x00010000,
1341 0x9830, 0xffffffff, 0x00000000,
1342 0x9834, 0xf00fffff, 0x00000400,
1343 0x5bb0, 0x000000f0, 0x00000070,
1344 0x5bc0, 0xf0311fff, 0x80300000,
1345 0x98f8, 0x73773777, 0x12010001,
1346 0x98fc, 0xffffffff, 0x00000010,
1347 0x9b7c, 0x00ff0000, 0x00fc0000,
1348 0x8030, 0x00001f0f, 0x0000100a,
1349 0x2f48, 0x73773777, 0x12010001,
1350 0x2408, 0x000fffff, 0x000c007f,
1351 0x8a14, 0xf000003f, 0x00000007,
1352 0x8b24, 0x3fff3fff, 0x00ffcfff,
1353 0x30a04, 0x0000ff0f, 0x00000000,
1354 0x28a4c, 0x07ffffff, 0x06000000,
1355 0x4d8, 0x00000fff, 0x00000100,
1356 0x3e78, 0x00000001, 0x00000002,
1357 0xc768, 0x00000008, 0x00000008,
1358 0x8c00, 0x000000ff, 0x00000003,
1359 0x214f8, 0x01ff01ff, 0x00000002,
1360 0x21498, 0x007ff800, 0x00200000,
1361 0x2015c, 0xffffffff, 0x00000f40,
1362 0x88c4, 0x001f3ae3, 0x00000082,
1363 0x88d4, 0x0000001f, 0x00000010,
1364 0x30934, 0xffffffff, 0x00000000
1369 0xc420, 0xffffffff, 0xfffffffc,
1370 0x30800, 0xffffffff, 0xe0000000,
1371 0x3c2a0, 0xffffffff, 0x00000100,
1372 0x3c208, 0xffffffff, 0x00000100,
1373 0x3c2c0, 0xffffffff, 0x00000100,
1374 0x3c2c8, 0xffffffff, 0x00000100,
1375 0x3c2c4, 0xffffffff, 0x00000100,
1376 0x55e4, 0xffffffff, 0x00600100,
1377 0x3c280, 0xffffffff, 0x00000100,
1378 0x3c214, 0xffffffff, 0x06000100,
1379 0x3c220, 0xffffffff, 0x00000100,
1380 0x3c218, 0xffffffff, 0x06000100,
1381 0x3c204, 0xffffffff, 0x00000100,
1382 0x3c2e0, 0xffffffff, 0x00000100,
1383 0x3c224, 0xffffffff, 0x00000100,
1384 0x3c200, 0xffffffff, 0x00000100,
1385 0x3c230, 0xffffffff, 0x00000100,
1386 0x3c234, 0xffffffff, 0x00000100,
1387 0x3c250, 0xffffffff, 0x00000100,
1388 0x3c254, 0xffffffff, 0x00000100,
1389 0x3c258, 0xffffffff, 0x00000100,
1390 0x3c25c, 0xffffffff, 0x00000100,
1391 0x3c260, 0xffffffff, 0x00000100,
1392 0x3c27c, 0xffffffff, 0x00000100,
1393 0x3c278, 0xffffffff, 0x00000100,
1394 0x3c210, 0xffffffff, 0x06000100,
1395 0x3c290, 0xffffffff, 0x00000100,
1396 0x3c274, 0xffffffff, 0x00000100,
1397 0x3c2b4, 0xffffffff, 0x00000100,
1398 0x3c2b0, 0xffffffff, 0x00000100,
1399 0x3c270, 0xffffffff, 0x00000100,
1400 0x30800, 0xffffffff, 0xe0000000,
1401 0x3c020, 0xffffffff, 0x00010000,
1402 0x3c024, 0xffffffff, 0x00030002,
1403 0x3c028, 0xffffffff, 0x00040007,
1404 0x3c02c, 0xffffffff, 0x00060005,
1405 0x3c030, 0xffffffff, 0x00090008,
1406 0x3c034, 0xffffffff, 0x00010000,
1407 0x3c038, 0xffffffff, 0x00030002,
1408 0x3c03c, 0xffffffff, 0x00040007,
1409 0x3c040, 0xffffffff, 0x00060005,
1410 0x3c044, 0xffffffff, 0x00090008,
1411 0x3c000, 0xffffffff, 0x96e00200,
1412 0x8708, 0xffffffff, 0x00900100,
1413 0xc424, 0xffffffff, 0x0020003f,
1414 0x38, 0xffffffff, 0x0140001c,
1415 0x3c, 0x000f0000, 0x000f0000,
1416 0x220, 0xffffffff, 0xC060000C,
1417 0x224, 0xc0000fff, 0x00000100,
1418 0x20a8, 0xffffffff, 0x00000104,
1419 0x55e4, 0xff000fff, 0x00000100,
1420 0x30cc, 0xc0000fff, 0x00000104,
1421 0xc1e4, 0x00000001, 0x00000001,
1422 0xd00c, 0xff000ff0, 0x00000100,
1423 0xd80c, 0xff000ff0, 0x00000100
1428 0x30800, 0xe0ffffff, 0xe0000000
1433 0x30800, 0xffffffff, 0xe0000000,
1434 0x28350, 0xffffffff, 0x3a00161a,
1435 0x28354, 0xffffffff, 0x0000002e,
1436 0x9a10, 0xffffffff, 0x00018208,
1437 0x98f8, 0xffffffff, 0x12011003
1442 0x3354, 0x00000333, 0x00000333,
1443 0x9a10, 0x00010000, 0x00058208,
1444 0x9830, 0xffffffff, 0x00000000,
1445 0x9834, 0xf00fffff, 0x00000400,
1446 0x9838, 0x0002021c, 0x00020200,
1447 0xc78, 0x00000080, 0x00000000,
1448 0x5bb0, 0x000000f0, 0x00000070,
1449 0x5bc0, 0xf0311fff, 0x80300000,
1450 0x350c, 0x00810000, 0x408af000,
1451 0x7030, 0x31000111, 0x00000011,
1452 0x2f48, 0x73773777, 0x12010001,
1453 0x2120, 0x0000007f, 0x0000001b,
1454 0x21dc, 0x00007fb6, 0x00002191,
1455 0x3628, 0x0000003f, 0x0000000a,
1456 0x362c, 0x0000003f, 0x0000000a,
1457 0x2ae4, 0x00073ffe, 0x000022a2,
1458 0x240c, 0x000007ff, 0x00000000,
1459 0x8bf0, 0x00002001, 0x00000001,
1460 0x8b24, 0xffffffff, 0x00ffffff,
1461 0x30a04, 0x0000ff0f, 0x00000000,
1462 0x28a4c, 0x07ffffff, 0x06000000,
1463 0x3e78, 0x00000001, 0x00000002,
1464 0xc768, 0x00000008, 0x00000008,
1465 0xc770, 0x00000f00, 0x00000800,
1466 0xc774, 0x00000f00, 0x00000800,
1467 0xc798, 0x00ffffff, 0x00ff7fbf,
1468 0xc79c, 0x00ffffff, 0x00ff7faf,
1469 0x8c00, 0x000000ff, 0x00000800,
1470 0xe40, 0x00001fff, 0x00001fff,
1471 0x9060, 0x0000007f, 0x00000020,
1472 0x9508, 0x00010000, 0x00010000,
1473 0xae00, 0x00100000, 0x000ff07c,
1474 0xac14, 0x000003ff, 0x0000000f,
1475 0xac10, 0xffffffff, 0x7564fdec,
1476 0xac0c, 0xffffffff, 0x3120b9a8,
1477 0xac08, 0x20000000, 0x0f9c0000
1482 0xc420, 0xffffffff, 0xfffffffd,
1483 0x30800, 0xffffffff, 0xe0000000,
1484 0x3c2a0, 0xffffffff, 0x00000100,
1485 0x3c208, 0xffffffff, 0x00000100,
1486 0x3c2c0, 0xffffffff, 0x00000100,
1487 0x3c2c8, 0xffffffff, 0x00000100,
1488 0x3c2c4, 0xffffffff, 0x00000100,
1489 0x55e4, 0xffffffff, 0x00200100,
1490 0x3c280, 0xffffffff, 0x00000100,
1491 0x3c214, 0xffffffff, 0x06000100,
1492 0x3c220, 0xffffffff, 0x00000100,
1493 0x3c218, 0xffffffff, 0x06000100,
1494 0x3c204, 0xffffffff, 0x00000100,
1495 0x3c2e0, 0xffffffff, 0x00000100,
1496 0x3c224, 0xffffffff, 0x00000100,
1497 0x3c200, 0xffffffff, 0x00000100,
1498 0x3c230, 0xffffffff, 0x00000100,
1499 0x3c234, 0xffffffff, 0x00000100,
1500 0x3c250, 0xffffffff, 0x00000100,
1501 0x3c254, 0xffffffff, 0x00000100,
1502 0x3c258, 0xffffffff, 0x00000100,
1503 0x3c25c, 0xffffffff, 0x00000100,
1504 0x3c260, 0xffffffff, 0x00000100,
1505 0x3c27c, 0xffffffff, 0x00000100,
1506 0x3c278, 0xffffffff, 0x00000100,
1507 0x3c210, 0xffffffff, 0x06000100,
1508 0x3c290, 0xffffffff, 0x00000100,
1509 0x3c274, 0xffffffff, 0x00000100,
1510 0x3c2b4, 0xffffffff, 0x00000100,
1511 0x3c2b0, 0xffffffff, 0x00000100,
1512 0x3c270, 0xffffffff, 0x00000100,
1513 0x30800, 0xffffffff, 0xe0000000,
1514 0x3c020, 0xffffffff, 0x00010000,
1515 0x3c024, 0xffffffff, 0x00030002,
1516 0x3c028, 0xffffffff, 0x00040007,
1517 0x3c02c, 0xffffffff, 0x00060005,
1518 0x3c030, 0xffffffff, 0x00090008,
1519 0x3c034, 0xffffffff, 0x00010000,
1520 0x3c038, 0xffffffff, 0x00030002,
1521 0x3c03c, 0xffffffff, 0x00040007,
1522 0x3c040, 0xffffffff, 0x00060005,
1523 0x3c044, 0xffffffff, 0x00090008,
1524 0x3c048, 0xffffffff, 0x00010000,
1525 0x3c04c, 0xffffffff, 0x00030002,
1526 0x3c050, 0xffffffff, 0x00040007,
1527 0x3c054, 0xffffffff, 0x00060005,
1528 0x3c058, 0xffffffff, 0x00090008,
1529 0x3c05c, 0xffffffff, 0x00010000,
1530 0x3c060, 0xffffffff, 0x00030002,
1531 0x3c064, 0xffffffff, 0x00040007,
1532 0x3c068, 0xffffffff, 0x00060005,
1533 0x3c06c, 0xffffffff, 0x00090008,
1534 0x3c070, 0xffffffff, 0x00010000,
1535 0x3c074, 0xffffffff, 0x00030002,
1536 0x3c078, 0xffffffff, 0x00040007,
1537 0x3c07c, 0xffffffff, 0x00060005,
1538 0x3c080, 0xffffffff, 0x00090008,
1539 0x3c084, 0xffffffff, 0x00010000,
1540 0x3c088, 0xffffffff, 0x00030002,
1541 0x3c08c, 0xffffffff, 0x00040007,
1542 0x3c090, 0xffffffff, 0x00060005,
1543 0x3c094, 0xffffffff, 0x00090008,
1544 0x3c098, 0xffffffff, 0x00010000,
1545 0x3c09c, 0xffffffff, 0x00030002,
1546 0x3c0a0, 0xffffffff, 0x00040007,
1547 0x3c0a4, 0xffffffff, 0x00060005,
1548 0x3c0a8, 0xffffffff, 0x00090008,
1549 0x3c0ac, 0xffffffff, 0x00010000,
1550 0x3c0b0, 0xffffffff, 0x00030002,
1551 0x3c0b4, 0xffffffff, 0x00040007,
1552 0x3c0b8, 0xffffffff, 0x00060005,
1553 0x3c0bc, 0xffffffff, 0x00090008,
1554 0x3c0c0, 0xffffffff, 0x00010000,
1555 0x3c0c4, 0xffffffff, 0x00030002,
1556 0x3c0c8, 0xffffffff, 0x00040007,
1557 0x3c0cc, 0xffffffff, 0x00060005,
1558 0x3c0d0, 0xffffffff, 0x00090008,
1559 0x3c0d4, 0xffffffff, 0x00010000,
1560 0x3c0d8, 0xffffffff, 0x00030002,
1561 0x3c0dc, 0xffffffff, 0x00040007,
1562 0x3c0e0, 0xffffffff, 0x00060005,
1563 0x3c0e4, 0xffffffff, 0x00090008,
1564 0x3c0e8, 0xffffffff, 0x00010000,
1565 0x3c0ec, 0xffffffff, 0x00030002,
1566 0x3c0f0, 0xffffffff, 0x00040007,
1567 0x3c0f4, 0xffffffff, 0x00060005,
1568 0x3c0f8, 0xffffffff, 0x00090008,
1569 0xc318, 0xffffffff, 0x00020200,
1570 0x3350, 0xffffffff, 0x00000200,
1571 0x15c0, 0xffffffff, 0x00000400,
1572 0x55e8, 0xffffffff, 0x00000000,
1573 0x2f50, 0xffffffff, 0x00000902,
1574 0x3c000, 0xffffffff, 0x96940200,
1575 0x8708, 0xffffffff, 0x00900100,
1576 0xc424, 0xffffffff, 0x0020003f,
1577 0x38, 0xffffffff, 0x0140001c,
1578 0x3c, 0x000f0000, 0x000f0000,
1579 0x220, 0xffffffff, 0xc060000c,
1580 0x224, 0xc0000fff, 0x00000100,
1581 0xf90, 0xffffffff, 0x00000100,
1582 0xf98, 0x00000101, 0x00000000,
1583 0x20a8, 0xffffffff, 0x00000104,
1584 0x55e4, 0xff000fff, 0x00000100,
1585 0x30cc, 0xc0000fff, 0x00000104,
1586 0xc1e4, 0x00000001, 0x00000001,
1587 0xd00c, 0xff000ff0, 0x00000100,
1588 0xd80c, 0xff000ff0, 0x00000100
1593 0x55e4, 0xff607fff, 0xfc000100,
1594 0x6ed8, 0x00010101, 0x00010000,
1595 0x9830, 0xffffffff, 0x00000000,
1596 0x98302, 0xf00fffff, 0x00000400,
1597 0x6130, 0xffffffff, 0x00010000,
1598 0x5bb0, 0x000000f0, 0x00000070,
1599 0x5bc0, 0xf0311fff, 0x80300000,
1600 0x98f8, 0x73773777, 0x12010001,
1601 0x98fc, 0xffffffff, 0x00000010,
1602 0x8030, 0x00001f0f, 0x0000100a,
1603 0x2f48, 0x73773777, 0x12010001,
1604 0x2408, 0x000fffff, 0x000c007f,
1605 0x8a14, 0xf000003f, 0x00000007,
1606 0x8b24, 0xffffffff, 0x00ff0fff,
1607 0x30a04, 0x0000ff0f, 0x00000000,
1608 0x28a4c, 0x07ffffff, 0x06000000,
1609 0x4d8, 0x00000fff, 0x00000100,
1610 0xd014, 0x00010000, 0x00810001,
1611 0xd814, 0x00010000, 0x00810001,
1612 0x3e78, 0x00000001, 0x00000002,
1613 0xc768, 0x00000008, 0x00000008,
1614 0xc770, 0x00000f00, 0x00000800,
1615 0xc774, 0x00000f00, 0x00000800,
1616 0xc798, 0x00ffffff, 0x00ff7fbf,
1617 0xc79c, 0x00ffffff, 0x00ff7faf,
1618 0x8c00, 0x000000ff, 0x00000001,
1619 0x214f8, 0x01ff01ff, 0x00000002,
1620 0x21498, 0x007ff800, 0x00200000,
1621 0x2015c, 0xffffffff, 0x00000f40,
1622 0x88c4, 0x001f3ae3, 0x00000082,
1623 0x88d4, 0x0000001f, 0x00000010,
1624 0x30934, 0xffffffff, 0x00000000
1742 DRM_ERROR("reading beyond doorbell aperture: 0x%08x!\n", index); in cik_mm_rdoorbell()
1743 return 0; in cik_mm_rdoorbell()
1762 DRM_ERROR("writing beyond doorbell aperture: 0x%08x!\n", index); in cik_mm_wdoorbell()
1770 {0x00000070, 0x04400000},
1771 {0x00000071, 0x80c01803},
1772 {0x00000072, 0x00004004},
1773 {0x00000073, 0x00000100},
1774 {0x00000074, 0x00ff0000},
1775 {0x00000075, 0x34000000},
1776 {0x00000076, 0x08000014},
1777 {0x00000077, 0x00cc08ec},
1778 {0x00000078, 0x00000400},
1779 {0x00000079, 0x00000000},
1780 {0x0000007a, 0x04090000},
1781 {0x0000007c, 0x00000000},
1782 {0x0000007e, 0x4408a8e8},
1783 {0x0000007f, 0x00000304},
1784 {0x00000080, 0x00000000},
1785 {0x00000082, 0x00000001},
1786 {0x00000083, 0x00000002},
1787 {0x00000084, 0xf3e4f400},
1788 {0x00000085, 0x052024e3},
1789 {0x00000087, 0x00000000},
1790 {0x00000088, 0x01000000},
1791 {0x0000008a, 0x1c0a0000},
1792 {0x0000008b, 0xff010000},
1793 {0x0000008d, 0xffffefff},
1794 {0x0000008e, 0xfff3efff},
1795 {0x0000008f, 0xfff3efbf},
1796 {0x00000092, 0xf7ffffff},
1797 {0x00000093, 0xffffff7f},
1798 {0x00000095, 0x00101101},
1799 {0x00000096, 0x00000fff},
1800 {0x00000097, 0x00116fff},
1801 {0x00000098, 0x60010000},
1802 {0x00000099, 0x10010000},
1803 {0x0000009a, 0x00006000},
1804 {0x0000009b, 0x00001000},
1805 {0x0000009f, 0x00b48000}
1812 {0x0000007d, 0x40000000},
1813 {0x0000007e, 0x40180304},
1814 {0x0000007f, 0x0000ff00},
1815 {0x00000081, 0x00000000},
1816 {0x00000083, 0x00000800},
1817 {0x00000086, 0x00000000},
1818 {0x00000087, 0x00000100},
1819 {0x00000088, 0x00020100},
1820 {0x00000089, 0x00000000},
1821 {0x0000008b, 0x00040000},
1822 {0x0000008c, 0x00000100},
1823 {0x0000008e, 0xff010000},
1824 {0x00000090, 0xffffefff},
1825 {0x00000091, 0xfff3efff},
1826 {0x00000092, 0xfff3efbf},
1827 {0x00000093, 0xf7ffffff},
1828 {0x00000094, 0xffffff7f},
1829 {0x00000095, 0x00000fff},
1830 {0x00000096, 0x00116fff},
1831 {0x00000097, 0x60010000},
1832 {0x00000098, 0x10010000},
1833 {0x0000009f, 0x00c79000}
1853 u32 srbm_gfx_cntl = (PIPEID(pipe & 0x3) | in cik_srbm_select()
1854 MEID(me & 0x3) | in cik_srbm_select()
1855 VMID(vmid & 0xf) | in cik_srbm_select()
1856 QUEUEID(queue & 0x7)); in cik_srbm_select()
1867 * Returns 0 on success, error on failure.
1913 if (running == 0) { in ci_mc_load_microcode()
1915 WREG32(MC_SEQ_SUP_CNTL, 0x00000008); in ci_mc_load_microcode()
1916 WREG32(MC_SEQ_SUP_CNTL, 0x00000010); in ci_mc_load_microcode()
1919 for (i = 0; i < regs_size; i++) { in ci_mc_load_microcode()
1930 if ((rdev->pdev->device == 0x6649) && ((tmp & 0xff00) == 0x5600)) { in ci_mc_load_microcode()
1932 WREG32(MC_SEQ_IO_DEBUG_DATA, 0x00000023); in ci_mc_load_microcode()
1934 WREG32(MC_SEQ_IO_DEBUG_DATA, 0x000001f0); in ci_mc_load_microcode()
1938 for (i = 0; i < ucode_size; i++) { in ci_mc_load_microcode()
1946 WREG32(MC_SEQ_SUP_CNTL, 0x00000008); in ci_mc_load_microcode()
1947 WREG32(MC_SEQ_SUP_CNTL, 0x00000004); in ci_mc_load_microcode()
1948 WREG32(MC_SEQ_SUP_CNTL, 0x00000001); in ci_mc_load_microcode()
1951 for (i = 0; i < rdev->usec_timeout; i++) { in ci_mc_load_microcode()
1956 for (i = 0; i < rdev->usec_timeout; i++) { in ci_mc_load_microcode()
1963 return 0; in ci_mc_load_microcode()
1973 * Returns 0 on success, error on failure.
1980 mec_req_size, rlc_req_size, mc_req_size = 0, in cik_init_microcode()
1981 sdma_req_size, smc_req_size = 0, mc2_req_size = 0; in cik_init_microcode()
1983 int new_fw = 0; in cik_init_microcode()
1993 if ((rdev->pdev->revision == 0x80) || in cik_init_microcode()
1994 (rdev->pdev->revision == 0x81) || in cik_init_microcode()
1995 (rdev->pdev->device == 0x665f)) in cik_init_microcode()
2011 if (rdev->pdev->revision == 0x80) in cik_init_microcode()
2261 err = 0; in cik_init_microcode()
2279 if (new_fw == 0) { in cik_init_microcode()
2359 for (reg_offset = 0; reg_offset < num_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
2360 tile[reg_offset] = 0; in cik_tiling_mode_table_init()
2361 for (reg_offset = 0; reg_offset < num_secondary_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
2362 macrotile[reg_offset] = 0; in cik_tiling_mode_table_init()
2366 tile[0] = (ARRAY_MODE(ARRAY_2D_TILED_THIN1) | in cik_tiling_mode_table_init()
2445 macrotile[0] = (BANK_WIDTH(ADDR_SURF_BANK_WIDTH_1) | in cik_tiling_mode_table_init()
2502 for (reg_offset = 0; reg_offset < num_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
2504 for (reg_offset = 0; reg_offset < num_secondary_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
2509 tile[0] = (ARRAY_MODE(ARRAY_2D_TILED_THIN1) | in cik_tiling_mode_table_init()
2588 macrotile[0] = (BANK_WIDTH(ADDR_SURF_BANK_WIDTH_1) | in cik_tiling_mode_table_init()
2645 for (reg_offset = 0; reg_offset < num_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
2647 for (reg_offset = 0; reg_offset < num_secondary_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
2653 tile[0] = (ARRAY_MODE(ARRAY_2D_TILED_THIN1) | in cik_tiling_mode_table_init()
2733 tile[0] = (ARRAY_MODE(ARRAY_2D_TILED_THIN1) | in cik_tiling_mode_table_init()
2813 macrotile[0] = (BANK_WIDTH(ADDR_SURF_BANK_WIDTH_1) | in cik_tiling_mode_table_init()
2870 for (reg_offset = 0; reg_offset < num_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
2872 for (reg_offset = 0; reg_offset < num_secondary_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
2877 tile[0] = (ARRAY_MODE(ARRAY_2D_TILED_THIN1) | in cik_tiling_mode_table_init()
2956 macrotile[0] = (BANK_WIDTH(ADDR_SURF_BANK_WIDTH_2) | in cik_tiling_mode_table_init()
3013 for (reg_offset = 0; reg_offset < num_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
3015 for (reg_offset = 0; reg_offset < num_secondary_tile_mode_states; reg_offset++) in cik_tiling_mode_table_init()
3020 DRM_ERROR("unknown num pipe config: 0x%x\n", num_pipe_configs); in cik_tiling_mode_table_init()
3032 * registers are instanced per SE or SH. 0xffffffff means
3040 if ((se_num == 0xffffffff) && (sh_num == 0xffffffff)) in cik_select_se_sh()
3042 else if (se_num == 0xffffffff) in cik_select_se_sh()
3044 else if (sh_num == 0xffffffff) in cik_select_se_sh()
3061 u32 i, mask = 0; in cik_create_bitmask()
3063 for (i = 0; i < bit_width; i++) { in cik_create_bitmask()
3091 data = 0; in cik_get_rb_disabled()
3117 u32 disabled_rbs = 0; in cik_setup_rb()
3118 u32 enabled_rbs = 0; in cik_setup_rb()
3120 for (i = 0; i < se_num; i++) { in cik_setup_rb()
3121 for (j = 0; j < sh_per_se; j++) { in cik_setup_rb()
3130 cik_select_se_sh(rdev, 0xffffffff, 0xffffffff); in cik_setup_rb()
3133 for (i = 0; i < max_rb_num_per_se * se_num; i++) { in cik_setup_rb()
3141 for (i = 0; i < se_num; i++) { in cik_setup_rb()
3142 cik_select_se_sh(rdev, i, 0xffffffff); in cik_setup_rb()
3143 data = 0; in cik_setup_rb()
3144 for (j = 0; j < sh_per_se; j++) { in cik_setup_rb()
3146 case 0: in cik_setup_rb()
3147 if (j == 0) in cik_setup_rb()
3167 cik_select_se_sh(rdev, 0xffffffff, 0xffffffff); in cik_setup_rb()
3198 rdev->config.cik.sc_prim_fifo_size_frontend = 0x20; in cik_gpu_init()
3199 rdev->config.cik.sc_prim_fifo_size_backend = 0x100; in cik_gpu_init()
3200 rdev->config.cik.sc_hiz_tile_fifo_size = 0x30; in cik_gpu_init()
3201 rdev->config.cik.sc_earlyz_tile_fifo_size = 0x130; in cik_gpu_init()
3215 rdev->config.cik.sc_prim_fifo_size_frontend = 0x20; in cik_gpu_init()
3216 rdev->config.cik.sc_prim_fifo_size_backend = 0x100; in cik_gpu_init()
3217 rdev->config.cik.sc_hiz_tile_fifo_size = 0x30; in cik_gpu_init()
3218 rdev->config.cik.sc_earlyz_tile_fifo_size = 0x130; in cik_gpu_init()
3232 rdev->config.cik.sc_prim_fifo_size_frontend = 0x20; in cik_gpu_init()
3233 rdev->config.cik.sc_prim_fifo_size_backend = 0x100; in cik_gpu_init()
3234 rdev->config.cik.sc_hiz_tile_fifo_size = 0x30; in cik_gpu_init()
3235 rdev->config.cik.sc_earlyz_tile_fifo_size = 0x130; in cik_gpu_init()
3251 rdev->config.cik.sc_prim_fifo_size_frontend = 0x20; in cik_gpu_init()
3252 rdev->config.cik.sc_prim_fifo_size_backend = 0x100; in cik_gpu_init()
3253 rdev->config.cik.sc_hiz_tile_fifo_size = 0x30; in cik_gpu_init()
3254 rdev->config.cik.sc_earlyz_tile_fifo_size = 0x130; in cik_gpu_init()
3260 for (i = 0, j = 0; i < 32; i++, j += 0x18) { in cik_gpu_init()
3261 WREG32((0x2c14 + j), 0x00000000); in cik_gpu_init()
3262 WREG32((0x2c18 + j), 0x00000000); in cik_gpu_init()
3263 WREG32((0x2c1c + j), 0x00000000); in cik_gpu_init()
3264 WREG32((0x2c20 + j), 0x00000000); in cik_gpu_init()
3265 WREG32((0x2c24 + j), 0x00000000); in cik_gpu_init()
3268 WREG32(GRBM_CNTL, GRBM_READ_TIMEOUT(0xff)); in cik_gpu_init()
3269 WREG32(SRBM_INT_CNTL, 0x1); in cik_gpu_init()
3270 WREG32(SRBM_INT_ACK, 0x1); in cik_gpu_init()
3293 gb_addr_config |= ROW_SIZE(0); in cik_gpu_init()
3305 * bits 3:0 num_pipes in cik_gpu_init()
3310 rdev->config.cik.tile_config = 0; in cik_gpu_init()
3313 rdev->config.cik.tile_config |= (0 << 0); in cik_gpu_init()
3316 rdev->config.cik.tile_config |= (1 << 0); in cik_gpu_init()
3319 rdev->config.cik.tile_config |= (2 << 0); in cik_gpu_init()
3324 rdev->config.cik.tile_config |= (3 << 0); in cik_gpu_init()
3337 WREG32(SDMA0_TILING_CONFIG + SDMA0_REGISTER_OFFSET, gb_addr_config & 0x70); in cik_gpu_init()
3338 WREG32(SDMA0_TILING_CONFIG + SDMA1_REGISTER_OFFSET, gb_addr_config & 0x70); in cik_gpu_init()
3349 rdev->config.cik.active_cus = 0; in cik_gpu_init()
3350 for (i = 0; i < rdev->config.cik.max_shader_engines; i++) { in cik_gpu_init()
3351 for (j = 0; j < rdev->config.cik.max_sh_per_se; j++) { in cik_gpu_init()
3358 WREG32(CP_MEQ_THRESHOLDS, MEQ1_START(0x30) | MEQ2_START(0x60)); in cik_gpu_init()
3360 WREG32(SX_DEBUG_1, 0x20); in cik_gpu_init()
3362 WREG32(TA_CNTL_AUX, 0x00010000); in cik_gpu_init()
3365 tmp |= 0x03000000; in cik_gpu_init()
3370 WREG32(DB_DEBUG, 0); in cik_gpu_init()
3372 tmp = RREG32(DB_DEBUG2) & ~0xf00fffff; in cik_gpu_init()
3373 tmp |= 0x00000400; in cik_gpu_init()
3376 tmp = RREG32(DB_DEBUG3) & ~0x0002021c; in cik_gpu_init()
3377 tmp |= 0x00020200; in cik_gpu_init()
3380 tmp = RREG32(CB_HW_CONTROL) & ~0x00010000; in cik_gpu_init()
3381 tmp |= 0x00018208; in cik_gpu_init()
3393 WREG32(CP_PERFMON_CNTL, 0); in cik_gpu_init()
3395 WREG32(SQ_CONFIG, 0); in cik_gpu_init()
3404 WREG32(PA_SC_LINE_STIPPLE_STATE, 0); in cik_gpu_init()
3438 for (i = 0; i < rdev->scratch.num_reg; i++) { in cik_scratch_init()
3453 * Returns 0 on success, error on failure.
3458 uint32_t tmp = 0; in cik_ring_test()
3467 WREG32(scratch, 0xCAFEDEAD); in cik_ring_test()
3476 radeon_ring_write(ring, 0xDEADBEEF); in cik_ring_test()
3479 for (i = 0; i < rdev->usec_timeout; i++) { in cik_ring_test()
3481 if (tmp == 0xDEADBEEF) in cik_ring_test()
3488 DRM_ERROR("radeon: ring %d test failed (scratch(0x%04X)=0x%08X)\n", in cik_ring_test()
3515 case 0: in cik_hdp_flush_cp_ring_emit()
3538 radeon_ring_write(ring, 0x20); /* poll interval */ in cik_hdp_flush_cp_ring_emit()
3564 radeon_ring_write(ring, addr & 0xfffffffc); in cik_fence_gfx_ring_emit()
3565 radeon_ring_write(ring, (upper_32_bits(addr) & 0xffff) | in cik_fence_gfx_ring_emit()
3566 DATA_SEL(1) | INT_SEL(0)); in cik_fence_gfx_ring_emit()
3568 radeon_ring_write(ring, 0); in cik_fence_gfx_ring_emit()
3576 radeon_ring_write(ring, addr & 0xfffffffc); in cik_fence_gfx_ring_emit()
3577 radeon_ring_write(ring, (upper_32_bits(addr) & 0xffff) | DATA_SEL(1) | INT_SEL(2)); in cik_fence_gfx_ring_emit()
3579 radeon_ring_write(ring, 0); in cik_fence_gfx_ring_emit()
3604 radeon_ring_write(ring, addr & 0xfffffffc); in cik_fence_compute_ring_emit()
3607 radeon_ring_write(ring, 0); in cik_fence_compute_ring_emit()
3631 radeon_ring_write(ring, (upper_32_bits(addr) & 0xffff) | sel); in cik_semaphore_ring_emit()
3635 radeon_ring_write(ring, PACKET3(PACKET3_PFP_SYNC_ME, 0)); in cik_semaphore_ring_emit()
3636 radeon_ring_write(ring, 0x0); in cik_semaphore_ring_emit()
3666 int r = 0; in cik_copy_cpdma()
3671 num_loops = DIV_ROUND_UP(size_in_bytes, 0x1fffff); in cik_copy_cpdma()
3682 for (i = 0; i < num_loops; i++) { in cik_copy_cpdma()
3684 if (cur_size_in_bytes > 0x1fffff) in cik_copy_cpdma()
3685 cur_size_in_bytes = 0x1fffff; in cik_copy_cpdma()
3687 control = 0; in cik_copy_cpdma()
3688 if (size_in_bytes == 0) in cik_copy_cpdma()
3732 unsigned vm_id = ib->vm ? ib->vm->ids[ib->ring].id : 0; in cik_ring_ib_execute()
3737 radeon_ring_write(ring, PACKET3(PACKET3_SWITCH_BUFFER, 0)); in cik_ring_ib_execute()
3738 radeon_ring_write(ring, 0); in cik_ring_ib_execute()
3753 radeon_ring_write(ring, ring->next_rptr_gpu_addr & 0xfffffffc); in cik_ring_ib_execute()
3764 radeon_ring_write(ring, (ib->gpu_addr & 0xFFFFFFFC)); in cik_ring_ib_execute()
3765 radeon_ring_write(ring, upper_32_bits(ib->gpu_addr) & 0xFFFF); in cik_ring_ib_execute()
3777 * Returns 0 on success, error on failure.
3783 uint32_t tmp = 0; in cik_ib_test()
3792 WREG32(scratch, 0xCAFEDEAD); in cik_ib_test()
3799 ib.ptr[0] = PACKET3(PACKET3_SET_UCONFIG_REG, 1); in cik_ib_test()
3801 ib.ptr[2] = 0xDEADBEEF; in cik_ib_test()
3812 if (r < 0) { in cik_ib_test()
3817 } else if (r == 0) { in cik_ib_test()
3823 r = 0; in cik_ib_test()
3824 for (i = 0; i < rdev->usec_timeout; i++) { in cik_ib_test()
3826 if (tmp == 0xDEADBEEF) in cik_ib_test()
3833 DRM_ERROR("radeon: ib test failed (scratch(0x%04X)=0x%08X)\n", in cik_ib_test()
3876 WREG32(CP_ME_CNTL, 0); in cik_cp_gfx_enable()
3892 * Returns 0 for success, -EINVAL if the ucode is not available.
3921 WREG32(CP_PFP_UCODE_ADDR, 0); in cik_cp_gfx_load_microcode()
3922 for (i = 0; i < fw_size; i++) in cik_cp_gfx_load_microcode()
3930 WREG32(CP_CE_UCODE_ADDR, 0); in cik_cp_gfx_load_microcode()
3931 for (i = 0; i < fw_size; i++) in cik_cp_gfx_load_microcode()
3939 WREG32(CP_ME_RAM_WADDR, 0); in cik_cp_gfx_load_microcode()
3940 for (i = 0; i < fw_size; i++) in cik_cp_gfx_load_microcode()
3949 WREG32(CP_PFP_UCODE_ADDR, 0); in cik_cp_gfx_load_microcode()
3950 for (i = 0; i < CIK_PFP_UCODE_SIZE; i++) in cik_cp_gfx_load_microcode()
3952 WREG32(CP_PFP_UCODE_ADDR, 0); in cik_cp_gfx_load_microcode()
3956 WREG32(CP_CE_UCODE_ADDR, 0); in cik_cp_gfx_load_microcode()
3957 for (i = 0; i < CIK_CE_UCODE_SIZE; i++) in cik_cp_gfx_load_microcode()
3959 WREG32(CP_CE_UCODE_ADDR, 0); in cik_cp_gfx_load_microcode()
3963 WREG32(CP_ME_RAM_WADDR, 0); in cik_cp_gfx_load_microcode()
3964 for (i = 0; i < CIK_ME_UCODE_SIZE; i++) in cik_cp_gfx_load_microcode()
3966 WREG32(CP_ME_RAM_WADDR, 0); in cik_cp_gfx_load_microcode()
3969 return 0; in cik_cp_gfx_load_microcode()
3979 * Returns 0 for success, error for failure.
3988 WREG32(CP_ENDIAN_SWAP, 0); in cik_cp_gfx_start()
4002 radeon_ring_write(ring, 0x8000); in cik_cp_gfx_start()
4003 radeon_ring_write(ring, 0x8000); in cik_cp_gfx_start()
4006 radeon_ring_write(ring, PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in cik_cp_gfx_start()
4010 radeon_ring_write(ring, 0x80000000); in cik_cp_gfx_start()
4011 radeon_ring_write(ring, 0x80000000); in cik_cp_gfx_start()
4013 for (i = 0; i < cik_default_size; i++) in cik_cp_gfx_start()
4016 radeon_ring_write(ring, PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in cik_cp_gfx_start()
4020 radeon_ring_write(ring, PACKET3(PACKET3_CLEAR_STATE, 0)); in cik_cp_gfx_start()
4021 radeon_ring_write(ring, 0); in cik_cp_gfx_start()
4024 radeon_ring_write(ring, 0x00000316); in cik_cp_gfx_start()
4025 radeon_ring_write(ring, 0x0000000e); /* VGT_VERTEX_REUSE_BLOCK_CNTL */ in cik_cp_gfx_start()
4026 radeon_ring_write(ring, 0x00000010); /* VGT_OUT_DEALLOC_CNTL */ in cik_cp_gfx_start()
4030 return 0; in cik_cp_gfx_start()
4054 * Returns 0 for success, error for failure.
4064 WREG32(CP_SEM_WAIT_TIMER, 0x0); in cik_cp_gfx_resume()
4066 WREG32(CP_SEM_INCOMPLETE_TIMER_CNTL, 0x0); in cik_cp_gfx_resume()
4069 WREG32(CP_RB_WPTR_DELAY, 0); in cik_cp_gfx_resume()
4071 /* set the RB to use vmid 0 */ in cik_cp_gfx_resume()
4072 WREG32(CP_RB_VMID, 0); in cik_cp_gfx_resume()
4074 WREG32(SCRATCH_ADDR, ((rdev->wb.gpu_addr + RADEON_WB_SCRATCH_OFFSET) >> 8) & 0xFFFFFFFF); in cik_cp_gfx_resume()
4076 /* ring 0 - compute and gfx */ in cik_cp_gfx_resume()
4088 ring->wptr = 0; in cik_cp_gfx_resume()
4092 WREG32(CP_RB0_RPTR_ADDR, (rdev->wb.gpu_addr + RADEON_WB_CP_RPTR_OFFSET) & 0xFFFFFFFC); in cik_cp_gfx_resume()
4093 WREG32(CP_RB0_RPTR_ADDR_HI, upper_32_bits(rdev->wb.gpu_addr + RADEON_WB_CP_RPTR_OFFSET) & 0xFF); in cik_cp_gfx_resume()
4096 WREG32(SCRATCH_UMSK, 0); in cik_cp_gfx_resume()
4120 return 0; in cik_cp_gfx_resume()
4158 cik_srbm_select(rdev, ring->me, ring->pipe, ring->queue, 0); in cik_compute_get_rptr()
4160 cik_srbm_select(rdev, 0, 0, 0, 0); in cik_compute_get_rptr()
4177 cik_srbm_select(rdev, ring->me, ring->pipe, ring->queue, 0); in cik_compute_get_wptr()
4179 cik_srbm_select(rdev, 0, 0, 0, 0); in cik_compute_get_wptr()
4199 cik_srbm_select(rdev, ring->me, ring->pipe, ring->queue, 0); in cik_compute_stop()
4207 for (j = 0; j < rdev->usec_timeout; j++) { in cik_compute_stop()
4212 WREG32(CP_HQD_DEQUEUE_REQUEST, 0); in cik_compute_stop()
4213 WREG32(CP_HQD_PQ_RPTR, 0); in cik_compute_stop()
4214 WREG32(CP_HQD_PQ_WPTR, 0); in cik_compute_stop()
4216 cik_srbm_select(rdev, 0, 0, 0, 0); in cik_compute_stop()
4230 WREG32(CP_MEC_CNTL, 0); in cik_cp_compute_enable()
4254 * Returns 0 for success, -EINVAL if the ucode is not available.
4277 WREG32(CP_MEC_ME1_UCODE_ADDR, 0); in cik_cp_compute_load_microcode()
4278 for (i = 0; i < fw_size; i++) in cik_cp_compute_load_microcode()
4291 WREG32(CP_MEC_ME2_UCODE_ADDR, 0); in cik_cp_compute_load_microcode()
4292 for (i = 0; i < fw_size; i++) in cik_cp_compute_load_microcode()
4301 WREG32(CP_MEC_ME1_UCODE_ADDR, 0); in cik_cp_compute_load_microcode()
4302 for (i = 0; i < CIK_MEC_UCODE_SIZE; i++) in cik_cp_compute_load_microcode()
4304 WREG32(CP_MEC_ME1_UCODE_ADDR, 0); in cik_cp_compute_load_microcode()
4309 WREG32(CP_MEC_ME2_UCODE_ADDR, 0); in cik_cp_compute_load_microcode()
4310 for (i = 0; i < CIK_MEC_UCODE_SIZE; i++) in cik_cp_compute_load_microcode()
4312 WREG32(CP_MEC_ME2_UCODE_ADDR, 0); in cik_cp_compute_load_microcode()
4316 return 0; in cik_cp_compute_load_microcode()
4325 * Returns 0 for success, error for failure.
4331 return 0; in cik_cp_compute_start()
4348 for (i = 0; i < 2; i++) { in cik_cp_compute_fini()
4349 if (i == 0) in cik_cp_compute_fini()
4356 if (unlikely(r != 0)) in cik_cp_compute_fini()
4374 if (unlikely(r != 0)) in cik_mec_fini()
4406 RADEON_GEM_DOMAIN_GTT, 0, NULL, NULL, in cik_mec_init()
4415 if (unlikely(r != 0)) { in cik_mec_init()
4434 memset(hpd, 0, rdev->mec.num_mec *rdev->mec.num_pipe * MEC_HPD_SIZE * 2); in cik_mec_init()
4439 return 0; in cik_mec_init()
4516 * Returns 0 for success, error for failure.
4542 for (i = 0; i < (rdev->mec.num_pipe * rdev->mec.num_mec); ++i) { in cik_cp_compute_resume()
4546 cik_srbm_select(rdev, me, pipe, 0, 0); in cik_cp_compute_resume()
4554 WREG32(CP_HPD_EOP_VMID, 0); in cik_cp_compute_resume()
4563 cik_srbm_select(rdev, 0, 0, 0, 0); in cik_cp_compute_resume()
4567 for (i = 0; i < 2; i++) { in cik_cp_compute_resume()
4568 if (i == 0) in cik_cp_compute_resume()
4577 RADEON_GEM_DOMAIN_GTT, 0, NULL, in cik_cp_compute_resume()
4586 if (unlikely(r != 0)) { in cik_cp_compute_resume()
4605 memset(buf, 0, sizeof(struct bonaire_mqd)); in cik_cp_compute_resume()
4608 mqd->header = 0xC0310800; in cik_cp_compute_resume()
4609 mqd->static_thread_mgmt01[0] = 0xffffffff; in cik_cp_compute_resume()
4610 mqd->static_thread_mgmt01[1] = 0xffffffff; in cik_cp_compute_resume()
4611 mqd->static_thread_mgmt23[0] = 0xffffffff; in cik_cp_compute_resume()
4612 mqd->static_thread_mgmt23[1] = 0xffffffff; in cik_cp_compute_resume()
4617 rdev->ring[idx].queue, 0); in cik_cp_compute_resume()
4635 mqd->queue_state.cp_hqd_dequeue_request = 0; in cik_cp_compute_resume()
4636 mqd->queue_state.cp_hqd_pq_rptr = 0; in cik_cp_compute_resume()
4637 mqd->queue_state.cp_hqd_pq_wptr= 0; in cik_cp_compute_resume()
4640 for (j = 0; j < rdev->usec_timeout; j++) { in cik_cp_compute_resume()
4651 mqd->queue_state.cp_mqd_base_addr = mqd_gpu_addr & 0xfffffffc; in cik_cp_compute_resume()
4655 /* set MQD vmid to 0 */ in cik_cp_compute_resume()
4686 if (i == 0) in cik_cp_compute_resume()
4690 mqd->queue_state.cp_hqd_pq_wptr_poll_addr = wb_gpu_addr & 0xfffffffc; in cik_cp_compute_resume()
4691 mqd->queue_state.cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits(wb_gpu_addr) & 0xffff; in cik_cp_compute_resume()
4697 if (i == 0) in cik_cp_compute_resume()
4701 mqd->queue_state.cp_hqd_pq_rptr_report_addr = wb_gpu_addr & 0xfffffffc; in cik_cp_compute_resume()
4703 upper_32_bits(wb_gpu_addr) & 0xffff; in cik_cp_compute_resume()
4721 mqd->queue_state.cp_hqd_pq_doorbell_control = 0; in cik_cp_compute_resume()
4727 rdev->ring[idx].wptr = 0; in cik_cp_compute_resume()
4733 mqd->queue_state.cp_hqd_vmid = 0; in cik_cp_compute_resume()
4740 cik_srbm_select(rdev, 0, 0, 0, 0); in cik_cp_compute_resume()
4752 return 0; in cik_cp_compute_resume()
4772 return 0; in cik_cp_load_microcode()
4800 return 0; in cik_cp_resume()
4805 dev_info(rdev->dev, " GRBM_STATUS=0x%08X\n", in cik_print_gpu_status_regs()
4807 dev_info(rdev->dev, " GRBM_STATUS2=0x%08X\n", in cik_print_gpu_status_regs()
4809 dev_info(rdev->dev, " GRBM_STATUS_SE0=0x%08X\n", in cik_print_gpu_status_regs()
4811 dev_info(rdev->dev, " GRBM_STATUS_SE1=0x%08X\n", in cik_print_gpu_status_regs()
4813 dev_info(rdev->dev, " GRBM_STATUS_SE2=0x%08X\n", in cik_print_gpu_status_regs()
4815 dev_info(rdev->dev, " GRBM_STATUS_SE3=0x%08X\n", in cik_print_gpu_status_regs()
4817 dev_info(rdev->dev, " SRBM_STATUS=0x%08X\n", in cik_print_gpu_status_regs()
4819 dev_info(rdev->dev, " SRBM_STATUS2=0x%08X\n", in cik_print_gpu_status_regs()
4821 dev_info(rdev->dev, " SDMA0_STATUS_REG = 0x%08X\n", in cik_print_gpu_status_regs()
4823 dev_info(rdev->dev, " SDMA1_STATUS_REG = 0x%08X\n", in cik_print_gpu_status_regs()
4825 dev_info(rdev->dev, " CP_STAT = 0x%08x\n", RREG32(CP_STAT)); in cik_print_gpu_status_regs()
4826 dev_info(rdev->dev, " CP_STALLED_STAT1 = 0x%08x\n", in cik_print_gpu_status_regs()
4828 dev_info(rdev->dev, " CP_STALLED_STAT2 = 0x%08x\n", in cik_print_gpu_status_regs()
4830 dev_info(rdev->dev, " CP_STALLED_STAT3 = 0x%08x\n", in cik_print_gpu_status_regs()
4832 dev_info(rdev->dev, " CP_CPF_BUSY_STAT = 0x%08x\n", in cik_print_gpu_status_regs()
4834 dev_info(rdev->dev, " CP_CPF_STALLED_STAT1 = 0x%08x\n", in cik_print_gpu_status_regs()
4836 dev_info(rdev->dev, " CP_CPF_STATUS = 0x%08x\n", RREG32(CP_CPF_STATUS)); in cik_print_gpu_status_regs()
4837 dev_info(rdev->dev, " CP_CPC_BUSY_STAT = 0x%08x\n", RREG32(CP_CPC_BUSY_STAT)); in cik_print_gpu_status_regs()
4838 dev_info(rdev->dev, " CP_CPC_STALLED_STAT1 = 0x%08x\n", in cik_print_gpu_status_regs()
4840 dev_info(rdev->dev, " CP_CPC_STATUS = 0x%08x\n", RREG32(CP_CPC_STATUS)); in cik_print_gpu_status_regs()
4854 u32 reset_mask = 0; in cik_gpu_check_soft_reset()
4917 DRM_DEBUG("MC busy: 0x%08X, clearing.\n", reset_mask); in cik_gpu_check_soft_reset()
4935 u32 grbm_soft_reset = 0, srbm_soft_reset = 0; in cik_gpu_soft_reset()
4938 if (reset_mask == 0) in cik_gpu_soft_reset()
4941 dev_info(rdev->dev, "GPU softreset: 0x%08X\n", reset_mask); in cik_gpu_soft_reset()
4944 dev_info(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x%08X\n", in cik_gpu_soft_reset()
4946 dev_info(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x%08X\n", in cik_gpu_soft_reset()
5021 dev_info(rdev->dev, "GRBM_SOFT_RESET=0x%08X\n", tmp); in cik_gpu_soft_reset()
5035 dev_info(rdev->dev, "SRBM_SOFT_RESET=0x%08X\n", tmp); in cik_gpu_soft_reset()
5078 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5079 WREG32(GMCON_PGFSM_CONFIG, 0x200010ff); in kv_restore_regs_for_reset()
5081 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5082 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5084 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5085 WREG32(GMCON_PGFSM_CONFIG, 0x300010ff); in kv_restore_regs_for_reset()
5087 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5088 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5090 WREG32(GMCON_PGFSM_WRITE, 0x210000); in kv_restore_regs_for_reset()
5091 WREG32(GMCON_PGFSM_CONFIG, 0xa00010ff); in kv_restore_regs_for_reset()
5093 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5094 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5096 WREG32(GMCON_PGFSM_WRITE, 0x21003); in kv_restore_regs_for_reset()
5097 WREG32(GMCON_PGFSM_CONFIG, 0xb00010ff); in kv_restore_regs_for_reset()
5099 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5100 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5102 WREG32(GMCON_PGFSM_WRITE, 0x2b00); in kv_restore_regs_for_reset()
5103 WREG32(GMCON_PGFSM_CONFIG, 0xc00010ff); in kv_restore_regs_for_reset()
5105 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5106 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5108 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5109 WREG32(GMCON_PGFSM_CONFIG, 0xd00010ff); in kv_restore_regs_for_reset()
5111 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5112 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5114 WREG32(GMCON_PGFSM_WRITE, 0x420000); in kv_restore_regs_for_reset()
5115 WREG32(GMCON_PGFSM_CONFIG, 0x100010ff); in kv_restore_regs_for_reset()
5117 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5118 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5120 WREG32(GMCON_PGFSM_WRITE, 0x120202); in kv_restore_regs_for_reset()
5121 WREG32(GMCON_PGFSM_CONFIG, 0x500010ff); in kv_restore_regs_for_reset()
5123 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5124 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5126 WREG32(GMCON_PGFSM_WRITE, 0x3e3e36); in kv_restore_regs_for_reset()
5127 WREG32(GMCON_PGFSM_CONFIG, 0x600010ff); in kv_restore_regs_for_reset()
5129 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5130 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5132 WREG32(GMCON_PGFSM_WRITE, 0x373f3e); in kv_restore_regs_for_reset()
5133 WREG32(GMCON_PGFSM_CONFIG, 0x700010ff); in kv_restore_regs_for_reset()
5135 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
5136 WREG32(GMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
5138 WREG32(GMCON_PGFSM_WRITE, 0x3e1332); in kv_restore_regs_for_reset()
5139 WREG32(GMCON_PGFSM_CONFIG, 0xe00010ff); in kv_restore_regs_for_reset()
5149 struct kv_reset_save_regs kv_save = { 0 }; in cik_gpu_pci_config_reset()
5198 for (i = 0; i < rdev->usec_timeout; i++) { in cik_gpu_pci_config_reset()
5199 if (RREG32(CONFIG_MEMSIZE) != 0xffffffff) in cik_gpu_pci_config_reset()
5217 * Returns 0 for success.
5225 return 0; in cik_asic_reset()
5247 return 0; in cik_asic_reset()
5288 for (i = 0, j = 0; i < 32; i++, j += 0x18) { in cik_mc_program()
5289 WREG32((0x2c14 + j), 0x00000000); in cik_mc_program()
5290 WREG32((0x2c18 + j), 0x00000000); in cik_mc_program()
5291 WREG32((0x2c1c + j), 0x00000000); in cik_mc_program()
5292 WREG32((0x2c20 + j), 0x00000000); in cik_mc_program()
5293 WREG32((0x2c24 + j), 0x00000000); in cik_mc_program()
5295 WREG32(HDP_REG_COHERENCY_FLUSH_CNTL, 0); in cik_mc_program()
5310 tmp = ((rdev->mc.vram_end >> 24) & 0xFFFF) << 16; in cik_mc_program()
5311 tmp |= ((rdev->mc.vram_start >> 24) & 0xFFFF); in cik_mc_program()
5316 WREG32(HDP_NONSURFACE_SIZE, 0x3FFFFFFF); in cik_mc_program()
5317 WREG32(MC_VM_AGP_BASE, 0); in cik_mc_program()
5318 WREG32(MC_VM_AGP_TOP, 0x0FFFFFFF); in cik_mc_program()
5319 WREG32(MC_VM_AGP_BOT, 0x0FFFFFFF); in cik_mc_program()
5336 * Returns 0 for success.
5353 case 0: in cik_mc_init()
5383 /* Could aper size report 0 ? */ in cik_mc_init()
5384 rdev->mc.aper_base = pci_resource_start(rdev->pdev, 0); in cik_mc_init()
5385 rdev->mc.aper_size = pci_resource_len(rdev->pdev, 0); in cik_mc_init()
5393 return 0; in cik_mc_init()
5398 * VMID 0 is the physical GPU addresses as used by the kernel.
5407 * Flush the TLB for the VMID 0 page table (CIK).
5412 WREG32(HDP_MEM_COHERENCY_FLUSH_CNTL, 0); in cik_pcie_gart_tlb_flush()
5414 /* bits 0-15 are the VM contexts0-15 */ in cik_pcie_gart_tlb_flush()
5415 WREG32(VM_INVALIDATE_REQUEST, 0x1); in cik_pcie_gart_tlb_flush()
5427 * Returns 0 for success, errors for failure.
5442 (0xA << 7) | in cik_pcie_gart_enable()
5465 WREG32(VM_CONTEXT0_CNTL2, 0); in cik_pcie_gart_enable()
5466 WREG32(VM_CONTEXT0_CNTL, (ENABLE_CONTEXT | PAGE_TABLE_DEPTH(0) | in cik_pcie_gart_enable()
5469 WREG32(0x15D4, 0); in cik_pcie_gart_enable()
5470 WREG32(0x15D8, 0); in cik_pcie_gart_enable()
5471 WREG32(0x15DC, 0); in cik_pcie_gart_enable()
5475 WREG32(VM_CONTEXT1_PAGE_TABLE_START_ADDR, 0); in cik_pcie_gart_enable()
5514 for (i = 0; i < 16; i++) { in cik_pcie_gart_enable()
5515 cik_srbm_select(rdev, 0, 0, 0, i); in cik_pcie_gart_enable()
5519 WREG32(SH_MEM_APE1_LIMIT, 0); in cik_pcie_gart_enable()
5520 WREG32(SH_MEM_BASES, 0); in cik_pcie_gart_enable()
5522 WREG32(SDMA0_GFX_VIRTUAL_ADDR + SDMA0_REGISTER_OFFSET, 0); in cik_pcie_gart_enable()
5523 WREG32(SDMA0_GFX_APE1_CNTL + SDMA0_REGISTER_OFFSET, 0); in cik_pcie_gart_enable()
5524 WREG32(SDMA0_GFX_VIRTUAL_ADDR + SDMA1_REGISTER_OFFSET, 0); in cik_pcie_gart_enable()
5525 WREG32(SDMA0_GFX_APE1_CNTL + SDMA1_REGISTER_OFFSET, 0); in cik_pcie_gart_enable()
5528 cik_srbm_select(rdev, 0, 0, 0, 0); in cik_pcie_gart_enable()
5532 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n", in cik_pcie_gart_enable()
5536 return 0; in cik_pcie_gart_enable()
5560 WREG32(VM_CONTEXT0_CNTL, 0); in cik_pcie_gart_disable()
5561 WREG32(VM_CONTEXT1_CNTL, 0); in cik_pcie_gart_disable()
5572 WREG32(VM_L2_CNTL2, 0); in cik_pcie_gart_disable()
5603 return 0; in cik_ib_parse()
5608 * VMID 0 is the physical GPU addresses as used by the kernel.
5619 * Returns 0 for success.
5625 * VMID 0 is reserved for System in cik_vm_init()
5635 rdev->vm_manager.vram_base_offset = 0; in cik_vm_init()
5637 return 0; in cik_vm_init()
5666 char block[5] = { mc_client >> 24, (mc_client >> 16) & 0xff, in cik_vm_decode_fault()
5667 (mc_client >> 8) & 0xff, mc_client & 0xff, 0 }; in cik_vm_decode_fault()
5674 printk("VM fault (0x%02x, vmid %d) at page %u, %s from '%s' (0x%08x) (%d)\n", in cik_vm_decode_fault()
5695 WRITE_DATA_DST_SEL(0))); in cik_vm_flush()
5703 radeon_ring_write(ring, 0); in cik_vm_flush()
5709 WRITE_DATA_DST_SEL(0))); in cik_vm_flush()
5711 radeon_ring_write(ring, 0); in cik_vm_flush()
5716 WRITE_DATA_DST_SEL(0))); in cik_vm_flush()
5718 radeon_ring_write(ring, 0); in cik_vm_flush()
5720 radeon_ring_write(ring, 0); /* SH_MEM_BASES */ in cik_vm_flush()
5723 radeon_ring_write(ring, 0); /* SH_MEM_APE1_LIMIT */ in cik_vm_flush()
5727 WRITE_DATA_DST_SEL(0))); in cik_vm_flush()
5729 radeon_ring_write(ring, 0); in cik_vm_flush()
5730 radeon_ring_write(ring, VMID(0)); in cik_vm_flush()
5735 /* bits 0-15 are the VM contexts0-15 */ in cik_vm_flush()
5738 WRITE_DATA_DST_SEL(0))); in cik_vm_flush()
5740 radeon_ring_write(ring, 0); in cik_vm_flush()
5745 radeon_ring_write(ring, (WAIT_REG_MEM_OPERATION(0) | /* wait */ in cik_vm_flush()
5746 WAIT_REG_MEM_FUNCTION(0) | /* always */ in cik_vm_flush()
5747 WAIT_REG_MEM_ENGINE(0))); /* me */ in cik_vm_flush()
5749 radeon_ring_write(ring, 0); in cik_vm_flush()
5750 radeon_ring_write(ring, 0); /* ref */ in cik_vm_flush()
5751 radeon_ring_write(ring, 0); /* mask */ in cik_vm_flush()
5752 radeon_ring_write(ring, 0x20); /* poll interval */ in cik_vm_flush()
5757 radeon_ring_write(ring, PACKET3(PACKET3_PFP_SYNC_ME, 0)); in cik_vm_flush()
5758 radeon_ring_write(ring, 0x0); in cik_vm_flush()
5797 for (i = 0; i < rdev->config.cik.max_shader_engines; i++) { in cik_wait_for_rlc_serdes()
5798 for (j = 0; j < rdev->config.cik.max_sh_per_se; j++) { in cik_wait_for_rlc_serdes()
5800 for (k = 0; k < rdev->usec_timeout; k++) { in cik_wait_for_rlc_serdes()
5801 if (RREG32(RLC_SERDES_CU_MASTER_BUSY) == 0) in cik_wait_for_rlc_serdes()
5807 cik_select_se_sh(rdev, 0xffffffff, 0xffffffff); in cik_wait_for_rlc_serdes()
5810 for (k = 0; k < rdev->usec_timeout; k++) { in cik_wait_for_rlc_serdes()
5811 if ((RREG32(RLC_SERDES_NONCU_MASTER_BUSY) & mask) == 0) in cik_wait_for_rlc_serdes()
5838 for (i = 0; i < rdev->usec_timeout; i++) { in cik_halt_rlc()
5839 if ((RREG32(RLC_GPM_STAT) & RLC_GPM_BUSY) == 0) in cik_halt_rlc()
5858 for (i = 0; i < rdev->usec_timeout; i++) { in cik_enter_rlc_safe_mode()
5864 for (i = 0; i < rdev->usec_timeout; i++) { in cik_enter_rlc_safe_mode()
5865 if ((RREG32(RLC_GPR_REG2) & REQ) == 0) in cik_enter_rlc_safe_mode()
5888 WREG32(RLC_CNTL, 0); in cik_rlc_stop()
5918 * Returns 0 for success, -EINVAL if the ucode is not available.
5930 tmp = RREG32(RLC_CGCG_CGLS_CTRL) & 0xfffffffc; in cik_rlc_resume()
5939 WREG32(RLC_LB_CNTR_INIT, 0); in cik_rlc_resume()
5940 WREG32(RLC_LB_CNTR_MAX, 0x00008000); in cik_rlc_resume()
5942 cik_select_se_sh(rdev, 0xffffffff, 0xffffffff); in cik_rlc_resume()
5943 WREG32(RLC_LB_INIT_CU_MASK, 0xffffffff); in cik_rlc_resume()
5944 WREG32(RLC_LB_PARAMS, 0x00600408); in cik_rlc_resume()
5945 WREG32(RLC_LB_CNTL, 0x80000004); in cik_rlc_resume()
5947 WREG32(RLC_MC_CNTL, 0); in cik_rlc_resume()
5948 WREG32(RLC_UCODE_CNTL, 0); in cik_rlc_resume()
5959 WREG32(RLC_GPM_UCODE_ADDR, 0); in cik_rlc_resume()
5960 for (i = 0; i < size; i++) in cik_rlc_resume()
5984 WREG32(RLC_GPM_UCODE_ADDR, 0); in cik_rlc_resume()
5985 for (i = 0; i < size; i++) in cik_rlc_resume()
5987 WREG32(RLC_GPM_UCODE_ADDR, 0); in cik_rlc_resume()
5994 WREG32(RLC_DRIVER_DMA_STATUS, 0); in cik_rlc_resume()
5998 return 0; in cik_rlc_resume()
6012 cik_select_se_sh(rdev, 0xffffffff, 0xffffffff); in cik_enable_cgcg()
6013 WREG32(RLC_SERDES_WR_CU_MASTER_MASK, 0xffffffff); in cik_enable_cgcg()
6014 WREG32(RLC_SERDES_WR_NONCU_MASTER_MASK, 0xffffffff); in cik_enable_cgcg()
6039 u32 data, orig, tmp = 0; in cik_enable_mgcg()
6052 data |= 0x00000001; in cik_enable_mgcg()
6053 data &= 0xfffffffd; in cik_enable_mgcg()
6059 cik_select_se_sh(rdev, 0xffffffff, 0xffffffff); in cik_enable_mgcg()
6060 WREG32(RLC_SERDES_WR_CU_MASTER_MASK, 0xffffffff); in cik_enable_mgcg()
6061 WREG32(RLC_SERDES_WR_NONCU_MASTER_MASK, 0xffffffff); in cik_enable_mgcg()
6070 data |= SM_MODE(0x2); in cik_enable_mgcg()
6078 data |= ON_MONITOR_ADD(0x96); in cik_enable_mgcg()
6084 data |= 0x00000003; in cik_enable_mgcg()
6107 cik_select_se_sh(rdev, 0xffffffff, 0xffffffff); in cik_enable_mgcg()
6108 WREG32(RLC_SERDES_WR_CU_MASTER_MASK, 0xffffffff); in cik_enable_mgcg()
6109 WREG32(RLC_SERDES_WR_NONCU_MASTER_MASK, 0xffffffff); in cik_enable_mgcg()
6136 for (i = 0; i < ARRAY_SIZE(mc_cg_registers); i++) { in cik_enable_mc_ls()
6153 for (i = 0; i < ARRAY_SIZE(mc_cg_registers); i++) { in cik_enable_mc_mgcg()
6170 WREG32(SDMA0_CLK_CTRL + SDMA0_REGISTER_OFFSET, 0x00000100); in cik_enable_sdma_mgcg()
6171 WREG32(SDMA0_CLK_CTRL + SDMA1_REGISTER_OFFSET, 0x00000100); in cik_enable_sdma_mgcg()
6174 data |= 0xff000000; in cik_enable_sdma_mgcg()
6179 data |= 0xff000000; in cik_enable_sdma_mgcg()
6192 data |= 0x100; in cik_enable_sdma_mgls()
6197 data |= 0x100; in cik_enable_sdma_mgls()
6202 data &= ~0x100; in cik_enable_sdma_mgls()
6207 data &= ~0x100; in cik_enable_sdma_mgls()
6220 data = 0xfff; in cik_enable_uvd_mgcg()
6229 data &= ~0xfff; in cik_enable_uvd_mgcg()
6425 u32 bo_offset = 0; in cik_init_cp_pg_table()
6436 for (me = 0; me < max_me; me++) { in cik_init_cp_pg_table()
6441 if (me == 0) { in cik_init_cp_pg_table()
6473 for (i = 0; i < table_size; i ++) { in cik_init_cp_pg_table()
6482 if (me == 0) { in cik_init_cp_pg_table()
6496 for (i = 0; i < table_size; i ++) { in cik_init_cp_pg_table()
6537 u32 mask = 0, tmp, tmp1; in cik_get_cu_active_bitmap()
6543 cik_select_se_sh(rdev, 0xffffffff, 0xffffffff); in cik_get_cu_active_bitmap()
6545 tmp &= 0xffff0000; in cik_get_cu_active_bitmap()
6550 for (i = 0; i < rdev->config.cik.max_cu_per_sh; i ++) { in cik_get_cu_active_bitmap()
6560 u32 i, j, k, active_cu_number = 0; in cik_init_ao_cu_mask()
6562 u32 tmp = 0; in cik_init_ao_cu_mask()
6564 for (i = 0; i < rdev->config.cik.max_shader_engines; i++) { in cik_init_ao_cu_mask()
6565 for (j = 0; j < rdev->config.cik.max_sh_per_se; j++) { in cik_init_ao_cu_mask()
6567 cu_bitmap = 0; in cik_init_ao_cu_mask()
6568 counter = 0; in cik_init_ao_cu_mask()
6569 for (k = 0; k < rdev->config.cik.max_cu_per_sh; k ++) { in cik_init_ao_cu_mask()
6619 #define RLC_SAVE_AND_RESTORE_STARTING_OFFSET 0x90
6620 #define RLC_CLEAR_STATE_DESCRIPTOR_OFFSET 0x3D
6634 for (i = 0; i < 3; i++) in cik_init_gfx_cgpg()
6635 WREG32(RLC_GPM_SCRATCH_DATA, 0); in cik_init_gfx_cgpg()
6639 for (i = 0; i < rdev->rlc.reg_list_size; i++) in cik_init_gfx_cgpg()
6653 data |= IDLE_POLL_COUNT(0x60); in cik_init_gfx_cgpg()
6656 data = 0x10101010; in cik_init_gfx_cgpg()
6660 data &= ~0xff; in cik_init_gfx_cgpg()
6661 data |= 0x3; in cik_init_gfx_cgpg()
6666 data |= GRBM_REG_SGIT(0x700); in cik_init_gfx_cgpg()
6680 u32 count = 0; in cik_get_csb_size()
6685 return 0; in cik_get_csb_size()
6697 return 0; in cik_get_csb_size()
6712 u32 count = 0, i; in cik_get_csb_buffer()
6721 buffer[count++] = cpu_to_le32(PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in cik_get_csb_buffer()
6725 buffer[count++] = cpu_to_le32(0x80000000); in cik_get_csb_buffer()
6726 buffer[count++] = cpu_to_le32(0x80000000); in cik_get_csb_buffer()
6733 buffer[count++] = cpu_to_le32(ext->reg_index - 0xa000); in cik_get_csb_buffer()
6734 for (i = 0; i < ext->reg_count; i++) in cik_get_csb_buffer()
6746 buffer[count++] = cpu_to_le32(0x16000012); in cik_get_csb_buffer()
6747 buffer[count++] = cpu_to_le32(0x00000000); in cik_get_csb_buffer()
6750 buffer[count++] = cpu_to_le32(0x00000000); /* XXX */ in cik_get_csb_buffer()
6751 buffer[count++] = cpu_to_le32(0x00000000); in cik_get_csb_buffer()
6755 buffer[count++] = cpu_to_le32(0x00000000); /* XXX */ in cik_get_csb_buffer()
6756 buffer[count++] = cpu_to_le32(0x00000000); in cik_get_csb_buffer()
6759 buffer[count++] = cpu_to_le32(0x3a00161a); in cik_get_csb_buffer()
6760 buffer[count++] = cpu_to_le32(0x0000002e); in cik_get_csb_buffer()
6763 buffer[count++] = cpu_to_le32(0x00000000); in cik_get_csb_buffer()
6764 buffer[count++] = cpu_to_le32(0x00000000); in cik_get_csb_buffer()
6768 buffer[count++] = cpu_to_le32(PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in cik_get_csb_buffer()
6771 buffer[count++] = cpu_to_le32(PACKET3(PACKET3_CLEAR_STATE, 0)); in cik_get_csb_buffer()
6772 buffer[count++] = cpu_to_le32(0); in cik_get_csb_buffer()
6851 /* set rptr, wptr to 0 */ in cik_disable_interrupts()
6852 WREG32(IH_RB_RPTR, 0); in cik_disable_interrupts()
6853 WREG32(IH_RB_WPTR, 0); in cik_disable_interrupts()
6855 rdev->ih.rptr = 0; in cik_disable_interrupts()
6879 WREG32(CP_ME1_PIPE0_INT_CNTL, 0); in cik_disable_interrupt_state()
6880 WREG32(CP_ME1_PIPE1_INT_CNTL, 0); in cik_disable_interrupt_state()
6881 WREG32(CP_ME1_PIPE2_INT_CNTL, 0); in cik_disable_interrupt_state()
6882 WREG32(CP_ME1_PIPE3_INT_CNTL, 0); in cik_disable_interrupt_state()
6883 WREG32(CP_ME2_PIPE0_INT_CNTL, 0); in cik_disable_interrupt_state()
6884 WREG32(CP_ME2_PIPE1_INT_CNTL, 0); in cik_disable_interrupt_state()
6885 WREG32(CP_ME2_PIPE2_INT_CNTL, 0); in cik_disable_interrupt_state()
6886 WREG32(CP_ME2_PIPE3_INT_CNTL, 0); in cik_disable_interrupt_state()
6888 WREG32(GRBM_INT_CNTL, 0); in cik_disable_interrupt_state()
6890 WREG32(SRBM_INT_CNTL, 0); in cik_disable_interrupt_state()
6892 WREG32(LB_INTERRUPT_MASK + EVERGREEN_CRTC0_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6893 WREG32(LB_INTERRUPT_MASK + EVERGREEN_CRTC1_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6895 WREG32(LB_INTERRUPT_MASK + EVERGREEN_CRTC2_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6896 WREG32(LB_INTERRUPT_MASK + EVERGREEN_CRTC3_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6899 WREG32(LB_INTERRUPT_MASK + EVERGREEN_CRTC4_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6900 WREG32(LB_INTERRUPT_MASK + EVERGREEN_CRTC5_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6904 WREG32(GRPH_INT_CONTROL + EVERGREEN_CRTC0_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6905 WREG32(GRPH_INT_CONTROL + EVERGREEN_CRTC1_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6908 WREG32(GRPH_INT_CONTROL + EVERGREEN_CRTC2_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6909 WREG32(GRPH_INT_CONTROL + EVERGREEN_CRTC3_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6912 WREG32(GRPH_INT_CONTROL + EVERGREEN_CRTC4_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6913 WREG32(GRPH_INT_CONTROL + EVERGREEN_CRTC5_REGISTER_OFFSET, 0); in cik_disable_interrupt_state()
6917 WREG32(DAC_AUTODETECT_INT_CONTROL, 0); in cik_disable_interrupt_state()
6944 * Returns 0 for success, errors for failure.
6948 int ret = 0; in cik_irq_init()
6971 /* IH_DUMMY_RD_OVERRIDE=0 - dummy read disabled with msi, enabled without msi in cik_irq_init()
6990 WREG32(IH_RB_WPTR_ADDR_LO, (rdev->wb.gpu_addr + R600_WB_IH_WPTR_OFFSET) & 0xFFFFFFFC); in cik_irq_init()
6991 WREG32(IH_RB_WPTR_ADDR_HI, upper_32_bits(rdev->wb.gpu_addr + R600_WB_IH_WPTR_OFFSET) & 0xFF); in cik_irq_init()
6995 /* set rptr, wptr to 0 */ in cik_irq_init()
6996 WREG32(IH_RB_RPTR, 0); in cik_irq_init()
6997 WREG32(IH_RB_WPTR, 0); in cik_irq_init()
7000 ih_cntl = MC_WRREQ_CREDIT(0x10) | MC_WR_CLEAN_CNT(0x10) | MC_VMID(0); in cik_irq_init()
7024 * Returns 0 for success, errors for failure.
7031 u32 crtc1 = 0, crtc2 = 0, crtc3 = 0, crtc4 = 0, crtc5 = 0, crtc6 = 0; in cik_irq_set()
7033 u32 grbm_int_cntl = 0; in cik_irq_set()
7045 return 0; in cik_irq_set()
7081 case 0: in cik_irq_set()
7099 case 0: in cik_irq_set()
7124 case 0: in cik_irq_set()
7142 case 0: in cik_irq_set()
7173 if (rdev->irq.crtc_vblank_int[0] || in cik_irq_set()
7174 atomic_read(&rdev->irq.pflip[0])) { in cik_irq_set()
7175 DRM_DEBUG("cik_irq_set: vblank 0\n"); in cik_irq_set()
7203 if (rdev->irq.hpd[0]) { in cik_irq_set()
7284 return 0; in cik_irq_set()
7507 dev_warn(rdev->dev, "IH ring buffer overflow (0x%08X, 0x%08X, 0x%08X)\n", in cik_get_ih_wptr()
7519 * [7:0] - interrupt source id
7525 * ME_ID [1:0], PIPE_ID[1:0], QUEUE_ID[2:0]
7527 * - for gfx, hw shader state (0=PS...5=LS, 6=CS)
7528 * ME_ID - 0 = gfx, 1 = first 4 CS pipes, 2 = second 4 CS pipes
7529 * PIPE_ID - ME0 0=3D
7532 * INSTANCE_ID [1:0], QUEUE_ID[1:0]
7533 * INSTANCE_ID - 0 = sdma0, 1 = sdma1
7534 * QUEUE_ID - 0 = gfx, 1 = rlc0, 2 = rlc1
7587 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in cik_irq_process()
7588 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in cik_irq_process()
7589 ring_id = le32_to_cpu(rdev->ih.ring[ring_index + 2]) & 0xff; in cik_irq_process()
7594 case 0: /* D1 vblank */ in cik_irq_process()
7598 if (rdev->irq.crtc_vblank_int[0]) { in cik_irq_process()
7599 drm_handle_vblank(rdev->ddev, 0); in cik_irq_process()
7603 if (atomic_read(&rdev->irq.pflip[0])) in cik_irq_process()
7604 radeon_crtc_handle_vblank(rdev, 0); in cik_irq_process()
7624 case 0: /* D2 vblank */ in cik_irq_process()
7654 case 0: /* D3 vblank */ in cik_irq_process()
7684 case 0: /* D4 vblank */ in cik_irq_process()
7714 case 0: /* D5 vblank */ in cik_irq_process()
7744 case 0: /* D6 vblank */ in cik_irq_process()
7779 if (radeon_use_pflipirq > 0) in cik_irq_process()
7784 case 0: in cik_irq_process()
7898 DRM_ERROR("SRBM_READ_ERROR: 0x%x\n", RREG32(SRBM_READ_ERROR)); in cik_irq_process()
7899 WREG32(SRBM_INT_ACK, 0x1); in cik_irq_process()
7902 DRM_DEBUG("IH: UVD int: 0x%08x\n", src_data); in cik_irq_process()
7912 if (addr == 0x0 && status == 0x0) in cik_irq_process()
7914 dev_err(rdev->dev, "GPU fault detected: %d 0x%08x\n", src_id, src_data); in cik_irq_process()
7915 dev_err(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x%08X\n", in cik_irq_process()
7917 dev_err(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x%08X\n", in cik_irq_process()
7922 DRM_DEBUG("IH: VCE int: 0x%08x\n", src_data); in cik_irq_process()
7924 case 0: in cik_irq_process()
7942 me_id = (ring_id & 0x60) >> 5; in cik_irq_process()
7943 pipe_id = (ring_id & 0x18) >> 3; in cik_irq_process()
7944 queue_id = (ring_id & 0x7) >> 0; in cik_irq_process()
7946 case 0: in cik_irq_process()
7961 me_id = (ring_id & 0x60) >> 5; in cik_irq_process()
7962 pipe_id = (ring_id & 0x18) >> 3; in cik_irq_process()
7963 queue_id = (ring_id & 0x7) >> 0; in cik_irq_process()
7965 case 0: in cik_irq_process()
7984 me_id = (ring_id & 0x60) >> 5; in cik_irq_process()
7985 pipe_id = (ring_id & 0x18) >> 3; in cik_irq_process()
7986 queue_id = (ring_id & 0x7) >> 0; in cik_irq_process()
7988 case 0: in cik_irq_process()
8006 me_id = (ring_id & 0x3) >> 0; in cik_irq_process()
8007 queue_id = (ring_id & 0xc) >> 2; in cik_irq_process()
8010 case 0: in cik_irq_process()
8012 case 0: in cik_irq_process()
8025 case 0: in cik_irq_process()
8055 me_id = (ring_id & 0x3) >> 0; in cik_irq_process()
8056 queue_id = (ring_id & 0xc) >> 2; in cik_irq_process()
8058 case 0: in cik_irq_process()
8060 case 0: in cik_irq_process()
8075 case 0: in cik_irq_process()
8103 schedule_delayed_work(&rdev->hotplug_work, 0); in cik_irq_process()
8111 atomic_set(&rdev->ih.lock, 0); in cik_irq_process()
8172 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; in cik_uvd_start()
8184 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); in cik_uvd_resume()
8251 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size = 0; in cik_vce_start()
8252 rdev->ring[TN_RING_TYPE_VCE2_INDEX].ring_size = 0; in cik_vce_start()
8264 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP); in cik_vce_resume()
8270 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP); in cik_vce_resume()
8289 * Returns 0 for success, error for failure.
8405 nop = PACKET3(PACKET3_NOP, 0x3FFF); in cik_startup()
8409 nop = PACKET3(PACKET3_NOP, 0x3FFF); in cik_startup()
8426 ring->pipe = 0; /* first pipe */ in cik_startup()
8427 ring->queue = 0; /* first queue */ in cik_startup()
8438 ring->pipe = 0; /* first pipe */ in cik_startup()
8444 SDMA_PACKET(SDMA_OPCODE_NOP, 0, 0)); in cik_startup()
8450 SDMA_PACKET(SDMA_OPCODE_NOP, 0, 0)); in cik_startup()
8481 return 0; in cik_startup()
8491 * Returns 0 for success, error for failure.
8525 * Returns 0 for success.
8545 return 0; in cik_suspend()
8562 * Returns 0 for success, errors for failure.
8701 return 0; in cik_init()
8747 int bpc = 0; in dce8_program_fmt()
8748 u32 tmp = 0; in dce8_program_fmt()
8766 if (bpc == 0) in dce8_program_fmt()
8774 FMT_SPATIAL_DITHER_EN | FMT_SPATIAL_DITHER_DEPTH(0)); in dce8_program_fmt()
8776 tmp |= (FMT_TRUNCATE_EN | FMT_TRUNCATE_DEPTH(0)); in dce8_program_fmt()
8822 u32 pipe_offset = radeon_crtc->crtc_id * 0x20; in dce8_line_buffer_adjust()
8839 tmp = 0; in dce8_line_buffer_adjust()
8843 tmp = 0; in dce8_line_buffer_adjust()
8848 buffer_alloc = 0; in dce8_line_buffer_adjust()
8852 LB_MEMORY_CONFIG(tmp) | LB_MEMORY_SIZE(0x6B0)); in dce8_line_buffer_adjust()
8856 for (i = 0; i < rdev->usec_timeout; i++) { in dce8_line_buffer_adjust()
8865 case 0: in dce8_line_buffer_adjust()
8876 return 0; in dce8_line_buffer_adjust()
8893 case 0: in cik_get_number_of_dram_channels()
9125 if (wm->num_heads == 0) in dce8_latency_watermark()
9126 return 0; in dce8_latency_watermark()
9253 u32 line_time = 0; in dce8_program_watermarks()
9254 u32 latency_watermark_a = 0, latency_watermark_b = 0; in dce8_program_watermarks()
9385 u32 num_heads = 0, lb_size; in dce8_bandwidth_update()
9393 for (i = 0; i < rdev->num_crtc; i++) { in dce8_bandwidth_update()
9397 for (i = 0; i < rdev->num_crtc; i++) { in dce8_bandwidth_update()
9441 for (i = 0; i < 100; i++) { in cik_set_uvd_clock()
9449 return 0; in cik_set_uvd_clock()
9454 int r = 0; in cik_set_uvd_clocks()
9475 for (i = 0; i < 100; i++) { in cik_set_vce_clocks()
9488 for (i = 0; i < 100; i++) { in cik_set_vce_clocks()
9496 return 0; in cik_set_vce_clocks()
9510 if (radeon_pcie_gen2 == 0) in cik_pcie_gen3_enable()
9535 DRM_INFO("enabling PCIE gen 3 link speeds, disable with radeon.pcie_gen2=0\n"); in cik_pcie_gen3_enable()
9541 DRM_INFO("enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0\n"); in cik_pcie_gen3_enable()
9580 for (i = 0; i < 10; i++) { in cik_pcie_gen3_enable()
9677 for (i = 0; i < rdev->usec_timeout; i++) { in cik_pcie_gen3_enable()
9679 if ((speed_cntl & LC_INITIATE_LINK_SPEED_CHANGE) == 0) in cik_pcie_gen3_enable()
9691 if (radeon_aspm == 0) in cik_program_aspm()
9703 data |= LC_XMIT_N_FTS(0x24) | LC_XMIT_N_FTS_OVERRIDE_EN; in cik_program_aspm()