diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-05-25 04:32:44 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-06-23 01:57:38 -0400 |
commit | 0411de854898a2402cf4bd915bed7ec9a6b76f9a (patch) | |
tree | 52678d0557377674a78b95211adb36dba1ecde9b /drivers/gpu/drm/nouveau/nvc0_grgpc.fuc.h | |
parent | f8522fc80f2e0392fc44b069f61721bd25907270 (diff) |
drm/nvc0/gr: import and use our own fuc by default
The ability to use NVIDIA's fuc has been retained *temporarily* in order
to better debug any issues that may be lingering in our initial attempt
at writing this ucode. Once I'm fairly confident we're okay, it'll be
removed.
There's a number of things not implemented by this fuc currently, but
most of it is sets of state that our context setup would not have used
anyway. No doubt we'll find out what they're for at some point, and
implement it if required.
This has been tested on 0xc0/0xc4 thus far, and from what I could tell
it worked as well as NVIDIA's. It's also been tested on 0xc1, but even
with NVIDIA's fuc that chipset doesn't work correctly with nouveau yet.
0xc3/0xc8/0xce should in theory be supported too, but I don't have the
hardware to check that.
There's no doubt numerous bugs to squash yet, please report any!
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvc0_grgpc.fuc.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_grgpc.fuc.h | 483 |
1 files changed, 483 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_grgpc.fuc.h b/drivers/gpu/drm/nouveau/nvc0_grgpc.fuc.h new file mode 100644 index 000000000000..1896c898f5ba --- /dev/null +++ b/drivers/gpu/drm/nouveau/nvc0_grgpc.fuc.h | |||
@@ -0,0 +1,483 @@ | |||
1 | uint32_t nvc0_grgpc_data[] = { | ||
2 | 0x00000000, | ||
3 | 0x00000000, | ||
4 | 0x00000000, | ||
5 | 0x00000000, | ||
6 | 0x00000000, | ||
7 | 0x00000000, | ||
8 | 0x00000000, | ||
9 | 0x00000000, | ||
10 | 0x00000000, | ||
11 | 0x00000000, | ||
12 | 0x00000000, | ||
13 | 0x00000000, | ||
14 | 0x00000000, | ||
15 | 0x00000000, | ||
16 | 0x00000000, | ||
17 | 0x00000000, | ||
18 | 0x00000000, | ||
19 | 0x00000000, | ||
20 | 0x00000000, | ||
21 | 0x00000000, | ||
22 | 0x00000000, | ||
23 | 0x00000000, | ||
24 | 0x00000000, | ||
25 | 0x00000000, | ||
26 | 0x00000000, | ||
27 | 0x000000c0, | ||
28 | 0x011000b0, | ||
29 | 0x01640114, | ||
30 | 0x000000c1, | ||
31 | 0x011400b0, | ||
32 | 0x01780114, | ||
33 | 0x000000c3, | ||
34 | 0x011000b0, | ||
35 | 0x01740114, | ||
36 | 0x000000c4, | ||
37 | 0x011000b0, | ||
38 | 0x01740114, | ||
39 | 0x000000c8, | ||
40 | 0x011000b0, | ||
41 | 0x01640114, | ||
42 | 0x000000ce, | ||
43 | 0x011000b0, | ||
44 | 0x01740114, | ||
45 | 0x00000000, | ||
46 | 0x00000380, | ||
47 | 0x14000400, | ||
48 | 0x20000450, | ||
49 | 0x00000600, | ||
50 | 0x00000684, | ||
51 | 0x10000700, | ||
52 | 0x00000800, | ||
53 | 0x08000808, | ||
54 | 0x00000828, | ||
55 | 0x00000830, | ||
56 | 0x000008d8, | ||
57 | 0x000008e0, | ||
58 | 0x140008e8, | ||
59 | 0x0000091c, | ||
60 | 0x08000924, | ||
61 | 0x00000b00, | ||
62 | 0x14000b08, | ||
63 | 0x00000bb8, | ||
64 | 0x00000c08, | ||
65 | 0x1c000c10, | ||
66 | 0x00000c80, | ||
67 | 0x00000c8c, | ||
68 | 0x08001000, | ||
69 | 0x00001014, | ||
70 | 0x00000c6c, | ||
71 | 0x00000018, | ||
72 | 0x0000003c, | ||
73 | 0x00000048, | ||
74 | 0x00000064, | ||
75 | 0x00000088, | ||
76 | 0x14000200, | ||
77 | 0x0400021c, | ||
78 | 0x14000300, | ||
79 | 0x000003d0, | ||
80 | 0x040003e0, | ||
81 | 0x08000400, | ||
82 | 0x00000420, | ||
83 | 0x000004b0, | ||
84 | 0x000004e8, | ||
85 | 0x000004f4, | ||
86 | 0x04000520, | ||
87 | 0x0c000604, | ||
88 | 0x4c000644, | ||
89 | 0x00000698, | ||
90 | 0x04000750, | ||
91 | 0x00000758, | ||
92 | 0x000002c4, | ||
93 | 0x000004bc, | ||
94 | 0x000006e0, | ||
95 | 0x00000544, | ||
96 | }; | ||
97 | |||
98 | uint32_t nvc0_grgpc_code[] = { | ||
99 | 0x03060ef5, | ||
100 | 0x9800d898, | ||
101 | 0x86f001d9, | ||
102 | 0x0489b808, | ||
103 | 0xf00c1bf4, | ||
104 | 0x21f502f7, | ||
105 | 0x00f802ec, | ||
106 | 0xb60798c4, | ||
107 | 0x8dbb0384, | ||
108 | 0x0880b600, | ||
109 | 0x80008e80, | ||
110 | 0x90b6018f, | ||
111 | 0x0f94f001, | ||
112 | 0xf801d980, | ||
113 | 0x0131f400, | ||
114 | 0x9800d898, | ||
115 | 0x89b801d9, | ||
116 | 0x210bf404, | ||
117 | 0xb60789c4, | ||
118 | 0x9dbb0394, | ||
119 | 0x0890b600, | ||
120 | 0x98009e98, | ||
121 | 0x80b6019f, | ||
122 | 0x0f84f001, | ||
123 | 0xf400d880, | ||
124 | 0x00f80132, | ||
125 | 0x0728b7f1, | ||
126 | 0xb906b4b6, | ||
127 | 0xc9f002ec, | ||
128 | 0x00bcd01f, | ||
129 | 0xc800bccf, | ||
130 | 0x1bf41fcc, | ||
131 | 0x06a7f0fa, | ||
132 | 0x010321f5, | ||
133 | 0xf840bfcf, | ||
134 | 0x28b7f100, | ||
135 | 0x06b4b607, | ||
136 | 0xb980bfd0, | ||
137 | 0xc9f002ec, | ||
138 | 0x1ec9f01f, | ||
139 | 0xcf00bcd0, | ||
140 | 0xccc800bc, | ||
141 | 0xfa1bf41f, | ||
142 | 0x87f100f8, | ||
143 | 0x84b60430, | ||
144 | 0x1ff9f006, | ||
145 | 0xf8008fd0, | ||
146 | 0x3087f100, | ||
147 | 0x0684b604, | ||
148 | 0xf80080d0, | ||
149 | 0x3c87f100, | ||
150 | 0x0684b608, | ||
151 | 0x99f094bd, | ||
152 | 0x0089d000, | ||
153 | 0x081887f1, | ||
154 | 0xd00684b6, | ||
155 | 0x87f1008a, | ||
156 | 0x84b60400, | ||
157 | 0x0088cf06, | ||
158 | 0xf4888aff, | ||
159 | 0x87f1f31b, | ||
160 | 0x84b6085c, | ||
161 | 0xf094bd06, | ||
162 | 0x89d00099, | ||
163 | 0xf100f800, | ||
164 | 0xb6083c87, | ||
165 | 0x94bd0684, | ||
166 | 0xd00099f0, | ||
167 | 0x87f10089, | ||
168 | 0x84b60818, | ||
169 | 0x008ad006, | ||
170 | 0x040087f1, | ||
171 | 0xcf0684b6, | ||
172 | 0x8aff0088, | ||
173 | 0xf30bf488, | ||
174 | 0x085c87f1, | ||
175 | 0xbd0684b6, | ||
176 | 0x0099f094, | ||
177 | 0xf80089d0, | ||
178 | 0x9894bd00, | ||
179 | 0x85b600e8, | ||
180 | 0x0180b61a, | ||
181 | 0xbb0284b6, | ||
182 | 0xe0b60098, | ||
183 | 0x04efb804, | ||
184 | 0xb9eb1bf4, | ||
185 | 0x00f8029f, | ||
186 | 0x083c87f1, | ||
187 | 0xbd0684b6, | ||
188 | 0x0199f094, | ||
189 | 0xf10089d0, | ||
190 | 0xb6071087, | ||
191 | 0x94bd0684, | ||
192 | 0xf405bbfd, | ||
193 | 0x8bd0090b, | ||
194 | 0x0099f000, | ||
195 | 0xf405eefd, | ||
196 | 0x8ed00c0b, | ||
197 | 0xc08fd080, | ||
198 | 0xb70199f0, | ||
199 | 0xc8010080, | ||
200 | 0xb4b600ab, | ||
201 | 0x0cb9f010, | ||
202 | 0xb601aec8, | ||
203 | 0xbefd11e4, | ||
204 | 0x008bd005, | ||
205 | 0xf0008ecf, | ||
206 | 0x0bf41fe4, | ||
207 | 0x00ce98fa, | ||
208 | 0xd005e9fd, | ||
209 | 0xc0b6c08e, | ||
210 | 0x04cdb804, | ||
211 | 0xc8e81bf4, | ||
212 | 0x1bf402ab, | ||
213 | 0x008bcf18, | ||
214 | 0xb01fb4f0, | ||
215 | 0x1bf410b4, | ||
216 | 0x02a7f0f7, | ||
217 | 0xf4c921f4, | ||
218 | 0xabc81b0e, | ||
219 | 0x10b4b600, | ||
220 | 0xf00cb9f0, | ||
221 | 0x8bd012b9, | ||
222 | 0x008bcf00, | ||
223 | 0xf412bbc8, | ||
224 | 0x87f1fa1b, | ||
225 | 0x84b6085c, | ||
226 | 0xf094bd06, | ||
227 | 0x89d00199, | ||
228 | 0xf900f800, | ||
229 | 0x02a7f0a0, | ||
230 | 0xfcc921f4, | ||
231 | 0xf100f8a0, | ||
232 | 0xf04afc87, | ||
233 | 0x97f00283, | ||
234 | 0x0089d00c, | ||
235 | 0x020721f5, | ||
236 | 0x87f100f8, | ||
237 | 0x83f04afc, | ||
238 | 0x0d97f002, | ||
239 | 0xf50089d0, | ||
240 | 0xf8020721, | ||
241 | 0xfca7f100, | ||
242 | 0x02a3f04f, | ||
243 | 0x0500aba2, | ||
244 | 0xd00fc7f0, | ||
245 | 0xc7f000ac, | ||
246 | 0x00bcd00b, | ||
247 | 0x020721f5, | ||
248 | 0xf000aed0, | ||
249 | 0xbcd00ac7, | ||
250 | 0x0721f500, | ||
251 | 0xf100f802, | ||
252 | 0xb6083c87, | ||
253 | 0x94bd0684, | ||
254 | 0xd00399f0, | ||
255 | 0x21f50089, | ||
256 | 0xe7f00213, | ||
257 | 0x3921f503, | ||
258 | 0xfca7f102, | ||
259 | 0x02a3f046, | ||
260 | 0x0400aba0, | ||
261 | 0xf040a0d0, | ||
262 | 0xbcd001c7, | ||
263 | 0x0721f500, | ||
264 | 0x010c9202, | ||
265 | 0xf000acd0, | ||
266 | 0xbcd002c7, | ||
267 | 0x0721f500, | ||
268 | 0x2621f502, | ||
269 | 0x8087f102, | ||
270 | 0x0684b608, | ||
271 | 0xb70089cf, | ||
272 | 0x95220080, | ||
273 | 0x8ed008fe, | ||
274 | 0x408ed000, | ||
275 | 0xb6808acf, | ||
276 | 0xa0b606a5, | ||
277 | 0x00eabb01, | ||
278 | 0xb60480b6, | ||
279 | 0x1bf40192, | ||
280 | 0x08e4b6e8, | ||
281 | 0xf1f2efbc, | ||
282 | 0xb6085c87, | ||
283 | 0x94bd0684, | ||
284 | 0xd00399f0, | ||
285 | 0x00f80089, | ||
286 | 0xe7f1e0f9, | ||
287 | 0xe3f09814, | ||
288 | 0x8d21f440, | ||
289 | 0x041ce0b7, | ||
290 | 0xf401f7f0, | ||
291 | 0xe0fc8d21, | ||
292 | 0x04bd00f8, | ||
293 | 0xf10004fe, | ||
294 | 0xf0120017, | ||
295 | 0x12d00227, | ||
296 | 0x3e17f100, | ||
297 | 0x0010fe04, | ||
298 | 0x040017f1, | ||
299 | 0xf0c010d0, | ||
300 | 0x12d00427, | ||
301 | 0x1031f400, | ||
302 | 0x060817f1, | ||
303 | 0xcf0614b6, | ||
304 | 0x37f00012, | ||
305 | 0x1f24f001, | ||
306 | 0xb60432bb, | ||
307 | 0x02800132, | ||
308 | 0x04038003, | ||
309 | 0x040010b7, | ||
310 | 0x800012cf, | ||
311 | 0x27f10002, | ||
312 | 0x24b60800, | ||
313 | 0x0022cf06, | ||
314 | 0xb65817f0, | ||
315 | 0x13980c10, | ||
316 | 0x0432b800, | ||
317 | 0xb00b0bf4, | ||
318 | 0x1bf40034, | ||
319 | 0xf100f8f1, | ||
320 | 0xb6080027, | ||
321 | 0x22cf0624, | ||
322 | 0xf134bd40, | ||
323 | 0xb6070047, | ||
324 | 0x25950644, | ||
325 | 0x0045d008, | ||
326 | 0xbd4045d0, | ||
327 | 0x58f4bde4, | ||
328 | 0x1f58021e, | ||
329 | 0x020e4003, | ||
330 | 0xf5040f40, | ||
331 | 0xbb013d21, | ||
332 | 0x3fbb002f, | ||
333 | 0x041e5800, | ||
334 | 0x40051f58, | ||
335 | 0x0f400a0e, | ||
336 | 0x3d21f50c, | ||
337 | 0x030e9801, | ||
338 | 0xbb00effd, | ||
339 | 0x3ebb002e, | ||
340 | 0x0040b700, | ||
341 | 0x0235b613, | ||
342 | 0xb60043d0, | ||
343 | 0x35b60825, | ||
344 | 0x0120b606, | ||
345 | 0xb60130b6, | ||
346 | 0x34b60824, | ||
347 | 0x022fb908, | ||
348 | 0x026321f5, | ||
349 | 0xf1003fbb, | ||
350 | 0xb6080017, | ||
351 | 0x13d00614, | ||
352 | 0x0010b740, | ||
353 | 0xf024bd08, | ||
354 | 0x12d01f29, | ||
355 | 0x0031f400, | ||
356 | 0xf00028f4, | ||
357 | 0x21f41cd7, | ||
358 | 0xf401f439, | ||
359 | 0xf404e4b0, | ||
360 | 0x81fe1e18, | ||
361 | 0x0627f001, | ||
362 | 0x12fd20bd, | ||
363 | 0x01e4b604, | ||
364 | 0xfe051efd, | ||
365 | 0x21f50018, | ||
366 | 0x0ef404c3, | ||
367 | 0x10ef94d3, | ||
368 | 0xf501f5f0, | ||
369 | 0xf402ec21, | ||
370 | 0x80f9c60e, | ||
371 | 0xf90188fe, | ||
372 | 0xf990f980, | ||
373 | 0xf9b0f9a0, | ||
374 | 0xf9e0f9d0, | ||
375 | 0x800acff0, | ||
376 | 0xf404abc4, | ||
377 | 0xb7f11d0b, | ||
378 | 0xd7f01900, | ||
379 | 0x40becf1c, | ||
380 | 0xf400bfcf, | ||
381 | 0xb0b70421, | ||
382 | 0xe7f00400, | ||
383 | 0x00bed001, | ||
384 | 0xfc400ad0, | ||
385 | 0xfce0fcf0, | ||
386 | 0xfcb0fcd0, | ||
387 | 0xfc90fca0, | ||
388 | 0x0088fe80, | ||
389 | 0x32f480fc, | ||
390 | 0xf001f800, | ||
391 | 0x0e9801f7, | ||
392 | 0x04febb00, | ||
393 | 0x9418e7f1, | ||
394 | 0xf440e3f0, | ||
395 | 0x00f88d21, | ||
396 | 0x0614e7f1, | ||
397 | 0xf006e4b6, | ||
398 | 0xefd020f7, | ||
399 | 0x08f7f000, | ||
400 | 0xf401f2b6, | ||
401 | 0xf7f1fd1b, | ||
402 | 0xefd00a20, | ||
403 | 0xf100f800, | ||
404 | 0xb60a0417, | ||
405 | 0x1fd00614, | ||
406 | 0x0711f400, | ||
407 | 0x04a421f5, | ||
408 | 0x4afc17f1, | ||
409 | 0xf00213f0, | ||
410 | 0x12d00c27, | ||
411 | 0x0721f500, | ||
412 | 0xfc27f102, | ||
413 | 0x0223f047, | ||
414 | 0xf00020d0, | ||
415 | 0x20b6012c, | ||
416 | 0x0012d003, | ||
417 | 0xf001acf0, | ||
418 | 0xb7f002a5, | ||
419 | 0x50b3f000, | ||
420 | 0xb6000c98, | ||
421 | 0xbcbb0fc4, | ||
422 | 0x010c9800, | ||
423 | 0xf0020d98, | ||
424 | 0x21f500e7, | ||
425 | 0xacf0015c, | ||
426 | 0x04a5f001, | ||
427 | 0x4000b7f1, | ||
428 | 0x9850b3f0, | ||
429 | 0xc4b6000c, | ||
430 | 0x00bcbb0f, | ||
431 | 0x98050c98, | ||
432 | 0x0f98060d, | ||
433 | 0x00e7f104, | ||
434 | 0x5c21f508, | ||
435 | 0x0721f501, | ||
436 | 0x0601f402, | ||
437 | 0xf11412f4, | ||
438 | 0xf04afc17, | ||
439 | 0x27f00213, | ||
440 | 0x0012d00d, | ||
441 | 0x020721f5, | ||
442 | 0x048f21f5, | ||
443 | 0x000000f8, | ||
444 | 0x00000000, | ||
445 | 0x00000000, | ||
446 | 0x00000000, | ||
447 | 0x00000000, | ||
448 | 0x00000000, | ||
449 | 0x00000000, | ||
450 | 0x00000000, | ||
451 | 0x00000000, | ||
452 | 0x00000000, | ||
453 | 0x00000000, | ||
454 | 0x00000000, | ||
455 | 0x00000000, | ||
456 | 0x00000000, | ||
457 | 0x00000000, | ||
458 | 0x00000000, | ||
459 | 0x00000000, | ||
460 | 0x00000000, | ||
461 | 0x00000000, | ||
462 | 0x00000000, | ||
463 | 0x00000000, | ||
464 | 0x00000000, | ||
465 | 0x00000000, | ||
466 | 0x00000000, | ||
467 | 0x00000000, | ||
468 | 0x00000000, | ||
469 | 0x00000000, | ||
470 | 0x00000000, | ||
471 | 0x00000000, | ||
472 | 0x00000000, | ||
473 | 0x00000000, | ||
474 | 0x00000000, | ||
475 | 0x00000000, | ||
476 | 0x00000000, | ||
477 | 0x00000000, | ||
478 | 0x00000000, | ||
479 | 0x00000000, | ||
480 | 0x00000000, | ||
481 | 0x00000000, | ||
482 | 0x00000000, | ||
483 | }; | ||