summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2015-04-17 02:13:40 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:05 -0500
commitfaa1e5d82b8c3a2d125f04788f8146ba9b9b186c (patch)
tree08922d528a0b6d5c7f29e7fecf9c9667c57912ac /drivers/gpu/nvgpu/gp10b/pmu_gp10b.c
parent0f2a1edd655be0d6f364c07a409ee100ca940f4b (diff)
gpu: nvgpu: gp10b: update elpg sequencing value
- Added final elpg sequencing value - by default elpg is disabled. Bug 1525971 Change-Id: I2c306d9f03e361560a95fcfa723eafe14d004191 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/732574 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/pmu_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/pmu_gp10b.c201
1 files changed, 101 insertions, 100 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c b/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c
index 4ba0f997..9ecf3964 100644
--- a/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c
@@ -31,102 +31,103 @@ struct pg_init_sequence_list {
31}; 31};
32 32
33/* PROD settings for ELPG sequencing registers*/ 33/* PROD settings for ELPG sequencing registers*/
34static struct pg_init_sequence_list _pginitseq_gm20b[] = { 34static struct pg_init_sequence_list _pginitseq_gp10b[] = {
35 { 0x0010ab10, 0x8180}, 35 {0x0010ab10, 0x0000868B} ,
36 { 0x0010e118, 0x83828180}, 36 {0x0010e118, 0x8590848F} ,
37 { 0x0010e068, 0}, 37 {0x0010e000, 0} ,
38 { 0x0010e06c, 0x00000080}, 38 {0x0010e06c, 0x000000A3} ,
39 { 0x0010e06c, 0x00000081}, 39 {0x0010e06c, 0x000000A0} ,
40 { 0x0010e06c, 0x00000082}, 40 {0x0010e06c, 0x00000095} ,
41 { 0x0010e06c, 0x00000083}, 41 {0x0010e06c, 0x000000A6} ,
42 { 0x0010e06c, 0x00000084}, 42 {0x0010e06c, 0x0000008C} ,
43 { 0x0010e06c, 0x00000085}, 43 {0x0010e06c, 0x00000080} ,
44 { 0x0010e06c, 0x00000086}, 44 {0x0010e06c, 0x00000081} ,
45 { 0x0010e06c, 0x00000087}, 45 {0x0010e06c, 0x00000087} ,
46 { 0x0010e06c, 0x00000088}, 46 {0x0010e06c, 0x00000088} ,
47 { 0x0010e06c, 0x00000089}, 47 {0x0010e06c, 0x0000008D} ,
48 { 0x0010e06c, 0x0000008a}, 48 {0x0010e06c, 0x000000A00} ,
49 { 0x0010e06c, 0x0000008b}, 49 {0x0010e06c, 0x000000A01} ,
50 { 0x0010e06c, 0x0000008c}, 50 {0x0010e06c, 0x000000A02} ,
51 { 0x0010e06c, 0x0000008d}, 51 {0x0010e06c, 0x000000A03} ,
52 { 0x0010e06c, 0x0000008e}, 52 {0x0010e06c, 0x000000A04} ,
53 { 0x0010e06c, 0x0000008f}, 53 {0x0010e06c, 0x000000A05} ,
54 { 0x0010e06c, 0x00000090}, 54 {0x0010e06c, 0x000000A06} ,
55 { 0x0010e06c, 0x00000091}, 55 {0x0010e06c, 0x000000A07} ,
56 { 0x0010e06c, 0x00000092}, 56 {0x0010e06c, 0x000000A08} ,
57 { 0x0010e06c, 0x00000093}, 57 {0x0010e06c, 0x000000A09} ,
58 { 0x0010e06c, 0x00000094}, 58 {0x0010e06c, 0x000000950} ,
59 { 0x0010e06c, 0x00000095}, 59 {0x0010e06c, 0x000000951} ,
60 { 0x0010e06c, 0x00000096}, 60 {0x0010e06c, 0x000000952} ,
61 { 0x0010e06c, 0x00000097}, 61 {0x0010e06c, 0x000000953} ,
62 { 0x0010e06c, 0x00000098}, 62 {0x0010e06c, 0x000000954} ,
63 { 0x0010e06c, 0x00000099}, 63 {0x0010e06c, 0x000000955} ,
64 { 0x0010e06c, 0x0000009a}, 64 {0x0010e06c, 0x000000956} ,
65 { 0x0010e06c, 0x0000009b}, 65 {0x0010e06c, 0x000000957} ,
66 { 0x0010e06c, 0x00000000}, 66 {0x0010ab14, 0x00000000} ,
67 { 0x0010e06c, 0x00000000}, 67 {0x0010e024, 0x00000000} ,
68 { 0x0010e06c, 0x00000000}, 68 {0x0010e028, 0x00000000} ,
69 { 0x0010e06c, 0x00000000}, 69 {0x0010e11c, 0x00000000} ,
70 { 0x0010e06c, 0x00000000}, 70 {0x0010ab1c, 0x140B0B55} ,
71 { 0x0010e06c, 0x00000000}, 71 {0x0010e020, 0x0E262655} ,
72 { 0x0010e06c, 0x00000000}, 72 {0x0010e124, 0x25101055} ,
73 { 0x0010e06c, 0x00000000}, 73 {0x0010ab20, 0x89abcdef} ,
74 { 0x0010e06c, 0x00000000}, 74 {0x0010ab24, 0x00000000} ,
75 { 0x0010e06c, 0x00000000}, 75 {0x0010e02c, 0x89abcdef} ,
76 { 0x0010e06c, 0x00000000}, 76 {0x0010e030, 0x00000000} ,
77 { 0x0010e06c, 0x00000000}, 77 {0x0010e128, 0x89abcdef} ,
78 { 0x0010e06c, 0x00000000}, 78 {0x0010e12c, 0x00000000} ,
79 { 0x0010e06c, 0x00000000}, 79 {0x0010ab28, 0x75555555} ,
80 { 0x0010e06c, 0x00000000}, 80 {0x0010ab2c, 0x70000000} ,
81 { 0x0010e06c, 0x00000000}, 81 {0x0010e034, 0x75555555} ,
82 { 0x0010e06c, 0x00000000}, 82 {0x0010e038, 0x70000000} ,
83 { 0x0010e06c, 0x00000000}, 83 {0x0010e130, 0x75555555} ,
84 { 0x0010e06c, 0x00000000}, 84 {0x0010e134, 0x70000000} ,
85 { 0x0010e06c, 0x00000000}, 85 {0x0010ab30, 0x00000000} ,
86 { 0x0010e06c, 0x00000000}, 86 {0x0010ab34, 0x00000001} ,
87 { 0x0010e06c, 0x00000000}, 87 {0x00020004, 0x00000000} ,
88 { 0x0010e06c, 0x00000000}, 88 {0x0010e138, 0x00000000} ,
89 { 0x0010e06c, 0x00000000}, 89 {0x0010e040, 0x00000000} ,
90 { 0x0010e06c, 0x00000000}, 90 {0x0010e168, 0x00000000} ,
91 { 0x0010e06c, 0x00000000}, 91 {0x0010e114, 0x0000A5A4} ,
92 { 0x0010e06c, 0x00000000}, 92 {0x0010e110, 0x00000000} ,
93 { 0x0010e06c, 0x00000000}, 93 {0x0010e10c, 0x8590848F} ,
94 { 0x0010e06c, 0x00000000}, 94 {0x0010e05c, 0x00000000} ,
95 { 0x0010e06c, 0x00000000}, 95 {0x0010e044, 0x00000000} ,
96 { 0x0010e06c, 0x00000000}, 96 {0x0010a644, 0x0000868B} ,
97 { 0x0010e06c, 0x00000000}, 97 {0x0010a648, 0x00000000 } ,
98 { 0x0010e06c, 0x00000000}, 98 {0x0010a64c, 0x00829493 } ,
99 { 0x0010e06c, 0x00000000}, 99 {0x0010a650, 0x00000000} ,
100 { 0x0010e06c, 0x00000000}, 100 {0x0010e000, 0} ,
101 { 0x0010e06c, 0x00000000}, 101 {0x0010e068, 0x000000A3} ,
102 { 0x0010e06c, 0x00000000}, 102 {0x0010e068, 0x000000A0} ,
103 { 0x0010e06c, 0x00000000}, 103 {0x0010e068, 0x00000095} ,
104 { 0x0010ab14, 0x00000000}, 104 {0x0010e068, 0x000000A6} ,
105 { 0x0010ab18, 0x00000000}, 105 {0x0010e068, 0x0000008C} ,
106 { 0x0010e024, 0x00000000}, 106 {0x0010e068, 0x00000080} ,
107 { 0x0010e028, 0x00000000}, 107 {0x0010e068, 0x00000081} ,
108 { 0x0010e11c, 0x00000000}, 108 {0x0010e068, 0x00000087} ,
109 { 0x0010e120, 0x00000000}, 109 {0x0010e068, 0x00000088} ,
110 { 0x0010ab1c, 0x02010155}, 110 {0x0010e068, 0x0000008D} ,
111 { 0x0010e020, 0x001b1b55}, 111 {0x0010e068, 0x000000A00} ,
112 { 0x0010e124, 0x01030355}, 112 {0x0010e068, 0x000000A01} ,
113 { 0x0010ab20, 0x89abcdef}, 113 {0x0010e068, 0x000000A02} ,
114 { 0x0010ab24, 0x00000000}, 114 {0x0010e068, 0x000000A03} ,
115 { 0x0010e02c, 0x89abcdef}, 115 {0x0010e068, 0x000000A04} ,
116 { 0x0010e030, 0x00000000}, 116 {0x0010e068, 0x000000A05} ,
117 { 0x0010e128, 0x89abcdef}, 117 {0x0010e068, 0x000000A06} ,
118 { 0x0010e12c, 0x00000000}, 118 {0x0010e068, 0x000000A07} ,
119 { 0x0010ab28, 0x74444444}, 119 {0x0010e068, 0x000000A08} ,
120 { 0x0010ab2c, 0x70000000}, 120 {0x0010e068, 0x000000A09} ,
121 { 0x0010e034, 0x74444444}, 121 {0x0010e068, 0x000000950} ,
122 { 0x0010e038, 0x70000000}, 122 {0x0010e068, 0x000000951} ,
123 { 0x0010e130, 0x74444444}, 123 {0x0010e068, 0x000000952} ,
124 { 0x0010e134, 0x70000000}, 124 {0x0010e068, 0x000000953} ,
125 { 0x0010ab30, 0x00000000}, 125 {0x0010e068, 0x000000954} ,
126 { 0x0010ab34, 0x00000001}, 126 {0x0010e068, 0x000000955} ,
127 { 0x00020004, 0x00000000}, 127 {0x0010e068, 0x000000956} ,
128 { 0x0010e138, 0x00000000}, 128 {0x0010e068, 0x000000957} ,
129 { 0x0010e040, 0x00000000}, 129 {0x0010e000, 0} ,
130 {0x0010e004, 0x0000008E},
130}; 131};
131 132
132static int gp10b_pmu_setup_elpg(struct gk20a *g) 133static int gp10b_pmu_setup_elpg(struct gk20a *g)
@@ -138,12 +139,12 @@ static int gp10b_pmu_setup_elpg(struct gk20a *g)
138 gk20a_dbg_fn(""); 139 gk20a_dbg_fn("");
139 140
140 if (g->elpg_enabled) { 141 if (g->elpg_enabled) {
141 reg_writes = ((sizeof(_pginitseq_gm20b) / 142 reg_writes = ((sizeof(_pginitseq_gp10b) /
142 sizeof((_pginitseq_gm20b)[0]))); 143 sizeof((_pginitseq_gp10b)[0])));
143 /* Initialize registers with production values*/ 144 /* Initialize registers with production values*/
144 for (index = 0; index < reg_writes; index++) { 145 for (index = 0; index < reg_writes; index++) {
145 gk20a_writel(g, _pginitseq_gm20b[index].regaddr, 146 gk20a_writel(g, _pginitseq_gp10b[index].regaddr,
146 _pginitseq_gm20b[index].writeval); 147 _pginitseq_gp10b[index].writeval);
147 } 148 }
148 } 149 }
149 150