summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c
index b944844e..b42c3698 100644
--- a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c
@@ -135,13 +135,13 @@ static int gp10b_tegra_probe(struct device *dev)
135 platform->bypass_smmu = !device_is_iommuable(dev); 135 platform->bypass_smmu = !device_is_iommuable(dev);
136 platform->disable_bigpage = platform->bypass_smmu; 136 platform->disable_bigpage = platform->bypass_smmu;
137 137
138 platform->g->gr.t18x.ctx_vars.dump_ctxsw_stats_on_channel_close 138 platform->g->gr.ctx_vars.dump_ctxsw_stats_on_channel_close
139 = false; 139 = false;
140 platform->g->gr.t18x.ctx_vars.dump_ctxsw_stats_on_channel_close 140 platform->g->gr.ctx_vars.dump_ctxsw_stats_on_channel_close
141 = false; 141 = false;
142 142
143 platform->g->gr.t18x.ctx_vars.force_preemption_gfxp = false; 143 platform->g->gr.ctx_vars.force_preemption_gfxp = false;
144 platform->g->gr.t18x.ctx_vars.force_preemption_cilp = false; 144 platform->g->gr.ctx_vars.force_preemption_cilp = false;
145 145
146 gp10b_tegra_get_clocks(dev); 146 gp10b_tegra_get_clocks(dev);
147 nvgpu_linux_init_clk_support(platform->g); 147 nvgpu_linux_init_clk_support(platform->g);
@@ -621,86 +621,86 @@ void gr_gp10b_create_sysfs(struct gk20a *g)
621 initialized multiple times but we only need to create the ECC 621 initialized multiple times but we only need to create the ECC
622 stats once. Therefore, add the following check to avoid 622 stats once. Therefore, add the following check to avoid
623 creating duplicate stat sysfs nodes. */ 623 creating duplicate stat sysfs nodes. */
624 if (g->ecc.gr.t18x.sm_lrf_single_err_count.counters != NULL) 624 if (g->ecc.gr.sm_lrf_single_err_count.counters != NULL)
625 return; 625 return;
626 626
627 error |= gr_gp10b_ecc_stat_create(dev, 627 error |= gr_gp10b_ecc_stat_create(dev,
628 0, 628 0,
629 "sm_lrf_ecc_single_err_count", 629 "sm_lrf_ecc_single_err_count",
630 &g->ecc.gr.t18x.sm_lrf_single_err_count, 630 &g->ecc.gr.sm_lrf_single_err_count,
631 &dev_attr_sm_lrf_ecc_single_err_count_array); 631 &dev_attr_sm_lrf_ecc_single_err_count_array);
632 error |= gr_gp10b_ecc_stat_create(dev, 632 error |= gr_gp10b_ecc_stat_create(dev,
633 0, 633 0,
634 "sm_lrf_ecc_double_err_count", 634 "sm_lrf_ecc_double_err_count",
635 &g->ecc.gr.t18x.sm_lrf_double_err_count, 635 &g->ecc.gr.sm_lrf_double_err_count,
636 &dev_attr_sm_lrf_ecc_double_err_count_array); 636 &dev_attr_sm_lrf_ecc_double_err_count_array);
637 637
638 error |= gr_gp10b_ecc_stat_create(dev, 638 error |= gr_gp10b_ecc_stat_create(dev,
639 0, 639 0,
640 "sm_shm_ecc_sec_count", 640 "sm_shm_ecc_sec_count",
641 &g->ecc.gr.t18x.sm_shm_sec_count, 641 &g->ecc.gr.sm_shm_sec_count,
642 &dev_attr_sm_shm_ecc_sec_count_array); 642 &dev_attr_sm_shm_ecc_sec_count_array);
643 error |= gr_gp10b_ecc_stat_create(dev, 643 error |= gr_gp10b_ecc_stat_create(dev,
644 0, 644 0,
645 "sm_shm_ecc_sed_count", 645 "sm_shm_ecc_sed_count",
646 &g->ecc.gr.t18x.sm_shm_sed_count, 646 &g->ecc.gr.sm_shm_sed_count,
647 &dev_attr_sm_shm_ecc_sed_count_array); 647 &dev_attr_sm_shm_ecc_sed_count_array);
648 error |= gr_gp10b_ecc_stat_create(dev, 648 error |= gr_gp10b_ecc_stat_create(dev,
649 0, 649 0,
650 "sm_shm_ecc_ded_count", 650 "sm_shm_ecc_ded_count",
651 &g->ecc.gr.t18x.sm_shm_ded_count, 651 &g->ecc.gr.sm_shm_ded_count,
652 &dev_attr_sm_shm_ecc_ded_count_array); 652 &dev_attr_sm_shm_ecc_ded_count_array);
653 653
654 error |= gr_gp10b_ecc_stat_create(dev, 654 error |= gr_gp10b_ecc_stat_create(dev,
655 0, 655 0,
656 "tex_ecc_total_sec_pipe0_count", 656 "tex_ecc_total_sec_pipe0_count",
657 &g->ecc.gr.t18x.tex_total_sec_pipe0_count, 657 &g->ecc.gr.tex_total_sec_pipe0_count,
658 &dev_attr_tex_ecc_total_sec_pipe0_count_array); 658 &dev_attr_tex_ecc_total_sec_pipe0_count_array);
659 error |= gr_gp10b_ecc_stat_create(dev, 659 error |= gr_gp10b_ecc_stat_create(dev,
660 0, 660 0,
661 "tex_ecc_total_ded_pipe0_count", 661 "tex_ecc_total_ded_pipe0_count",
662 &g->ecc.gr.t18x.tex_total_ded_pipe0_count, 662 &g->ecc.gr.tex_total_ded_pipe0_count,
663 &dev_attr_tex_ecc_total_ded_pipe0_count_array); 663 &dev_attr_tex_ecc_total_ded_pipe0_count_array);
664 error |= gr_gp10b_ecc_stat_create(dev, 664 error |= gr_gp10b_ecc_stat_create(dev,
665 0, 665 0,
666 "tex_ecc_unique_sec_pipe0_count", 666 "tex_ecc_unique_sec_pipe0_count",
667 &g->ecc.gr.t18x.tex_unique_sec_pipe0_count, 667 &g->ecc.gr.tex_unique_sec_pipe0_count,
668 &dev_attr_tex_ecc_unique_sec_pipe0_count_array); 668 &dev_attr_tex_ecc_unique_sec_pipe0_count_array);
669 error |= gr_gp10b_ecc_stat_create(dev, 669 error |= gr_gp10b_ecc_stat_create(dev,
670 0, 670 0,
671 "tex_ecc_unique_ded_pipe0_count", 671 "tex_ecc_unique_ded_pipe0_count",
672 &g->ecc.gr.t18x.tex_unique_ded_pipe0_count, 672 &g->ecc.gr.tex_unique_ded_pipe0_count,
673 &dev_attr_tex_ecc_unique_ded_pipe0_count_array); 673 &dev_attr_tex_ecc_unique_ded_pipe0_count_array);
674 error |= gr_gp10b_ecc_stat_create(dev, 674 error |= gr_gp10b_ecc_stat_create(dev,
675 0, 675 0,
676 "tex_ecc_total_sec_pipe1_count", 676 "tex_ecc_total_sec_pipe1_count",
677 &g->ecc.gr.t18x.tex_total_sec_pipe1_count, 677 &g->ecc.gr.tex_total_sec_pipe1_count,
678 &dev_attr_tex_ecc_total_sec_pipe1_count_array); 678 &dev_attr_tex_ecc_total_sec_pipe1_count_array);
679 error |= gr_gp10b_ecc_stat_create(dev, 679 error |= gr_gp10b_ecc_stat_create(dev,
680 0, 680 0,
681 "tex_ecc_total_ded_pipe1_count", 681 "tex_ecc_total_ded_pipe1_count",
682 &g->ecc.gr.t18x.tex_total_ded_pipe1_count, 682 &g->ecc.gr.tex_total_ded_pipe1_count,
683 &dev_attr_tex_ecc_total_ded_pipe1_count_array); 683 &dev_attr_tex_ecc_total_ded_pipe1_count_array);
684 error |= gr_gp10b_ecc_stat_create(dev, 684 error |= gr_gp10b_ecc_stat_create(dev,
685 0, 685 0,
686 "tex_ecc_unique_sec_pipe1_count", 686 "tex_ecc_unique_sec_pipe1_count",
687 &g->ecc.gr.t18x.tex_unique_sec_pipe1_count, 687 &g->ecc.gr.tex_unique_sec_pipe1_count,
688 &dev_attr_tex_ecc_unique_sec_pipe1_count_array); 688 &dev_attr_tex_ecc_unique_sec_pipe1_count_array);
689 error |= gr_gp10b_ecc_stat_create(dev, 689 error |= gr_gp10b_ecc_stat_create(dev,
690 0, 690 0,
691 "tex_ecc_unique_ded_pipe1_count", 691 "tex_ecc_unique_ded_pipe1_count",
692 &g->ecc.gr.t18x.tex_unique_ded_pipe1_count, 692 &g->ecc.gr.tex_unique_ded_pipe1_count,
693 &dev_attr_tex_ecc_unique_ded_pipe1_count_array); 693 &dev_attr_tex_ecc_unique_ded_pipe1_count_array);
694 694
695 error |= gr_gp10b_ecc_stat_create(dev, 695 error |= gr_gp10b_ecc_stat_create(dev,
696 1, 696 1,
697 "lts0_ecc_sec_count", 697 "lts0_ecc_sec_count",
698 &g->ecc.gr.t18x.l2_sec_count, 698 &g->ecc.ltc.l2_sec_count,
699 &dev_attr_l2_ecc_sec_count_array); 699 &dev_attr_l2_ecc_sec_count_array);
700 error |= gr_gp10b_ecc_stat_create(dev, 700 error |= gr_gp10b_ecc_stat_create(dev,
701 1, 701 1,
702 "lts0_ecc_ded_count", 702 "lts0_ecc_ded_count",
703 &g->ecc.gr.t18x.l2_ded_count, 703 &g->ecc.ltc.l2_ded_count,
704 &dev_attr_l2_ecc_ded_count_array); 704 &dev_attr_l2_ecc_ded_count_array);
705 705
706 if (error) 706 if (error)
@@ -713,65 +713,65 @@ static void gr_gp10b_remove_sysfs(struct device *dev)
713 713
714 gr_gp10b_ecc_stat_remove(dev, 714 gr_gp10b_ecc_stat_remove(dev,
715 0, 715 0,
716 &g->ecc.gr.t18x.sm_lrf_single_err_count, 716 &g->ecc.gr.sm_lrf_single_err_count,
717 dev_attr_sm_lrf_ecc_single_err_count_array); 717 dev_attr_sm_lrf_ecc_single_err_count_array);
718 gr_gp10b_ecc_stat_remove(dev, 718 gr_gp10b_ecc_stat_remove(dev,
719 0, 719 0,
720 &g->ecc.gr.t18x.sm_lrf_double_err_count, 720 &g->ecc.gr.sm_lrf_double_err_count,
721 dev_attr_sm_lrf_ecc_double_err_count_array); 721 dev_attr_sm_lrf_ecc_double_err_count_array);
722 722
723 gr_gp10b_ecc_stat_remove(dev, 723 gr_gp10b_ecc_stat_remove(dev,
724 0, 724 0,
725 &g->ecc.gr.t18x.sm_shm_sec_count, 725 &g->ecc.gr.sm_shm_sec_count,
726 dev_attr_sm_shm_ecc_sec_count_array); 726 dev_attr_sm_shm_ecc_sec_count_array);
727 gr_gp10b_ecc_stat_remove(dev, 727 gr_gp10b_ecc_stat_remove(dev,
728 0, 728 0,
729 &g->ecc.gr.t18x.sm_shm_sed_count, 729 &g->ecc.gr.sm_shm_sed_count,
730 dev_attr_sm_shm_ecc_sed_count_array); 730 dev_attr_sm_shm_ecc_sed_count_array);
731 gr_gp10b_ecc_stat_remove(dev, 731 gr_gp10b_ecc_stat_remove(dev,
732 0, 732 0,
733 &g->ecc.gr.t18x.sm_shm_ded_count, 733 &g->ecc.gr.sm_shm_ded_count,
734 dev_attr_sm_shm_ecc_ded_count_array); 734 dev_attr_sm_shm_ecc_ded_count_array);
735 735
736 gr_gp10b_ecc_stat_remove(dev, 736 gr_gp10b_ecc_stat_remove(dev,
737 0, 737 0,
738 &g->ecc.gr.t18x.tex_total_sec_pipe0_count, 738 &g->ecc.gr.tex_total_sec_pipe0_count,
739 dev_attr_tex_ecc_total_sec_pipe0_count_array); 739 dev_attr_tex_ecc_total_sec_pipe0_count_array);
740 gr_gp10b_ecc_stat_remove(dev, 740 gr_gp10b_ecc_stat_remove(dev,
741 0, 741 0,
742 &g->ecc.gr.t18x.tex_total_ded_pipe0_count, 742 &g->ecc.gr.tex_total_ded_pipe0_count,
743 dev_attr_tex_ecc_total_ded_pipe0_count_array); 743 dev_attr_tex_ecc_total_ded_pipe0_count_array);
744 gr_gp10b_ecc_stat_remove(dev, 744 gr_gp10b_ecc_stat_remove(dev,
745 0, 745 0,
746 &g->ecc.gr.t18x.tex_unique_sec_pipe0_count, 746 &g->ecc.gr.tex_unique_sec_pipe0_count,
747 dev_attr_tex_ecc_unique_sec_pipe0_count_array); 747 dev_attr_tex_ecc_unique_sec_pipe0_count_array);
748 gr_gp10b_ecc_stat_remove(dev, 748 gr_gp10b_ecc_stat_remove(dev,
749 0, 749 0,
750 &g->ecc.gr.t18x.tex_unique_ded_pipe0_count, 750 &g->ecc.gr.tex_unique_ded_pipe0_count,
751 dev_attr_tex_ecc_unique_ded_pipe0_count_array); 751 dev_attr_tex_ecc_unique_ded_pipe0_count_array);
752 gr_gp10b_ecc_stat_remove(dev, 752 gr_gp10b_ecc_stat_remove(dev,
753 0, 753 0,
754 &g->ecc.gr.t18x.tex_total_sec_pipe1_count, 754 &g->ecc.gr.tex_total_sec_pipe1_count,
755 dev_attr_tex_ecc_total_sec_pipe1_count_array); 755 dev_attr_tex_ecc_total_sec_pipe1_count_array);
756 gr_gp10b_ecc_stat_remove(dev, 756 gr_gp10b_ecc_stat_remove(dev,
757 0, 757 0,
758 &g->ecc.gr.t18x.tex_total_ded_pipe1_count, 758 &g->ecc.gr.tex_total_ded_pipe1_count,
759 dev_attr_tex_ecc_total_ded_pipe1_count_array); 759 dev_attr_tex_ecc_total_ded_pipe1_count_array);
760 gr_gp10b_ecc_stat_remove(dev, 760 gr_gp10b_ecc_stat_remove(dev,
761 0, 761 0,
762 &g->ecc.gr.t18x.tex_unique_sec_pipe1_count, 762 &g->ecc.gr.tex_unique_sec_pipe1_count,
763 dev_attr_tex_ecc_unique_sec_pipe1_count_array); 763 dev_attr_tex_ecc_unique_sec_pipe1_count_array);
764 gr_gp10b_ecc_stat_remove(dev, 764 gr_gp10b_ecc_stat_remove(dev,
765 0, 765 0,
766 &g->ecc.gr.t18x.tex_unique_ded_pipe1_count, 766 &g->ecc.gr.tex_unique_ded_pipe1_count,
767 dev_attr_tex_ecc_unique_ded_pipe1_count_array); 767 dev_attr_tex_ecc_unique_ded_pipe1_count_array);
768 768
769 gr_gp10b_ecc_stat_remove(dev, 769 gr_gp10b_ecc_stat_remove(dev,
770 1, 770 1,
771 &g->ecc.gr.t18x.l2_sec_count, 771 &g->ecc.ltc.l2_sec_count,
772 dev_attr_l2_ecc_sec_count_array); 772 dev_attr_l2_ecc_sec_count_array);
773 gr_gp10b_ecc_stat_remove(dev, 773 gr_gp10b_ecc_stat_remove(dev,
774 1, 774 1,
775 &g->ecc.gr.t18x.l2_ded_count, 775 &g->ecc.ltc.l2_ded_count,
776 dev_attr_l2_ecc_ded_count_array); 776 dev_attr_l2_ecc_ded_count_array);
777} 777}