diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-09-05 23:09:22 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-02 23:13:09 -0400 |
commit | d66b9d9a6839129e11b94c90ec415b244b44414d (patch) | |
tree | a0d04f310ae39648f10e6cfb1bc1624109b6f049 | |
parent | cd8c14b407d59ac4b8d324f5f9cdf223a2079c88 (diff) |
drm/nvc0/gr: rebuild fuc with latest envyas
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
4 files changed, 167 insertions, 12 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc index 15272be33b66..b86cc60dcd56 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc +++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc | |||
@@ -24,7 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | /* To build: | 26 | /* To build: |
27 | * m4 nvc0_grgpc.fuc | envyas -a -w -m fuc -V nva3 -o nvc0_grgpc.fuc.h | 27 | * m4 gpcnvc0.fuc | envyas -a -w -m fuc -V fuc3 -o gpcnvc0.fuc.h |
28 | */ | 28 | */ |
29 | 29 | ||
30 | /* TODO | 30 | /* TODO |
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | .section #nvc0_grgpc_data | 35 | .section #nvc0_grgpc_data |
36 | include(`nvc0_graph.fuc') | 36 | include(`nvc0.fuc') |
37 | gpc_id: .b32 0 | 37 | gpc_id: .b32 0 |
38 | gpc_mmio_list_head: .b32 0 | 38 | gpc_mmio_list_head: .b32 0 |
39 | gpc_mmio_list_tail: .b32 0 | 39 | gpc_mmio_list_tail: .b32 0 |
@@ -209,11 +209,11 @@ nvd9_tpc_mmio_tail: | |||
209 | .section #nvc0_grgpc_code | 209 | .section #nvc0_grgpc_code |
210 | bra #init | 210 | bra #init |
211 | define(`include_code') | 211 | define(`include_code') |
212 | include(`nvc0_graph.fuc') | 212 | include(`nvc0.fuc') |
213 | 213 | ||
214 | // reports an exception to the host | 214 | // reports an exception to the host |
215 | // | 215 | // |
216 | // In: $r15 error code (see nvc0_graph.fuc) | 216 | // In: $r15 error code (see nvc0.fuc) |
217 | // | 217 | // |
218 | error: | 218 | error: |
219 | push $r14 | 219 | push $r14 |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h index 826a7b321937..96050ddb22ca 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h +++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h | |||
@@ -1,11 +1,19 @@ | |||
1 | static uint32_t nvc0_grgpc_data[] = { | 1 | uint32_t nvc0_grgpc_data[] = { |
2 | /* 0x0000: gpc_id */ | ||
2 | 0x00000000, | 3 | 0x00000000, |
4 | /* 0x0004: gpc_mmio_list_head */ | ||
3 | 0x00000000, | 5 | 0x00000000, |
6 | /* 0x0008: gpc_mmio_list_tail */ | ||
4 | 0x00000000, | 7 | 0x00000000, |
8 | /* 0x000c: tpc_count */ | ||
5 | 0x00000000, | 9 | 0x00000000, |
10 | /* 0x0010: tpc_mask */ | ||
6 | 0x00000000, | 11 | 0x00000000, |
12 | /* 0x0014: tpc_mmio_list_head */ | ||
7 | 0x00000000, | 13 | 0x00000000, |
14 | /* 0x0018: tpc_mmio_list_tail */ | ||
8 | 0x00000000, | 15 | 0x00000000, |
16 | /* 0x001c: cmd_queue */ | ||
9 | 0x00000000, | 17 | 0x00000000, |
10 | 0x00000000, | 18 | 0x00000000, |
11 | 0x00000000, | 19 | 0x00000000, |
@@ -24,6 +32,7 @@ static uint32_t nvc0_grgpc_data[] = { | |||
24 | 0x00000000, | 32 | 0x00000000, |
25 | 0x00000000, | 33 | 0x00000000, |
26 | 0x00000000, | 34 | 0x00000000, |
35 | /* 0x0064: chipsets */ | ||
27 | 0x000000c0, | 36 | 0x000000c0, |
28 | 0x012800c8, | 37 | 0x012800c8, |
29 | 0x01e40194, | 38 | 0x01e40194, |
@@ -49,6 +58,7 @@ static uint32_t nvc0_grgpc_data[] = { | |||
49 | 0x0194012c, | 58 | 0x0194012c, |
50 | 0x025401f8, | 59 | 0x025401f8, |
51 | 0x00000000, | 60 | 0x00000000, |
61 | /* 0x00c8: nvc0_gpc_mmio_head */ | ||
52 | 0x00000380, | 62 | 0x00000380, |
53 | 0x14000400, | 63 | 0x14000400, |
54 | 0x20000450, | 64 | 0x20000450, |
@@ -73,7 +83,10 @@ static uint32_t nvc0_grgpc_data[] = { | |||
73 | 0x00000c8c, | 83 | 0x00000c8c, |
74 | 0x08001000, | 84 | 0x08001000, |
75 | 0x00001014, | 85 | 0x00001014, |
86 | /* 0x0128: nvc0_gpc_mmio_tail */ | ||
76 | 0x00000c6c, | 87 | 0x00000c6c, |
88 | /* 0x012c: nvc1_gpc_mmio_tail */ | ||
89 | /* 0x012c: nvd9_gpc_mmio_head */ | ||
77 | 0x00000380, | 90 | 0x00000380, |
78 | 0x04000400, | 91 | 0x04000400, |
79 | 0x0800040c, | 92 | 0x0800040c, |
@@ -100,6 +113,8 @@ static uint32_t nvc0_grgpc_data[] = { | |||
100 | 0x00000c8c, | 113 | 0x00000c8c, |
101 | 0x08001000, | 114 | 0x08001000, |
102 | 0x00001014, | 115 | 0x00001014, |
116 | /* 0x0194: nvd9_gpc_mmio_tail */ | ||
117 | /* 0x0194: nvc0_tpc_mmio_head */ | ||
103 | 0x00000018, | 118 | 0x00000018, |
104 | 0x0000003c, | 119 | 0x0000003c, |
105 | 0x00000048, | 120 | 0x00000048, |
@@ -120,11 +135,16 @@ static uint32_t nvc0_grgpc_data[] = { | |||
120 | 0x4c000644, | 135 | 0x4c000644, |
121 | 0x00000698, | 136 | 0x00000698, |
122 | 0x04000750, | 137 | 0x04000750, |
138 | /* 0x01e4: nvc0_tpc_mmio_tail */ | ||
123 | 0x00000758, | 139 | 0x00000758, |
124 | 0x000002c4, | 140 | 0x000002c4, |
125 | 0x000006e0, | 141 | 0x000006e0, |
142 | /* 0x01f0: nvcf_tpc_mmio_tail */ | ||
126 | 0x000004bc, | 143 | 0x000004bc, |
144 | /* 0x01f4: nvc3_tpc_mmio_tail */ | ||
127 | 0x00000544, | 145 | 0x00000544, |
146 | /* 0x01f8: nvc1_tpc_mmio_tail */ | ||
147 | /* 0x01f8: nvd9_tpc_mmio_head */ | ||
128 | 0x00000018, | 148 | 0x00000018, |
129 | 0x0000003c, | 149 | 0x0000003c, |
130 | 0x00000048, | 150 | 0x00000048, |
@@ -150,14 +170,16 @@ static uint32_t nvc0_grgpc_data[] = { | |||
150 | 0x08000750, | 170 | 0x08000750, |
151 | }; | 171 | }; |
152 | 172 | ||
153 | static uint32_t nvc0_grgpc_code[] = { | 173 | uint32_t nvc0_grgpc_code[] = { |
154 | 0x03060ef5, | 174 | 0x03060ef5, |
175 | /* 0x0004: queue_put */ | ||
155 | 0x9800d898, | 176 | 0x9800d898, |
156 | 0x86f001d9, | 177 | 0x86f001d9, |
157 | 0x0489b808, | 178 | 0x0489b808, |
158 | 0xf00c1bf4, | 179 | 0xf00c1bf4, |
159 | 0x21f502f7, | 180 | 0x21f502f7, |
160 | 0x00f802ec, | 181 | 0x00f802ec, |
182 | /* 0x001c: queue_put_next */ | ||
161 | 0xb60798c4, | 183 | 0xb60798c4, |
162 | 0x8dbb0384, | 184 | 0x8dbb0384, |
163 | 0x0880b600, | 185 | 0x0880b600, |
@@ -165,6 +187,7 @@ static uint32_t nvc0_grgpc_code[] = { | |||
165 | 0x90b6018f, | 187 | 0x90b6018f, |
166 | 0x0f94f001, | 188 | 0x0f94f001, |
167 | 0xf801d980, | 189 | 0xf801d980, |
190 | /* 0x0039: queue_get */ | ||
168 | 0x0131f400, | 191 | 0x0131f400, |
169 | 0x9800d898, | 192 | 0x9800d898, |
170 | 0x89b801d9, | 193 | 0x89b801d9, |
@@ -176,37 +199,46 @@ static uint32_t nvc0_grgpc_code[] = { | |||
176 | 0x80b6019f, | 199 | 0x80b6019f, |
177 | 0x0f84f001, | 200 | 0x0f84f001, |
178 | 0xf400d880, | 201 | 0xf400d880, |
202 | /* 0x0066: queue_get_done */ | ||
179 | 0x00f80132, | 203 | 0x00f80132, |
204 | /* 0x0068: nv_rd32 */ | ||
180 | 0x0728b7f1, | 205 | 0x0728b7f1, |
181 | 0xb906b4b6, | 206 | 0xb906b4b6, |
182 | 0xc9f002ec, | 207 | 0xc9f002ec, |
183 | 0x00bcd01f, | 208 | 0x00bcd01f, |
209 | /* 0x0078: nv_rd32_wait */ | ||
184 | 0xc800bccf, | 210 | 0xc800bccf, |
185 | 0x1bf41fcc, | 211 | 0x1bf41fcc, |
186 | 0x06a7f0fa, | 212 | 0x06a7f0fa, |
187 | 0x010321f5, | 213 | 0x010321f5, |
188 | 0xf840bfcf, | 214 | 0xf840bfcf, |
215 | /* 0x008d: nv_wr32 */ | ||
189 | 0x28b7f100, | 216 | 0x28b7f100, |
190 | 0x06b4b607, | 217 | 0x06b4b607, |
191 | 0xb980bfd0, | 218 | 0xb980bfd0, |
192 | 0xc9f002ec, | 219 | 0xc9f002ec, |
193 | 0x1ec9f01f, | 220 | 0x1ec9f01f, |
221 | /* 0x00a3: nv_wr32_wait */ | ||
194 | 0xcf00bcd0, | 222 | 0xcf00bcd0, |
195 | 0xccc800bc, | 223 | 0xccc800bc, |
196 | 0xfa1bf41f, | 224 | 0xfa1bf41f, |
225 | /* 0x00ae: watchdog_reset */ | ||
197 | 0x87f100f8, | 226 | 0x87f100f8, |
198 | 0x84b60430, | 227 | 0x84b60430, |
199 | 0x1ff9f006, | 228 | 0x1ff9f006, |
200 | 0xf8008fd0, | 229 | 0xf8008fd0, |
230 | /* 0x00bd: watchdog_clear */ | ||
201 | 0x3087f100, | 231 | 0x3087f100, |
202 | 0x0684b604, | 232 | 0x0684b604, |
203 | 0xf80080d0, | 233 | 0xf80080d0, |
234 | /* 0x00c9: wait_donez */ | ||
204 | 0x3c87f100, | 235 | 0x3c87f100, |
205 | 0x0684b608, | 236 | 0x0684b608, |
206 | 0x99f094bd, | 237 | 0x99f094bd, |
207 | 0x0089d000, | 238 | 0x0089d000, |
208 | 0x081887f1, | 239 | 0x081887f1, |
209 | 0xd00684b6, | 240 | 0xd00684b6, |
241 | /* 0x00e2: wait_done_wait_donez */ | ||
210 | 0x87f1008a, | 242 | 0x87f1008a, |
211 | 0x84b60400, | 243 | 0x84b60400, |
212 | 0x0088cf06, | 244 | 0x0088cf06, |
@@ -215,6 +247,7 @@ static uint32_t nvc0_grgpc_code[] = { | |||
215 | 0x84b6085c, | 247 | 0x84b6085c, |
216 | 0xf094bd06, | 248 | 0xf094bd06, |
217 | 0x89d00099, | 249 | 0x89d00099, |
250 | /* 0x0103: wait_doneo */ | ||
218 | 0xf100f800, | 251 | 0xf100f800, |
219 | 0xb6083c87, | 252 | 0xb6083c87, |
220 | 0x94bd0684, | 253 | 0x94bd0684, |
@@ -222,6 +255,7 @@ static uint32_t nvc0_grgpc_code[] = { | |||
222 | 0x87f10089, | 255 | 0x87f10089, |
223 | 0x84b60818, | 256 | 0x84b60818, |
224 | 0x008ad006, | 257 | 0x008ad006, |
258 | /* 0x011c: wait_done_wait_doneo */ | ||
225 | 0x040087f1, | 259 | 0x040087f1, |
226 | 0xcf0684b6, | 260 | 0xcf0684b6, |
227 | 0x8aff0088, | 261 | 0x8aff0088, |
@@ -230,6 +264,8 @@ static uint32_t nvc0_grgpc_code[] = { | |||
230 | 0xbd0684b6, | 264 | 0xbd0684b6, |
231 | 0x0099f094, | 265 | 0x0099f094, |
232 | 0xf80089d0, | 266 | 0xf80089d0, |
267 | /* 0x013d: mmctx_size */ | ||
268 | /* 0x013f: nv_mmctx_size_loop */ | ||
233 | 0x9894bd00, | 269 | 0x9894bd00, |
234 | 0x85b600e8, | 270 | 0x85b600e8, |
235 | 0x0180b61a, | 271 | 0x0180b61a, |
@@ -238,6 +274,7 @@ static uint32_t nvc0_grgpc_code[] = { | |||
238 | 0x04efb804, | 274 | 0x04efb804, |
239 | 0xb9eb1bf4, | 275 | 0xb9eb1bf4, |
240 | 0x00f8029f, | 276 | 0x00f8029f, |
277 | /* 0x015c: mmctx_xfer */ | ||
241 | 0x083c87f1, | 278 | 0x083c87f1, |
242 | 0xbd0684b6, | 279 | 0xbd0684b6, |
243 | 0x0199f094, | 280 | 0x0199f094, |
@@ -247,9 +284,11 @@ static uint32_t nvc0_grgpc_code[] = { | |||
247 | 0xf405bbfd, | 284 | 0xf405bbfd, |
248 | 0x8bd0090b, | 285 | 0x8bd0090b, |
249 | 0x0099f000, | 286 | 0x0099f000, |
287 | /* 0x0180: mmctx_base_disabled */ | ||
250 | 0xf405eefd, | 288 | 0xf405eefd, |
251 | 0x8ed00c0b, | 289 | 0x8ed00c0b, |
252 | 0xc08fd080, | 290 | 0xc08fd080, |
291 | /* 0x018f: mmctx_multi_disabled */ | ||
253 | 0xb70199f0, | 292 | 0xb70199f0, |
254 | 0xc8010080, | 293 | 0xc8010080, |
255 | 0xb4b600ab, | 294 | 0xb4b600ab, |
@@ -257,6 +296,8 @@ static uint32_t nvc0_grgpc_code[] = { | |||
257 | 0xb601aec8, | 296 | 0xb601aec8, |
258 | 0xbefd11e4, | 297 | 0xbefd11e4, |
259 | 0x008bd005, | 298 | 0x008bd005, |
299 | /* 0x01a8: mmctx_exec_loop */ | ||
300 | /* 0x01a8: mmctx_wait_free */ | ||
260 | 0xf0008ecf, | 301 | 0xf0008ecf, |
261 | 0x0bf41fe4, | 302 | 0x0bf41fe4, |
262 | 0x00ce98fa, | 303 | 0x00ce98fa, |
@@ -265,34 +306,42 @@ static uint32_t nvc0_grgpc_code[] = { | |||
265 | 0x04cdb804, | 306 | 0x04cdb804, |
266 | 0xc8e81bf4, | 307 | 0xc8e81bf4, |
267 | 0x1bf402ab, | 308 | 0x1bf402ab, |
309 | /* 0x01c9: mmctx_fini_wait */ | ||
268 | 0x008bcf18, | 310 | 0x008bcf18, |
269 | 0xb01fb4f0, | 311 | 0xb01fb4f0, |
270 | 0x1bf410b4, | 312 | 0x1bf410b4, |
271 | 0x02a7f0f7, | 313 | 0x02a7f0f7, |
272 | 0xf4c921f4, | 314 | 0xf4c921f4, |
315 | /* 0x01de: mmctx_stop */ | ||
273 | 0xabc81b0e, | 316 | 0xabc81b0e, |
274 | 0x10b4b600, | 317 | 0x10b4b600, |
275 | 0xf00cb9f0, | 318 | 0xf00cb9f0, |
276 | 0x8bd012b9, | 319 | 0x8bd012b9, |
320 | /* 0x01ed: mmctx_stop_wait */ | ||
277 | 0x008bcf00, | 321 | 0x008bcf00, |
278 | 0xf412bbc8, | 322 | 0xf412bbc8, |
323 | /* 0x01f6: mmctx_done */ | ||
279 | 0x87f1fa1b, | 324 | 0x87f1fa1b, |
280 | 0x84b6085c, | 325 | 0x84b6085c, |
281 | 0xf094bd06, | 326 | 0xf094bd06, |
282 | 0x89d00199, | 327 | 0x89d00199, |
328 | /* 0x0207: strand_wait */ | ||
283 | 0xf900f800, | 329 | 0xf900f800, |
284 | 0x02a7f0a0, | 330 | 0x02a7f0a0, |
285 | 0xfcc921f4, | 331 | 0xfcc921f4, |
332 | /* 0x0213: strand_pre */ | ||
286 | 0xf100f8a0, | 333 | 0xf100f8a0, |
287 | 0xf04afc87, | 334 | 0xf04afc87, |
288 | 0x97f00283, | 335 | 0x97f00283, |
289 | 0x0089d00c, | 336 | 0x0089d00c, |
290 | 0x020721f5, | 337 | 0x020721f5, |
338 | /* 0x0226: strand_post */ | ||
291 | 0x87f100f8, | 339 | 0x87f100f8, |
292 | 0x83f04afc, | 340 | 0x83f04afc, |
293 | 0x0d97f002, | 341 | 0x0d97f002, |
294 | 0xf50089d0, | 342 | 0xf50089d0, |
295 | 0xf8020721, | 343 | 0xf8020721, |
344 | /* 0x0239: strand_set */ | ||
296 | 0xfca7f100, | 345 | 0xfca7f100, |
297 | 0x02a3f04f, | 346 | 0x02a3f04f, |
298 | 0x0500aba2, | 347 | 0x0500aba2, |
@@ -303,6 +352,7 @@ static uint32_t nvc0_grgpc_code[] = { | |||
303 | 0xf000aed0, | 352 | 0xf000aed0, |
304 | 0xbcd00ac7, | 353 | 0xbcd00ac7, |
305 | 0x0721f500, | 354 | 0x0721f500, |
355 | /* 0x0263: strand_ctx_init */ | ||
306 | 0xf100f802, | 356 | 0xf100f802, |
307 | 0xb6083c87, | 357 | 0xb6083c87, |
308 | 0x94bd0684, | 358 | 0x94bd0684, |
@@ -325,6 +375,7 @@ static uint32_t nvc0_grgpc_code[] = { | |||
325 | 0x0684b608, | 375 | 0x0684b608, |
326 | 0xb70089cf, | 376 | 0xb70089cf, |
327 | 0x95220080, | 377 | 0x95220080, |
378 | /* 0x02ba: ctx_init_strand_loop */ | ||
328 | 0x8ed008fe, | 379 | 0x8ed008fe, |
329 | 0x408ed000, | 380 | 0x408ed000, |
330 | 0xb6808acf, | 381 | 0xb6808acf, |
@@ -338,12 +389,14 @@ static uint32_t nvc0_grgpc_code[] = { | |||
338 | 0x94bd0684, | 389 | 0x94bd0684, |
339 | 0xd00399f0, | 390 | 0xd00399f0, |
340 | 0x00f80089, | 391 | 0x00f80089, |
392 | /* 0x02ec: error */ | ||
341 | 0xe7f1e0f9, | 393 | 0xe7f1e0f9, |
342 | 0xe3f09814, | 394 | 0xe3f09814, |
343 | 0x8d21f440, | 395 | 0x8d21f440, |
344 | 0x041ce0b7, | 396 | 0x041ce0b7, |
345 | 0xf401f7f0, | 397 | 0xf401f7f0, |
346 | 0xe0fc8d21, | 398 | 0xe0fc8d21, |
399 | /* 0x0306: init */ | ||
347 | 0x04bd00f8, | 400 | 0x04bd00f8, |
348 | 0xf10004fe, | 401 | 0xf10004fe, |
349 | 0xf0120017, | 402 | 0xf0120017, |
@@ -366,11 +419,13 @@ static uint32_t nvc0_grgpc_code[] = { | |||
366 | 0x27f10002, | 419 | 0x27f10002, |
367 | 0x24b60800, | 420 | 0x24b60800, |
368 | 0x0022cf06, | 421 | 0x0022cf06, |
422 | /* 0x035f: init_find_chipset */ | ||
369 | 0xb65817f0, | 423 | 0xb65817f0, |
370 | 0x13980c10, | 424 | 0x13980c10, |
371 | 0x0432b800, | 425 | 0x0432b800, |
372 | 0xb00b0bf4, | 426 | 0xb00b0bf4, |
373 | 0x1bf40034, | 427 | 0x1bf40034, |
428 | /* 0x0373: init_context */ | ||
374 | 0xf100f8f1, | 429 | 0xf100f8f1, |
375 | 0xb6080027, | 430 | 0xb6080027, |
376 | 0x22cf0624, | 431 | 0x22cf0624, |
@@ -407,6 +462,7 @@ static uint32_t nvc0_grgpc_code[] = { | |||
407 | 0x0010b740, | 462 | 0x0010b740, |
408 | 0xf024bd08, | 463 | 0xf024bd08, |
409 | 0x12d01f29, | 464 | 0x12d01f29, |
465 | /* 0x0401: main */ | ||
410 | 0x0031f400, | 466 | 0x0031f400, |
411 | 0xf00028f4, | 467 | 0xf00028f4, |
412 | 0x21f41cd7, | 468 | 0x21f41cd7, |
@@ -419,9 +475,11 @@ static uint32_t nvc0_grgpc_code[] = { | |||
419 | 0xfe051efd, | 475 | 0xfe051efd, |
420 | 0x21f50018, | 476 | 0x21f50018, |
421 | 0x0ef404c3, | 477 | 0x0ef404c3, |
478 | /* 0x0431: main_not_ctx_xfer */ | ||
422 | 0x10ef94d3, | 479 | 0x10ef94d3, |
423 | 0xf501f5f0, | 480 | 0xf501f5f0, |
424 | 0xf402ec21, | 481 | 0xf402ec21, |
482 | /* 0x043e: ih */ | ||
425 | 0x80f9c60e, | 483 | 0x80f9c60e, |
426 | 0xf90188fe, | 484 | 0xf90188fe, |
427 | 0xf990f980, | 485 | 0xf990f980, |
@@ -436,30 +494,36 @@ static uint32_t nvc0_grgpc_code[] = { | |||
436 | 0xb0b70421, | 494 | 0xb0b70421, |
437 | 0xe7f00400, | 495 | 0xe7f00400, |
438 | 0x00bed001, | 496 | 0x00bed001, |
497 | /* 0x0474: ih_no_fifo */ | ||
439 | 0xfc400ad0, | 498 | 0xfc400ad0, |
440 | 0xfce0fcf0, | 499 | 0xfce0fcf0, |
441 | 0xfcb0fcd0, | 500 | 0xfcb0fcd0, |
442 | 0xfc90fca0, | 501 | 0xfc90fca0, |
443 | 0x0088fe80, | 502 | 0x0088fe80, |
444 | 0x32f480fc, | 503 | 0x32f480fc, |
504 | /* 0x048f: hub_barrier_done */ | ||
445 | 0xf001f800, | 505 | 0xf001f800, |
446 | 0x0e9801f7, | 506 | 0x0e9801f7, |
447 | 0x04febb00, | 507 | 0x04febb00, |
448 | 0x9418e7f1, | 508 | 0x9418e7f1, |
449 | 0xf440e3f0, | 509 | 0xf440e3f0, |
450 | 0x00f88d21, | 510 | 0x00f88d21, |
511 | /* 0x04a4: ctx_redswitch */ | ||
451 | 0x0614e7f1, | 512 | 0x0614e7f1, |
452 | 0xf006e4b6, | 513 | 0xf006e4b6, |
453 | 0xefd020f7, | 514 | 0xefd020f7, |
454 | 0x08f7f000, | 515 | 0x08f7f000, |
516 | /* 0x04b4: ctx_redswitch_delay */ | ||
455 | 0xf401f2b6, | 517 | 0xf401f2b6, |
456 | 0xf7f1fd1b, | 518 | 0xf7f1fd1b, |
457 | 0xefd00a20, | 519 | 0xefd00a20, |
520 | /* 0x04c3: ctx_xfer */ | ||
458 | 0xf100f800, | 521 | 0xf100f800, |
459 | 0xb60a0417, | 522 | 0xb60a0417, |
460 | 0x1fd00614, | 523 | 0x1fd00614, |
461 | 0x0711f400, | 524 | 0x0711f400, |
462 | 0x04a421f5, | 525 | 0x04a421f5, |
526 | /* 0x04d4: ctx_xfer_not_load */ | ||
463 | 0x4afc17f1, | 527 | 0x4afc17f1, |
464 | 0xf00213f0, | 528 | 0xf00213f0, |
465 | 0x12d00c27, | 529 | 0x12d00c27, |
@@ -489,11 +553,13 @@ static uint32_t nvc0_grgpc_code[] = { | |||
489 | 0x5c21f508, | 553 | 0x5c21f508, |
490 | 0x0721f501, | 554 | 0x0721f501, |
491 | 0x0601f402, | 555 | 0x0601f402, |
556 | /* 0x054b: ctx_xfer_post */ | ||
492 | 0xf11412f4, | 557 | 0xf11412f4, |
493 | 0xf04afc17, | 558 | 0xf04afc17, |
494 | 0x27f00213, | 559 | 0x27f00213, |
495 | 0x0012d00d, | 560 | 0x0012d00d, |
496 | 0x020721f5, | 561 | 0x020721f5, |
562 | /* 0x055c: ctx_xfer_done */ | ||
497 | 0x048f21f5, | 563 | 0x048f21f5, |
498 | 0x000000f8, | 564 | 0x000000f8, |
499 | 0x00000000, | 565 | 0x00000000, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc index 98acddb2c5bb..acfc457654bd 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc +++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc | |||
@@ -24,11 +24,11 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | /* To build: | 26 | /* To build: |
27 | * m4 nvc0_grhub.fuc | envyas -a -w -m fuc -V nva3 -o nvc0_grhub.fuc.h | 27 | * m4 hubnvc0.fuc | envyas -a -w -m fuc -V fuc3 -o hubnvc0.fuc.h |
28 | */ | 28 | */ |
29 | 29 | ||
30 | .section #nvc0_grhub_data | 30 | .section #nvc0_grhub_data |
31 | include(`nvc0_graph.fuc') | 31 | include(`nvc0.fuc') |
32 | gpc_count: .b32 0 | 32 | gpc_count: .b32 0 |
33 | rop_count: .b32 0 | 33 | rop_count: .b32 0 |
34 | cmd_queue: queue_init | 34 | cmd_queue: queue_init |
@@ -161,11 +161,11 @@ xfer_data: .b32 0 | |||
161 | .section #nvc0_grhub_code | 161 | .section #nvc0_grhub_code |
162 | bra #init | 162 | bra #init |
163 | define(`include_code') | 163 | define(`include_code') |
164 | include(`nvc0_graph.fuc') | 164 | include(`nvc0.fuc') |
165 | 165 | ||
166 | // reports an exception to the host | 166 | // reports an exception to the host |
167 | // | 167 | // |
168 | // In: $r15 error code (see nvc0_graph.fuc) | 168 | // In: $r15 error code (see nvc0.fuc) |
169 | // | 169 | // |
170 | error: | 170 | error: |
171 | push $r14 | 171 | push $r14 |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h index db0c0ee5496d..85a8d556f484 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h +++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h | |||
@@ -1,6 +1,9 @@ | |||
1 | static uint32_t nvc0_grhub_data[] = { | 1 | uint32_t nvc0_grhub_data[] = { |
2 | /* 0x0000: gpc_count */ | ||
2 | 0x00000000, | 3 | 0x00000000, |
4 | /* 0x0004: rop_count */ | ||
3 | 0x00000000, | 5 | 0x00000000, |
6 | /* 0x0008: cmd_queue */ | ||
4 | 0x00000000, | 7 | 0x00000000, |
5 | 0x00000000, | 8 | 0x00000000, |
6 | 0x00000000, | 9 | 0x00000000, |
@@ -19,9 +22,13 @@ static uint32_t nvc0_grhub_data[] = { | |||
19 | 0x00000000, | 22 | 0x00000000, |
20 | 0x00000000, | 23 | 0x00000000, |
21 | 0x00000000, | 24 | 0x00000000, |
25 | /* 0x0050: hub_mmio_list_head */ | ||
22 | 0x00000000, | 26 | 0x00000000, |
27 | /* 0x0054: hub_mmio_list_tail */ | ||
23 | 0x00000000, | 28 | 0x00000000, |
29 | /* 0x0058: ctx_current */ | ||
24 | 0x00000000, | 30 | 0x00000000, |
31 | /* 0x005c: chipsets */ | ||
25 | 0x000000c0, | 32 | 0x000000c0, |
26 | 0x013c00a0, | 33 | 0x013c00a0, |
27 | 0x000000c1, | 34 | 0x000000c1, |
@@ -39,6 +46,7 @@ static uint32_t nvc0_grhub_data[] = { | |||
39 | 0x000000d9, | 46 | 0x000000d9, |
40 | 0x01dc0140, | 47 | 0x01dc0140, |
41 | 0x00000000, | 48 | 0x00000000, |
49 | /* 0x00a0: nvc0_hub_mmio_head */ | ||
42 | 0x0417e91c, | 50 | 0x0417e91c, |
43 | 0x04400204, | 51 | 0x04400204, |
44 | 0x28404004, | 52 | 0x28404004, |
@@ -78,7 +86,10 @@ static uint32_t nvc0_grhub_data[] = { | |||
78 | 0x08408800, | 86 | 0x08408800, |
79 | 0x0c408900, | 87 | 0x0c408900, |
80 | 0x00408980, | 88 | 0x00408980, |
89 | /* 0x013c: nvc0_hub_mmio_tail */ | ||
81 | 0x044064c0, | 90 | 0x044064c0, |
91 | /* 0x0140: nvc1_hub_mmio_tail */ | ||
92 | /* 0x0140: nvd9_hub_mmio_head */ | ||
82 | 0x0417e91c, | 93 | 0x0417e91c, |
83 | 0x04400204, | 94 | 0x04400204, |
84 | 0x24404004, | 95 | 0x24404004, |
@@ -118,6 +129,7 @@ static uint32_t nvc0_grhub_data[] = { | |||
118 | 0x08408800, | 129 | 0x08408800, |
119 | 0x0c408900, | 130 | 0x0c408900, |
120 | 0x00408980, | 131 | 0x00408980, |
132 | /* 0x01dc: nvd9_hub_mmio_tail */ | ||
121 | 0x00000000, | 133 | 0x00000000, |
122 | 0x00000000, | 134 | 0x00000000, |
123 | 0x00000000, | 135 | 0x00000000, |
@@ -127,7 +139,10 @@ static uint32_t nvc0_grhub_data[] = { | |||
127 | 0x00000000, | 139 | 0x00000000, |
128 | 0x00000000, | 140 | 0x00000000, |
129 | 0x00000000, | 141 | 0x00000000, |
142 | /* 0x0200: chan_data */ | ||
143 | /* 0x0200: chan_mmio_count */ | ||
130 | 0x00000000, | 144 | 0x00000000, |
145 | /* 0x0204: chan_mmio_address */ | ||
131 | 0x00000000, | 146 | 0x00000000, |
132 | 0x00000000, | 147 | 0x00000000, |
133 | 0x00000000, | 148 | 0x00000000, |
@@ -191,17 +206,20 @@ static uint32_t nvc0_grhub_data[] = { | |||
191 | 0x00000000, | 206 | 0x00000000, |
192 | 0x00000000, | 207 | 0x00000000, |
193 | 0x00000000, | 208 | 0x00000000, |
209 | /* 0x0300: xfer_data */ | ||
194 | 0x00000000, | 210 | 0x00000000, |
195 | }; | 211 | }; |
196 | 212 | ||
197 | static uint32_t nvc0_grhub_code[] = { | 213 | uint32_t nvc0_grhub_code[] = { |
198 | 0x03090ef5, | 214 | 0x03090ef5, |
215 | /* 0x0004: queue_put */ | ||
199 | 0x9800d898, | 216 | 0x9800d898, |
200 | 0x86f001d9, | 217 | 0x86f001d9, |
201 | 0x0489b808, | 218 | 0x0489b808, |
202 | 0xf00c1bf4, | 219 | 0xf00c1bf4, |
203 | 0x21f502f7, | 220 | 0x21f502f7, |
204 | 0x00f802ec, | 221 | 0x00f802ec, |
222 | /* 0x001c: queue_put_next */ | ||
205 | 0xb60798c4, | 223 | 0xb60798c4, |
206 | 0x8dbb0384, | 224 | 0x8dbb0384, |
207 | 0x0880b600, | 225 | 0x0880b600, |
@@ -209,6 +227,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
209 | 0x90b6018f, | 227 | 0x90b6018f, |
210 | 0x0f94f001, | 228 | 0x0f94f001, |
211 | 0xf801d980, | 229 | 0xf801d980, |
230 | /* 0x0039: queue_get */ | ||
212 | 0x0131f400, | 231 | 0x0131f400, |
213 | 0x9800d898, | 232 | 0x9800d898, |
214 | 0x89b801d9, | 233 | 0x89b801d9, |
@@ -220,37 +239,46 @@ static uint32_t nvc0_grhub_code[] = { | |||
220 | 0x80b6019f, | 239 | 0x80b6019f, |
221 | 0x0f84f001, | 240 | 0x0f84f001, |
222 | 0xf400d880, | 241 | 0xf400d880, |
242 | /* 0x0066: queue_get_done */ | ||
223 | 0x00f80132, | 243 | 0x00f80132, |
244 | /* 0x0068: nv_rd32 */ | ||
224 | 0x0728b7f1, | 245 | 0x0728b7f1, |
225 | 0xb906b4b6, | 246 | 0xb906b4b6, |
226 | 0xc9f002ec, | 247 | 0xc9f002ec, |
227 | 0x00bcd01f, | 248 | 0x00bcd01f, |
249 | /* 0x0078: nv_rd32_wait */ | ||
228 | 0xc800bccf, | 250 | 0xc800bccf, |
229 | 0x1bf41fcc, | 251 | 0x1bf41fcc, |
230 | 0x06a7f0fa, | 252 | 0x06a7f0fa, |
231 | 0x010321f5, | 253 | 0x010321f5, |
232 | 0xf840bfcf, | 254 | 0xf840bfcf, |
255 | /* 0x008d: nv_wr32 */ | ||
233 | 0x28b7f100, | 256 | 0x28b7f100, |
234 | 0x06b4b607, | 257 | 0x06b4b607, |
235 | 0xb980bfd0, | 258 | 0xb980bfd0, |
236 | 0xc9f002ec, | 259 | 0xc9f002ec, |
237 | 0x1ec9f01f, | 260 | 0x1ec9f01f, |
261 | /* 0x00a3: nv_wr32_wait */ | ||
238 | 0xcf00bcd0, | 262 | 0xcf00bcd0, |
239 | 0xccc800bc, | 263 | 0xccc800bc, |
240 | 0xfa1bf41f, | 264 | 0xfa1bf41f, |
265 | /* 0x00ae: watchdog_reset */ | ||
241 | 0x87f100f8, | 266 | 0x87f100f8, |
242 | 0x84b60430, | 267 | 0x84b60430, |
243 | 0x1ff9f006, | 268 | 0x1ff9f006, |
244 | 0xf8008fd0, | 269 | 0xf8008fd0, |
270 | /* 0x00bd: watchdog_clear */ | ||
245 | 0x3087f100, | 271 | 0x3087f100, |
246 | 0x0684b604, | 272 | 0x0684b604, |
247 | 0xf80080d0, | 273 | 0xf80080d0, |
274 | /* 0x00c9: wait_donez */ | ||
248 | 0x3c87f100, | 275 | 0x3c87f100, |
249 | 0x0684b608, | 276 | 0x0684b608, |
250 | 0x99f094bd, | 277 | 0x99f094bd, |
251 | 0x0089d000, | 278 | 0x0089d000, |
252 | 0x081887f1, | 279 | 0x081887f1, |
253 | 0xd00684b6, | 280 | 0xd00684b6, |
281 | /* 0x00e2: wait_done_wait_donez */ | ||
254 | 0x87f1008a, | 282 | 0x87f1008a, |
255 | 0x84b60400, | 283 | 0x84b60400, |
256 | 0x0088cf06, | 284 | 0x0088cf06, |
@@ -259,6 +287,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
259 | 0x84b6085c, | 287 | 0x84b6085c, |
260 | 0xf094bd06, | 288 | 0xf094bd06, |
261 | 0x89d00099, | 289 | 0x89d00099, |
290 | /* 0x0103: wait_doneo */ | ||
262 | 0xf100f800, | 291 | 0xf100f800, |
263 | 0xb6083c87, | 292 | 0xb6083c87, |
264 | 0x94bd0684, | 293 | 0x94bd0684, |
@@ -266,6 +295,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
266 | 0x87f10089, | 295 | 0x87f10089, |
267 | 0x84b60818, | 296 | 0x84b60818, |
268 | 0x008ad006, | 297 | 0x008ad006, |
298 | /* 0x011c: wait_done_wait_doneo */ | ||
269 | 0x040087f1, | 299 | 0x040087f1, |
270 | 0xcf0684b6, | 300 | 0xcf0684b6, |
271 | 0x8aff0088, | 301 | 0x8aff0088, |
@@ -274,6 +304,8 @@ static uint32_t nvc0_grhub_code[] = { | |||
274 | 0xbd0684b6, | 304 | 0xbd0684b6, |
275 | 0x0099f094, | 305 | 0x0099f094, |
276 | 0xf80089d0, | 306 | 0xf80089d0, |
307 | /* 0x013d: mmctx_size */ | ||
308 | /* 0x013f: nv_mmctx_size_loop */ | ||
277 | 0x9894bd00, | 309 | 0x9894bd00, |
278 | 0x85b600e8, | 310 | 0x85b600e8, |
279 | 0x0180b61a, | 311 | 0x0180b61a, |
@@ -282,6 +314,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
282 | 0x04efb804, | 314 | 0x04efb804, |
283 | 0xb9eb1bf4, | 315 | 0xb9eb1bf4, |
284 | 0x00f8029f, | 316 | 0x00f8029f, |
317 | /* 0x015c: mmctx_xfer */ | ||
285 | 0x083c87f1, | 318 | 0x083c87f1, |
286 | 0xbd0684b6, | 319 | 0xbd0684b6, |
287 | 0x0199f094, | 320 | 0x0199f094, |
@@ -291,9 +324,11 @@ static uint32_t nvc0_grhub_code[] = { | |||
291 | 0xf405bbfd, | 324 | 0xf405bbfd, |
292 | 0x8bd0090b, | 325 | 0x8bd0090b, |
293 | 0x0099f000, | 326 | 0x0099f000, |
327 | /* 0x0180: mmctx_base_disabled */ | ||
294 | 0xf405eefd, | 328 | 0xf405eefd, |
295 | 0x8ed00c0b, | 329 | 0x8ed00c0b, |
296 | 0xc08fd080, | 330 | 0xc08fd080, |
331 | /* 0x018f: mmctx_multi_disabled */ | ||
297 | 0xb70199f0, | 332 | 0xb70199f0, |
298 | 0xc8010080, | 333 | 0xc8010080, |
299 | 0xb4b600ab, | 334 | 0xb4b600ab, |
@@ -301,6 +336,8 @@ static uint32_t nvc0_grhub_code[] = { | |||
301 | 0xb601aec8, | 336 | 0xb601aec8, |
302 | 0xbefd11e4, | 337 | 0xbefd11e4, |
303 | 0x008bd005, | 338 | 0x008bd005, |
339 | /* 0x01a8: mmctx_exec_loop */ | ||
340 | /* 0x01a8: mmctx_wait_free */ | ||
304 | 0xf0008ecf, | 341 | 0xf0008ecf, |
305 | 0x0bf41fe4, | 342 | 0x0bf41fe4, |
306 | 0x00ce98fa, | 343 | 0x00ce98fa, |
@@ -309,34 +346,42 @@ static uint32_t nvc0_grhub_code[] = { | |||
309 | 0x04cdb804, | 346 | 0x04cdb804, |
310 | 0xc8e81bf4, | 347 | 0xc8e81bf4, |
311 | 0x1bf402ab, | 348 | 0x1bf402ab, |
349 | /* 0x01c9: mmctx_fini_wait */ | ||
312 | 0x008bcf18, | 350 | 0x008bcf18, |
313 | 0xb01fb4f0, | 351 | 0xb01fb4f0, |
314 | 0x1bf410b4, | 352 | 0x1bf410b4, |
315 | 0x02a7f0f7, | 353 | 0x02a7f0f7, |
316 | 0xf4c921f4, | 354 | 0xf4c921f4, |
355 | /* 0x01de: mmctx_stop */ | ||
317 | 0xabc81b0e, | 356 | 0xabc81b0e, |
318 | 0x10b4b600, | 357 | 0x10b4b600, |
319 | 0xf00cb9f0, | 358 | 0xf00cb9f0, |
320 | 0x8bd012b9, | 359 | 0x8bd012b9, |
360 | /* 0x01ed: mmctx_stop_wait */ | ||
321 | 0x008bcf00, | 361 | 0x008bcf00, |
322 | 0xf412bbc8, | 362 | 0xf412bbc8, |
363 | /* 0x01f6: mmctx_done */ | ||
323 | 0x87f1fa1b, | 364 | 0x87f1fa1b, |
324 | 0x84b6085c, | 365 | 0x84b6085c, |
325 | 0xf094bd06, | 366 | 0xf094bd06, |
326 | 0x89d00199, | 367 | 0x89d00199, |
368 | /* 0x0207: strand_wait */ | ||
327 | 0xf900f800, | 369 | 0xf900f800, |
328 | 0x02a7f0a0, | 370 | 0x02a7f0a0, |
329 | 0xfcc921f4, | 371 | 0xfcc921f4, |
372 | /* 0x0213: strand_pre */ | ||
330 | 0xf100f8a0, | 373 | 0xf100f8a0, |
331 | 0xf04afc87, | 374 | 0xf04afc87, |
332 | 0x97f00283, | 375 | 0x97f00283, |
333 | 0x0089d00c, | 376 | 0x0089d00c, |
334 | 0x020721f5, | 377 | 0x020721f5, |
378 | /* 0x0226: strand_post */ | ||
335 | 0x87f100f8, | 379 | 0x87f100f8, |
336 | 0x83f04afc, | 380 | 0x83f04afc, |
337 | 0x0d97f002, | 381 | 0x0d97f002, |
338 | 0xf50089d0, | 382 | 0xf50089d0, |
339 | 0xf8020721, | 383 | 0xf8020721, |
384 | /* 0x0239: strand_set */ | ||
340 | 0xfca7f100, | 385 | 0xfca7f100, |
341 | 0x02a3f04f, | 386 | 0x02a3f04f, |
342 | 0x0500aba2, | 387 | 0x0500aba2, |
@@ -347,6 +392,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
347 | 0xf000aed0, | 392 | 0xf000aed0, |
348 | 0xbcd00ac7, | 393 | 0xbcd00ac7, |
349 | 0x0721f500, | 394 | 0x0721f500, |
395 | /* 0x0263: strand_ctx_init */ | ||
350 | 0xf100f802, | 396 | 0xf100f802, |
351 | 0xb6083c87, | 397 | 0xb6083c87, |
352 | 0x94bd0684, | 398 | 0x94bd0684, |
@@ -369,6 +415,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
369 | 0x0684b608, | 415 | 0x0684b608, |
370 | 0xb70089cf, | 416 | 0xb70089cf, |
371 | 0x95220080, | 417 | 0x95220080, |
418 | /* 0x02ba: ctx_init_strand_loop */ | ||
372 | 0x8ed008fe, | 419 | 0x8ed008fe, |
373 | 0x408ed000, | 420 | 0x408ed000, |
374 | 0xb6808acf, | 421 | 0xb6808acf, |
@@ -382,6 +429,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
382 | 0x94bd0684, | 429 | 0x94bd0684, |
383 | 0xd00399f0, | 430 | 0xd00399f0, |
384 | 0x00f80089, | 431 | 0x00f80089, |
432 | /* 0x02ec: error */ | ||
385 | 0xe7f1e0f9, | 433 | 0xe7f1e0f9, |
386 | 0xe4b60814, | 434 | 0xe4b60814, |
387 | 0x00efd006, | 435 | 0x00efd006, |
@@ -389,6 +437,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
389 | 0xf006e4b6, | 437 | 0xf006e4b6, |
390 | 0xefd001f7, | 438 | 0xefd001f7, |
391 | 0xf8e0fc00, | 439 | 0xf8e0fc00, |
440 | /* 0x0309: init */ | ||
392 | 0xfe04bd00, | 441 | 0xfe04bd00, |
393 | 0x07fe0004, | 442 | 0x07fe0004, |
394 | 0x0017f100, | 443 | 0x0017f100, |
@@ -429,11 +478,13 @@ static uint32_t nvc0_grhub_code[] = { | |||
429 | 0x080027f1, | 478 | 0x080027f1, |
430 | 0xcf0624b6, | 479 | 0xcf0624b6, |
431 | 0xf7f00022, | 480 | 0xf7f00022, |
481 | /* 0x03a9: init_find_chipset */ | ||
432 | 0x08f0b654, | 482 | 0x08f0b654, |
433 | 0xb800f398, | 483 | 0xb800f398, |
434 | 0x0bf40432, | 484 | 0x0bf40432, |
435 | 0x0034b00b, | 485 | 0x0034b00b, |
436 | 0xf8f11bf4, | 486 | 0xf8f11bf4, |
487 | /* 0x03bd: init_context */ | ||
437 | 0x0017f100, | 488 | 0x0017f100, |
438 | 0x02fe5801, | 489 | 0x02fe5801, |
439 | 0xf003ff58, | 490 | 0xf003ff58, |
@@ -454,6 +505,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
454 | 0x001fbb02, | 505 | 0x001fbb02, |
455 | 0xf1000398, | 506 | 0xf1000398, |
456 | 0xf0200047, | 507 | 0xf0200047, |
508 | /* 0x040e: init_gpc */ | ||
457 | 0x4ea05043, | 509 | 0x4ea05043, |
458 | 0x1fb90804, | 510 | 0x1fb90804, |
459 | 0x8d21f402, | 511 | 0x8d21f402, |
@@ -467,6 +519,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
467 | 0xf7f00100, | 519 | 0xf7f00100, |
468 | 0x8d21f402, | 520 | 0x8d21f402, |
469 | 0x08004ea0, | 521 | 0x08004ea0, |
522 | /* 0x0440: init_gpc_wait */ | ||
470 | 0xc86821f4, | 523 | 0xc86821f4, |
471 | 0x0bf41fff, | 524 | 0x0bf41fff, |
472 | 0x044ea0fa, | 525 | 0x044ea0fa, |
@@ -479,6 +532,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
479 | 0xb74021d0, | 532 | 0xb74021d0, |
480 | 0xbd080020, | 533 | 0xbd080020, |
481 | 0x1f19f014, | 534 | 0x1f19f014, |
535 | /* 0x0473: main */ | ||
482 | 0xf40021d0, | 536 | 0xf40021d0, |
483 | 0x28f40031, | 537 | 0x28f40031, |
484 | 0x08d7f000, | 538 | 0x08d7f000, |
@@ -517,6 +571,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
517 | 0x94bd0684, | 571 | 0x94bd0684, |
518 | 0xd00699f0, | 572 | 0xd00699f0, |
519 | 0x0ef40089, | 573 | 0x0ef40089, |
574 | /* 0x0509: chsw_prev_no_next */ | ||
520 | 0xb920f931, | 575 | 0xb920f931, |
521 | 0x32f40212, | 576 | 0x32f40212, |
522 | 0x0232f401, | 577 | 0x0232f401, |
@@ -524,10 +579,12 @@ static uint32_t nvc0_grhub_code[] = { | |||
524 | 0x17f120fc, | 579 | 0x17f120fc, |
525 | 0x14b60b00, | 580 | 0x14b60b00, |
526 | 0x0012d006, | 581 | 0x0012d006, |
582 | /* 0x0527: chsw_no_prev */ | ||
527 | 0xc8130ef4, | 583 | 0xc8130ef4, |
528 | 0x0bf41f23, | 584 | 0x0bf41f23, |
529 | 0x0131f40d, | 585 | 0x0131f40d, |
530 | 0xf50232f4, | 586 | 0xf50232f4, |
587 | /* 0x0537: chsw_done */ | ||
531 | 0xf1082921, | 588 | 0xf1082921, |
532 | 0xb60b0c17, | 589 | 0xb60b0c17, |
533 | 0x27f00614, | 590 | 0x27f00614, |
@@ -536,10 +593,12 @@ static uint32_t nvc0_grhub_code[] = { | |||
536 | 0xbd0684b6, | 593 | 0xbd0684b6, |
537 | 0x0499f094, | 594 | 0x0499f094, |
538 | 0xf50089d0, | 595 | 0xf50089d0, |
596 | /* 0x0557: main_not_ctx_switch */ | ||
539 | 0xb0ff200e, | 597 | 0xb0ff200e, |
540 | 0x1bf401e4, | 598 | 0x1bf401e4, |
541 | 0x02f2b90d, | 599 | 0x02f2b90d, |
542 | 0x07b521f5, | 600 | 0x07b521f5, |
601 | /* 0x0567: main_not_ctx_chan */ | ||
543 | 0xb0420ef4, | 602 | 0xb0420ef4, |
544 | 0x1bf402e4, | 603 | 0x1bf402e4, |
545 | 0x3c87f12e, | 604 | 0x3c87f12e, |
@@ -553,14 +612,17 @@ static uint32_t nvc0_grhub_code[] = { | |||
553 | 0xf094bd06, | 612 | 0xf094bd06, |
554 | 0x89d00799, | 613 | 0x89d00799, |
555 | 0x110ef400, | 614 | 0x110ef400, |
615 | /* 0x0598: main_not_ctx_save */ | ||
556 | 0xf010ef94, | 616 | 0xf010ef94, |
557 | 0x21f501f5, | 617 | 0x21f501f5, |
558 | 0x0ef502ec, | 618 | 0x0ef502ec, |
619 | /* 0x05a6: main_done */ | ||
559 | 0x17f1fed1, | 620 | 0x17f1fed1, |
560 | 0x14b60820, | 621 | 0x14b60820, |
561 | 0xf024bd06, | 622 | 0xf024bd06, |
562 | 0x12d01f29, | 623 | 0x12d01f29, |
563 | 0xbe0ef500, | 624 | 0xbe0ef500, |
625 | /* 0x05b9: ih */ | ||
564 | 0xfe80f9fe, | 626 | 0xfe80f9fe, |
565 | 0x80f90188, | 627 | 0x80f90188, |
566 | 0xa0f990f9, | 628 | 0xa0f990f9, |
@@ -574,16 +636,19 @@ static uint32_t nvc0_grhub_code[] = { | |||
574 | 0x21f400bf, | 636 | 0x21f400bf, |
575 | 0x00b0b704, | 637 | 0x00b0b704, |
576 | 0x01e7f004, | 638 | 0x01e7f004, |
639 | /* 0x05ef: ih_no_fifo */ | ||
577 | 0xe400bed0, | 640 | 0xe400bed0, |
578 | 0xf40100ab, | 641 | 0xf40100ab, |
579 | 0xd7f00d0b, | 642 | 0xd7f00d0b, |
580 | 0x01e7f108, | 643 | 0x01e7f108, |
581 | 0x0421f440, | 644 | 0x0421f440, |
645 | /* 0x0600: ih_no_ctxsw */ | ||
582 | 0x0104b7f1, | 646 | 0x0104b7f1, |
583 | 0xabffb0bd, | 647 | 0xabffb0bd, |
584 | 0x0d0bf4b4, | 648 | 0x0d0bf4b4, |
585 | 0x0c1ca7f1, | 649 | 0x0c1ca7f1, |
586 | 0xd006a4b6, | 650 | 0xd006a4b6, |
651 | /* 0x0616: ih_no_other */ | ||
587 | 0x0ad000ab, | 652 | 0x0ad000ab, |
588 | 0xfcf0fc40, | 653 | 0xfcf0fc40, |
589 | 0xfcd0fce0, | 654 | 0xfcd0fce0, |
@@ -591,32 +656,40 @@ static uint32_t nvc0_grhub_code[] = { | |||
591 | 0xfe80fc90, | 656 | 0xfe80fc90, |
592 | 0x80fc0088, | 657 | 0x80fc0088, |
593 | 0xf80032f4, | 658 | 0xf80032f4, |
659 | /* 0x0631: ctx_4160s */ | ||
594 | 0x60e7f101, | 660 | 0x60e7f101, |
595 | 0x40e3f041, | 661 | 0x40e3f041, |
596 | 0xf401f7f0, | 662 | 0xf401f7f0, |
663 | /* 0x063e: ctx_4160s_wait */ | ||
597 | 0x21f48d21, | 664 | 0x21f48d21, |
598 | 0x04ffc868, | 665 | 0x04ffc868, |
599 | 0xf8fa0bf4, | 666 | 0xf8fa0bf4, |
667 | /* 0x0649: ctx_4160c */ | ||
600 | 0x60e7f100, | 668 | 0x60e7f100, |
601 | 0x40e3f041, | 669 | 0x40e3f041, |
602 | 0x21f4f4bd, | 670 | 0x21f4f4bd, |
671 | /* 0x0657: ctx_4170s */ | ||
603 | 0xf100f88d, | 672 | 0xf100f88d, |
604 | 0xf04170e7, | 673 | 0xf04170e7, |
605 | 0xf5f040e3, | 674 | 0xf5f040e3, |
606 | 0x8d21f410, | 675 | 0x8d21f410, |
676 | /* 0x0666: ctx_4170w */ | ||
607 | 0xe7f100f8, | 677 | 0xe7f100f8, |
608 | 0xe3f04170, | 678 | 0xe3f04170, |
609 | 0x6821f440, | 679 | 0x6821f440, |
610 | 0xf410f4f0, | 680 | 0xf410f4f0, |
611 | 0x00f8f31b, | 681 | 0x00f8f31b, |
682 | /* 0x0678: ctx_redswitch */ | ||
612 | 0x0614e7f1, | 683 | 0x0614e7f1, |
613 | 0xf106e4b6, | 684 | 0xf106e4b6, |
614 | 0xd00270f7, | 685 | 0xd00270f7, |
615 | 0xf7f000ef, | 686 | 0xf7f000ef, |
687 | /* 0x0689: ctx_redswitch_delay */ | ||
616 | 0x01f2b608, | 688 | 0x01f2b608, |
617 | 0xf1fd1bf4, | 689 | 0xf1fd1bf4, |
618 | 0xd00770f7, | 690 | 0xd00770f7, |
619 | 0x00f800ef, | 691 | 0x00f800ef, |
692 | /* 0x0698: ctx_86c */ | ||
620 | 0x086ce7f1, | 693 | 0x086ce7f1, |
621 | 0xd006e4b6, | 694 | 0xd006e4b6, |
622 | 0xe7f100ef, | 695 | 0xe7f100ef, |
@@ -625,6 +698,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
625 | 0xa86ce7f1, | 698 | 0xa86ce7f1, |
626 | 0xf441e3f0, | 699 | 0xf441e3f0, |
627 | 0x00f88d21, | 700 | 0x00f88d21, |
701 | /* 0x06b8: ctx_load */ | ||
628 | 0x083c87f1, | 702 | 0x083c87f1, |
629 | 0xbd0684b6, | 703 | 0xbd0684b6, |
630 | 0x0599f094, | 704 | 0x0599f094, |
@@ -639,6 +713,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
639 | 0x0614b60a, | 713 | 0x0614b60a, |
640 | 0xd00747f0, | 714 | 0xd00747f0, |
641 | 0x14d00012, | 715 | 0x14d00012, |
716 | /* 0x06f1: ctx_chan_wait_0 */ | ||
642 | 0x4014cf40, | 717 | 0x4014cf40, |
643 | 0xf41f44f0, | 718 | 0xf41f44f0, |
644 | 0x32d0fa1b, | 719 | 0x32d0fa1b, |
@@ -688,6 +763,7 @@ static uint32_t nvc0_grhub_code[] = { | |||
688 | 0xbd0684b6, | 763 | 0xbd0684b6, |
689 | 0x0599f094, | 764 | 0x0599f094, |
690 | 0xf80089d0, | 765 | 0xf80089d0, |
766 | /* 0x07b5: ctx_chan */ | ||
691 | 0x3121f500, | 767 | 0x3121f500, |
692 | 0xb821f506, | 768 | 0xb821f506, |
693 | 0x0ca7f006, | 769 | 0x0ca7f006, |
@@ -695,39 +771,48 @@ static uint32_t nvc0_grhub_code[] = { | |||
695 | 0xb60a1017, | 771 | 0xb60a1017, |
696 | 0x27f00614, | 772 | 0x27f00614, |
697 | 0x0012d005, | 773 | 0x0012d005, |
774 | /* 0x07d0: ctx_chan_wait */ | ||
698 | 0xfd0012cf, | 775 | 0xfd0012cf, |
699 | 0x1bf40522, | 776 | 0x1bf40522, |
700 | 0x4921f5fa, | 777 | 0x4921f5fa, |
778 | /* 0x07df: ctx_mmio_exec */ | ||
701 | 0x9800f806, | 779 | 0x9800f806, |
702 | 0x27f18103, | 780 | 0x27f18103, |
703 | 0x24b60a04, | 781 | 0x24b60a04, |
704 | 0x0023d006, | 782 | 0x0023d006, |
783 | /* 0x07ee: ctx_mmio_loop */ | ||
705 | 0x34c434bd, | 784 | 0x34c434bd, |
706 | 0x0f1bf4ff, | 785 | 0x0f1bf4ff, |
707 | 0x030057f1, | 786 | 0x030057f1, |
708 | 0xfa0653f0, | 787 | 0xfa0653f0, |
709 | 0x03f80535, | 788 | 0x03f80535, |
789 | /* 0x0800: ctx_mmio_pull */ | ||
710 | 0x98c04e98, | 790 | 0x98c04e98, |
711 | 0x21f4c14f, | 791 | 0x21f4c14f, |
712 | 0x0830b68d, | 792 | 0x0830b68d, |
713 | 0xf40112b6, | 793 | 0xf40112b6, |
794 | /* 0x0812: ctx_mmio_done */ | ||
714 | 0x0398df1b, | 795 | 0x0398df1b, |
715 | 0x0023d016, | 796 | 0x0023d016, |
716 | 0xf1800080, | 797 | 0xf1800080, |
717 | 0xf0020017, | 798 | 0xf0020017, |
718 | 0x01fa0613, | 799 | 0x01fa0613, |
719 | 0xf803f806, | 800 | 0xf803f806, |
801 | /* 0x0829: ctx_xfer */ | ||
720 | 0x0611f400, | 802 | 0x0611f400, |
803 | /* 0x082f: ctx_xfer_pre */ | ||
721 | 0xf01102f4, | 804 | 0xf01102f4, |
722 | 0x21f510f7, | 805 | 0x21f510f7, |
723 | 0x21f50698, | 806 | 0x21f50698, |
724 | 0x11f40631, | 807 | 0x11f40631, |
808 | /* 0x083d: ctx_xfer_pre_load */ | ||
725 | 0x02f7f01c, | 809 | 0x02f7f01c, |
726 | 0x065721f5, | 810 | 0x065721f5, |
727 | 0x066621f5, | 811 | 0x066621f5, |
728 | 0x067821f5, | 812 | 0x067821f5, |
729 | 0x21f5f4bd, | 813 | 0x21f5f4bd, |
730 | 0x21f50657, | 814 | 0x21f50657, |
815 | /* 0x0856: ctx_xfer_exec */ | ||
731 | 0x019806b8, | 816 | 0x019806b8, |
732 | 0x1427f116, | 817 | 0x1427f116, |
733 | 0x0624b604, | 818 | 0x0624b604, |
@@ -762,9 +847,11 @@ static uint32_t nvc0_grhub_code[] = { | |||
762 | 0x0a1017f1, | 847 | 0x0a1017f1, |
763 | 0xf00614b6, | 848 | 0xf00614b6, |
764 | 0x12d00527, | 849 | 0x12d00527, |
850 | /* 0x08dd: ctx_xfer_post_save_wait */ | ||
765 | 0x0012cf00, | 851 | 0x0012cf00, |
766 | 0xf40522fd, | 852 | 0xf40522fd, |
767 | 0x02f4fa1b, | 853 | 0x02f4fa1b, |
854 | /* 0x08e9: ctx_xfer_post */ | ||
768 | 0x02f7f032, | 855 | 0x02f7f032, |
769 | 0x065721f5, | 856 | 0x065721f5, |
770 | 0x21f5f4bd, | 857 | 0x21f5f4bd, |
@@ -776,7 +863,9 @@ static uint32_t nvc0_grhub_code[] = { | |||
776 | 0x11fd8001, | 863 | 0x11fd8001, |
777 | 0x070bf405, | 864 | 0x070bf405, |
778 | 0x07df21f5, | 865 | 0x07df21f5, |
866 | /* 0x0914: ctx_xfer_no_post_mmio */ | ||
779 | 0x064921f5, | 867 | 0x064921f5, |
868 | /* 0x0918: ctx_xfer_done */ | ||
780 | 0x000000f8, | 869 | 0x000000f8, |
781 | 0x00000000, | 870 | 0x00000000, |
782 | 0x00000000, | 871 | 0x00000000, |