aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-07-04 00:56:38 -0400
committerBen Skeggs <bskeggs@redhat.com>2013-07-04 23:44:35 -0400
commit60a4acd7c9a5cde05ec17685072504f991fea321 (patch)
treee133b4b50c850e05c358e8c34ebf5d02924cdb7c /drivers/gpu/drm/nouveau
parentf8adeb82a931c780900f8133aeeea6f0b5154573 (diff)
drm/nvf0-/gr: ctxsw scratch reg count got bumped to 16
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/com.fuc8
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpc.fuc12
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h522
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvd7.fuc.h580
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h580
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvf0.fuc.h580
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/hub.fuc22
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h1012
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvd7.fuc.h1012
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnve0.fuc.h982
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvf0.fuc.h982
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/fuc/macros.fuc45
12 files changed, 3303 insertions, 3034 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/com.fuc b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/com.fuc
index da18885c559c..5d24b6de16cc 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/com.fuc
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/com.fuc
@@ -149,13 +149,9 @@ watchdog_clear:
149// 149//
150wait_donez: 150wait_donez:
151 trace_set(T_WAIT); 151 trace_set(T_WAIT);
152 mov $r8 0x818 152 nv_iowr(NV_PGRAPH_FECS_CC_SCRATCH_VAL(6), 0, $r10)
153 shl b32 $r8 6
154 iowr I[$r8 + 0x000] $r10
155 wait_donez_ne: 153 wait_donez_ne:
156 mov $r8 0x400 154 nv_iord($r8, NV_PGRAPH_FECS_SIGNAL, 0)
157 shl b32 $r8 6
158 iord $r8 I[$r8 + 0x000]
159 xbit $r8 $r8 $r10 155 xbit $r8 $r8 $r10
160 bra ne #wait_donez_ne 156 bra ne #wait_donez_ne
161 trace_clr(T_WAIT) 157 trace_clr(T_WAIT)
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpc.fuc b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpc.fuc
index b9dba107e78f..b52f4a8b8699 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpc.fuc
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpc.fuc
@@ -141,9 +141,7 @@ init:
141#endif 141#endif
142 142
143 // initialise context base, and size tracking 143 // initialise context base, and size tracking
144 mov $r2 0x800 144 nv_iord($r2, NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_VAL(1), 0)
145 shl b32 $r2 6
146 iord $r2 I[$r2 + 0x100] // CC_SCRATCH[1], initial base
147 clear b32 $r3 // track GPC context size here 145 clear b32 $r3 // track GPC context size here
148 146
149 // set mmctx base addresses now so we don't have to do it later, 147 // set mmctx base addresses now so we don't have to do it later,
@@ -198,13 +196,10 @@ init:
198 add b32 $r3 $r15 196 add b32 $r3 $r15
199 197
200 // save context size, and tell HUB we're done 198 // save context size, and tell HUB we're done
201 mov $r1 0x800 199 nv_iowr(NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_VAL(1), 0, $r3)
202 shl b32 $r1 6
203 iowr I[$r1 + 0x100] $r3 // CC_SCRATCH[1] = context size
204 add b32 $r1 0x800
205 clear b32 $r2 200 clear b32 $r2
206 bset $r2 31 201 bset $r2 31
207 iowr I[$r1 + 0x000] $r2 // CC_SCRATCH[0] |= 0x80000000 202 nv_iowr(NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_SET(0), 0, $r2)
208 203
209// Main program loop, very simple, sleeps until woken up by the interrupt 204// Main program loop, very simple, sleeps until woken up by the interrupt
210// handler, pulls a command from the queue and executes its handler 205// handler, pulls a command from the queue and executes its handler
@@ -249,6 +244,7 @@ ih:
249 push $r13 244 push $r13
250 push $r14 245 push $r14
251 push $r15 246 push $r15
247 clear b32 $r0
252 248
253 // incoming fifo command? 249 // incoming fifo command?
254 iord $r10 I[$r0 + 0x200] // INTR 250 iord $r10 I[$r0 + 0x200] // INTR
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 50675f30d24d..2afe75ce89e9 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
@@ -37,14 +37,14 @@ uint32_t nvc0_grgpc_data[] = {
37}; 37};
38 38
39uint32_t nvc0_grgpc_code[] = { 39uint32_t nvc0_grgpc_code[] = {
40 0x03060ef5, 40 0x03180ef5,
41/* 0x0004: queue_put */ 41/* 0x0004: queue_put */
42 0x9800d898, 42 0x9800d898,
43 0x86f001d9, 43 0x86f001d9,
44 0x0489b808, 44 0x0489b808,
45 0xf00c1bf4, 45 0xf00c1bf4,
46 0x21f502f7, 46 0x21f502f7,
47 0x00f802ec, 47 0x00f802fe,
48/* 0x001c: queue_put_next */ 48/* 0x001c: queue_put_next */
49 0xb60798c4, 49 0xb60798c4,
50 0x8dbb0384, 50 0x8dbb0384,
@@ -76,7 +76,7 @@ uint32_t nvc0_grgpc_code[] = {
76 0xc800bccf, 76 0xc800bccf,
77 0x1bf41fcc, 77 0x1bf41fcc,
78 0x06a7f0fa, 78 0x06a7f0fa,
79 0x010321f5, 79 0x010921f5,
80 0xf840bfcf, 80 0xf840bfcf,
81/* 0x008d: nv_wr32 */ 81/* 0x008d: nv_wr32 */
82 0x28b7f100, 82 0x28b7f100,
@@ -98,63 +98,66 @@ uint32_t nvc0_grgpc_code[] = {
98 0x0684b604, 98 0x0684b604,
99 0xf80080d0, 99 0xf80080d0,
100/* 0x00c9: wait_donez */ 100/* 0x00c9: wait_donez */
101 0x3c87f100, 101 0xf094bd00,
102 0x0684b608, 102 0x07f10099,
103 0x99f094bd, 103 0x03f00f00,
104 0x0089d000, 104 0x0009d002,
105 0x081887f1, 105 0x07f104bd,
106 0xd00684b6, 106 0x03f00600,
107/* 0x00e2: wait_donez_ne */ 107 0x000ad002,
108 0x87f1008a, 108/* 0x00e6: wait_donez_ne */
109 0x84b60400, 109 0x87f104bd,
110 0x0088cf06, 110 0x83f00000,
111 0x0088cf01,
111 0xf4888aff, 112 0xf4888aff,
112 0x87f1f31b, 113 0x94bdf31b,
113 0x84b6085c, 114 0xf10099f0,
114 0xf094bd06, 115 0xf0170007,
115 0x89d00099, 116 0x09d00203,
116/* 0x0103: wait_doneo */ 117 0xf804bd00,
117 0xf100f800, 118/* 0x0109: wait_doneo */
118 0xb6083c87, 119 0xf094bd00,
119 0x94bd0684, 120 0x07f10099,
120 0xd00099f0, 121 0x03f00f00,
121 0x87f10089, 122 0x0009d002,
123 0x87f104bd,
122 0x84b60818, 124 0x84b60818,
123 0x008ad006, 125 0x008ad006,
124/* 0x011c: wait_doneo_e */ 126/* 0x0124: wait_doneo_e */
125 0x040087f1, 127 0x040087f1,
126 0xcf0684b6, 128 0xcf0684b6,
127 0x8aff0088, 129 0x8aff0088,
128 0xf30bf488, 130 0xf30bf488,
129 0x085c87f1, 131 0x99f094bd,
130 0xbd0684b6, 132 0x0007f100,
131 0x0099f094, 133 0x0203f017,
132 0xf80089d0, 134 0xbd0009d0,
133/* 0x013d: mmctx_size */ 135/* 0x0147: mmctx_size */
134/* 0x013f: nv_mmctx_size_loop */ 136 0xbd00f804,
135 0x9894bd00, 137/* 0x0149: nv_mmctx_size_loop */
136 0x85b600e8, 138 0x00e89894,
137 0x0180b61a, 139 0xb61a85b6,
138 0xbb0284b6, 140 0x84b60180,
139 0xe0b60098, 141 0x0098bb02,
140 0x04efb804, 142 0xb804e0b6,
141 0xb9eb1bf4, 143 0x1bf404ef,
142 0x00f8029f, 144 0x029fb9eb,
143/* 0x015c: mmctx_xfer */ 145/* 0x0166: mmctx_xfer */
144 0x083c87f1, 146 0x94bd00f8,
145 0xbd0684b6, 147 0xf10199f0,
146 0x0199f094, 148 0xf00f0007,
147 0xf10089d0, 149 0x09d00203,
150 0xf104bd00,
148 0xb6071087, 151 0xb6071087,
149 0x94bd0684, 152 0x94bd0684,
150 0xf405bbfd, 153 0xf405bbfd,
151 0x8bd0090b, 154 0x8bd0090b,
152 0x0099f000, 155 0x0099f000,
153/* 0x0180: mmctx_base_disabled */ 156/* 0x018c: mmctx_base_disabled */
154 0xf405eefd, 157 0xf405eefd,
155 0x8ed00c0b, 158 0x8ed00c0b,
156 0xc08fd080, 159 0xc08fd080,
157/* 0x018f: mmctx_multi_disabled */ 160/* 0x019b: mmctx_multi_disabled */
158 0xb70199f0, 161 0xb70199f0,
159 0xc8010080, 162 0xc8010080,
160 0xb4b600ab, 163 0xb4b600ab,
@@ -162,8 +165,8 @@ uint32_t nvc0_grgpc_code[] = {
162 0xb601aec8, 165 0xb601aec8,
163 0xbefd11e4, 166 0xbefd11e4,
164 0x008bd005, 167 0x008bd005,
165/* 0x01a8: mmctx_exec_loop */ 168/* 0x01b4: mmctx_exec_loop */
166/* 0x01a8: mmctx_wait_free */ 169/* 0x01b4: mmctx_wait_free */
167 0xf0008ecf, 170 0xf0008ecf,
168 0x0bf41fe4, 171 0x0bf41fe4,
169 0x00ce98fa, 172 0x00ce98fa,
@@ -172,76 +175,77 @@ uint32_t nvc0_grgpc_code[] = {
172 0x04cdb804, 175 0x04cdb804,
173 0xc8e81bf4, 176 0xc8e81bf4,
174 0x1bf402ab, 177 0x1bf402ab,
175/* 0x01c9: mmctx_fini_wait */ 178/* 0x01d5: mmctx_fini_wait */
176 0x008bcf18, 179 0x008bcf18,
177 0xb01fb4f0, 180 0xb01fb4f0,
178 0x1bf410b4, 181 0x1bf410b4,
179 0x02a7f0f7, 182 0x02a7f0f7,
180 0xf4c921f4, 183 0xf4c921f4,
181/* 0x01de: mmctx_stop */ 184/* 0x01ea: mmctx_stop */
182 0xabc81b0e, 185 0xabc81b0e,
183 0x10b4b600, 186 0x10b4b600,
184 0xf00cb9f0, 187 0xf00cb9f0,
185 0x8bd012b9, 188 0x8bd012b9,
186/* 0x01ed: mmctx_stop_wait */ 189/* 0x01f9: mmctx_stop_wait */
187 0x008bcf00, 190 0x008bcf00,
188 0xf412bbc8, 191 0xf412bbc8,
189/* 0x01f6: mmctx_done */ 192/* 0x0202: mmctx_done */
190 0x87f1fa1b, 193 0x94bdfa1b,
191 0x84b6085c, 194 0xf10199f0,
192 0xf094bd06, 195 0xf0170007,
193 0x89d00199, 196 0x09d00203,
194/* 0x0207: strand_wait */ 197 0xf804bd00,
195 0xf900f800, 198/* 0x0215: strand_wait */
196 0x02a7f0a0, 199 0xf0a0f900,
197 0xfcc921f4, 200 0x21f402a7,
198/* 0x0213: strand_pre */ 201 0xf8a0fcc9,
199 0xf100f8a0, 202/* 0x0221: strand_pre */
200 0xf04afc87, 203 0xfc87f100,
201 0x97f00283, 204 0x0283f04a,
202 0x0089d00c, 205 0xd00c97f0,
203 0x020721f5,
204/* 0x0226: strand_post */
205 0x87f100f8,
206 0x83f04afc,
207 0x0d97f002,
208 0xf50089d0,
209 0xf8020721,
210/* 0x0239: strand_set */
211 0xfca7f100,
212 0x02a3f04f,
213 0x0500aba2,
214 0xd00fc7f0,
215 0xc7f000ac,
216 0x00bcd00b,
217 0x020721f5,
218 0xf000aed0,
219 0xbcd00ac7,
220 0x0721f500,
221/* 0x0263: strand_ctx_init */
222 0xf100f802,
223 0xb6083c87,
224 0x94bd0684,
225 0xd00399f0,
226 0x21f50089, 206 0x21f50089,
227 0xe7f00213, 207 0x00f80215,
228 0x3921f503, 208/* 0x0234: strand_post */
209 0x4afc87f1,
210 0xf00283f0,
211 0x89d00d97,
212 0x1521f500,
213/* 0x0247: strand_set */
214 0xf100f802,
215 0xf04ffca7,
216 0xaba202a3,
217 0xc7f00500,
218 0x00acd00f,
219 0xd00bc7f0,
220 0x21f500bc,
221 0xaed00215,
222 0x0ac7f000,
223 0xf500bcd0,
224 0xf8021521,
225/* 0x0271: strand_ctx_init */
226 0xf094bd00,
227 0x07f10399,
228 0x03f00f00,
229 0x0009d002,
230 0x21f504bd,
231 0xe7f00221,
232 0x4721f503,
229 0xfca7f102, 233 0xfca7f102,
230 0x02a3f046, 234 0x02a3f046,
231 0x0400aba0, 235 0x0400aba0,
232 0xf040a0d0, 236 0xf040a0d0,
233 0xbcd001c7, 237 0xbcd001c7,
234 0x0721f500, 238 0x1521f500,
235 0x010c9202, 239 0x010c9202,
236 0xf000acd0, 240 0xf000acd0,
237 0xbcd002c7, 241 0xbcd002c7,
238 0x0721f500, 242 0x1521f500,
239 0x2621f502, 243 0x3421f502,
240 0x8087f102, 244 0x8087f102,
241 0x0684b608, 245 0x0684b608,
242 0xb70089cf, 246 0xb70089cf,
243 0x95220080, 247 0x95220080,
244/* 0x02ba: ctx_init_strand_loop */ 248/* 0x02ca: ctx_init_strand_loop */
245 0x8ed008fe, 249 0x8ed008fe,
246 0x408ed000, 250 0x408ed000,
247 0xb6808acf, 251 0xb6808acf,
@@ -250,175 +254,171 @@ uint32_t nvc0_grgpc_code[] = {
250 0xb60480b6, 254 0xb60480b6,
251 0x1bf40192, 255 0x1bf40192,
252 0x08e4b6e8, 256 0x08e4b6e8,
253 0xf1f2efbc, 257 0xbdf2efbc,
254 0xb6085c87, 258 0x0399f094,
255 0x94bd0684, 259 0x170007f1,
256 0xd00399f0, 260 0xd00203f0,
257 0x00f80089, 261 0x04bd0009,
258/* 0x02ec: error */ 262/* 0x02fe: error */
259 0xe7f1e0f9, 263 0xe0f900f8,
260 0xe3f09814, 264 0x9814e7f1,
261 0x8d21f440, 265 0xf440e3f0,
262 0x041ce0b7, 266 0xe0b78d21,
263 0xf401f7f0, 267 0xf7f0041c,
264 0xe0fc8d21, 268 0x8d21f401,
265/* 0x0306: init */ 269 0x00f8e0fc,
266 0x04bd00f8, 270/* 0x0318: init */
267 0xf10004fe, 271 0x04fe04bd,
268 0xf0120017, 272 0x0017f100,
269 0x12d00227, 273 0x0227f012,
270 0x0d17f100, 274 0xf10012d0,
271 0x0010fe04, 275 0xfe042617,
272 0x040017f1, 276 0x17f10010,
273 0xf0c010d0, 277 0x10d00400,
274 0x12d00427, 278 0x0427f0c0,
275 0x1031f400, 279 0xf40012d0,
276 0x060817f1, 280 0x17f11031,
277 0xcf0614b6, 281 0x14b60608,
278 0x37f00012, 282 0x0012cf06,
279 0x1f24f001, 283 0xf00137f0,
280 0xb60432bb, 284 0x32bb1f24,
281 0x02800132, 285 0x0132b604,
282 0x06038005, 286 0x80050280,
283 0x040010b7, 287 0x10b70603,
284 0x800012cf, 288 0x12cf0400,
285 0x27f10402, 289 0x04028000,
286 0x24b60800, 290 0x010027f1,
287 0x4022cf06, 291 0xcf0223f0,
288 0x47f134bd, 292 0x34bd0022,
289 0x44b60700, 293 0x070047f1,
290 0x08259506, 294 0x950644b6,
291 0xd00045d0, 295 0x45d00825,
292 0x0e984045, 296 0x4045d000,
293 0x010f9800, 297 0x98000e98,
294 0x013d21f5, 298 0x21f5010f,
295 0xbb002fbb, 299 0x2fbb0147,
296 0x0e98003f, 300 0x003fbb00,
297 0x020f9801, 301 0x98010e98,
298 0x013d21f5, 302 0x21f5020f,
299 0xfd050e98, 303 0x0e980147,
300 0x2ebb00ef, 304 0x00effd05,
301 0x003ebb00, 305 0xbb002ebb,
302 0x130040b7, 306 0x40b7003e,
303 0xd00235b6, 307 0x35b61300,
304 0x25b60043, 308 0x0043d002,
305 0x0635b608, 309 0xb60825b6,
306 0xb60120b6, 310 0x20b60635,
307 0x24b60130, 311 0x0130b601,
308 0x0834b608, 312 0xb60824b6,
309 0xf5022fb9, 313 0x2fb90834,
310 0xbb026321, 314 0x7121f502,
311 0x17f1003f, 315 0x003fbb02,
312 0x14b60800, 316 0x010007f1,
313 0x4013d006, 317 0xd00203f0,
314 0x080010b7, 318 0x04bd0003,
315 0x29f024bd, 319 0x29f024bd,
316 0x0012d01f, 320 0x0007f11f,
317/* 0x03d0: main */ 321 0x0203f008,
318 0xf40031f4, 322 0xbd0002d0,
319 0xd7f00028, 323/* 0x03e9: main */
320 0x3921f41c, 324 0x0031f404,
321 0xb0f401f4, 325 0xf00028f4,
322 0x18f404e4, 326 0x21f41cd7,
323 0x0181fe1e, 327 0xf401f439,
324 0xbd0627f0, 328 0xf404e4b0,
325 0x0412fd20, 329 0x81fe1e18,
326 0xfd01e4b6, 330 0x0627f001,
327 0x18fe051e, 331 0x12fd20bd,
328 0x9221f500, 332 0x01e4b604,
329 0xd30ef404, 333 0xfe051efd,
330/* 0x0400: main_not_ctx_xfer */ 334 0x21f50018,
331 0xf010ef94, 335 0x0ef404ad,
332 0x21f501f5, 336/* 0x0419: main_not_ctx_xfer */
333 0x0ef402ec, 337 0x10ef94d3,
334/* 0x040d: ih */ 338 0xf501f5f0,
335 0xfe80f9c6, 339 0xf402fe21,
336 0x80f90188, 340/* 0x0426: ih */
337 0xa0f990f9, 341 0x80f9c60e,
338 0xd0f9b0f9, 342 0xf90188fe,
339 0xf0f9e0f9, 343 0xf990f980,
340 0xc4800acf, 344 0xf9b0f9a0,
341 0x0bf404ab, 345 0xf9e0f9d0,
342 0x00b7f11d, 346 0xcf04bdf0,
343 0x1cd7f019, 347 0xabc4800a,
344 0xcf40becf, 348 0x1d0bf404,
345 0x21f400bf, 349 0x1900b7f1,
346 0x00b0b704, 350 0xcf1cd7f0,
347 0x01e7f004, 351 0xbfcf40be,
348/* 0x0443: ih_no_fifo */ 352 0x0421f400,
349 0xd000bed0, 353 0x0400b0b7,
350 0xf0fc400a, 354 0xd001e7f0,
351 0xd0fce0fc, 355/* 0x045e: ih_no_fifo */
352 0xa0fcb0fc, 356 0x0ad000be,
353 0x80fc90fc, 357 0xfcf0fc40,
354 0xfc0088fe, 358 0xfcd0fce0,
355 0x0032f480, 359 0xfca0fcb0,
356/* 0x045e: hub_barrier_done */ 360 0xfe80fc90,
357 0xf7f001f8, 361 0x80fc0088,
358 0x040e9801, 362 0xf80032f4,
359 0xf104febb, 363/* 0x0479: hub_barrier_done */
360 0xf09418e7, 364 0x01f7f001,
361 0x21f440e3, 365 0xbb040e98,
362/* 0x0473: ctx_redswitch */ 366 0xe7f104fe,
363 0xf100f88d, 367 0xe3f09418,
364 0xb60614e7, 368 0x8d21f440,
365 0xf7f006e4, 369/* 0x048e: ctx_redswitch */
366 0x00efd020, 370 0xe7f100f8,
367/* 0x0483: ctx_redswitch_delay */ 371 0xe4b60614,
368 0xb608f7f0, 372 0x20f7f006,
369 0x1bf401f2, 373 0xf000efd0,
370 0x20f7f1fd, 374/* 0x049e: ctx_redswitch_delay */
371 0x00efd00a, 375 0xf2b608f7,
372/* 0x0492: ctx_xfer */ 376 0xfd1bf401,
373 0x17f100f8, 377 0x0a20f7f1,
374 0x14b60a04, 378 0xf800efd0,
375 0x001fd006, 379/* 0x04ad: ctx_xfer */
376 0xf50711f4, 380 0x0417f100,
377/* 0x04a3: ctx_xfer_not_load */ 381 0x0614b60a,
378 0xf1047321, 382 0xf4001fd0,
379 0xf04afc17, 383 0x21f50711,
380 0x27f00213, 384/* 0x04be: ctx_xfer_not_load */
381 0x0012d00c, 385 0x17f1048e,
382 0x020721f5, 386 0x13f04afc,
383 0x47fc27f1, 387 0x0c27f002,
384 0xd00223f0, 388 0xf50012d0,
385 0x2cf00020, 389 0xf1021521,
386 0x0320b601, 390 0xf047fc27,
387 0xf00012d0, 391 0x20d00223,
388 0xa5f001ac, 392 0x012cf000,
389 0x00b7f002, 393 0xd00320b6,
390 0x9850b3f0, 394 0xacf00012,
391 0xc4b6040c, 395 0x02a5f001,
392 0x00bcbb0f, 396 0xf000b7f0,
393 0x98000c98, 397 0x0c9850b3,
394 0xe7f0010d, 398 0x0fc4b604,
395 0x5c21f500, 399 0x9800bcbb,
396 0x01acf001, 400 0x0d98000c,
397 0x4000b7f1, 401 0x00e7f001,
398 0x9850b3f0, 402 0x016621f5,
399 0xc4b6040c, 403 0xf101acf0,
400 0x00bcbb0f, 404 0xf04000b7,
401 0x98010c98, 405 0x0c9850b3,
402 0x0f98020d, 406 0x0fc4b604,
403 0x00e7f106, 407 0x9800bcbb,
404 0x5c21f508, 408 0x0d98010c,
405 0x0721f501, 409 0x060f9802,
406 0x0601f402, 410 0x0800e7f1,
407/* 0x0517: ctx_xfer_post */ 411 0x016621f5,
408 0xf11412f4, 412 0x021521f5,
409 0xf04afc17, 413 0xf40601f4,
410 0x27f00213, 414/* 0x0532: ctx_xfer_post */
411 0x0012d00d, 415 0x17f11412,
412 0x020721f5, 416 0x13f04afc,
413/* 0x0528: ctx_xfer_done */ 417 0x0d27f002,
414 0x045e21f5, 418 0xf50012d0,
415 0x000000f8, 419/* 0x0543: ctx_xfer_done */
416 0x00000000, 420 0xf5021521,
417 0x00000000, 421 0xf8047921,
418 0x00000000,
419 0x00000000,
420 0x00000000,
421 0x00000000,
422 0x00000000, 422 0x00000000,
423 0x00000000, 423 0x00000000,
424 0x00000000, 424 0x00000000,
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvd7.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvd7.fuc.h
index 66d034faedd3..dd346c2a1624 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvd7.fuc.h
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvd7.fuc.h
@@ -41,14 +41,14 @@ uint32_t nvd7_grgpc_data[] = {
41}; 41};
42 42
43uint32_t nvd7_grgpc_code[] = { 43uint32_t nvd7_grgpc_code[] = {
44 0x03060ef5, 44 0x03180ef5,
45/* 0x0004: queue_put */ 45/* 0x0004: queue_put */
46 0x9800d898, 46 0x9800d898,
47 0x86f001d9, 47 0x86f001d9,
48 0x0489b808, 48 0x0489b808,
49 0xf00c1bf4, 49 0xf00c1bf4,
50 0x21f502f7, 50 0x21f502f7,
51 0x00f802ec, 51 0x00f802fe,
52/* 0x001c: queue_put_next */ 52/* 0x001c: queue_put_next */
53 0xb60798c4, 53 0xb60798c4,
54 0x8dbb0384, 54 0x8dbb0384,
@@ -80,7 +80,7 @@ uint32_t nvd7_grgpc_code[] = {
80 0xc800bccf, 80 0xc800bccf,
81 0x1bf41fcc, 81 0x1bf41fcc,
82 0x06a7f0fa, 82 0x06a7f0fa,
83 0x010321f5, 83 0x010921f5,
84 0xf840bfcf, 84 0xf840bfcf,
85/* 0x008d: nv_wr32 */ 85/* 0x008d: nv_wr32 */
86 0x28b7f100, 86 0x28b7f100,
@@ -102,63 +102,66 @@ uint32_t nvd7_grgpc_code[] = {
102 0x0684b604, 102 0x0684b604,
103 0xf80080d0, 103 0xf80080d0,
104/* 0x00c9: wait_donez */ 104/* 0x00c9: wait_donez */
105 0x3c87f100, 105 0xf094bd00,
106 0x0684b608, 106 0x07f10099,
107 0x99f094bd, 107 0x03f00f00,
108 0x0089d000, 108 0x0009d002,
109 0x081887f1, 109 0x07f104bd,
110 0xd00684b6, 110 0x03f00600,
111/* 0x00e2: wait_donez_ne */ 111 0x000ad002,
112 0x87f1008a, 112/* 0x00e6: wait_donez_ne */
113 0x84b60400, 113 0x87f104bd,
114 0x0088cf06, 114 0x83f00000,
115 0x0088cf01,
115 0xf4888aff, 116 0xf4888aff,
116 0x87f1f31b, 117 0x94bdf31b,
117 0x84b6085c, 118 0xf10099f0,
118 0xf094bd06, 119 0xf0170007,
119 0x89d00099, 120 0x09d00203,
120/* 0x0103: wait_doneo */ 121 0xf804bd00,
121 0xf100f800, 122/* 0x0109: wait_doneo */
122 0xb6083c87, 123 0xf094bd00,
123 0x94bd0684, 124 0x07f10099,
124 0xd00099f0, 125 0x03f00f00,
125 0x87f10089, 126 0x0009d002,
127 0x87f104bd,
126 0x84b60818, 128 0x84b60818,
127 0x008ad006, 129 0x008ad006,
128/* 0x011c: wait_doneo_e */ 130/* 0x0124: wait_doneo_e */
129 0x040087f1, 131 0x040087f1,
130 0xcf0684b6, 132 0xcf0684b6,
131 0x8aff0088, 133 0x8aff0088,
132 0xf30bf488, 134 0xf30bf488,
133 0x085c87f1, 135 0x99f094bd,
134 0xbd0684b6, 136 0x0007f100,
135 0x0099f094, 137 0x0203f017,
136 0xf80089d0, 138 0xbd0009d0,
137/* 0x013d: mmctx_size */ 139/* 0x0147: mmctx_size */
138/* 0x013f: nv_mmctx_size_loop */ 140 0xbd00f804,
139 0x9894bd00, 141/* 0x0149: nv_mmctx_size_loop */
140 0x85b600e8, 142 0x00e89894,
141 0x0180b61a, 143 0xb61a85b6,
142 0xbb0284b6, 144 0x84b60180,
143 0xe0b60098, 145 0x0098bb02,
144 0x04efb804, 146 0xb804e0b6,
145 0xb9eb1bf4, 147 0x1bf404ef,
146 0x00f8029f, 148 0x029fb9eb,
147/* 0x015c: mmctx_xfer */ 149/* 0x0166: mmctx_xfer */
148 0x083c87f1, 150 0x94bd00f8,
149 0xbd0684b6, 151 0xf10199f0,
150 0x0199f094, 152 0xf00f0007,
151 0xf10089d0, 153 0x09d00203,
154 0xf104bd00,
152 0xb6071087, 155 0xb6071087,
153 0x94bd0684, 156 0x94bd0684,
154 0xf405bbfd, 157 0xf405bbfd,
155 0x8bd0090b, 158 0x8bd0090b,
156 0x0099f000, 159 0x0099f000,
157/* 0x0180: mmctx_base_disabled */ 160/* 0x018c: mmctx_base_disabled */
158 0xf405eefd, 161 0xf405eefd,
159 0x8ed00c0b, 162 0x8ed00c0b,
160 0xc08fd080, 163 0xc08fd080,
161/* 0x018f: mmctx_multi_disabled */ 164/* 0x019b: mmctx_multi_disabled */
162 0xb70199f0, 165 0xb70199f0,
163 0xc8010080, 166 0xc8010080,
164 0xb4b600ab, 167 0xb4b600ab,
@@ -166,8 +169,8 @@ uint32_t nvd7_grgpc_code[] = {
166 0xb601aec8, 169 0xb601aec8,
167 0xbefd11e4, 170 0xbefd11e4,
168 0x008bd005, 171 0x008bd005,
169/* 0x01a8: mmctx_exec_loop */ 172/* 0x01b4: mmctx_exec_loop */
170/* 0x01a8: mmctx_wait_free */ 173/* 0x01b4: mmctx_wait_free */
171 0xf0008ecf, 174 0xf0008ecf,
172 0x0bf41fe4, 175 0x0bf41fe4,
173 0x00ce98fa, 176 0x00ce98fa,
@@ -176,76 +179,77 @@ uint32_t nvd7_grgpc_code[] = {
176 0x04cdb804, 179 0x04cdb804,
177 0xc8e81bf4, 180 0xc8e81bf4,
178 0x1bf402ab, 181 0x1bf402ab,
179/* 0x01c9: mmctx_fini_wait */ 182/* 0x01d5: mmctx_fini_wait */
180 0x008bcf18, 183 0x008bcf18,
181 0xb01fb4f0, 184 0xb01fb4f0,
182 0x1bf410b4, 185 0x1bf410b4,
183 0x02a7f0f7, 186 0x02a7f0f7,
184 0xf4c921f4, 187 0xf4c921f4,
185/* 0x01de: mmctx_stop */ 188/* 0x01ea: mmctx_stop */
186 0xabc81b0e, 189 0xabc81b0e,
187 0x10b4b600, 190 0x10b4b600,
188 0xf00cb9f0, 191 0xf00cb9f0,
189 0x8bd012b9, 192 0x8bd012b9,
190/* 0x01ed: mmctx_stop_wait */ 193/* 0x01f9: mmctx_stop_wait */
191 0x008bcf00, 194 0x008bcf00,
192 0xf412bbc8, 195 0xf412bbc8,
193/* 0x01f6: mmctx_done */ 196/* 0x0202: mmctx_done */
194 0x87f1fa1b, 197 0x94bdfa1b,
195 0x84b6085c, 198 0xf10199f0,
196 0xf094bd06, 199 0xf0170007,
197 0x89d00199, 200 0x09d00203,
198/* 0x0207: strand_wait */ 201 0xf804bd00,
199 0xf900f800, 202/* 0x0215: strand_wait */
200 0x02a7f0a0, 203 0xf0a0f900,
201 0xfcc921f4, 204 0x21f402a7,
202/* 0x0213: strand_pre */ 205 0xf8a0fcc9,
203 0xf100f8a0, 206/* 0x0221: strand_pre */
204 0xf04afc87, 207 0xfc87f100,
205 0x97f00283, 208 0x0283f04a,
206 0x0089d00c, 209 0xd00c97f0,
207 0x020721f5,
208/* 0x0226: strand_post */
209 0x87f100f8,
210 0x83f04afc,
211 0x0d97f002,
212 0xf50089d0,
213 0xf8020721,
214/* 0x0239: strand_set */
215 0xfca7f100,
216 0x02a3f04f,
217 0x0500aba2,
218 0xd00fc7f0,
219 0xc7f000ac,
220 0x00bcd00b,
221 0x020721f5,
222 0xf000aed0,
223 0xbcd00ac7,
224 0x0721f500,
225/* 0x0263: strand_ctx_init */
226 0xf100f802,
227 0xb6083c87,
228 0x94bd0684,
229 0xd00399f0,
230 0x21f50089, 210 0x21f50089,
231 0xe7f00213, 211 0x00f80215,
232 0x3921f503, 212/* 0x0234: strand_post */
213 0x4afc87f1,
214 0xf00283f0,
215 0x89d00d97,
216 0x1521f500,
217/* 0x0247: strand_set */
218 0xf100f802,
219 0xf04ffca7,
220 0xaba202a3,
221 0xc7f00500,
222 0x00acd00f,
223 0xd00bc7f0,
224 0x21f500bc,
225 0xaed00215,
226 0x0ac7f000,
227 0xf500bcd0,
228 0xf8021521,
229/* 0x0271: strand_ctx_init */
230 0xf094bd00,
231 0x07f10399,
232 0x03f00f00,
233 0x0009d002,
234 0x21f504bd,
235 0xe7f00221,
236 0x4721f503,
233 0xfca7f102, 237 0xfca7f102,
234 0x02a3f046, 238 0x02a3f046,
235 0x0400aba0, 239 0x0400aba0,
236 0xf040a0d0, 240 0xf040a0d0,
237 0xbcd001c7, 241 0xbcd001c7,
238 0x0721f500, 242 0x1521f500,
239 0x010c9202, 243 0x010c9202,
240 0xf000acd0, 244 0xf000acd0,
241 0xbcd002c7, 245 0xbcd002c7,
242 0x0721f500, 246 0x1521f500,
243 0x2621f502, 247 0x3421f502,
244 0x8087f102, 248 0x8087f102,
245 0x0684b608, 249 0x0684b608,
246 0xb70089cf, 250 0xb70089cf,
247 0x95220080, 251 0x95220080,
248/* 0x02ba: ctx_init_strand_loop */ 252/* 0x02ca: ctx_init_strand_loop */
249 0x8ed008fe, 253 0x8ed008fe,
250 0x408ed000, 254 0x408ed000,
251 0xb6808acf, 255 0xb6808acf,
@@ -254,207 +258,203 @@ uint32_t nvd7_grgpc_code[] = {
254 0xb60480b6, 258 0xb60480b6,
255 0x1bf40192, 259 0x1bf40192,
256 0x08e4b6e8, 260 0x08e4b6e8,
257 0xf1f2efbc, 261 0xbdf2efbc,
258 0xb6085c87, 262 0x0399f094,
259 0x94bd0684, 263 0x170007f1,
260 0xd00399f0, 264 0xd00203f0,
261 0x00f80089, 265 0x04bd0009,
262/* 0x02ec: error */ 266/* 0x02fe: error */
263 0xe7f1e0f9, 267 0xe0f900f8,
264 0xe3f09814, 268 0x9814e7f1,
265 0x8d21f440, 269 0xf440e3f0,
266 0x041ce0b7, 270 0xe0b78d21,
267 0xf401f7f0, 271 0xf7f0041c,
268 0xe0fc8d21, 272 0x8d21f401,
269/* 0x0306: init */ 273 0x00f8e0fc,
270 0x04bd00f8, 274/* 0x0318: init */
271 0xf10004fe, 275 0x04fe04bd,
272 0xf0120017, 276 0x0017f100,
273 0x12d00227, 277 0x0227f012,
274 0x5717f100, 278 0xf10012d0,
275 0x0010fe04, 279 0xfe047017,
276 0x040017f1, 280 0x17f10010,
277 0xf0c010d0, 281 0x10d00400,
278 0x12d00427, 282 0x0427f0c0,
279 0x1031f400, 283 0xf40012d0,
280 0x060817f1, 284 0x17f11031,
281 0xcf0614b6, 285 0x14b60608,
282 0x37f00012, 286 0x0012cf06,
283 0x1f24f001, 287 0xf00137f0,
284 0xb60432bb, 288 0x32bb1f24,
285 0x02800132, 289 0x0132b604,
286 0x06038005, 290 0x80050280,
287 0x040010b7, 291 0x10b70603,
288 0x800012cf, 292 0x12cf0400,
289 0xe7f10402, 293 0x04028000,
290 0xe3f00c30, 294 0x0c30e7f1,
291 0xbd24bd50, 295 0xbd50e3f0,
292/* 0x035f: init_unk_loop */ 296 0xbd34bd24,
293 0xf444bd34, 297/* 0x0371: init_unk_loop */
294 0xf6b06821, 298 0x6821f444,
295 0x0f0bf400, 299 0xf400f6b0,
296 0xbb01f7f0, 300 0xf7f00f0b,
297 0x4ffd04f2, 301 0x04f2bb01,
298 0x0130b605, 302 0xb6054ffd,
299/* 0x0374: init_unk_next */ 303/* 0x0386: init_unk_next */
300 0xb60120b6, 304 0x20b60130,
301 0x26b004e0, 305 0x04e0b601,
302 0xe21bf401, 306 0xf40126b0,
303/* 0x0380: init_unk_done */ 307/* 0x0392: init_unk_done */
304 0x80070380, 308 0x0380e21b,
305 0x27f10804, 309 0x08048007,
306 0x24b60800, 310 0x010027f1,
307 0x4022cf06, 311 0xcf0223f0,
308 0x47f134bd, 312 0x34bd0022,
309 0x44b60700, 313 0x070047f1,
310 0x08259506, 314 0x950644b6,
311 0xd00045d0, 315 0x45d00825,
312 0x0e984045, 316 0x4045d000,
313 0x010f9800, 317 0x98000e98,
314 0x013d21f5, 318 0x21f5010f,
315 0xbb002fbb, 319 0x2fbb0147,
316 0x0e98003f, 320 0x003fbb00,
317 0x020f9801, 321 0x98010e98,
318 0x013d21f5, 322 0x21f5020f,
319 0xfd050e98, 323 0x0e980147,
324 0x00effd05,
325 0xbb002ebb,
326 0x0e98003e,
327 0x030f9802,
328 0x014721f5,
329 0xfd070e98,
320 0x2ebb00ef, 330 0x2ebb00ef,
321 0x003ebb00, 331 0x003ebb00,
322 0x98020e98, 332 0x130040b7,
323 0x21f5030f, 333 0xd00235b6,
324 0x0e98013d, 334 0x25b60043,
325 0x00effd07, 335 0x0635b608,
326 0xbb002ebb, 336 0xb60120b6,
327 0x40b7003e, 337 0x24b60130,
328 0x35b61300, 338 0x0834b608,
329 0x0043d002, 339 0xf5022fb9,
330 0xb60825b6, 340 0xbb027121,
331 0x20b60635, 341 0x07f1003f,
332 0x0130b601, 342 0x03f00100,
333 0xb60824b6, 343 0x0003d002,
334 0x2fb90834, 344 0x24bd04bd,
335 0x6321f502, 345 0xf11f29f0,
336 0x003fbb02, 346 0xf0080007,
337 0x080017f1, 347 0x02d00203,
338 0xd00614b6, 348/* 0x0433: main */
339 0x10b74013, 349 0xf404bd00,
340 0x24bd0800, 350 0x28f40031,
341 0xd01f29f0, 351 0x24d7f000,
342/* 0x041a: main */ 352 0xf43921f4,
343 0x31f40012, 353 0xe4b0f401,
344 0x0028f400, 354 0x1e18f404,
345 0xf424d7f0, 355 0xf00181fe,
346 0x01f43921, 356 0x20bd0627,
347 0x04e4b0f4, 357 0xb60412fd,
348 0xfe1e18f4, 358 0x1efd01e4,
349 0x27f00181, 359 0x0018fe05,
350 0xfd20bd06, 360 0x04f721f5,
351 0xe4b60412, 361/* 0x0463: main_not_ctx_xfer */
352 0x051efd01, 362 0x94d30ef4,
353 0xf50018fe, 363 0xf5f010ef,
354 0xf404dc21, 364 0xfe21f501,
355/* 0x044a: main_not_ctx_xfer */ 365 0xc60ef402,
356 0xef94d30e, 366/* 0x0470: ih */
357 0x01f5f010, 367 0x88fe80f9,
358 0x02ec21f5, 368 0xf980f901,
359/* 0x0457: ih */ 369 0xf9a0f990,
360 0xf9c60ef4, 370 0xf9d0f9b0,
361 0x0188fe80, 371 0xbdf0f9e0,
362 0x90f980f9, 372 0x800acf04,
363 0xb0f9a0f9, 373 0xf404abc4,
364 0xe0f9d0f9, 374 0xb7f11d0b,
365 0x0acff0f9, 375 0xd7f01900,
366 0x04abc480, 376 0x40becf24,
367 0xf11d0bf4, 377 0xf400bfcf,
368 0xf01900b7, 378 0xb0b70421,
369 0xbecf24d7, 379 0xe7f00400,
370 0x00bfcf40, 380 0x00bed001,
371 0xb70421f4, 381/* 0x04a8: ih_no_fifo */
372 0xf00400b0, 382 0xfc400ad0,
373 0xbed001e7, 383 0xfce0fcf0,
374/* 0x048d: ih_no_fifo */ 384 0xfcb0fcd0,
375 0x400ad000, 385 0xfc90fca0,
376 0xe0fcf0fc, 386 0x0088fe80,
377 0xb0fcd0fc, 387 0x32f480fc,
378 0x90fca0fc, 388/* 0x04c3: hub_barrier_done */
379 0x88fe80fc, 389 0xf001f800,
380 0xf480fc00, 390 0x0e9801f7,
381 0x01f80032, 391 0x04febb04,
382/* 0x04a8: hub_barrier_done */ 392 0x9418e7f1,
383 0x9801f7f0, 393 0xf440e3f0,
384 0xfebb040e, 394 0x00f88d21,
385 0x18e7f104, 395/* 0x04d8: ctx_redswitch */
386 0x40e3f094, 396 0x0614e7f1,
387 0xf88d21f4, 397 0xf006e4b6,
388/* 0x04bd: ctx_redswitch */ 398 0xefd020f7,
389 0x14e7f100, 399 0x08f7f000,
390 0x06e4b606, 400/* 0x04e8: ctx_redswitch_delay */
391 0xd020f7f0, 401 0xf401f2b6,
392 0xf7f000ef, 402 0xf7f1fd1b,
393/* 0x04cd: ctx_redswitch_delay */ 403 0xefd00a20,
394 0x01f2b608, 404/* 0x04f7: ctx_xfer */
395 0xf1fd1bf4, 405 0xf100f800,
396 0xd00a20f7, 406 0xb60a0417,
397 0x00f800ef, 407 0x1fd00614,
398/* 0x04dc: ctx_xfer */ 408 0x0711f400,
399 0x0a0417f1, 409 0x04d821f5,
400 0xd00614b6, 410/* 0x0508: ctx_xfer_not_load */
401 0x11f4001f,
402 0xbd21f507,
403/* 0x04ed: ctx_xfer_not_load */
404 0xfc17f104,
405 0x0213f04a,
406 0xd00c27f0,
407 0x21f50012,
408 0x27f10207,
409 0x23f047fc,
410 0x0020d002,
411 0xb6012cf0,
412 0x12d00320,
413 0x01acf000,
414 0xf002a5f0,
415 0xb3f000b7,
416 0x040c9850,
417 0xbb0fc4b6,
418 0x0c9800bc,
419 0x010d9800,
420 0xf500e7f0,
421 0xf0015c21,
422 0xb7f101ac,
423 0xb3f04000,
424 0x040c9850,
425 0xbb0fc4b6,
426 0x0c9800bc,
427 0x020d9801,
428 0xf1060f98,
429 0xf50800e7,
430 0xf0015c21,
431 0xa5f001ac,
432 0x00b7f104,
433 0x50b3f030,
434 0xb6040c98,
435 0xbcbb0fc4,
436 0x020c9800,
437 0x98030d98,
438 0xe7f1080f,
439 0x21f50200,
440 0x21f5015c,
441 0x01f40207,
442 0x1412f406,
443/* 0x0588: ctx_xfer_post */
444 0x4afc17f1, 411 0x4afc17f1,
445 0xf00213f0, 412 0xf00213f0,
446 0x12d00d27, 413 0x12d00c27,
447 0x0721f500, 414 0x1521f500,
448/* 0x0599: ctx_xfer_done */ 415 0xfc27f102,
449 0xa821f502, 416 0x0223f047,
450 0x0000f804, 417 0xf00020d0,
451 0x00000000, 418 0x20b6012c,
452 0x00000000, 419 0x0012d003,
453 0x00000000, 420 0xf001acf0,
454 0x00000000, 421 0xb7f002a5,
455 0x00000000, 422 0x50b3f000,
456 0x00000000, 423 0xb6040c98,
457 0x00000000, 424 0xbcbb0fc4,
425 0x000c9800,
426 0xf0010d98,
427 0x21f500e7,
428 0xacf00166,
429 0x00b7f101,
430 0x50b3f040,
431 0xb6040c98,
432 0xbcbb0fc4,
433 0x010c9800,
434 0x98020d98,
435 0xe7f1060f,
436 0x21f50800,
437 0xacf00166,
438 0x04a5f001,
439 0x3000b7f1,
440 0x9850b3f0,
441 0xc4b6040c,
442 0x00bcbb0f,
443 0x98020c98,
444 0x0f98030d,
445 0x00e7f108,
446 0x6621f502,
447 0x1521f501,
448 0x0601f402,
449/* 0x05a3: ctx_xfer_post */
450 0xf11412f4,
451 0xf04afc17,
452 0x27f00213,
453 0x0012d00d,
454 0x021521f5,
455/* 0x05b4: ctx_xfer_done */
456 0x04c321f5,
457 0x000000f8,
458 0x00000000, 458 0x00000000,
459 0x00000000, 459 0x00000000,
460 0x00000000, 460 0x00000000,
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h
index dc9c7784aeca..7ff5ef6b0804 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h
@@ -41,14 +41,14 @@ uint32_t nve0_grgpc_data[] = {
41}; 41};
42 42
43uint32_t nve0_grgpc_code[] = { 43uint32_t nve0_grgpc_code[] = {
44 0x03060ef5, 44 0x03180ef5,
45/* 0x0004: queue_put */ 45/* 0x0004: queue_put */
46 0x9800d898, 46 0x9800d898,
47 0x86f001d9, 47 0x86f001d9,
48 0x0489b808, 48 0x0489b808,
49 0xf00c1bf4, 49 0xf00c1bf4,
50 0x21f502f7, 50 0x21f502f7,
51 0x00f802ec, 51 0x00f802fe,
52/* 0x001c: queue_put_next */ 52/* 0x001c: queue_put_next */
53 0xb60798c4, 53 0xb60798c4,
54 0x8dbb0384, 54 0x8dbb0384,
@@ -80,7 +80,7 @@ uint32_t nve0_grgpc_code[] = {
80 0xc800bccf, 80 0xc800bccf,
81 0x1bf41fcc, 81 0x1bf41fcc,
82 0x06a7f0fa, 82 0x06a7f0fa,
83 0x010321f5, 83 0x010921f5,
84 0xf840bfcf, 84 0xf840bfcf,
85/* 0x008d: nv_wr32 */ 85/* 0x008d: nv_wr32 */
86 0x28b7f100, 86 0x28b7f100,
@@ -102,63 +102,66 @@ uint32_t nve0_grgpc_code[] = {
102 0x0684b604, 102 0x0684b604,
103 0xf80080d0, 103 0xf80080d0,
104/* 0x00c9: wait_donez */ 104/* 0x00c9: wait_donez */
105 0x3c87f100, 105 0xf094bd00,
106 0x0684b608, 106 0x07f10099,
107 0x99f094bd, 107 0x03f00f00,
108 0x0089d000, 108 0x0009d002,
109 0x081887f1, 109 0x07f104bd,
110 0xd00684b6, 110 0x03f00600,
111/* 0x00e2: wait_donez_ne */ 111 0x000ad002,
112 0x87f1008a, 112/* 0x00e6: wait_donez_ne */
113 0x84b60400, 113 0x87f104bd,
114 0x0088cf06, 114 0x83f00000,
115 0x0088cf01,
115 0xf4888aff, 116 0xf4888aff,
116 0x87f1f31b, 117 0x94bdf31b,
117 0x84b6085c, 118 0xf10099f0,
118 0xf094bd06, 119 0xf0170007,
119 0x89d00099, 120 0x09d00203,
120/* 0x0103: wait_doneo */ 121 0xf804bd00,
121 0xf100f800, 122/* 0x0109: wait_doneo */
122 0xb6083c87, 123 0xf094bd00,
123 0x94bd0684, 124 0x07f10099,
124 0xd00099f0, 125 0x03f00f00,
125 0x87f10089, 126 0x0009d002,
127 0x87f104bd,
126 0x84b60818, 128 0x84b60818,
127 0x008ad006, 129 0x008ad006,
128/* 0x011c: wait_doneo_e */ 130/* 0x0124: wait_doneo_e */
129 0x040087f1, 131 0x040087f1,
130 0xcf0684b6, 132 0xcf0684b6,
131 0x8aff0088, 133 0x8aff0088,
132 0xf30bf488, 134 0xf30bf488,
133 0x085c87f1, 135 0x99f094bd,
134 0xbd0684b6, 136 0x0007f100,
135 0x0099f094, 137 0x0203f017,
136 0xf80089d0, 138 0xbd0009d0,
137/* 0x013d: mmctx_size */ 139/* 0x0147: mmctx_size */
138/* 0x013f: nv_mmctx_size_loop */ 140 0xbd00f804,
139 0x9894bd00, 141/* 0x0149: nv_mmctx_size_loop */
140 0x85b600e8, 142 0x00e89894,
141 0x0180b61a, 143 0xb61a85b6,
142 0xbb0284b6, 144 0x84b60180,
143 0xe0b60098, 145 0x0098bb02,
144 0x04efb804, 146 0xb804e0b6,
145 0xb9eb1bf4, 147 0x1bf404ef,
146 0x00f8029f, 148 0x029fb9eb,
147/* 0x015c: mmctx_xfer */ 149/* 0x0166: mmctx_xfer */
148 0x083c87f1, 150 0x94bd00f8,
149 0xbd0684b6, 151 0xf10199f0,
150 0x0199f094, 152 0xf00f0007,
151 0xf10089d0, 153 0x09d00203,
154 0xf104bd00,
152 0xb6071087, 155 0xb6071087,
153 0x94bd0684, 156 0x94bd0684,
154 0xf405bbfd, 157 0xf405bbfd,
155 0x8bd0090b, 158 0x8bd0090b,
156 0x0099f000, 159 0x0099f000,
157/* 0x0180: mmctx_base_disabled */ 160/* 0x018c: mmctx_base_disabled */
158 0xf405eefd, 161 0xf405eefd,
159 0x8ed00c0b, 162 0x8ed00c0b,
160 0xc08fd080, 163 0xc08fd080,
161/* 0x018f: mmctx_multi_disabled */ 164/* 0x019b: mmctx_multi_disabled */
162 0xb70199f0, 165 0xb70199f0,
163 0xc8010080, 166 0xc8010080,
164 0xb4b600ab, 167 0xb4b600ab,
@@ -166,8 +169,8 @@ uint32_t nve0_grgpc_code[] = {
166 0xb601aec8, 169 0xb601aec8,
167 0xbefd11e4, 170 0xbefd11e4,
168 0x008bd005, 171 0x008bd005,
169/* 0x01a8: mmctx_exec_loop */ 172/* 0x01b4: mmctx_exec_loop */
170/* 0x01a8: mmctx_wait_free */ 173/* 0x01b4: mmctx_wait_free */
171 0xf0008ecf, 174 0xf0008ecf,
172 0x0bf41fe4, 175 0x0bf41fe4,
173 0x00ce98fa, 176 0x00ce98fa,
@@ -176,76 +179,77 @@ uint32_t nve0_grgpc_code[] = {
176 0x04cdb804, 179 0x04cdb804,
177 0xc8e81bf4, 180 0xc8e81bf4,
178 0x1bf402ab, 181 0x1bf402ab,
179/* 0x01c9: mmctx_fini_wait */ 182/* 0x01d5: mmctx_fini_wait */
180 0x008bcf18, 183 0x008bcf18,
181 0xb01fb4f0, 184 0xb01fb4f0,
182 0x1bf410b4, 185 0x1bf410b4,
183 0x02a7f0f7, 186 0x02a7f0f7,
184 0xf4c921f4, 187 0xf4c921f4,
185/* 0x01de: mmctx_stop */ 188/* 0x01ea: mmctx_stop */
186 0xabc81b0e, 189 0xabc81b0e,
187 0x10b4b600, 190 0x10b4b600,
188 0xf00cb9f0, 191 0xf00cb9f0,
189 0x8bd012b9, 192 0x8bd012b9,
190/* 0x01ed: mmctx_stop_wait */ 193/* 0x01f9: mmctx_stop_wait */
191 0x008bcf00, 194 0x008bcf00,
192 0xf412bbc8, 195 0xf412bbc8,
193/* 0x01f6: mmctx_done */ 196/* 0x0202: mmctx_done */
194 0x87f1fa1b, 197 0x94bdfa1b,
195 0x84b6085c, 198 0xf10199f0,
196 0xf094bd06, 199 0xf0170007,
197 0x89d00199, 200 0x09d00203,
198/* 0x0207: strand_wait */ 201 0xf804bd00,
199 0xf900f800, 202/* 0x0215: strand_wait */
200 0x02a7f0a0, 203 0xf0a0f900,
201 0xfcc921f4, 204 0x21f402a7,
202/* 0x0213: strand_pre */ 205 0xf8a0fcc9,
203 0xf100f8a0, 206/* 0x0221: strand_pre */
204 0xf04afc87, 207 0xfc87f100,
205 0x97f00283, 208 0x0283f04a,
206 0x0089d00c, 209 0xd00c97f0,
207 0x020721f5,
208/* 0x0226: strand_post */
209 0x87f100f8,
210 0x83f04afc,
211 0x0d97f002,
212 0xf50089d0,
213 0xf8020721,
214/* 0x0239: strand_set */
215 0xfca7f100,
216 0x02a3f04f,
217 0x0500aba2,
218 0xd00fc7f0,
219 0xc7f000ac,
220 0x00bcd00b,
221 0x020721f5,
222 0xf000aed0,
223 0xbcd00ac7,
224 0x0721f500,
225/* 0x0263: strand_ctx_init */
226 0xf100f802,
227 0xb6083c87,
228 0x94bd0684,
229 0xd00399f0,
230 0x21f50089, 210 0x21f50089,
231 0xe7f00213, 211 0x00f80215,
232 0x3921f503, 212/* 0x0234: strand_post */
213 0x4afc87f1,
214 0xf00283f0,
215 0x89d00d97,
216 0x1521f500,
217/* 0x0247: strand_set */
218 0xf100f802,
219 0xf04ffca7,
220 0xaba202a3,
221 0xc7f00500,
222 0x00acd00f,
223 0xd00bc7f0,
224 0x21f500bc,
225 0xaed00215,
226 0x0ac7f000,
227 0xf500bcd0,
228 0xf8021521,
229/* 0x0271: strand_ctx_init */
230 0xf094bd00,
231 0x07f10399,
232 0x03f00f00,
233 0x0009d002,
234 0x21f504bd,
235 0xe7f00221,
236 0x4721f503,
233 0xfca7f102, 237 0xfca7f102,
234 0x02a3f046, 238 0x02a3f046,
235 0x0400aba0, 239 0x0400aba0,
236 0xf040a0d0, 240 0xf040a0d0,
237 0xbcd001c7, 241 0xbcd001c7,
238 0x0721f500, 242 0x1521f500,
239 0x010c9202, 243 0x010c9202,
240 0xf000acd0, 244 0xf000acd0,
241 0xbcd002c7, 245 0xbcd002c7,
242 0x0721f500, 246 0x1521f500,
243 0x2621f502, 247 0x3421f502,
244 0x8087f102, 248 0x8087f102,
245 0x0684b608, 249 0x0684b608,
246 0xb70089cf, 250 0xb70089cf,
247 0x95220080, 251 0x95220080,
248/* 0x02ba: ctx_init_strand_loop */ 252/* 0x02ca: ctx_init_strand_loop */
249 0x8ed008fe, 253 0x8ed008fe,
250 0x408ed000, 254 0x408ed000,
251 0xb6808acf, 255 0xb6808acf,
@@ -254,207 +258,203 @@ uint32_t nve0_grgpc_code[] = {
254 0xb60480b6, 258 0xb60480b6,
255 0x1bf40192, 259 0x1bf40192,
256 0x08e4b6e8, 260 0x08e4b6e8,
257 0xf1f2efbc, 261 0xbdf2efbc,
258 0xb6085c87, 262 0x0399f094,
259 0x94bd0684, 263 0x170007f1,
260 0xd00399f0, 264 0xd00203f0,
261 0x00f80089, 265 0x04bd0009,
262/* 0x02ec: error */ 266/* 0x02fe: error */
263 0xe7f1e0f9, 267 0xe0f900f8,
264 0xe3f09814, 268 0x9814e7f1,
265 0x8d21f440, 269 0xf440e3f0,
266 0x041ce0b7, 270 0xe0b78d21,
267 0xf401f7f0, 271 0xf7f0041c,
268 0xe0fc8d21, 272 0x8d21f401,
269/* 0x0306: init */ 273 0x00f8e0fc,
270 0x04bd00f8, 274/* 0x0318: init */
271 0xf10004fe, 275 0x04fe04bd,
272 0xf0120017, 276 0x0017f100,
273 0x12d00227, 277 0x0227f012,
274 0x5717f100, 278 0xf10012d0,
275 0x0010fe04, 279 0xfe047017,
276 0x040017f1, 280 0x17f10010,
277 0xf0c010d0, 281 0x10d00400,
278 0x12d00427, 282 0x0427f0c0,
279 0x1031f400, 283 0xf40012d0,
280 0x060817f1, 284 0x17f11031,
281 0xcf0614b6, 285 0x14b60608,
282 0x37f00012, 286 0x0012cf06,
283 0x1f24f001, 287 0xf00137f0,
284 0xb60432bb, 288 0x32bb1f24,
285 0x02800132, 289 0x0132b604,
286 0x06038005, 290 0x80050280,
287 0x040010b7, 291 0x10b70603,
288 0x800012cf, 292 0x12cf0400,
289 0xe7f10402, 293 0x04028000,
290 0xe3f00c30, 294 0x0c30e7f1,
291 0xbd24bd50, 295 0xbd50e3f0,
292/* 0x035f: init_unk_loop */ 296 0xbd34bd24,
293 0xf444bd34, 297/* 0x0371: init_unk_loop */
294 0xf6b06821, 298 0x6821f444,
295 0x0f0bf400, 299 0xf400f6b0,
296 0xbb01f7f0, 300 0xf7f00f0b,
297 0x4ffd04f2, 301 0x04f2bb01,
298 0x0130b605, 302 0xb6054ffd,
299/* 0x0374: init_unk_next */ 303/* 0x0386: init_unk_next */
300 0xb60120b6, 304 0x20b60130,
301 0x26b004e0, 305 0x04e0b601,
302 0xe21bf401, 306 0xf40126b0,
303/* 0x0380: init_unk_done */ 307/* 0x0392: init_unk_done */
304 0x80070380, 308 0x0380e21b,
305 0x27f10804, 309 0x08048007,
306 0x24b60800, 310 0x010027f1,
307 0x4022cf06, 311 0xcf0223f0,
308 0x47f134bd, 312 0x34bd0022,
309 0x44b60700, 313 0x070047f1,
310 0x08259506, 314 0x950644b6,
311 0xd00045d0, 315 0x45d00825,
312 0x0e984045, 316 0x4045d000,
313 0x010f9800, 317 0x98000e98,
314 0x013d21f5, 318 0x21f5010f,
315 0xbb002fbb, 319 0x2fbb0147,
316 0x0e98003f, 320 0x003fbb00,
317 0x020f9801, 321 0x98010e98,
318 0x013d21f5, 322 0x21f5020f,
319 0xfd050e98, 323 0x0e980147,
324 0x00effd05,
325 0xbb002ebb,
326 0x0e98003e,
327 0x030f9802,
328 0x014721f5,
329 0xfd070e98,
320 0x2ebb00ef, 330 0x2ebb00ef,
321 0x003ebb00, 331 0x003ebb00,
322 0x98020e98, 332 0x130040b7,
323 0x21f5030f, 333 0xd00235b6,
324 0x0e98013d, 334 0x25b60043,
325 0x00effd07, 335 0x0635b608,
326 0xbb002ebb, 336 0xb60120b6,
327 0x40b7003e, 337 0x24b60130,
328 0x35b61300, 338 0x0834b608,
329 0x0043d002, 339 0xf5022fb9,
330 0xb60825b6, 340 0xbb027121,
331 0x20b60635, 341 0x07f1003f,
332 0x0130b601, 342 0x03f00100,
333 0xb60824b6, 343 0x0003d002,
334 0x2fb90834, 344 0x24bd04bd,
335 0x6321f502, 345 0xf11f29f0,
336 0x003fbb02, 346 0xf0080007,
337 0x080017f1, 347 0x02d00203,
338 0xd00614b6, 348/* 0x0433: main */
339 0x10b74013, 349 0xf404bd00,
340 0x24bd0800, 350 0x28f40031,
341 0xd01f29f0, 351 0x24d7f000,
342/* 0x041a: main */ 352 0xf43921f4,
343 0x31f40012, 353 0xe4b0f401,
344 0x0028f400, 354 0x1e18f404,
345 0xf424d7f0, 355 0xf00181fe,
346 0x01f43921, 356 0x20bd0627,
347 0x04e4b0f4, 357 0xb60412fd,
348 0xfe1e18f4, 358 0x1efd01e4,
349 0x27f00181, 359 0x0018fe05,
350 0xfd20bd06, 360 0x04f721f5,
351 0xe4b60412, 361/* 0x0463: main_not_ctx_xfer */
352 0x051efd01, 362 0x94d30ef4,
353 0xf50018fe, 363 0xf5f010ef,
354 0xf404dc21, 364 0xfe21f501,
355/* 0x044a: main_not_ctx_xfer */ 365 0xc60ef402,
356 0xef94d30e, 366/* 0x0470: ih */
357 0x01f5f010, 367 0x88fe80f9,
358 0x02ec21f5, 368 0xf980f901,
359/* 0x0457: ih */ 369 0xf9a0f990,
360 0xf9c60ef4, 370 0xf9d0f9b0,
361 0x0188fe80, 371 0xbdf0f9e0,
362 0x90f980f9, 372 0x800acf04,
363 0xb0f9a0f9, 373 0xf404abc4,
364 0xe0f9d0f9, 374 0xb7f11d0b,
365 0x0acff0f9, 375 0xd7f01900,
366 0x04abc480, 376 0x40becf24,
367 0xf11d0bf4, 377 0xf400bfcf,
368 0xf01900b7, 378 0xb0b70421,
369 0xbecf24d7, 379 0xe7f00400,
370 0x00bfcf40, 380 0x00bed001,
371 0xb70421f4, 381/* 0x04a8: ih_no_fifo */
372 0xf00400b0, 382 0xfc400ad0,
373 0xbed001e7, 383 0xfce0fcf0,
374/* 0x048d: ih_no_fifo */ 384 0xfcb0fcd0,
375 0x400ad000, 385 0xfc90fca0,
376 0xe0fcf0fc, 386 0x0088fe80,
377 0xb0fcd0fc, 387 0x32f480fc,
378 0x90fca0fc, 388/* 0x04c3: hub_barrier_done */
379 0x88fe80fc, 389 0xf001f800,
380 0xf480fc00, 390 0x0e9801f7,
381 0x01f80032, 391 0x04febb04,
382/* 0x04a8: hub_barrier_done */ 392 0x9418e7f1,
383 0x9801f7f0, 393 0xf440e3f0,
384 0xfebb040e, 394 0x00f88d21,
385 0x18e7f104, 395/* 0x04d8: ctx_redswitch */
386 0x40e3f094, 396 0x0614e7f1,
387 0xf88d21f4, 397 0xf006e4b6,
388/* 0x04bd: ctx_redswitch */ 398 0xefd020f7,
389 0x14e7f100, 399 0x08f7f000,
390 0x06e4b606, 400/* 0x04e8: ctx_redswitch_delay */
391 0xd020f7f0, 401 0xf401f2b6,
392 0xf7f000ef, 402 0xf7f1fd1b,
393/* 0x04cd: ctx_redswitch_delay */ 403 0xefd00a20,
394 0x01f2b608, 404/* 0x04f7: ctx_xfer */
395 0xf1fd1bf4, 405 0xf100f800,
396 0xd00a20f7, 406 0xb60a0417,
397 0x00f800ef, 407 0x1fd00614,
398/* 0x04dc: ctx_xfer */ 408 0x0711f400,
399 0x0a0417f1, 409 0x04d821f5,
400 0xd00614b6, 410/* 0x0508: ctx_xfer_not_load */
401 0x11f4001f,
402 0xbd21f507,
403/* 0x04ed: ctx_xfer_not_load */
404 0xfc17f104,
405 0x0213f04a,
406 0xd00c27f0,
407 0x21f50012,
408 0x27f10207,
409 0x23f047fc,
410 0x0020d002,
411 0xb6012cf0,
412 0x12d00320,
413 0x01acf000,
414 0xf002a5f0,
415 0xb3f000b7,
416 0x040c9850,
417 0xbb0fc4b6,
418 0x0c9800bc,
419 0x010d9800,
420 0xf500e7f0,
421 0xf0015c21,
422 0xb7f101ac,
423 0xb3f04000,
424 0x040c9850,
425 0xbb0fc4b6,
426 0x0c9800bc,
427 0x020d9801,
428 0xf1060f98,
429 0xf50800e7,
430 0xf0015c21,
431 0xa5f001ac,
432 0x00b7f104,
433 0x50b3f030,
434 0xb6040c98,
435 0xbcbb0fc4,
436 0x020c9800,
437 0x98030d98,
438 0xe7f1080f,
439 0x21f50200,
440 0x21f5015c,
441 0x01f40207,
442 0x1412f406,
443/* 0x0588: ctx_xfer_post */
444 0x4afc17f1, 411 0x4afc17f1,
445 0xf00213f0, 412 0xf00213f0,
446 0x12d00d27, 413 0x12d00c27,
447 0x0721f500, 414 0x1521f500,
448/* 0x0599: ctx_xfer_done */ 415 0xfc27f102,
449 0xa821f502, 416 0x0223f047,
450 0x0000f804, 417 0xf00020d0,
451 0x00000000, 418 0x20b6012c,
452 0x00000000, 419 0x0012d003,
453 0x00000000, 420 0xf001acf0,
454 0x00000000, 421 0xb7f002a5,
455 0x00000000, 422 0x50b3f000,
456 0x00000000, 423 0xb6040c98,
457 0x00000000, 424 0xbcbb0fc4,
425 0x000c9800,
426 0xf0010d98,
427 0x21f500e7,
428 0xacf00166,
429 0x00b7f101,
430 0x50b3f040,
431 0xb6040c98,
432 0xbcbb0fc4,
433 0x010c9800,
434 0x98020d98,
435 0xe7f1060f,
436 0x21f50800,
437 0xacf00166,
438 0x04a5f001,
439 0x3000b7f1,
440 0x9850b3f0,
441 0xc4b6040c,
442 0x00bcbb0f,
443 0x98020c98,
444 0x0f98030d,
445 0x00e7f108,
446 0x6621f502,
447 0x1521f501,
448 0x0601f402,
449/* 0x05a3: ctx_xfer_post */
450 0xf11412f4,
451 0xf04afc17,
452 0x27f00213,
453 0x0012d00d,
454 0x021521f5,
455/* 0x05b4: ctx_xfer_done */
456 0x04c321f5,
457 0x000000f8,
458 0x00000000, 458 0x00000000,
459 0x00000000, 459 0x00000000,
460 0x00000000, 460 0x00000000,
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvf0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvf0.fuc.h
index cbbed6aa080b..f870507be880 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvf0.fuc.h
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvf0.fuc.h
@@ -41,14 +41,14 @@ uint32_t nvf0_grgpc_data[] = {
41}; 41};
42 42
43uint32_t nvf0_grgpc_code[] = { 43uint32_t nvf0_grgpc_code[] = {
44 0x03060ef5, 44 0x03180ef5,
45/* 0x0004: queue_put */ 45/* 0x0004: queue_put */
46 0x9800d898, 46 0x9800d898,
47 0x86f001d9, 47 0x86f001d9,
48 0x0489b808, 48 0x0489b808,
49 0xf00c1bf4, 49 0xf00c1bf4,
50 0x21f502f7, 50 0x21f502f7,
51 0x00f802ec, 51 0x00f802fe,
52/* 0x001c: queue_put_next */ 52/* 0x001c: queue_put_next */
53 0xb60798c4, 53 0xb60798c4,
54 0x8dbb0384, 54 0x8dbb0384,
@@ -80,7 +80,7 @@ uint32_t nvf0_grgpc_code[] = {
80 0xc800bccf, 80 0xc800bccf,
81 0x1bf41fcc, 81 0x1bf41fcc,
82 0x06a7f0fa, 82 0x06a7f0fa,
83 0x010321f5, 83 0x010921f5,
84 0xf840bfcf, 84 0xf840bfcf,
85/* 0x008d: nv_wr32 */ 85/* 0x008d: nv_wr32 */
86 0x28b7f100, 86 0x28b7f100,
@@ -102,63 +102,66 @@ uint32_t nvf0_grgpc_code[] = {
102 0x0684b604, 102 0x0684b604,
103 0xf80080d0, 103 0xf80080d0,
104/* 0x00c9: wait_donez */ 104/* 0x00c9: wait_donez */
105 0x3c87f100, 105 0xf094bd00,
106 0x0684b608, 106 0x07f10099,
107 0x99f094bd, 107 0x03f03700,
108 0x0089d000, 108 0x0009d002,
109 0x081887f1, 109 0x07f104bd,
110 0xd00684b6, 110 0x03f00600,
111/* 0x00e2: wait_donez_ne */ 111 0x000ad002,
112 0x87f1008a, 112/* 0x00e6: wait_donez_ne */
113 0x84b60400, 113 0x87f104bd,
114 0x0088cf06, 114 0x83f00000,
115 0x0088cf01,
115 0xf4888aff, 116 0xf4888aff,
116 0x87f1f31b, 117 0x94bdf31b,
117 0x84b6085c, 118 0xf10099f0,
118 0xf094bd06, 119 0xf0170007,
119 0x89d00099, 120 0x09d00203,
120/* 0x0103: wait_doneo */ 121 0xf804bd00,
121 0xf100f800, 122/* 0x0109: wait_doneo */
122 0xb6083c87, 123 0xf094bd00,
123 0x94bd0684, 124 0x07f10099,
124 0xd00099f0, 125 0x03f03700,
125 0x87f10089, 126 0x0009d002,
127 0x87f104bd,
126 0x84b60818, 128 0x84b60818,
127 0x008ad006, 129 0x008ad006,
128/* 0x011c: wait_doneo_e */ 130/* 0x0124: wait_doneo_e */
129 0x040087f1, 131 0x040087f1,
130 0xcf0684b6, 132 0xcf0684b6,
131 0x8aff0088, 133 0x8aff0088,
132 0xf30bf488, 134 0xf30bf488,
133 0x085c87f1, 135 0x99f094bd,
134 0xbd0684b6, 136 0x0007f100,
135 0x0099f094, 137 0x0203f017,
136 0xf80089d0, 138 0xbd0009d0,
137/* 0x013d: mmctx_size */ 139/* 0x0147: mmctx_size */
138/* 0x013f: nv_mmctx_size_loop */ 140 0xbd00f804,
139 0x9894bd00, 141/* 0x0149: nv_mmctx_size_loop */
140 0x85b600e8, 142 0x00e89894,
141 0x0180b61a, 143 0xb61a85b6,
142 0xbb0284b6, 144 0x84b60180,
143 0xe0b60098, 145 0x0098bb02,
144 0x04efb804, 146 0xb804e0b6,
145 0xb9eb1bf4, 147 0x1bf404ef,
146 0x00f8029f, 148 0x029fb9eb,
147/* 0x015c: mmctx_xfer */ 149/* 0x0166: mmctx_xfer */
148 0x083c87f1, 150 0x94bd00f8,
149 0xbd0684b6, 151 0xf10199f0,
150 0x0199f094, 152 0xf0370007,
151 0xf10089d0, 153 0x09d00203,
154 0xf104bd00,
152 0xb6071087, 155 0xb6071087,
153 0x94bd0684, 156 0x94bd0684,
154 0xf405bbfd, 157 0xf405bbfd,
155 0x8bd0090b, 158 0x8bd0090b,
156 0x0099f000, 159 0x0099f000,
157/* 0x0180: mmctx_base_disabled */ 160/* 0x018c: mmctx_base_disabled */
158 0xf405eefd, 161 0xf405eefd,
159 0x8ed00c0b, 162 0x8ed00c0b,
160 0xc08fd080, 163 0xc08fd080,
161/* 0x018f: mmctx_multi_disabled */ 164/* 0x019b: mmctx_multi_disabled */
162 0xb70199f0, 165 0xb70199f0,
163 0xc8010080, 166 0xc8010080,
164 0xb4b600ab, 167 0xb4b600ab,
@@ -166,8 +169,8 @@ uint32_t nvf0_grgpc_code[] = {
166 0xb601aec8, 169 0xb601aec8,
167 0xbefd11e4, 170 0xbefd11e4,
168 0x008bd005, 171 0x008bd005,
169/* 0x01a8: mmctx_exec_loop */ 172/* 0x01b4: mmctx_exec_loop */
170/* 0x01a8: mmctx_wait_free */ 173/* 0x01b4: mmctx_wait_free */
171 0xf0008ecf, 174 0xf0008ecf,
172 0x0bf41fe4, 175 0x0bf41fe4,
173 0x00ce98fa, 176 0x00ce98fa,
@@ -176,76 +179,77 @@ uint32_t nvf0_grgpc_code[] = {
176 0x04cdb804, 179 0x04cdb804,
177 0xc8e81bf4, 180 0xc8e81bf4,
178 0x1bf402ab, 181 0x1bf402ab,
179/* 0x01c9: mmctx_fini_wait */ 182/* 0x01d5: mmctx_fini_wait */
180 0x008bcf18, 183 0x008bcf18,
181 0xb01fb4f0, 184 0xb01fb4f0,
182 0x1bf410b4, 185 0x1bf410b4,
183 0x02a7f0f7, 186 0x02a7f0f7,
184 0xf4c921f4, 187 0xf4c921f4,
185/* 0x01de: mmctx_stop */ 188/* 0x01ea: mmctx_stop */
186 0xabc81b0e, 189 0xabc81b0e,
187 0x10b4b600, 190 0x10b4b600,
188 0xf00cb9f0, 191 0xf00cb9f0,
189 0x8bd012b9, 192 0x8bd012b9,
190/* 0x01ed: mmctx_stop_wait */ 193/* 0x01f9: mmctx_stop_wait */
191 0x008bcf00, 194 0x008bcf00,
192 0xf412bbc8, 195 0xf412bbc8,
193/* 0x01f6: mmctx_done */ 196/* 0x0202: mmctx_done */
194 0x87f1fa1b, 197 0x94bdfa1b,
195 0x84b6085c, 198 0xf10199f0,
196 0xf094bd06, 199 0xf0170007,
197 0x89d00199, 200 0x09d00203,
198/* 0x0207: strand_wait */ 201 0xf804bd00,
199 0xf900f800, 202/* 0x0215: strand_wait */
200 0x02a7f0a0, 203 0xf0a0f900,
201 0xfcc921f4, 204 0x21f402a7,
202/* 0x0213: strand_pre */ 205 0xf8a0fcc9,
203 0xf100f8a0, 206/* 0x0221: strand_pre */
204 0xf04afc87, 207 0xfc87f100,
205 0x97f00283, 208 0x0283f04a,
206 0x0089d00c, 209 0xd00c97f0,
207 0x020721f5,
208/* 0x0226: strand_post */
209 0x87f100f8,
210 0x83f04afc,
211 0x0d97f002,
212 0xf50089d0,
213 0xf8020721,
214/* 0x0239: strand_set */
215 0xfca7f100,
216 0x02a3f04f,
217 0x0500aba2,
218 0xd00fc7f0,
219 0xc7f000ac,
220 0x00bcd00b,
221 0x020721f5,
222 0xf000aed0,
223 0xbcd00ac7,
224 0x0721f500,
225/* 0x0263: strand_ctx_init */
226 0xf100f802,
227 0xb6083c87,
228 0x94bd0684,
229 0xd00399f0,
230 0x21f50089, 210 0x21f50089,
231 0xe7f00213, 211 0x00f80215,
232 0x3921f503, 212/* 0x0234: strand_post */
213 0x4afc87f1,
214 0xf00283f0,
215 0x89d00d97,
216 0x1521f500,
217/* 0x0247: strand_set */
218 0xf100f802,
219 0xf04ffca7,
220 0xaba202a3,
221 0xc7f00500,
222 0x00acd00f,
223 0xd00bc7f0,
224 0x21f500bc,
225 0xaed00215,
226 0x0ac7f000,
227 0xf500bcd0,
228 0xf8021521,
229/* 0x0271: strand_ctx_init */
230 0xf094bd00,
231 0x07f10399,
232 0x03f03700,
233 0x0009d002,
234 0x21f504bd,
235 0xe7f00221,
236 0x4721f503,
233 0xfca7f102, 237 0xfca7f102,
234 0x02a3f046, 238 0x02a3f046,
235 0x0400aba0, 239 0x0400aba0,
236 0xf040a0d0, 240 0xf040a0d0,
237 0xbcd001c7, 241 0xbcd001c7,
238 0x0721f500, 242 0x1521f500,
239 0x010c9202, 243 0x010c9202,
240 0xf000acd0, 244 0xf000acd0,
241 0xbcd002c7, 245 0xbcd002c7,
242 0x0721f500, 246 0x1521f500,
243 0x2621f502, 247 0x3421f502,
244 0x8087f102, 248 0x8087f102,
245 0x0684b608, 249 0x0684b608,
246 0xb70089cf, 250 0xb70089cf,
247 0x95220080, 251 0x95220080,
248/* 0x02ba: ctx_init_strand_loop */ 252/* 0x02ca: ctx_init_strand_loop */
249 0x8ed008fe, 253 0x8ed008fe,
250 0x408ed000, 254 0x408ed000,
251 0xb6808acf, 255 0xb6808acf,
@@ -254,207 +258,203 @@ uint32_t nvf0_grgpc_code[] = {
254 0xb60480b6, 258 0xb60480b6,
255 0x1bf40192, 259 0x1bf40192,
256 0x08e4b6e8, 260 0x08e4b6e8,
257 0xf1f2efbc, 261 0xbdf2efbc,
258 0xb6085c87, 262 0x0399f094,
259 0x94bd0684, 263 0x170007f1,
260 0xd00399f0, 264 0xd00203f0,
261 0x00f80089, 265 0x04bd0009,
262/* 0x02ec: error */ 266/* 0x02fe: error */
263 0xe7f1e0f9, 267 0xe0f900f8,
264 0xe3f09814, 268 0x9814e7f1,
265 0x8d21f440, 269 0xf440e3f0,
266 0x041ce0b7, 270 0xe0b78d21,
267 0xf401f7f0, 271 0xf7f0041c,
268 0xe0fc8d21, 272 0x8d21f401,
269/* 0x0306: init */ 273 0x00f8e0fc,
270 0x04bd00f8, 274/* 0x0318: init */
271 0xf10004fe, 275 0x04fe04bd,
272 0xf0120017, 276 0x0017f100,
273 0x12d00227, 277 0x0227f012,
274 0x5717f100, 278 0xf10012d0,
275 0x0010fe04, 279 0xfe047017,
276 0x040017f1, 280 0x17f10010,
277 0xf0c010d0, 281 0x10d00400,
278 0x12d00427, 282 0x0427f0c0,
279 0x1031f400, 283 0xf40012d0,
280 0x060817f1, 284 0x17f11031,
281 0xcf0614b6, 285 0x14b60608,
282 0x37f00012, 286 0x0012cf06,
283 0x1f24f001, 287 0xf00137f0,
284 0xb60432bb, 288 0x32bb1f24,
285 0x02800132, 289 0x0132b604,
286 0x06038005, 290 0x80050280,
287 0x040010b7, 291 0x10b70603,
288 0x800012cf, 292 0x12cf0400,
289 0xe7f10402, 293 0x04028000,
290 0xe3f00c30, 294 0x0c30e7f1,
291 0xbd24bd50, 295 0xbd50e3f0,
292/* 0x035f: init_unk_loop */ 296 0xbd34bd24,
293 0xf444bd34, 297/* 0x0371: init_unk_loop */
294 0xf6b06821, 298 0x6821f444,
295 0x0f0bf400, 299 0xf400f6b0,
296 0xbb01f7f0, 300 0xf7f00f0b,
297 0x4ffd04f2, 301 0x04f2bb01,
298 0x0130b605, 302 0xb6054ffd,
299/* 0x0374: init_unk_next */ 303/* 0x0386: init_unk_next */
300 0xb60120b6, 304 0x20b60130,
301 0x26b004e0, 305 0x04e0b601,
302 0xe21bf402, 306 0xf40226b0,
303/* 0x0380: init_unk_done */ 307/* 0x0392: init_unk_done */
304 0x80070380, 308 0x0380e21b,
305 0x27f10804, 309 0x08048007,
306 0x24b60800, 310 0x010027f1,
307 0x4022cf06, 311 0xcf0223f0,
308 0x47f134bd, 312 0x34bd0022,
309 0x44b60700, 313 0x070047f1,
310 0x08259506, 314 0x950644b6,
311 0xd00045d0, 315 0x45d00825,
312 0x0e984045, 316 0x4045d000,
313 0x010f9800, 317 0x98000e98,
314 0x013d21f5, 318 0x21f5010f,
315 0xbb002fbb, 319 0x2fbb0147,
316 0x0e98003f, 320 0x003fbb00,
317 0x020f9801, 321 0x98010e98,
318 0x013d21f5, 322 0x21f5020f,
319 0xfd050e98, 323 0x0e980147,
324 0x00effd05,
325 0xbb002ebb,
326 0x0e98003e,
327 0x030f9802,
328 0x014721f5,
329 0xfd070e98,
320 0x2ebb00ef, 330 0x2ebb00ef,
321 0x003ebb00, 331 0x003ebb00,
322 0x98020e98, 332 0x130040b7,
323 0x21f5030f, 333 0xd00235b6,
324 0x0e98013d, 334 0x25b60043,
325 0x00effd07, 335 0x0635b608,
326 0xbb002ebb, 336 0xb60120b6,
327 0x40b7003e, 337 0x24b60130,
328 0x35b61300, 338 0x0834b608,
329 0x0043d002, 339 0xf5022fb9,
330 0xb60825b6, 340 0xbb027121,
331 0x20b60635, 341 0x07f1003f,
332 0x0130b601, 342 0x03f00100,
333 0xb60824b6, 343 0x0003d002,
334 0x2fb90834, 344 0x24bd04bd,
335 0x6321f502, 345 0xf11f29f0,
336 0x003fbb02, 346 0xf0300007,
337 0x080017f1, 347 0x02d00203,
338 0xd00614b6, 348/* 0x0433: main */
339 0x10b74013, 349 0xf404bd00,
340 0x24bd0800, 350 0x28f40031,
341 0xd01f29f0, 351 0x24d7f000,
342/* 0x041a: main */ 352 0xf43921f4,
343 0x31f40012, 353 0xe4b0f401,
344 0x0028f400, 354 0x1e18f404,
345 0xf424d7f0, 355 0xf00181fe,
346 0x01f43921, 356 0x20bd0627,
347 0x04e4b0f4, 357 0xb60412fd,
348 0xfe1e18f4, 358 0x1efd01e4,
349 0x27f00181, 359 0x0018fe05,
350 0xfd20bd06, 360 0x04f721f5,
351 0xe4b60412, 361/* 0x0463: main_not_ctx_xfer */
352 0x051efd01, 362 0x94d30ef4,
353 0xf50018fe, 363 0xf5f010ef,
354 0xf404dc21, 364 0xfe21f501,
355/* 0x044a: main_not_ctx_xfer */ 365 0xc60ef402,
356 0xef94d30e, 366/* 0x0470: ih */
357 0x01f5f010, 367 0x88fe80f9,
358 0x02ec21f5, 368 0xf980f901,
359/* 0x0457: ih */ 369 0xf9a0f990,
360 0xf9c60ef4, 370 0xf9d0f9b0,
361 0x0188fe80, 371 0xbdf0f9e0,
362 0x90f980f9, 372 0x800acf04,
363 0xb0f9a0f9, 373 0xf404abc4,
364 0xe0f9d0f9, 374 0xb7f11d0b,
365 0x0acff0f9, 375 0xd7f01900,
366 0x04abc480, 376 0x40becf24,
367 0xf11d0bf4, 377 0xf400bfcf,
368 0xf01900b7, 378 0xb0b70421,
369 0xbecf24d7, 379 0xe7f00400,
370 0x00bfcf40, 380 0x00bed001,
371 0xb70421f4, 381/* 0x04a8: ih_no_fifo */
372 0xf00400b0, 382 0xfc400ad0,
373 0xbed001e7, 383 0xfce0fcf0,
374/* 0x048d: ih_no_fifo */ 384 0xfcb0fcd0,
375 0x400ad000, 385 0xfc90fca0,
376 0xe0fcf0fc, 386 0x0088fe80,
377 0xb0fcd0fc, 387 0x32f480fc,
378 0x90fca0fc, 388/* 0x04c3: hub_barrier_done */
379 0x88fe80fc, 389 0xf001f800,
380 0xf480fc00, 390 0x0e9801f7,
381 0x01f80032, 391 0x04febb04,
382/* 0x04a8: hub_barrier_done */ 392 0x9418e7f1,
383 0x9801f7f0, 393 0xf440e3f0,
384 0xfebb040e, 394 0x00f88d21,
385 0x18e7f104, 395/* 0x04d8: ctx_redswitch */
386 0x40e3f094, 396 0x0614e7f1,
387 0xf88d21f4, 397 0xf006e4b6,
388/* 0x04bd: ctx_redswitch */ 398 0xefd020f7,
389 0x14e7f100, 399 0x08f7f000,
390 0x06e4b606, 400/* 0x04e8: ctx_redswitch_delay */
391 0xd020f7f0, 401 0xf401f2b6,
392 0xf7f000ef, 402 0xf7f1fd1b,
393/* 0x04cd: ctx_redswitch_delay */ 403 0xefd00a20,
394 0x01f2b608, 404/* 0x04f7: ctx_xfer */
395 0xf1fd1bf4, 405 0xf100f800,
396 0xd00a20f7, 406 0xb60a0417,
397 0x00f800ef, 407 0x1fd00614,
398/* 0x04dc: ctx_xfer */ 408 0x0711f400,
399 0x0a0417f1, 409 0x04d821f5,
400 0xd00614b6, 410/* 0x0508: ctx_xfer_not_load */
401 0x11f4001f,
402 0xbd21f507,
403/* 0x04ed: ctx_xfer_not_load */
404 0xfc17f104,
405 0x0213f04a,
406 0xd00c27f0,
407 0x21f50012,
408 0x27f10207,
409 0x23f047fc,
410 0x0020d002,
411 0xb6012cf0,
412 0x12d00320,
413 0x01acf000,
414 0xf002a5f0,
415 0xb3f000b7,
416 0x040c9850,
417 0xbb0fc4b6,
418 0x0c9800bc,
419 0x010d9800,
420 0xf500e7f0,
421 0xf0015c21,
422 0xb7f101ac,
423 0xb3f04000,
424 0x040c9850,
425 0xbb0fc4b6,
426 0x0c9800bc,
427 0x020d9801,
428 0xf1060f98,
429 0xf50800e7,
430 0xf0015c21,
431 0xa5f001ac,
432 0x00b7f104,
433 0x50b3f030,
434 0xb6040c98,
435 0xbcbb0fc4,
436 0x020c9800,
437 0x98030d98,
438 0xe7f1080f,
439 0x21f50200,
440 0x21f5015c,
441 0x01f40207,
442 0x1412f406,
443/* 0x0588: ctx_xfer_post */
444 0x4afc17f1, 411 0x4afc17f1,
445 0xf00213f0, 412 0xf00213f0,
446 0x12d00d27, 413 0x12d00c27,
447 0x0721f500, 414 0x1521f500,
448/* 0x0599: ctx_xfer_done */ 415 0xfc27f102,
449 0xa821f502, 416 0x0223f047,
450 0x0000f804, 417 0xf00020d0,
451 0x00000000, 418 0x20b6012c,
452 0x00000000, 419 0x0012d003,
453 0x00000000, 420 0xf001acf0,
454 0x00000000, 421 0xb7f002a5,
455 0x00000000, 422 0x50b3f000,
456 0x00000000, 423 0xb6040c98,
457 0x00000000, 424 0xbcbb0fc4,
425 0x000c9800,
426 0xf0010d98,
427 0x21f500e7,
428 0xacf00166,
429 0x00b7f101,
430 0x50b3f040,
431 0xb6040c98,
432 0xbcbb0fc4,
433 0x010c9800,
434 0x98020d98,
435 0xe7f1060f,
436 0x21f50800,
437 0xacf00166,
438 0x04a5f001,
439 0x3000b7f1,
440 0x9850b3f0,
441 0xc4b6040c,
442 0x00bcbb0f,
443 0x98020c98,
444 0x0f98030d,
445 0x00e7f108,
446 0x6621f502,
447 0x1521f501,
448 0x0601f402,
449/* 0x05a3: ctx_xfer_post */
450 0xf11412f4,
451 0xf04afc17,
452 0x27f00213,
453 0x0012d00d,
454 0x021521f5,
455/* 0x05b4: ctx_xfer_done */
456 0x04c321f5,
457 0x000000f8,
458 0x00000000, 458 0x00000000,
459 0x00000000, 459 0x00000000,
460 0x00000000, 460 0x00000000,
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hub.fuc b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hub.fuc
index 6b81e7bae13f..b82d2ae89917 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hub.fuc
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hub.fuc
@@ -52,15 +52,9 @@ hub_mmio_list_next:
52// In: $r15 error code (see nvc0.fuc) 52// In: $r15 error code (see nvc0.fuc)
53// 53//
54error: 54error:
55 push $r14 55 nv_iowr(NV_PGRAPH_FECS_CC_SCRATCH_VAL(5), 0, $r15)
56 mov $r14 0x814
57 shl b32 $r14 6
58 iowr I[$r14 + 0x000] $r15 // CC_SCRATCH[5] = error code
59 mov $r14 0xc1c
60 shl b32 $r14 6
61 mov $r15 1 56 mov $r15 1
62 iowr I[$r14 + 0x000] $r15 // INTR_UP_SET 57 nv_iowr(NV_PGRAPH_FECS_INTR_UP_SET, 0, $r15)
63 pop $r14
64 ret 58 ret
65 59
66// HUB fuc initialisation, executed by triggering ucode start, will 60// HUB fuc initialisation, executed by triggering ucode start, will
@@ -211,13 +205,10 @@ init:
211 bra ne #init_gpc 205 bra ne #init_gpc
212 206
213 // save context size, and tell host we're ready 207 // save context size, and tell host we're ready
214 mov $r2 0x800 208 nv_iowr(NV_PGRAPH_FECS_CC_SCRATCH_VAL(1), 0, $r1)
215 shl b32 $r2 6
216 iowr I[$r2 + 0x100] $r1 // CC_SCRATCH[1] = context size
217 add b32 $r2 0x800
218 clear b32 $r1 209 clear b32 $r1
219 bset $r1 31 210 bset $r1 31
220 iowr I[$r2 + 0x000] $r1 // CC_SCRATCH[0] |= 0x80000000 211 nv_iowr(NV_PGRAPH_FECS_CC_SCRATCH_SET(0), 0, $r1)
221 212
222// Main program loop, very simple, sleeps until woken up by the interrupt 213// Main program loop, very simple, sleeps until woken up by the interrupt
223// handler, pulls a command from the queue and executes its handler 214// handler, pulls a command from the queue and executes its handler
@@ -309,11 +300,9 @@ main:
309 bra #main 300 bra #main
310 301
311 main_done: 302 main_done:
312 mov $r1 0x820
313 shl b32 $r1 6
314 clear b32 $r2 303 clear b32 $r2
315 bset $r2 31 304 bset $r2 31
316 iowr I[$r1 + 0x000] $r2 // CC_SCRATCH[0] |= 0x80000000 305 nv_iowr(NV_PGRAPH_FECS_CC_SCRATCH_SET(0), 0, $r2)
317 bra #main 306 bra #main
318 307
319// interrupt handler 308// interrupt handler
@@ -327,6 +316,7 @@ ih:
327 push $r13 316 push $r13
328 push $r14 317 push $r14
329 push $r15 318 push $r15
319 clear b32 $r0
330 320
331 // incoming fifo command? 321 // incoming fifo command?
332 iord $r10 I[$r0 + 0x200] // INTR 322 iord $r10 I[$r0 + 0x200] // INTR
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 647452362527..b59f694c0423 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
@@ -206,14 +206,14 @@ uint32_t nvc0_grhub_data[] = {
206}; 206};
207 207
208uint32_t nvc0_grhub_code[] = { 208uint32_t nvc0_grhub_code[] = {
209 0x03090ef5, 209 0x031b0ef5,
210/* 0x0004: queue_put */ 210/* 0x0004: queue_put */
211 0x9800d898, 211 0x9800d898,
212 0x86f001d9, 212 0x86f001d9,
213 0x0489b808, 213 0x0489b808,
214 0xf00c1bf4, 214 0xf00c1bf4,
215 0x21f502f7, 215 0x21f502f7,
216 0x00f802ec, 216 0x00f802fe,
217/* 0x001c: queue_put_next */ 217/* 0x001c: queue_put_next */
218 0xb60798c4, 218 0xb60798c4,
219 0x8dbb0384, 219 0x8dbb0384,
@@ -245,7 +245,7 @@ uint32_t nvc0_grhub_code[] = {
245 0xc800bccf, 245 0xc800bccf,
246 0x1bf41fcc, 246 0x1bf41fcc,
247 0x06a7f0fa, 247 0x06a7f0fa,
248 0x010321f5, 248 0x010921f5,
249 0xf840bfcf, 249 0xf840bfcf,
250/* 0x008d: nv_wr32 */ 250/* 0x008d: nv_wr32 */
251 0x28b7f100, 251 0x28b7f100,
@@ -267,63 +267,66 @@ uint32_t nvc0_grhub_code[] = {
267 0x0684b604, 267 0x0684b604,
268 0xf80080d0, 268 0xf80080d0,
269/* 0x00c9: wait_donez */ 269/* 0x00c9: wait_donez */
270 0x3c87f100, 270 0xf094bd00,
271 0x0684b608, 271 0x07f10099,
272 0x99f094bd, 272 0x03f00f00,
273 0x0089d000, 273 0x0009d002,
274 0x081887f1, 274 0x07f104bd,
275 0xd00684b6, 275 0x03f00600,
276/* 0x00e2: wait_donez_ne */ 276 0x000ad002,
277 0x87f1008a, 277/* 0x00e6: wait_donez_ne */
278 0x84b60400, 278 0x87f104bd,
279 0x0088cf06, 279 0x83f00000,
280 0x0088cf01,
280 0xf4888aff, 281 0xf4888aff,
281 0x87f1f31b, 282 0x94bdf31b,
282 0x84b6085c, 283 0xf10099f0,
283 0xf094bd06, 284 0xf0170007,
284 0x89d00099, 285 0x09d00203,
285/* 0x0103: wait_doneo */ 286 0xf804bd00,
286 0xf100f800, 287/* 0x0109: wait_doneo */
287 0xb6083c87, 288 0xf094bd00,
288 0x94bd0684, 289 0x07f10099,
289 0xd00099f0, 290 0x03f00f00,
290 0x87f10089, 291 0x0009d002,
292 0x87f104bd,
291 0x84b60818, 293 0x84b60818,
292 0x008ad006, 294 0x008ad006,
293/* 0x011c: wait_doneo_e */ 295/* 0x0124: wait_doneo_e */
294 0x040087f1, 296 0x040087f1,
295 0xcf0684b6, 297 0xcf0684b6,
296 0x8aff0088, 298 0x8aff0088,
297 0xf30bf488, 299 0xf30bf488,
298 0x085c87f1, 300 0x99f094bd,
299 0xbd0684b6, 301 0x0007f100,
300 0x0099f094, 302 0x0203f017,
301 0xf80089d0, 303 0xbd0009d0,
302/* 0x013d: mmctx_size */ 304/* 0x0147: mmctx_size */
303/* 0x013f: nv_mmctx_size_loop */ 305 0xbd00f804,
304 0x9894bd00, 306/* 0x0149: nv_mmctx_size_loop */
305 0x85b600e8, 307 0x00e89894,
306 0x0180b61a, 308 0xb61a85b6,
307 0xbb0284b6, 309 0x84b60180,
308 0xe0b60098, 310 0x0098bb02,
309 0x04efb804, 311 0xb804e0b6,
310 0xb9eb1bf4, 312 0x1bf404ef,
311 0x00f8029f, 313 0x029fb9eb,
312/* 0x015c: mmctx_xfer */ 314/* 0x0166: mmctx_xfer */
313 0x083c87f1, 315 0x94bd00f8,
314 0xbd0684b6, 316 0xf10199f0,
315 0x0199f094, 317 0xf00f0007,
316 0xf10089d0, 318 0x09d00203,
319 0xf104bd00,
317 0xb6071087, 320 0xb6071087,
318 0x94bd0684, 321 0x94bd0684,
319 0xf405bbfd, 322 0xf405bbfd,
320 0x8bd0090b, 323 0x8bd0090b,
321 0x0099f000, 324 0x0099f000,
322/* 0x0180: mmctx_base_disabled */ 325/* 0x018c: mmctx_base_disabled */
323 0xf405eefd, 326 0xf405eefd,
324 0x8ed00c0b, 327 0x8ed00c0b,
325 0xc08fd080, 328 0xc08fd080,
326/* 0x018f: mmctx_multi_disabled */ 329/* 0x019b: mmctx_multi_disabled */
327 0xb70199f0, 330 0xb70199f0,
328 0xc8010080, 331 0xc8010080,
329 0xb4b600ab, 332 0xb4b600ab,
@@ -331,8 +334,8 @@ uint32_t nvc0_grhub_code[] = {
331 0xb601aec8, 334 0xb601aec8,
332 0xbefd11e4, 335 0xbefd11e4,
333 0x008bd005, 336 0x008bd005,
334/* 0x01a8: mmctx_exec_loop */ 337/* 0x01b4: mmctx_exec_loop */
335/* 0x01a8: mmctx_wait_free */ 338/* 0x01b4: mmctx_wait_free */
336 0xf0008ecf, 339 0xf0008ecf,
337 0x0bf41fe4, 340 0x0bf41fe4,
338 0x00ce98fa, 341 0x00ce98fa,
@@ -341,76 +344,77 @@ uint32_t nvc0_grhub_code[] = {
341 0x04cdb804, 344 0x04cdb804,
342 0xc8e81bf4, 345 0xc8e81bf4,
343 0x1bf402ab, 346 0x1bf402ab,
344/* 0x01c9: mmctx_fini_wait */ 347/* 0x01d5: mmctx_fini_wait */
345 0x008bcf18, 348 0x008bcf18,
346 0xb01fb4f0, 349 0xb01fb4f0,
347 0x1bf410b4, 350 0x1bf410b4,
348 0x02a7f0f7, 351 0x02a7f0f7,
349 0xf4c921f4, 352 0xf4c921f4,
350/* 0x01de: mmctx_stop */ 353/* 0x01ea: mmctx_stop */
351 0xabc81b0e, 354 0xabc81b0e,
352 0x10b4b600, 355 0x10b4b600,
353 0xf00cb9f0, 356 0xf00cb9f0,
354 0x8bd012b9, 357 0x8bd012b9,
355/* 0x01ed: mmctx_stop_wait */ 358/* 0x01f9: mmctx_stop_wait */
356 0x008bcf00, 359 0x008bcf00,
357 0xf412bbc8, 360 0xf412bbc8,
358/* 0x01f6: mmctx_done */ 361/* 0x0202: mmctx_done */
359 0x87f1fa1b, 362 0x94bdfa1b,
360 0x84b6085c, 363 0xf10199f0,
361 0xf094bd06, 364 0xf0170007,
362 0x89d00199, 365 0x09d00203,
363/* 0x0207: strand_wait */ 366 0xf804bd00,
364 0xf900f800, 367/* 0x0215: strand_wait */
365 0x02a7f0a0, 368 0xf0a0f900,
366 0xfcc921f4, 369 0x21f402a7,
367/* 0x0213: strand_pre */ 370 0xf8a0fcc9,
368 0xf100f8a0, 371/* 0x0221: strand_pre */
369 0xf04afc87, 372 0xfc87f100,
370 0x97f00283, 373 0x0283f04a,
371 0x0089d00c, 374 0xd00c97f0,
372 0x020721f5,
373/* 0x0226: strand_post */
374 0x87f100f8,
375 0x83f04afc,
376 0x0d97f002,
377 0xf50089d0,
378 0xf8020721,
379/* 0x0239: strand_set */
380 0xfca7f100,
381 0x02a3f04f,
382 0x0500aba2,
383 0xd00fc7f0,
384 0xc7f000ac,
385 0x00bcd00b,
386 0x020721f5,
387 0xf000aed0,
388 0xbcd00ac7,
389 0x0721f500,
390/* 0x0263: strand_ctx_init */
391 0xf100f802,
392 0xb6083c87,
393 0x94bd0684,
394 0xd00399f0,
395 0x21f50089, 375 0x21f50089,
396 0xe7f00213, 376 0x00f80215,
397 0x3921f503, 377/* 0x0234: strand_post */
378 0x4afc87f1,
379 0xf00283f0,
380 0x89d00d97,
381 0x1521f500,
382/* 0x0247: strand_set */
383 0xf100f802,
384 0xf04ffca7,
385 0xaba202a3,
386 0xc7f00500,
387 0x00acd00f,
388 0xd00bc7f0,
389 0x21f500bc,
390 0xaed00215,
391 0x0ac7f000,
392 0xf500bcd0,
393 0xf8021521,
394/* 0x0271: strand_ctx_init */
395 0xf094bd00,
396 0x07f10399,
397 0x03f00f00,
398 0x0009d002,
399 0x21f504bd,
400 0xe7f00221,
401 0x4721f503,
398 0xfca7f102, 402 0xfca7f102,
399 0x02a3f046, 403 0x02a3f046,
400 0x0400aba0, 404 0x0400aba0,
401 0xf040a0d0, 405 0xf040a0d0,
402 0xbcd001c7, 406 0xbcd001c7,
403 0x0721f500, 407 0x1521f500,
404 0x010c9202, 408 0x010c9202,
405 0xf000acd0, 409 0xf000acd0,
406 0xbcd002c7, 410 0xbcd002c7,
407 0x0721f500, 411 0x1521f500,
408 0x2621f502, 412 0x3421f502,
409 0x8087f102, 413 0x8087f102,
410 0x0684b608, 414 0x0684b608,
411 0xb70089cf, 415 0xb70089cf,
412 0x95220080, 416 0x95220080,
413/* 0x02ba: ctx_init_strand_loop */ 417/* 0x02ca: ctx_init_strand_loop */
414 0x8ed008fe, 418 0x8ed008fe,
415 0x408ed000, 419 0x408ed000,
416 0xb6808acf, 420 0xb6808acf,
@@ -419,270 +423,278 @@ uint32_t nvc0_grhub_code[] = {
419 0xb60480b6, 423 0xb60480b6,
420 0x1bf40192, 424 0x1bf40192,
421 0x08e4b6e8, 425 0x08e4b6e8,
422 0xf1f2efbc, 426 0xbdf2efbc,
423 0xb6085c87, 427 0x0399f094,
424 0x94bd0684, 428 0x170007f1,
425 0xd00399f0, 429 0xd00203f0,
426 0x00f80089, 430 0x04bd0009,
427/* 0x02ec: error */ 431/* 0x02fe: error */
428 0xe7f1e0f9, 432 0x07f100f8,
429 0xe4b60814, 433 0x03f00500,
430 0x00efd006, 434 0x000fd002,
431 0x0c1ce7f1, 435 0xf7f004bd,
432 0xf006e4b6, 436 0x0007f101,
433 0xefd001f7, 437 0x0303f007,
434 0xf8e0fc00, 438 0xbd000fd0,
435/* 0x0309: init */ 439/* 0x031b: init */
436 0xfe04bd00, 440 0xbd00f804,
437 0x07fe0004, 441 0x0004fe04,
438 0x0017f100, 442 0xf10007fe,
439 0x0227f012, 443 0xf0120017,
440 0xf10012d0, 444 0x12d00227,
441 0xfe058517, 445 0xb117f100,
442 0x17f10010, 446 0x0010fe05,
443 0x10d00400, 447 0x040017f1,
444 0x0437f1c0, 448 0xf1c010d0,
445 0x0634b604, 449 0xb6040437,
446 0x200327f1, 450 0x27f10634,
447 0xf10032d0, 451 0x32d02003,
448 0xd0200427,
449 0x27f10132,
450 0x32d0200b,
451 0x0c27f102,
452 0x0732d020,
453 0x0c2427f1,
454 0xb90624b6,
455 0x23d00003,
456 0x0427f100, 452 0x0427f100,
457 0x0023f087, 453 0x0132d020,
458 0xb70012d0, 454 0x200b27f1,
459 0xf0010012, 455 0xf10232d0,
460 0x12d00427, 456 0xd0200c27,
461 0x1031f400, 457 0x27f10732,
462 0x9604e7f1, 458 0x24b60c24,
463 0xf440e3f0, 459 0x0003b906,
464 0xf1c76821, 460 0xf10023d0,
465 0x03018090, 461 0xf0870427,
466 0x801ff4f0, 462 0x12d00023,
467 0x17f0020f, 463 0x0012b700,
468 0x041fbb01, 464 0x0427f001,
469 0xf10112b6, 465 0xf40012d0,
470 0xb6040c27, 466 0xe7f11031,
471 0x21d00624, 467 0xe3f09604,
472 0x4021d000, 468 0x6821f440,
473 0x010017f1, 469 0x8090f1c7,
474 0x98000e98, 470 0xf4f00301,
475 0x21f5010f, 471 0x020f801f,
476 0x37f1013d, 472 0xbb0117f0,
477 0x34b60700, 473 0x12b6041f,
478 0x08149506, 474 0x0c27f101,
479 0xd00034d0, 475 0x0624b604,
480 0x30b74034, 476 0xd00021d0,
481 0x1fbb1300, 477 0x17f14021,
482 0x02f5b600, 478 0x0e980100,
483 0xb6003fd0, 479 0x010f9800,
484 0x10b60815, 480 0x014721f5,
485 0x0814b601, 481 0x070037f1,
486 0xf5021fb9, 482 0x950634b6,
487 0xbb026321, 483 0x34d00814,
488 0x0398001f, 484 0x4034d000,
489 0x0047f102, 485 0x130030b7,
490 0x5043f020, 486 0xb6001fbb,
491/* 0x03e4: init_gpc */ 487 0x3fd002f5,
492 0x08044ea0, 488 0x0815b600,
493 0xf4021fb9, 489 0xb60110b6,
494 0x4ea08d21, 490 0x1fb90814,
495 0xf4bd010c, 491 0x7121f502,
496 0xa08d21f4, 492 0x001fbb02,
497 0xf401044e, 493 0xf1020398,
498 0x4ea08d21, 494 0xf0200047,
499 0xf7f00100, 495/* 0x03f6: init_gpc */
496 0x4ea05043,
497 0x1fb90804,
500 0x8d21f402, 498 0x8d21f402,
501 0x08004ea0, 499 0x010c4ea0,
502/* 0x040c: init_gpc_wait */ 500 0x21f4f4bd,
503 0xc86821f4, 501 0x044ea08d,
504 0x0bf41fff, 502 0x8d21f401,
505 0x044ea0fa, 503 0x01004ea0,
506 0x6821f408, 504 0xf402f7f0,
507 0xb7001fbb, 505 0x4ea08d21,
508 0xb6800040, 506/* 0x041e: init_gpc_wait */
509 0x1bf40132, 507 0x21f40800,
510 0x0027f1be, 508 0x1fffc868,
511 0x0624b608, 509 0xa0fa0bf4,
512 0xb74021d0, 510 0xf408044e,
513 0xbd080020, 511 0x1fbb6821,
512 0x0040b700,
513 0x0132b680,
514 0xf1be1bf4,
515 0xf0010007,
516 0x01d00203,
517 0xbd04bd00,
514 0x1f19f014, 518 0x1f19f014,
515/* 0x043f: main */ 519 0x080007f1,
516 0xf40021d0, 520 0xd00203f0,
517 0x28f40031, 521 0x04bd0001,
518 0x10d7f000, 522/* 0x0458: main */
519 0xf43921f4, 523 0xf40031f4,
520 0xe4b1f401, 524 0xd7f00028,
521 0x1bf54001, 525 0x3921f410,
522 0x87f100d1, 526 0xb1f401f4,
523 0x84b6083c, 527 0xf54001e4,
524 0xf094bd06, 528 0xbd00de1b,
525 0x89d00499, 529 0x0499f094,
526 0x0017f100, 530 0x0f0007f1,
527 0x0614b60b, 531 0xd00203f0,
528 0xcf4012cf, 532 0x04bd0009,
529 0x13c80011, 533 0x0b0017f1,
530 0x7e0bf41f, 534 0xcf0614b6,
535 0x11cf4012,
536 0x1f13c800,
537 0x00870bf5,
531 0xf41f23c8, 538 0xf41f23c8,
532 0x20f95a0b, 539 0x20f9620b,
533 0xf10212b9, 540 0xbd0212b9,
534 0xb6083c87,
535 0x94bd0684,
536 0xd00799f0,
537 0x32f40089,
538 0x0231f401,
539 0x07f521f5,
540 0x085c87f1,
541 0xbd0684b6,
542 0x0799f094, 541 0x0799f094,
543 0xfc0089d0, 542 0x0f0007f1,
544 0x3c87f120, 543 0xd00203f0,
545 0x0684b608, 544 0x04bd0009,
546 0x99f094bd, 545 0xf40132f4,
547 0x0089d006, 546 0x21f50231,
548 0xf50131f4, 547 0x94bd082f,
549 0xf107f521, 548 0xf10799f0,
550 0xb6085c87, 549 0xf0170007,
551 0x94bd0684, 550 0x09d00203,
552 0xd00699f0, 551 0xfc04bd00,
553 0x0ef40089, 552 0xf094bd20,
554/* 0x04d5: chsw_prev_no_next */ 553 0x07f10699,
554 0x03f00f00,
555 0x0009d002,
556 0x31f404bd,
557 0x2f21f501,
558 0xf094bd08,
559 0x07f10699,
560 0x03f01700,
561 0x0009d002,
562 0x0ef404bd,
563/* 0x04f9: chsw_prev_no_next */
555 0xb920f931, 564 0xb920f931,
556 0x32f40212, 565 0x32f40212,
557 0x0232f401, 566 0x0232f401,
558 0x07f521f5, 567 0x082f21f5,
559 0x17f120fc, 568 0x17f120fc,
560 0x14b60b00, 569 0x14b60b00,
561 0x0012d006, 570 0x0012d006,
562/* 0x04f3: chsw_no_prev */ 571/* 0x0517: chsw_no_prev */
563 0xc8130ef4, 572 0xc8130ef4,
564 0x0bf41f23, 573 0x0bf41f23,
565 0x0131f40d, 574 0x0131f40d,
566 0xf50232f4, 575 0xf50232f4,
567/* 0x0503: chsw_done */ 576/* 0x0527: chsw_done */
568 0xf107f521, 577 0xf1082f21,
569 0xb60b0c17, 578 0xb60b0c17,
570 0x27f00614, 579 0x27f00614,
571 0x0012d001, 580 0x0012d001,
572 0x085c87f1,
573 0xbd0684b6,
574 0x0499f094,
575 0xf50089d0,
576/* 0x0523: main_not_ctx_switch */
577 0xb0ff200e,
578 0x1bf401e4,
579 0x02f2b90d,
580 0x078121f5,
581/* 0x0533: main_not_ctx_chan */
582 0xb0420ef4,
583 0x1bf402e4,
584 0x3c87f12e,
585 0x0684b608,
586 0x99f094bd, 581 0x99f094bd,
587 0x0089d007, 582 0x0007f104,
583 0x0203f017,
584 0xbd0009d0,
585 0x130ef504,
586/* 0x0549: main_not_ctx_switch */
587 0x01e4b0ff,
588 0xb90d1bf4,
589 0x21f502f2,
590 0x0ef407bb,
591/* 0x0559: main_not_ctx_chan */
592 0x02e4b046,
593 0xbd321bf4,
594 0x0799f094,
595 0x0f0007f1,
596 0xd00203f0,
597 0x04bd0009,
588 0xf40132f4, 598 0xf40132f4,
589 0x21f50232, 599 0x21f50232,
590 0x87f107f5, 600 0x94bd082f,
591 0x84b6085c, 601 0xf10799f0,
592 0xf094bd06, 602 0xf0170007,
593 0x89d00799, 603 0x09d00203,
594 0x110ef400, 604 0xf404bd00,
595/* 0x0564: main_not_ctx_save */ 605/* 0x058e: main_not_ctx_save */
596 0xf010ef94, 606 0xef94110e,
597 0x21f501f5, 607 0x01f5f010,
598 0x0ef502ec, 608 0x02fe21f5,
599/* 0x0572: main_done */ 609 0xfec00ef5,
600 0x17f1fed1, 610/* 0x059c: main_done */
601 0x14b60820, 611 0x29f024bd,
602 0xf024bd06, 612 0x0007f11f,
603 0x12d01f29, 613 0x0203f008,
604 0xbe0ef500, 614 0xbd0002d0,
605/* 0x0585: ih */ 615 0xab0ef504,
616/* 0x05b1: ih */
606 0xfe80f9fe, 617 0xfe80f9fe,
607 0x80f90188, 618 0x80f90188,
608 0xa0f990f9, 619 0xa0f990f9,
609 0xd0f9b0f9, 620 0xd0f9b0f9,
610 0xf0f9e0f9, 621 0xf0f9e0f9,
611 0xc4800acf, 622 0x0acf04bd,
612 0x0bf404ab, 623 0x04abc480,
613 0x00b7f11d, 624 0xf11d0bf4,
614 0x10d7f019, 625 0xf01900b7,
615 0xcf40becf, 626 0xbecf10d7,
616 0x21f400bf, 627 0x00bfcf40,
617 0x00b0b704, 628 0xb70421f4,
618 0x01e7f004, 629 0xf00400b0,
619/* 0x05bb: ih_no_fifo */ 630 0xbed001e7,
620 0xe400bed0, 631/* 0x05e9: ih_no_fifo */
621 0xf40100ab, 632 0x00abe400,
622 0xd7f00d0b, 633 0x0d0bf401,
623 0x01e7f110, 634 0xf110d7f0,
624 0x0421f440, 635 0xf44001e7,
625/* 0x05cc: ih_no_ctxsw */ 636/* 0x05fa: ih_no_ctxsw */
626 0x0104b7f1, 637 0xb7f10421,
627 0xabffb0bd, 638 0xb0bd0104,
628 0x0d0bf4b4, 639 0xf4b4abff,
629 0x0c1ca7f1, 640 0xa7f10d0b,
630 0xd006a4b6, 641 0xa4b60c1c,
631/* 0x05e2: ih_no_other */ 642 0x00abd006,
632 0x0ad000ab, 643/* 0x0610: ih_no_other */
633 0xfcf0fc40, 644 0xfc400ad0,
634 0xfcd0fce0, 645 0xfce0fcf0,
635 0xfca0fcb0, 646 0xfcb0fcd0,
636 0xfe80fc90, 647 0xfc90fca0,
637 0x80fc0088, 648 0x0088fe80,
638 0xf80032f4, 649 0x32f480fc,
639/* 0x05fd: ctx_4160s */ 650/* 0x062b: ctx_4160s */
640 0x60e7f101, 651 0xf101f800,
641 0x40e3f041, 652 0xf04160e7,
642 0xf401f7f0, 653 0xf7f040e3,
643/* 0x060a: ctx_4160s_wait */ 654 0x8d21f401,
644 0x21f48d21, 655/* 0x0638: ctx_4160s_wait */
645 0x04ffc868, 656 0xc86821f4,
646 0xf8fa0bf4, 657 0x0bf404ff,
647/* 0x0615: ctx_4160c */ 658/* 0x0643: ctx_4160c */
648 0x60e7f100, 659 0xf100f8fa,
660 0xf04160e7,
661 0xf4bd40e3,
662 0xf88d21f4,
663/* 0x0651: ctx_4170s */
664 0x70e7f100,
649 0x40e3f041, 665 0x40e3f041,
650 0x21f4f4bd, 666 0xf410f5f0,
651/* 0x0623: ctx_4170s */
652 0xf100f88d,
653 0xf04170e7,
654 0xf5f040e3,
655 0x8d21f410,
656/* 0x0632: ctx_4170w */
657 0xe7f100f8,
658 0xe3f04170,
659 0x6821f440,
660 0xf410f4f0,
661 0x00f8f31b,
662/* 0x0644: ctx_redswitch */
663 0x0614e7f1,
664 0xf106e4b6,
665 0xd00270f7,
666 0xf7f000ef,
667/* 0x0655: ctx_redswitch_delay */
668 0x01f2b608,
669 0xf1fd1bf4,
670 0xd00770f7,
671 0x00f800ef,
672/* 0x0664: ctx_86c */
673 0x086ce7f1,
674 0xd006e4b6,
675 0xe7f100ef,
676 0xe3f08a14,
677 0x8d21f440,
678 0xa86ce7f1,
679 0xf441e3f0,
680 0x00f88d21, 667 0x00f88d21,
681/* 0x0684: ctx_load */ 668/* 0x0660: ctx_4170w */
682 0x083c87f1, 669 0x4170e7f1,
683 0xbd0684b6, 670 0xf440e3f0,
684 0x0599f094, 671 0xf4f06821,
685 0xf00089d0, 672 0xf31bf410,
673/* 0x0672: ctx_redswitch */
674 0xe7f100f8,
675 0xe4b60614,
676 0x70f7f106,
677 0x00efd002,
678/* 0x0683: ctx_redswitch_delay */
679 0xb608f7f0,
680 0x1bf401f2,
681 0x70f7f1fd,
682 0x00efd007,
683/* 0x0692: ctx_86c */
684 0xe7f100f8,
685 0xe4b6086c,
686 0x00efd006,
687 0x8a14e7f1,
688 0xf440e3f0,
689 0xe7f18d21,
690 0xe3f0a86c,
691 0x8d21f441,
692/* 0x06b2: ctx_load */
693 0x94bd00f8,
694 0xf10599f0,
695 0xf00f0007,
696 0x09d00203,
697 0xf004bd00,
686 0x21f40ca7, 698 0x21f40ca7,
687 0x2417f1c9, 699 0x2417f1c9,
688 0x0614b60a, 700 0x0614b60a,
@@ -693,165 +705,217 @@ uint32_t nvc0_grhub_code[] = {
693 0x0614b60a, 705 0x0614b60a,
694 0xd00747f0, 706 0xd00747f0,
695 0x14d00012, 707 0x14d00012,
696/* 0x06bd: ctx_chan_wait_0 */ 708/* 0x06ed: ctx_chan_wait_0 */
697 0x4014cf40, 709 0x4014cf40,
698 0xf41f44f0, 710 0xf41f44f0,
699 0x32d0fa1b, 711 0x32d0fa1b,
700 0x000bfe00, 712 0x000bfe00,
701 0xb61f2af0, 713 0xb61f2af0,
702 0x20b60424, 714 0x20b60424,
703 0x3c87f102, 715 0xf094bd02,
704 0x0684b608, 716 0x07f10899,
717 0x03f00f00,
718 0x0009d002,
719 0x17f104bd,
720 0x14b60a04,
721 0x0012d006,
722 0x0a2017f1,
723 0xf00614b6,
724 0x23f10227,
725 0x12d08000,
726 0x1017f000,
727 0x020027f1,
728 0xfa0223f0,
729 0x03f80512,
705 0x99f094bd, 730 0x99f094bd,
706 0x0089d008, 731 0x0007f108,
707 0x0a0417f1, 732 0x0203f017,
708 0xd00614b6, 733 0xbd0009d0,
709 0x17f10012, 734 0x81019804,
710 0x14b60a20,
711 0x0227f006,
712 0x800023f1,
713 0xf00012d0,
714 0x27f11017,
715 0x23f00200,
716 0x0512fa02,
717 0x87f103f8,
718 0x84b6085c,
719 0xf094bd06,
720 0x89d00899,
721 0x81019800,
722 0x981814b6, 735 0x981814b6,
723 0x25b68002, 736 0x25b68002,
724 0x0512fd08, 737 0x0512fd08,
725 0xf1160180, 738 0xbd160180,
726 0xb6083c87, 739 0x0999f094,
727 0x94bd0684, 740 0x0f0007f1,
728 0xd00999f0, 741 0xd00203f0,
729 0x27f10089, 742 0x04bd0009,
730 0x24b60a04, 743 0x0a0427f1,
731 0x0021d006, 744 0xd00624b6,
732 0xf10127f0, 745 0x27f00021,
733 0xb60a2017, 746 0x2017f101,
734 0x12d00614, 747 0x0614b60a,
735 0x0017f100, 748 0xf10012d0,
736 0x0613f001,
737 0xf80501fa,
738 0x5c87f103,
739 0x0684b608,
740 0x99f094bd,
741 0x0089d009,
742 0x085c87f1,
743 0xbd0684b6,
744 0x0599f094,
745 0xf80089d0,
746/* 0x0781: ctx_chan */
747 0xfd21f500,
748 0x8421f505,
749 0x0ca7f006,
750 0xf1c921f4,
751 0xb60a1017,
752 0x27f00614,
753 0x0012d005,
754/* 0x079c: ctx_chan_wait */
755 0xfd0012cf,
756 0x1bf40522,
757 0x1521f5fa,
758/* 0x07ab: ctx_mmio_exec */
759 0x9800f806,
760 0x27f14103,
761 0x24b60a04,
762 0x0023d006,
763/* 0x07ba: ctx_mmio_loop */
764 0x34c434bd,
765 0x0f1bf4ff,
766 0x020057f1,
767 0xfa0653f0,
768 0x03f80535,
769/* 0x07cc: ctx_mmio_pull */
770 0x98804e98,
771 0x21f4814f,
772 0x0830b68d,
773 0xf40112b6,
774/* 0x07de: ctx_mmio_done */
775 0x0398df1b,
776 0x0023d016,
777 0xf1400080,
778 0xf0010017, 749 0xf0010017,
779 0x01fa0613, 750 0x01fa0613,
780 0xf803f806, 751 0xbd03f805,
781/* 0x07f5: ctx_xfer */ 752 0x0999f094,
782 0x00f7f100, 753 0x170007f1,
783 0x06f4b60c, 754 0xd00203f0,
784 0xd004e7f0, 755 0x04bd0009,
785/* 0x0802: ctx_xfer_idle */ 756 0x99f094bd,
786 0xfecf80fe, 757 0x0007f105,
787 0x00e4f100, 758 0x0203f017,
788 0xf91bf420, 759 0xbd0009d0,
789 0xf40611f4, 760/* 0x07bb: ctx_chan */
790/* 0x0812: ctx_xfer_pre */ 761 0xf500f804,
791 0xf7f01102, 762 0xf5062b21,
792 0x6421f510, 763 0xf006b221,
793 0xfd21f506, 764 0x21f40ca7,
794 0x1c11f405, 765 0x1017f1c9,
795/* 0x0820: ctx_xfer_pre_load */ 766 0x0614b60a,
796 0xf502f7f0, 767 0xd00527f0,
797 0xf5062321, 768/* 0x07d6: ctx_chan_wait */
798 0xf5063221, 769 0x12cf0012,
799 0xbd064421, 770 0x0522fd00,
800 0x2321f5f4, 771 0xf5fa1bf4,
801 0x8421f506, 772 0xf8064321,
802/* 0x0839: ctx_xfer_exec */ 773/* 0x07e5: ctx_mmio_exec */
803 0x16019806, 774 0x41039800,
804 0x041427f1, 775 0x0a0427f1,
805 0xd00624b6, 776 0xd00624b6,
806 0xe7f10020, 777 0x34bd0023,
807 0xe3f0a500, 778/* 0x07f4: ctx_mmio_loop */
808 0x021fb941, 779 0xf4ff34c4,
780 0x57f10f1b,
781 0x53f00200,
782 0x0535fa06,
783/* 0x0806: ctx_mmio_pull */
784 0x4e9803f8,
785 0x814f9880,
809 0xb68d21f4, 786 0xb68d21f4,
810 0xfcf004e0, 787 0x12b60830,
811 0x022cf001, 788 0xdf1bf401,
812 0xfd0124b6, 789/* 0x0818: ctx_mmio_done */
813 0x21f405f2, 790 0xd0160398,
814 0xfc17f18d, 791 0x00800023,
815 0x0213f04a, 792 0x0017f140,
816 0xd00c27f0, 793 0x0613f001,
817 0x21f50012, 794 0xf80601fa,
818 0x27f10207, 795/* 0x082f: ctx_xfer */
819 0x23f047fc, 796 0xf100f803,
820 0x0020d002, 797 0xb60c00f7,
821 0xb6012cf0, 798 0xe7f006f4,
822 0x12d00320, 799 0x80fed004,
823 0x01acf000, 800/* 0x083c: ctx_xfer_idle */
824 0xf006a5f0, 801 0xf100fecf,
825 0x0c9800b7, 802 0xf42000e4,
826 0x010d9800, 803 0x11f4f91b,
827 0xf500e7f0, 804 0x1102f406,
828 0xf0015c21, 805/* 0x084c: ctx_xfer_pre */
829 0x21f508a7, 806 0xf510f7f0,
830 0x21f50103, 807 0xf5069221,
831 0x01f40207, 808 0xf4062b21,
832 0x0ca7f022, 809/* 0x085a: ctx_xfer_pre_load */
833 0xf1c921f4, 810 0xf7f01c11,
834 0xb60a1017, 811 0x5121f502,
835 0x27f00614, 812 0x6021f506,
836 0x0012d005, 813 0x7221f506,
837/* 0x08c0: ctx_xfer_post_save_wait */
838 0xfd0012cf,
839 0x1bf40522,
840 0x3202f4fa,
841/* 0x08cc: ctx_xfer_post */
842 0xf502f7f0,
843 0xbd062321,
844 0x6421f5f4,
845 0x2621f506,
846 0x3221f502,
847 0xf5f4bd06, 814 0xf5f4bd06,
848 0xf4062321, 815 0xf5065121,
849 0x01981011, 816/* 0x0873: ctx_xfer_exec */
850 0x0511fd40, 817 0x9806b221,
851 0xf5070bf4, 818 0x27f11601,
852/* 0x08f7: ctx_xfer_no_post_mmio */ 819 0x24b60414,
853 0xf507ab21, 820 0x0020d006,
854/* 0x08fb: ctx_xfer_done */ 821 0xa500e7f1,
855 0xf8061521, 822 0xb941e3f0,
823 0x21f4021f,
824 0x04e0b68d,
825 0xf001fcf0,
826 0x24b6022c,
827 0x05f2fd01,
828 0xf18d21f4,
829 0xf04afc17,
830 0x27f00213,
831 0x0012d00c,
832 0x021521f5,
833 0x47fc27f1,
834 0xd00223f0,
835 0x2cf00020,
836 0x0320b601,
837 0xf00012d0,
838 0xa5f001ac,
839 0x00b7f006,
840 0x98000c98,
841 0xe7f0010d,
842 0x6621f500,
843 0x08a7f001,
844 0x010921f5,
845 0x021521f5,
846 0xf02201f4,
847 0x21f40ca7,
848 0x1017f1c9,
849 0x0614b60a,
850 0xd00527f0,
851/* 0x08fa: ctx_xfer_post_save_wait */
852 0x12cf0012,
853 0x0522fd00,
854 0xf4fa1bf4,
855/* 0x0906: ctx_xfer_post */
856 0xf7f03202,
857 0x5121f502,
858 0xf5f4bd06,
859 0xf5069221,
860 0xf5023421,
861 0xbd066021,
862 0x5121f5f4,
863 0x1011f406,
864 0xfd400198,
865 0x0bf40511,
866 0xe521f507,
867/* 0x0931: ctx_xfer_no_post_mmio */
868 0x4321f507,
869/* 0x0935: ctx_xfer_done */
870 0x0000f806,
871 0x00000000,
872 0x00000000,
873 0x00000000,
874 0x00000000,
875 0x00000000,
876 0x00000000,
877 0x00000000,
878 0x00000000,
879 0x00000000,
880 0x00000000,
881 0x00000000,
882 0x00000000,
883 0x00000000,
884 0x00000000,
885 0x00000000,
886 0x00000000,
887 0x00000000,
888 0x00000000,
889 0x00000000,
890 0x00000000,
891 0x00000000,
892 0x00000000,
893 0x00000000,
894 0x00000000,
895 0x00000000,
896 0x00000000,
897 0x00000000,
898 0x00000000,
899 0x00000000,
900 0x00000000,
901 0x00000000,
902 0x00000000,
903 0x00000000,
904 0x00000000,
905 0x00000000,
906 0x00000000,
907 0x00000000,
908 0x00000000,
909 0x00000000,
910 0x00000000,
911 0x00000000,
912 0x00000000,
913 0x00000000,
914 0x00000000,
915 0x00000000,
916 0x00000000,
917 0x00000000,
918 0x00000000,
919 0x00000000,
856 0x00000000, 920 0x00000000,
857}; 921};
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvd7.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvd7.fuc.h
index 141d6a8ffe5d..a1b9f763996a 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvd7.fuc.h
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvd7.fuc.h
@@ -206,14 +206,14 @@ uint32_t nvd7_grhub_data[] = {
206}; 206};
207 207
208uint32_t nvd7_grhub_code[] = { 208uint32_t nvd7_grhub_code[] = {
209 0x03090ef5, 209 0x031b0ef5,
210/* 0x0004: queue_put */ 210/* 0x0004: queue_put */
211 0x9800d898, 211 0x9800d898,
212 0x86f001d9, 212 0x86f001d9,
213 0x0489b808, 213 0x0489b808,
214 0xf00c1bf4, 214 0xf00c1bf4,
215 0x21f502f7, 215 0x21f502f7,
216 0x00f802ec, 216 0x00f802fe,
217/* 0x001c: queue_put_next */ 217/* 0x001c: queue_put_next */
218 0xb60798c4, 218 0xb60798c4,
219 0x8dbb0384, 219 0x8dbb0384,
@@ -245,7 +245,7 @@ uint32_t nvd7_grhub_code[] = {
245 0xc800bccf, 245 0xc800bccf,
246 0x1bf41fcc, 246 0x1bf41fcc,
247 0x06a7f0fa, 247 0x06a7f0fa,
248 0x010321f5, 248 0x010921f5,
249 0xf840bfcf, 249 0xf840bfcf,
250/* 0x008d: nv_wr32 */ 250/* 0x008d: nv_wr32 */
251 0x28b7f100, 251 0x28b7f100,
@@ -267,63 +267,66 @@ uint32_t nvd7_grhub_code[] = {
267 0x0684b604, 267 0x0684b604,
268 0xf80080d0, 268 0xf80080d0,
269/* 0x00c9: wait_donez */ 269/* 0x00c9: wait_donez */
270 0x3c87f100, 270 0xf094bd00,
271 0x0684b608, 271 0x07f10099,
272 0x99f094bd, 272 0x03f00f00,
273 0x0089d000, 273 0x0009d002,
274 0x081887f1, 274 0x07f104bd,
275 0xd00684b6, 275 0x03f00600,
276/* 0x00e2: wait_donez_ne */ 276 0x000ad002,
277 0x87f1008a, 277/* 0x00e6: wait_donez_ne */
278 0x84b60400, 278 0x87f104bd,
279 0x0088cf06, 279 0x83f00000,
280 0x0088cf01,
280 0xf4888aff, 281 0xf4888aff,
281 0x87f1f31b, 282 0x94bdf31b,
282 0x84b6085c, 283 0xf10099f0,
283 0xf094bd06, 284 0xf0170007,
284 0x89d00099, 285 0x09d00203,
285/* 0x0103: wait_doneo */ 286 0xf804bd00,
286 0xf100f800, 287/* 0x0109: wait_doneo */
287 0xb6083c87, 288 0xf094bd00,
288 0x94bd0684, 289 0x07f10099,
289 0xd00099f0, 290 0x03f00f00,
290 0x87f10089, 291 0x0009d002,
292 0x87f104bd,
291 0x84b60818, 293 0x84b60818,
292 0x008ad006, 294 0x008ad006,
293/* 0x011c: wait_doneo_e */ 295/* 0x0124: wait_doneo_e */
294 0x040087f1, 296 0x040087f1,
295 0xcf0684b6, 297 0xcf0684b6,
296 0x8aff0088, 298 0x8aff0088,
297 0xf30bf488, 299 0xf30bf488,
298 0x085c87f1, 300 0x99f094bd,
299 0xbd0684b6, 301 0x0007f100,
300 0x0099f094, 302 0x0203f017,
301 0xf80089d0, 303 0xbd0009d0,
302/* 0x013d: mmctx_size */ 304/* 0x0147: mmctx_size */
303/* 0x013f: nv_mmctx_size_loop */ 305 0xbd00f804,
304 0x9894bd00, 306/* 0x0149: nv_mmctx_size_loop */
305 0x85b600e8, 307 0x00e89894,
306 0x0180b61a, 308 0xb61a85b6,
307 0xbb0284b6, 309 0x84b60180,
308 0xe0b60098, 310 0x0098bb02,
309 0x04efb804, 311 0xb804e0b6,
310 0xb9eb1bf4, 312 0x1bf404ef,
311 0x00f8029f, 313 0x029fb9eb,
312/* 0x015c: mmctx_xfer */ 314/* 0x0166: mmctx_xfer */
313 0x083c87f1, 315 0x94bd00f8,
314 0xbd0684b6, 316 0xf10199f0,
315 0x0199f094, 317 0xf00f0007,
316 0xf10089d0, 318 0x09d00203,
319 0xf104bd00,
317 0xb6071087, 320 0xb6071087,
318 0x94bd0684, 321 0x94bd0684,
319 0xf405bbfd, 322 0xf405bbfd,
320 0x8bd0090b, 323 0x8bd0090b,
321 0x0099f000, 324 0x0099f000,
322/* 0x0180: mmctx_base_disabled */ 325/* 0x018c: mmctx_base_disabled */
323 0xf405eefd, 326 0xf405eefd,
324 0x8ed00c0b, 327 0x8ed00c0b,
325 0xc08fd080, 328 0xc08fd080,
326/* 0x018f: mmctx_multi_disabled */ 329/* 0x019b: mmctx_multi_disabled */
327 0xb70199f0, 330 0xb70199f0,
328 0xc8010080, 331 0xc8010080,
329 0xb4b600ab, 332 0xb4b600ab,
@@ -331,8 +334,8 @@ uint32_t nvd7_grhub_code[] = {
331 0xb601aec8, 334 0xb601aec8,
332 0xbefd11e4, 335 0xbefd11e4,
333 0x008bd005, 336 0x008bd005,
334/* 0x01a8: mmctx_exec_loop */ 337/* 0x01b4: mmctx_exec_loop */
335/* 0x01a8: mmctx_wait_free */ 338/* 0x01b4: mmctx_wait_free */
336 0xf0008ecf, 339 0xf0008ecf,
337 0x0bf41fe4, 340 0x0bf41fe4,
338 0x00ce98fa, 341 0x00ce98fa,
@@ -341,76 +344,77 @@ uint32_t nvd7_grhub_code[] = {
341 0x04cdb804, 344 0x04cdb804,
342 0xc8e81bf4, 345 0xc8e81bf4,
343 0x1bf402ab, 346 0x1bf402ab,
344/* 0x01c9: mmctx_fini_wait */ 347/* 0x01d5: mmctx_fini_wait */
345 0x008bcf18, 348 0x008bcf18,
346 0xb01fb4f0, 349 0xb01fb4f0,
347 0x1bf410b4, 350 0x1bf410b4,
348 0x02a7f0f7, 351 0x02a7f0f7,
349 0xf4c921f4, 352 0xf4c921f4,
350/* 0x01de: mmctx_stop */ 353/* 0x01ea: mmctx_stop */
351 0xabc81b0e, 354 0xabc81b0e,
352 0x10b4b600, 355 0x10b4b600,
353 0xf00cb9f0, 356 0xf00cb9f0,
354 0x8bd012b9, 357 0x8bd012b9,
355/* 0x01ed: mmctx_stop_wait */ 358/* 0x01f9: mmctx_stop_wait */
356 0x008bcf00, 359 0x008bcf00,
357 0xf412bbc8, 360 0xf412bbc8,
358/* 0x01f6: mmctx_done */ 361/* 0x0202: mmctx_done */
359 0x87f1fa1b, 362 0x94bdfa1b,
360 0x84b6085c, 363 0xf10199f0,
361 0xf094bd06, 364 0xf0170007,
362 0x89d00199, 365 0x09d00203,
363/* 0x0207: strand_wait */ 366 0xf804bd00,
364 0xf900f800, 367/* 0x0215: strand_wait */
365 0x02a7f0a0, 368 0xf0a0f900,
366 0xfcc921f4, 369 0x21f402a7,
367/* 0x0213: strand_pre */ 370 0xf8a0fcc9,
368 0xf100f8a0, 371/* 0x0221: strand_pre */
369 0xf04afc87, 372 0xfc87f100,
370 0x97f00283, 373 0x0283f04a,
371 0x0089d00c, 374 0xd00c97f0,
372 0x020721f5,
373/* 0x0226: strand_post */
374 0x87f100f8,
375 0x83f04afc,
376 0x0d97f002,
377 0xf50089d0,
378 0xf8020721,
379/* 0x0239: strand_set */
380 0xfca7f100,
381 0x02a3f04f,
382 0x0500aba2,
383 0xd00fc7f0,
384 0xc7f000ac,
385 0x00bcd00b,
386 0x020721f5,
387 0xf000aed0,
388 0xbcd00ac7,
389 0x0721f500,
390/* 0x0263: strand_ctx_init */
391 0xf100f802,
392 0xb6083c87,
393 0x94bd0684,
394 0xd00399f0,
395 0x21f50089, 375 0x21f50089,
396 0xe7f00213, 376 0x00f80215,
397 0x3921f503, 377/* 0x0234: strand_post */
378 0x4afc87f1,
379 0xf00283f0,
380 0x89d00d97,
381 0x1521f500,
382/* 0x0247: strand_set */
383 0xf100f802,
384 0xf04ffca7,
385 0xaba202a3,
386 0xc7f00500,
387 0x00acd00f,
388 0xd00bc7f0,
389 0x21f500bc,
390 0xaed00215,
391 0x0ac7f000,
392 0xf500bcd0,
393 0xf8021521,
394/* 0x0271: strand_ctx_init */
395 0xf094bd00,
396 0x07f10399,
397 0x03f00f00,
398 0x0009d002,
399 0x21f504bd,
400 0xe7f00221,
401 0x4721f503,
398 0xfca7f102, 402 0xfca7f102,
399 0x02a3f046, 403 0x02a3f046,
400 0x0400aba0, 404 0x0400aba0,
401 0xf040a0d0, 405 0xf040a0d0,
402 0xbcd001c7, 406 0xbcd001c7,
403 0x0721f500, 407 0x1521f500,
404 0x010c9202, 408 0x010c9202,
405 0xf000acd0, 409 0xf000acd0,
406 0xbcd002c7, 410 0xbcd002c7,
407 0x0721f500, 411 0x1521f500,
408 0x2621f502, 412 0x3421f502,
409 0x8087f102, 413 0x8087f102,
410 0x0684b608, 414 0x0684b608,
411 0xb70089cf, 415 0xb70089cf,
412 0x95220080, 416 0x95220080,
413/* 0x02ba: ctx_init_strand_loop */ 417/* 0x02ca: ctx_init_strand_loop */
414 0x8ed008fe, 418 0x8ed008fe,
415 0x408ed000, 419 0x408ed000,
416 0xb6808acf, 420 0xb6808acf,
@@ -419,270 +423,278 @@ uint32_t nvd7_grhub_code[] = {
419 0xb60480b6, 423 0xb60480b6,
420 0x1bf40192, 424 0x1bf40192,
421 0x08e4b6e8, 425 0x08e4b6e8,
422 0xf1f2efbc, 426 0xbdf2efbc,
423 0xb6085c87, 427 0x0399f094,
424 0x94bd0684, 428 0x170007f1,
425 0xd00399f0, 429 0xd00203f0,
426 0x00f80089, 430 0x04bd0009,
427/* 0x02ec: error */ 431/* 0x02fe: error */
428 0xe7f1e0f9, 432 0x07f100f8,
429 0xe4b60814, 433 0x03f00500,
430 0x00efd006, 434 0x000fd002,
431 0x0c1ce7f1, 435 0xf7f004bd,
432 0xf006e4b6, 436 0x0007f101,
433 0xefd001f7, 437 0x0303f007,
434 0xf8e0fc00, 438 0xbd000fd0,
435/* 0x0309: init */ 439/* 0x031b: init */
436 0xfe04bd00, 440 0xbd00f804,
437 0x07fe0004, 441 0x0004fe04,
438 0x0017f100, 442 0xf10007fe,
439 0x0227f012, 443 0xf0120017,
440 0xf10012d0, 444 0x12d00227,
441 0xfe058517, 445 0xb117f100,
442 0x17f10010, 446 0x0010fe05,
443 0x10d00400, 447 0x040017f1,
444 0x0437f1c0, 448 0xf1c010d0,
445 0x0634b604, 449 0xb6040437,
446 0x200327f1, 450 0x27f10634,
447 0xf10032d0, 451 0x32d02003,
448 0xd0200427,
449 0x27f10132,
450 0x32d0200b,
451 0x0c27f102,
452 0x0732d020,
453 0x0c2427f1,
454 0xb90624b6,
455 0x23d00003,
456 0x0427f100, 452 0x0427f100,
457 0x0023f087, 453 0x0132d020,
458 0xb70012d0, 454 0x200b27f1,
459 0xf0010012, 455 0xf10232d0,
460 0x12d00427, 456 0xd0200c27,
461 0x1031f400, 457 0x27f10732,
462 0x9604e7f1, 458 0x24b60c24,
463 0xf440e3f0, 459 0x0003b906,
464 0xf1c76821, 460 0xf10023d0,
465 0x03018090, 461 0xf0870427,
466 0x801ff4f0, 462 0x12d00023,
467 0x17f0020f, 463 0x0012b700,
468 0x041fbb01, 464 0x0427f001,
469 0xf10112b6, 465 0xf40012d0,
470 0xb6040c27, 466 0xe7f11031,
471 0x21d00624, 467 0xe3f09604,
472 0x4021d000, 468 0x6821f440,
473 0x010017f1, 469 0x8090f1c7,
474 0x98000e98, 470 0xf4f00301,
475 0x21f5010f, 471 0x020f801f,
476 0x37f1013d, 472 0xbb0117f0,
477 0x34b60700, 473 0x12b6041f,
478 0x08149506, 474 0x0c27f101,
479 0xd00034d0, 475 0x0624b604,
480 0x30b74034, 476 0xd00021d0,
481 0x1fbb1300, 477 0x17f14021,
482 0x02f5b600, 478 0x0e980100,
483 0xb6003fd0, 479 0x010f9800,
484 0x10b60815, 480 0x014721f5,
485 0x0814b601, 481 0x070037f1,
486 0xf5021fb9, 482 0x950634b6,
487 0xbb026321, 483 0x34d00814,
488 0x0398001f, 484 0x4034d000,
489 0x0047f102, 485 0x130030b7,
490 0x5043f020, 486 0xb6001fbb,
491/* 0x03e4: init_gpc */ 487 0x3fd002f5,
492 0x08044ea0, 488 0x0815b600,
493 0xf4021fb9, 489 0xb60110b6,
494 0x4ea08d21, 490 0x1fb90814,
495 0xf4bd010c, 491 0x7121f502,
496 0xa08d21f4, 492 0x001fbb02,
497 0xf401044e, 493 0xf1020398,
498 0x4ea08d21, 494 0xf0200047,
499 0xf7f00100, 495/* 0x03f6: init_gpc */
496 0x4ea05043,
497 0x1fb90804,
500 0x8d21f402, 498 0x8d21f402,
501 0x08004ea0, 499 0x010c4ea0,
502/* 0x040c: init_gpc_wait */ 500 0x21f4f4bd,
503 0xc86821f4, 501 0x044ea08d,
504 0x0bf41fff, 502 0x8d21f401,
505 0x044ea0fa, 503 0x01004ea0,
506 0x6821f408, 504 0xf402f7f0,
507 0xb7001fbb, 505 0x4ea08d21,
508 0xb6800040, 506/* 0x041e: init_gpc_wait */
509 0x1bf40132, 507 0x21f40800,
510 0x0027f1be, 508 0x1fffc868,
511 0x0624b608, 509 0xa0fa0bf4,
512 0xb74021d0, 510 0xf408044e,
513 0xbd080020, 511 0x1fbb6821,
512 0x0040b700,
513 0x0132b680,
514 0xf1be1bf4,
515 0xf0010007,
516 0x01d00203,
517 0xbd04bd00,
514 0x1f19f014, 518 0x1f19f014,
515/* 0x043f: main */ 519 0x080007f1,
516 0xf40021d0, 520 0xd00203f0,
517 0x28f40031, 521 0x04bd0001,
518 0x10d7f000, 522/* 0x0458: main */
519 0xf43921f4, 523 0xf40031f4,
520 0xe4b1f401, 524 0xd7f00028,
521 0x1bf54001, 525 0x3921f410,
522 0x87f100d1, 526 0xb1f401f4,
523 0x84b6083c, 527 0xf54001e4,
524 0xf094bd06, 528 0xbd00de1b,
525 0x89d00499, 529 0x0499f094,
526 0x0017f100, 530 0x0f0007f1,
527 0x0614b60b, 531 0xd00203f0,
528 0xcf4012cf, 532 0x04bd0009,
529 0x13c80011, 533 0x0b0017f1,
530 0x7e0bf41f, 534 0xcf0614b6,
535 0x11cf4012,
536 0x1f13c800,
537 0x00870bf5,
531 0xf41f23c8, 538 0xf41f23c8,
532 0x20f95a0b, 539 0x20f9620b,
533 0xf10212b9, 540 0xbd0212b9,
534 0xb6083c87,
535 0x94bd0684,
536 0xd00799f0,
537 0x32f40089,
538 0x0231f401,
539 0x07f521f5,
540 0x085c87f1,
541 0xbd0684b6,
542 0x0799f094, 541 0x0799f094,
543 0xfc0089d0, 542 0x0f0007f1,
544 0x3c87f120, 543 0xd00203f0,
545 0x0684b608, 544 0x04bd0009,
546 0x99f094bd, 545 0xf40132f4,
547 0x0089d006, 546 0x21f50231,
548 0xf50131f4, 547 0x94bd082f,
549 0xf107f521, 548 0xf10799f0,
550 0xb6085c87, 549 0xf0170007,
551 0x94bd0684, 550 0x09d00203,
552 0xd00699f0, 551 0xfc04bd00,
553 0x0ef40089, 552 0xf094bd20,
554/* 0x04d5: chsw_prev_no_next */ 553 0x07f10699,
554 0x03f00f00,
555 0x0009d002,
556 0x31f404bd,
557 0x2f21f501,
558 0xf094bd08,
559 0x07f10699,
560 0x03f01700,
561 0x0009d002,
562 0x0ef404bd,
563/* 0x04f9: chsw_prev_no_next */
555 0xb920f931, 564 0xb920f931,
556 0x32f40212, 565 0x32f40212,
557 0x0232f401, 566 0x0232f401,
558 0x07f521f5, 567 0x082f21f5,
559 0x17f120fc, 568 0x17f120fc,
560 0x14b60b00, 569 0x14b60b00,
561 0x0012d006, 570 0x0012d006,
562/* 0x04f3: chsw_no_prev */ 571/* 0x0517: chsw_no_prev */
563 0xc8130ef4, 572 0xc8130ef4,
564 0x0bf41f23, 573 0x0bf41f23,
565 0x0131f40d, 574 0x0131f40d,
566 0xf50232f4, 575 0xf50232f4,
567/* 0x0503: chsw_done */ 576/* 0x0527: chsw_done */
568 0xf107f521, 577 0xf1082f21,
569 0xb60b0c17, 578 0xb60b0c17,
570 0x27f00614, 579 0x27f00614,
571 0x0012d001, 580 0x0012d001,
572 0x085c87f1,
573 0xbd0684b6,
574 0x0499f094,
575 0xf50089d0,
576/* 0x0523: main_not_ctx_switch */
577 0xb0ff200e,
578 0x1bf401e4,
579 0x02f2b90d,
580 0x078121f5,
581/* 0x0533: main_not_ctx_chan */
582 0xb0420ef4,
583 0x1bf402e4,
584 0x3c87f12e,
585 0x0684b608,
586 0x99f094bd, 581 0x99f094bd,
587 0x0089d007, 582 0x0007f104,
583 0x0203f017,
584 0xbd0009d0,
585 0x130ef504,
586/* 0x0549: main_not_ctx_switch */
587 0x01e4b0ff,
588 0xb90d1bf4,
589 0x21f502f2,
590 0x0ef407bb,
591/* 0x0559: main_not_ctx_chan */
592 0x02e4b046,
593 0xbd321bf4,
594 0x0799f094,
595 0x0f0007f1,
596 0xd00203f0,
597 0x04bd0009,
588 0xf40132f4, 598 0xf40132f4,
589 0x21f50232, 599 0x21f50232,
590 0x87f107f5, 600 0x94bd082f,
591 0x84b6085c, 601 0xf10799f0,
592 0xf094bd06, 602 0xf0170007,
593 0x89d00799, 603 0x09d00203,
594 0x110ef400, 604 0xf404bd00,
595/* 0x0564: main_not_ctx_save */ 605/* 0x058e: main_not_ctx_save */
596 0xf010ef94, 606 0xef94110e,
597 0x21f501f5, 607 0x01f5f010,
598 0x0ef502ec, 608 0x02fe21f5,
599/* 0x0572: main_done */ 609 0xfec00ef5,
600 0x17f1fed1, 610/* 0x059c: main_done */
601 0x14b60820, 611 0x29f024bd,
602 0xf024bd06, 612 0x0007f11f,
603 0x12d01f29, 613 0x0203f008,
604 0xbe0ef500, 614 0xbd0002d0,
605/* 0x0585: ih */ 615 0xab0ef504,
616/* 0x05b1: ih */
606 0xfe80f9fe, 617 0xfe80f9fe,
607 0x80f90188, 618 0x80f90188,
608 0xa0f990f9, 619 0xa0f990f9,
609 0xd0f9b0f9, 620 0xd0f9b0f9,
610 0xf0f9e0f9, 621 0xf0f9e0f9,
611 0xc4800acf, 622 0x0acf04bd,
612 0x0bf404ab, 623 0x04abc480,
613 0x00b7f11d, 624 0xf11d0bf4,
614 0x10d7f019, 625 0xf01900b7,
615 0xcf40becf, 626 0xbecf10d7,
616 0x21f400bf, 627 0x00bfcf40,
617 0x00b0b704, 628 0xb70421f4,
618 0x01e7f004, 629 0xf00400b0,
619/* 0x05bb: ih_no_fifo */ 630 0xbed001e7,
620 0xe400bed0, 631/* 0x05e9: ih_no_fifo */
621 0xf40100ab, 632 0x00abe400,
622 0xd7f00d0b, 633 0x0d0bf401,
623 0x01e7f110, 634 0xf110d7f0,
624 0x0421f440, 635 0xf44001e7,
625/* 0x05cc: ih_no_ctxsw */ 636/* 0x05fa: ih_no_ctxsw */
626 0x0104b7f1, 637 0xb7f10421,
627 0xabffb0bd, 638 0xb0bd0104,
628 0x0d0bf4b4, 639 0xf4b4abff,
629 0x0c1ca7f1, 640 0xa7f10d0b,
630 0xd006a4b6, 641 0xa4b60c1c,
631/* 0x05e2: ih_no_other */ 642 0x00abd006,
632 0x0ad000ab, 643/* 0x0610: ih_no_other */
633 0xfcf0fc40, 644 0xfc400ad0,
634 0xfcd0fce0, 645 0xfce0fcf0,
635 0xfca0fcb0, 646 0xfcb0fcd0,
636 0xfe80fc90, 647 0xfc90fca0,
637 0x80fc0088, 648 0x0088fe80,
638 0xf80032f4, 649 0x32f480fc,
639/* 0x05fd: ctx_4160s */ 650/* 0x062b: ctx_4160s */
640 0x60e7f101, 651 0xf101f800,
641 0x40e3f041, 652 0xf04160e7,
642 0xf401f7f0, 653 0xf7f040e3,
643/* 0x060a: ctx_4160s_wait */ 654 0x8d21f401,
644 0x21f48d21, 655/* 0x0638: ctx_4160s_wait */
645 0x04ffc868, 656 0xc86821f4,
646 0xf8fa0bf4, 657 0x0bf404ff,
647/* 0x0615: ctx_4160c */ 658/* 0x0643: ctx_4160c */
648 0x60e7f100, 659 0xf100f8fa,
660 0xf04160e7,
661 0xf4bd40e3,
662 0xf88d21f4,
663/* 0x0651: ctx_4170s */
664 0x70e7f100,
649 0x40e3f041, 665 0x40e3f041,
650 0x21f4f4bd, 666 0xf410f5f0,
651/* 0x0623: ctx_4170s */
652 0xf100f88d,
653 0xf04170e7,
654 0xf5f040e3,
655 0x8d21f410,
656/* 0x0632: ctx_4170w */
657 0xe7f100f8,
658 0xe3f04170,
659 0x6821f440,
660 0xf410f4f0,
661 0x00f8f31b,
662/* 0x0644: ctx_redswitch */
663 0x0614e7f1,
664 0xf106e4b6,
665 0xd00270f7,
666 0xf7f000ef,
667/* 0x0655: ctx_redswitch_delay */
668 0x01f2b608,
669 0xf1fd1bf4,
670 0xd00770f7,
671 0x00f800ef,
672/* 0x0664: ctx_86c */
673 0x086ce7f1,
674 0xd006e4b6,
675 0xe7f100ef,
676 0xe3f08a14,
677 0x8d21f440,
678 0xa86ce7f1,
679 0xf441e3f0,
680 0x00f88d21, 667 0x00f88d21,
681/* 0x0684: ctx_load */ 668/* 0x0660: ctx_4170w */
682 0x083c87f1, 669 0x4170e7f1,
683 0xbd0684b6, 670 0xf440e3f0,
684 0x0599f094, 671 0xf4f06821,
685 0xf00089d0, 672 0xf31bf410,
673/* 0x0672: ctx_redswitch */
674 0xe7f100f8,
675 0xe4b60614,
676 0x70f7f106,
677 0x00efd002,
678/* 0x0683: ctx_redswitch_delay */
679 0xb608f7f0,
680 0x1bf401f2,
681 0x70f7f1fd,
682 0x00efd007,
683/* 0x0692: ctx_86c */
684 0xe7f100f8,
685 0xe4b6086c,
686 0x00efd006,
687 0x8a14e7f1,
688 0xf440e3f0,
689 0xe7f18d21,
690 0xe3f0a86c,
691 0x8d21f441,
692/* 0x06b2: ctx_load */
693 0x94bd00f8,
694 0xf10599f0,
695 0xf00f0007,
696 0x09d00203,
697 0xf004bd00,
686 0x21f40ca7, 698 0x21f40ca7,
687 0x2417f1c9, 699 0x2417f1c9,
688 0x0614b60a, 700 0x0614b60a,
@@ -693,165 +705,217 @@ uint32_t nvd7_grhub_code[] = {
693 0x0614b60a, 705 0x0614b60a,
694 0xd00747f0, 706 0xd00747f0,
695 0x14d00012, 707 0x14d00012,
696/* 0x06bd: ctx_chan_wait_0 */ 708/* 0x06ed: ctx_chan_wait_0 */
697 0x4014cf40, 709 0x4014cf40,
698 0xf41f44f0, 710 0xf41f44f0,
699 0x32d0fa1b, 711 0x32d0fa1b,
700 0x000bfe00, 712 0x000bfe00,
701 0xb61f2af0, 713 0xb61f2af0,
702 0x20b60424, 714 0x20b60424,
703 0x3c87f102, 715 0xf094bd02,
704 0x0684b608, 716 0x07f10899,
717 0x03f00f00,
718 0x0009d002,
719 0x17f104bd,
720 0x14b60a04,
721 0x0012d006,
722 0x0a2017f1,
723 0xf00614b6,
724 0x23f10227,
725 0x12d08000,
726 0x1017f000,
727 0x020027f1,
728 0xfa0223f0,
729 0x03f80512,
705 0x99f094bd, 730 0x99f094bd,
706 0x0089d008, 731 0x0007f108,
707 0x0a0417f1, 732 0x0203f017,
708 0xd00614b6, 733 0xbd0009d0,
709 0x17f10012, 734 0x81019804,
710 0x14b60a20,
711 0x0227f006,
712 0x800023f1,
713 0xf00012d0,
714 0x27f11017,
715 0x23f00200,
716 0x0512fa02,
717 0x87f103f8,
718 0x84b6085c,
719 0xf094bd06,
720 0x89d00899,
721 0x81019800,
722 0x981814b6, 735 0x981814b6,
723 0x25b68002, 736 0x25b68002,
724 0x0512fd08, 737 0x0512fd08,
725 0xf1160180, 738 0xbd160180,
726 0xb6083c87, 739 0x0999f094,
727 0x94bd0684, 740 0x0f0007f1,
728 0xd00999f0, 741 0xd00203f0,
729 0x27f10089, 742 0x04bd0009,
730 0x24b60a04, 743 0x0a0427f1,
731 0x0021d006, 744 0xd00624b6,
732 0xf10127f0, 745 0x27f00021,
733 0xb60a2017, 746 0x2017f101,
734 0x12d00614, 747 0x0614b60a,
735 0x0017f100, 748 0xf10012d0,
736 0x0613f001,
737 0xf80501fa,
738 0x5c87f103,
739 0x0684b608,
740 0x99f094bd,
741 0x0089d009,
742 0x085c87f1,
743 0xbd0684b6,
744 0x0599f094,
745 0xf80089d0,
746/* 0x0781: ctx_chan */
747 0xfd21f500,
748 0x8421f505,
749 0x0ca7f006,
750 0xf1c921f4,
751 0xb60a1017,
752 0x27f00614,
753 0x0012d005,
754/* 0x079c: ctx_chan_wait */
755 0xfd0012cf,
756 0x1bf40522,
757 0x1521f5fa,
758/* 0x07ab: ctx_mmio_exec */
759 0x9800f806,
760 0x27f14103,
761 0x24b60a04,
762 0x0023d006,
763/* 0x07ba: ctx_mmio_loop */
764 0x34c434bd,
765 0x0f1bf4ff,
766 0x020057f1,
767 0xfa0653f0,
768 0x03f80535,
769/* 0x07cc: ctx_mmio_pull */
770 0x98804e98,
771 0x21f4814f,
772 0x0830b68d,
773 0xf40112b6,
774/* 0x07de: ctx_mmio_done */
775 0x0398df1b,
776 0x0023d016,
777 0xf1400080,
778 0xf0010017, 749 0xf0010017,
779 0x01fa0613, 750 0x01fa0613,
780 0xf803f806, 751 0xbd03f805,
781/* 0x07f5: ctx_xfer */ 752 0x0999f094,
782 0x00f7f100, 753 0x170007f1,
783 0x06f4b60c, 754 0xd00203f0,
784 0xd004e7f0, 755 0x04bd0009,
785/* 0x0802: ctx_xfer_idle */ 756 0x99f094bd,
786 0xfecf80fe, 757 0x0007f105,
787 0x00e4f100, 758 0x0203f017,
788 0xf91bf420, 759 0xbd0009d0,
789 0xf40611f4, 760/* 0x07bb: ctx_chan */
790/* 0x0812: ctx_xfer_pre */ 761 0xf500f804,
791 0xf7f01102, 762 0xf5062b21,
792 0x6421f510, 763 0xf006b221,
793 0xfd21f506, 764 0x21f40ca7,
794 0x1c11f405, 765 0x1017f1c9,
795/* 0x0820: ctx_xfer_pre_load */ 766 0x0614b60a,
796 0xf502f7f0, 767 0xd00527f0,
797 0xf5062321, 768/* 0x07d6: ctx_chan_wait */
798 0xf5063221, 769 0x12cf0012,
799 0xbd064421, 770 0x0522fd00,
800 0x2321f5f4, 771 0xf5fa1bf4,
801 0x8421f506, 772 0xf8064321,
802/* 0x0839: ctx_xfer_exec */ 773/* 0x07e5: ctx_mmio_exec */
803 0x16019806, 774 0x41039800,
804 0x041427f1, 775 0x0a0427f1,
805 0xd00624b6, 776 0xd00624b6,
806 0xe7f10020, 777 0x34bd0023,
807 0xe3f0a500, 778/* 0x07f4: ctx_mmio_loop */
808 0x021fb941, 779 0xf4ff34c4,
780 0x57f10f1b,
781 0x53f00200,
782 0x0535fa06,
783/* 0x0806: ctx_mmio_pull */
784 0x4e9803f8,
785 0x814f9880,
809 0xb68d21f4, 786 0xb68d21f4,
810 0xfcf004e0, 787 0x12b60830,
811 0x022cf001, 788 0xdf1bf401,
812 0xfd0124b6, 789/* 0x0818: ctx_mmio_done */
813 0x21f405f2, 790 0xd0160398,
814 0xfc17f18d, 791 0x00800023,
815 0x0213f04a, 792 0x0017f140,
816 0xd00c27f0, 793 0x0613f001,
817 0x21f50012, 794 0xf80601fa,
818 0x27f10207, 795/* 0x082f: ctx_xfer */
819 0x23f047fc, 796 0xf100f803,
820 0x0020d002, 797 0xb60c00f7,
821 0xb6012cf0, 798 0xe7f006f4,
822 0x12d00320, 799 0x80fed004,
823 0x01acf000, 800/* 0x083c: ctx_xfer_idle */
824 0xf006a5f0, 801 0xf100fecf,
825 0x0c9800b7, 802 0xf42000e4,
826 0x010d9800, 803 0x11f4f91b,
827 0xf500e7f0, 804 0x1102f406,
828 0xf0015c21, 805/* 0x084c: ctx_xfer_pre */
829 0x21f508a7, 806 0xf510f7f0,
830 0x21f50103, 807 0xf5069221,
831 0x01f40207, 808 0xf4062b21,
832 0x0ca7f022, 809/* 0x085a: ctx_xfer_pre_load */
833 0xf1c921f4, 810 0xf7f01c11,
834 0xb60a1017, 811 0x5121f502,
835 0x27f00614, 812 0x6021f506,
836 0x0012d005, 813 0x7221f506,
837/* 0x08c0: ctx_xfer_post_save_wait */
838 0xfd0012cf,
839 0x1bf40522,
840 0x3202f4fa,
841/* 0x08cc: ctx_xfer_post */
842 0xf502f7f0,
843 0xbd062321,
844 0x6421f5f4,
845 0x2621f506,
846 0x3221f502,
847 0xf5f4bd06, 814 0xf5f4bd06,
848 0xf4062321, 815 0xf5065121,
849 0x01981011, 816/* 0x0873: ctx_xfer_exec */
850 0x0511fd40, 817 0x9806b221,
851 0xf5070bf4, 818 0x27f11601,
852/* 0x08f7: ctx_xfer_no_post_mmio */ 819 0x24b60414,
853 0xf507ab21, 820 0x0020d006,
854/* 0x08fb: ctx_xfer_done */ 821 0xa500e7f1,
855 0xf8061521, 822 0xb941e3f0,
823 0x21f4021f,
824 0x04e0b68d,
825 0xf001fcf0,
826 0x24b6022c,
827 0x05f2fd01,
828 0xf18d21f4,
829 0xf04afc17,
830 0x27f00213,
831 0x0012d00c,
832 0x021521f5,
833 0x47fc27f1,
834 0xd00223f0,
835 0x2cf00020,
836 0x0320b601,
837 0xf00012d0,
838 0xa5f001ac,
839 0x00b7f006,
840 0x98000c98,
841 0xe7f0010d,
842 0x6621f500,
843 0x08a7f001,
844 0x010921f5,
845 0x021521f5,
846 0xf02201f4,
847 0x21f40ca7,
848 0x1017f1c9,
849 0x0614b60a,
850 0xd00527f0,
851/* 0x08fa: ctx_xfer_post_save_wait */
852 0x12cf0012,
853 0x0522fd00,
854 0xf4fa1bf4,
855/* 0x0906: ctx_xfer_post */
856 0xf7f03202,
857 0x5121f502,
858 0xf5f4bd06,
859 0xf5069221,
860 0xf5023421,
861 0xbd066021,
862 0x5121f5f4,
863 0x1011f406,
864 0xfd400198,
865 0x0bf40511,
866 0xe521f507,
867/* 0x0931: ctx_xfer_no_post_mmio */
868 0x4321f507,
869/* 0x0935: ctx_xfer_done */
870 0x0000f806,
871 0x00000000,
872 0x00000000,
873 0x00000000,
874 0x00000000,
875 0x00000000,
876 0x00000000,
877 0x00000000,
878 0x00000000,
879 0x00000000,
880 0x00000000,
881 0x00000000,
882 0x00000000,
883 0x00000000,
884 0x00000000,
885 0x00000000,
886 0x00000000,
887 0x00000000,
888 0x00000000,
889 0x00000000,
890 0x00000000,
891 0x00000000,
892 0x00000000,
893 0x00000000,
894 0x00000000,
895 0x00000000,
896 0x00000000,
897 0x00000000,
898 0x00000000,
899 0x00000000,
900 0x00000000,
901 0x00000000,
902 0x00000000,
903 0x00000000,
904 0x00000000,
905 0x00000000,
906 0x00000000,
907 0x00000000,
908 0x00000000,
909 0x00000000,
910 0x00000000,
911 0x00000000,
912 0x00000000,
913 0x00000000,
914 0x00000000,
915 0x00000000,
916 0x00000000,
917 0x00000000,
918 0x00000000,
919 0x00000000,
856 0x00000000, 920 0x00000000,
857}; 921};
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnve0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnve0.fuc.h
index 973fcda48b78..eb7bc0e9576e 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnve0.fuc.h
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnve0.fuc.h
@@ -206,14 +206,14 @@ uint32_t nve0_grhub_data[] = {
206}; 206};
207 207
208uint32_t nve0_grhub_code[] = { 208uint32_t nve0_grhub_code[] = {
209 0x03090ef5, 209 0x031b0ef5,
210/* 0x0004: queue_put */ 210/* 0x0004: queue_put */
211 0x9800d898, 211 0x9800d898,
212 0x86f001d9, 212 0x86f001d9,
213 0x0489b808, 213 0x0489b808,
214 0xf00c1bf4, 214 0xf00c1bf4,
215 0x21f502f7, 215 0x21f502f7,
216 0x00f802ec, 216 0x00f802fe,
217/* 0x001c: queue_put_next */ 217/* 0x001c: queue_put_next */
218 0xb60798c4, 218 0xb60798c4,
219 0x8dbb0384, 219 0x8dbb0384,
@@ -245,7 +245,7 @@ uint32_t nve0_grhub_code[] = {
245 0xc800bccf, 245 0xc800bccf,
246 0x1bf41fcc, 246 0x1bf41fcc,
247 0x06a7f0fa, 247 0x06a7f0fa,
248 0x010321f5, 248 0x010921f5,
249 0xf840bfcf, 249 0xf840bfcf,
250/* 0x008d: nv_wr32 */ 250/* 0x008d: nv_wr32 */
251 0x28b7f100, 251 0x28b7f100,
@@ -267,63 +267,66 @@ uint32_t nve0_grhub_code[] = {
267 0x0684b604, 267 0x0684b604,
268 0xf80080d0, 268 0xf80080d0,
269/* 0x00c9: wait_donez */ 269/* 0x00c9: wait_donez */
270 0x3c87f100, 270 0xf094bd00,
271 0x0684b608, 271 0x07f10099,
272 0x99f094bd, 272 0x03f00f00,
273 0x0089d000, 273 0x0009d002,
274 0x081887f1, 274 0x07f104bd,
275 0xd00684b6, 275 0x03f00600,
276/* 0x00e2: wait_donez_ne */ 276 0x000ad002,
277 0x87f1008a, 277/* 0x00e6: wait_donez_ne */
278 0x84b60400, 278 0x87f104bd,
279 0x0088cf06, 279 0x83f00000,
280 0x0088cf01,
280 0xf4888aff, 281 0xf4888aff,
281 0x87f1f31b, 282 0x94bdf31b,
282 0x84b6085c, 283 0xf10099f0,
283 0xf094bd06, 284 0xf0170007,
284 0x89d00099, 285 0x09d00203,
285/* 0x0103: wait_doneo */ 286 0xf804bd00,
286 0xf100f800, 287/* 0x0109: wait_doneo */
287 0xb6083c87, 288 0xf094bd00,
288 0x94bd0684, 289 0x07f10099,
289 0xd00099f0, 290 0x03f00f00,
290 0x87f10089, 291 0x0009d002,
292 0x87f104bd,
291 0x84b60818, 293 0x84b60818,
292 0x008ad006, 294 0x008ad006,
293/* 0x011c: wait_doneo_e */ 295/* 0x0124: wait_doneo_e */
294 0x040087f1, 296 0x040087f1,
295 0xcf0684b6, 297 0xcf0684b6,
296 0x8aff0088, 298 0x8aff0088,
297 0xf30bf488, 299 0xf30bf488,
298 0x085c87f1, 300 0x99f094bd,
299 0xbd0684b6, 301 0x0007f100,
300 0x0099f094, 302 0x0203f017,
301 0xf80089d0, 303 0xbd0009d0,
302/* 0x013d: mmctx_size */ 304/* 0x0147: mmctx_size */
303/* 0x013f: nv_mmctx_size_loop */ 305 0xbd00f804,
304 0x9894bd00, 306/* 0x0149: nv_mmctx_size_loop */
305 0x85b600e8, 307 0x00e89894,
306 0x0180b61a, 308 0xb61a85b6,
307 0xbb0284b6, 309 0x84b60180,
308 0xe0b60098, 310 0x0098bb02,
309 0x04efb804, 311 0xb804e0b6,
310 0xb9eb1bf4, 312 0x1bf404ef,
311 0x00f8029f, 313 0x029fb9eb,
312/* 0x015c: mmctx_xfer */ 314/* 0x0166: mmctx_xfer */
313 0x083c87f1, 315 0x94bd00f8,
314 0xbd0684b6, 316 0xf10199f0,
315 0x0199f094, 317 0xf00f0007,
316 0xf10089d0, 318 0x09d00203,
319 0xf104bd00,
317 0xb6071087, 320 0xb6071087,
318 0x94bd0684, 321 0x94bd0684,
319 0xf405bbfd, 322 0xf405bbfd,
320 0x8bd0090b, 323 0x8bd0090b,
321 0x0099f000, 324 0x0099f000,
322/* 0x0180: mmctx_base_disabled */ 325/* 0x018c: mmctx_base_disabled */
323 0xf405eefd, 326 0xf405eefd,
324 0x8ed00c0b, 327 0x8ed00c0b,
325 0xc08fd080, 328 0xc08fd080,
326/* 0x018f: mmctx_multi_disabled */ 329/* 0x019b: mmctx_multi_disabled */
327 0xb70199f0, 330 0xb70199f0,
328 0xc8010080, 331 0xc8010080,
329 0xb4b600ab, 332 0xb4b600ab,
@@ -331,8 +334,8 @@ uint32_t nve0_grhub_code[] = {
331 0xb601aec8, 334 0xb601aec8,
332 0xbefd11e4, 335 0xbefd11e4,
333 0x008bd005, 336 0x008bd005,
334/* 0x01a8: mmctx_exec_loop */ 337/* 0x01b4: mmctx_exec_loop */
335/* 0x01a8: mmctx_wait_free */ 338/* 0x01b4: mmctx_wait_free */
336 0xf0008ecf, 339 0xf0008ecf,
337 0x0bf41fe4, 340 0x0bf41fe4,
338 0x00ce98fa, 341 0x00ce98fa,
@@ -341,76 +344,77 @@ uint32_t nve0_grhub_code[] = {
341 0x04cdb804, 344 0x04cdb804,
342 0xc8e81bf4, 345 0xc8e81bf4,
343 0x1bf402ab, 346 0x1bf402ab,
344/* 0x01c9: mmctx_fini_wait */ 347/* 0x01d5: mmctx_fini_wait */
345 0x008bcf18, 348 0x008bcf18,
346 0xb01fb4f0, 349 0xb01fb4f0,
347 0x1bf410b4, 350 0x1bf410b4,
348 0x02a7f0f7, 351 0x02a7f0f7,
349 0xf4c921f4, 352 0xf4c921f4,
350/* 0x01de: mmctx_stop */ 353/* 0x01ea: mmctx_stop */
351 0xabc81b0e, 354 0xabc81b0e,
352 0x10b4b600, 355 0x10b4b600,
353 0xf00cb9f0, 356 0xf00cb9f0,
354 0x8bd012b9, 357 0x8bd012b9,
355/* 0x01ed: mmctx_stop_wait */ 358/* 0x01f9: mmctx_stop_wait */
356 0x008bcf00, 359 0x008bcf00,
357 0xf412bbc8, 360 0xf412bbc8,
358/* 0x01f6: mmctx_done */ 361/* 0x0202: mmctx_done */
359 0x87f1fa1b, 362 0x94bdfa1b,
360 0x84b6085c, 363 0xf10199f0,
361 0xf094bd06, 364 0xf0170007,
362 0x89d00199, 365 0x09d00203,
363/* 0x0207: strand_wait */ 366 0xf804bd00,
364 0xf900f800, 367/* 0x0215: strand_wait */
365 0x02a7f0a0, 368 0xf0a0f900,
366 0xfcc921f4, 369 0x21f402a7,
367/* 0x0213: strand_pre */ 370 0xf8a0fcc9,
368 0xf100f8a0, 371/* 0x0221: strand_pre */
369 0xf04afc87, 372 0xfc87f100,
370 0x97f00283, 373 0x0283f04a,
371 0x0089d00c, 374 0xd00c97f0,
372 0x020721f5,
373/* 0x0226: strand_post */
374 0x87f100f8,
375 0x83f04afc,
376 0x0d97f002,
377 0xf50089d0,
378 0xf8020721,
379/* 0x0239: strand_set */
380 0xfca7f100,
381 0x02a3f04f,
382 0x0500aba2,
383 0xd00fc7f0,
384 0xc7f000ac,
385 0x00bcd00b,
386 0x020721f5,
387 0xf000aed0,
388 0xbcd00ac7,
389 0x0721f500,
390/* 0x0263: strand_ctx_init */
391 0xf100f802,
392 0xb6083c87,
393 0x94bd0684,
394 0xd00399f0,
395 0x21f50089, 375 0x21f50089,
396 0xe7f00213, 376 0x00f80215,
397 0x3921f503, 377/* 0x0234: strand_post */
378 0x4afc87f1,
379 0xf00283f0,
380 0x89d00d97,
381 0x1521f500,
382/* 0x0247: strand_set */
383 0xf100f802,
384 0xf04ffca7,
385 0xaba202a3,
386 0xc7f00500,
387 0x00acd00f,
388 0xd00bc7f0,
389 0x21f500bc,
390 0xaed00215,
391 0x0ac7f000,
392 0xf500bcd0,
393 0xf8021521,
394/* 0x0271: strand_ctx_init */
395 0xf094bd00,
396 0x07f10399,
397 0x03f00f00,
398 0x0009d002,
399 0x21f504bd,
400 0xe7f00221,
401 0x4721f503,
398 0xfca7f102, 402 0xfca7f102,
399 0x02a3f046, 403 0x02a3f046,
400 0x0400aba0, 404 0x0400aba0,
401 0xf040a0d0, 405 0xf040a0d0,
402 0xbcd001c7, 406 0xbcd001c7,
403 0x0721f500, 407 0x1521f500,
404 0x010c9202, 408 0x010c9202,
405 0xf000acd0, 409 0xf000acd0,
406 0xbcd002c7, 410 0xbcd002c7,
407 0x0721f500, 411 0x1521f500,
408 0x2621f502, 412 0x3421f502,
409 0x8087f102, 413 0x8087f102,
410 0x0684b608, 414 0x0684b608,
411 0xb70089cf, 415 0xb70089cf,
412 0x95220080, 416 0x95220080,
413/* 0x02ba: ctx_init_strand_loop */ 417/* 0x02ca: ctx_init_strand_loop */
414 0x8ed008fe, 418 0x8ed008fe,
415 0x408ed000, 419 0x408ed000,
416 0xb6808acf, 420 0xb6808acf,
@@ -419,258 +423,266 @@ uint32_t nve0_grhub_code[] = {
419 0xb60480b6, 423 0xb60480b6,
420 0x1bf40192, 424 0x1bf40192,
421 0x08e4b6e8, 425 0x08e4b6e8,
422 0xf1f2efbc, 426 0xbdf2efbc,
423 0xb6085c87, 427 0x0399f094,
424 0x94bd0684, 428 0x170007f1,
425 0xd00399f0, 429 0xd00203f0,
426 0x00f80089, 430 0x04bd0009,
427/* 0x02ec: error */ 431/* 0x02fe: error */
428 0xe7f1e0f9, 432 0x07f100f8,
429 0xe4b60814, 433 0x03f00500,
430 0x00efd006, 434 0x000fd002,
431 0x0c1ce7f1, 435 0xf7f004bd,
432 0xf006e4b6, 436 0x0007f101,
433 0xefd001f7, 437 0x0303f007,
434 0xf8e0fc00, 438 0xbd000fd0,
435/* 0x0309: init */ 439/* 0x031b: init */
436 0xfe04bd00, 440 0xbd00f804,
437 0x07fe0004, 441 0x0004fe04,
438 0x0017f100, 442 0xf10007fe,
439 0x0227f012, 443 0xf0120017,
440 0xf10012d0, 444 0x12d00227,
441 0xfe058517, 445 0xb117f100,
442 0x17f10010, 446 0x0010fe05,
443 0x10d00400, 447 0x040017f1,
444 0x0437f1c0, 448 0xf1c010d0,
445 0x0634b604, 449 0xb6040437,
446 0x200327f1, 450 0x27f10634,
447 0xf10032d0, 451 0x32d02003,
448 0xd0200427,
449 0x27f10132,
450 0x32d0200b,
451 0x0c27f102,
452 0x0732d020,
453 0x0c2427f1,
454 0xb90624b6,
455 0x23d00003,
456 0x0427f100, 452 0x0427f100,
457 0x0023f087, 453 0x0132d020,
458 0xb70012d0, 454 0x200b27f1,
459 0xf0010012, 455 0xf10232d0,
460 0x12d00427, 456 0xd0200c27,
461 0x1031f400, 457 0x27f10732,
462 0x9604e7f1, 458 0x24b60c24,
463 0xf440e3f0, 459 0x0003b906,
464 0xf1c76821, 460 0xf10023d0,
465 0x03018090, 461 0xf0870427,
466 0x801ff4f0, 462 0x12d00023,
467 0x17f0020f, 463 0x0012b700,
468 0x041fbb01, 464 0x0427f001,
469 0xf10112b6, 465 0xf40012d0,
470 0xb6040c27, 466 0xe7f11031,
471 0x21d00624, 467 0xe3f09604,
472 0x4021d000, 468 0x6821f440,
473 0x010017f1, 469 0x8090f1c7,
474 0x98000e98, 470 0xf4f00301,
475 0x21f5010f, 471 0x020f801f,
476 0x37f1013d, 472 0xbb0117f0,
477 0x34b60700, 473 0x12b6041f,
478 0x08149506, 474 0x0c27f101,
479 0xd00034d0, 475 0x0624b604,
480 0x30b74034, 476 0xd00021d0,
481 0x1fbb1300, 477 0x17f14021,
482 0x02f5b600, 478 0x0e980100,
483 0xb6003fd0, 479 0x010f9800,
484 0x10b60815, 480 0x014721f5,
485 0x0814b601, 481 0x070037f1,
486 0xf5021fb9, 482 0x950634b6,
487 0xbb026321, 483 0x34d00814,
488 0x0398001f, 484 0x4034d000,
489 0x0047f102, 485 0x130030b7,
490 0x5043f020, 486 0xb6001fbb,
491/* 0x03e4: init_gpc */ 487 0x3fd002f5,
492 0x08044ea0, 488 0x0815b600,
493 0xf4021fb9, 489 0xb60110b6,
494 0x4ea08d21, 490 0x1fb90814,
495 0xf4bd010c, 491 0x7121f502,
496 0xa08d21f4, 492 0x001fbb02,
497 0xf401044e, 493 0xf1020398,
498 0x4ea08d21, 494 0xf0200047,
499 0xf7f00100, 495/* 0x03f6: init_gpc */
496 0x4ea05043,
497 0x1fb90804,
500 0x8d21f402, 498 0x8d21f402,
501 0x08004ea0, 499 0x010c4ea0,
502/* 0x040c: init_gpc_wait */ 500 0x21f4f4bd,
503 0xc86821f4, 501 0x044ea08d,
504 0x0bf41fff, 502 0x8d21f401,
505 0x044ea0fa, 503 0x01004ea0,
506 0x6821f408, 504 0xf402f7f0,
507 0xb7001fbb, 505 0x4ea08d21,
508 0xb6800040, 506/* 0x041e: init_gpc_wait */
509 0x1bf40132, 507 0x21f40800,
510 0x0027f1be, 508 0x1fffc868,
511 0x0624b608, 509 0xa0fa0bf4,
512 0xb74021d0, 510 0xf408044e,
513 0xbd080020, 511 0x1fbb6821,
512 0x0040b700,
513 0x0132b680,
514 0xf1be1bf4,
515 0xf0010007,
516 0x01d00203,
517 0xbd04bd00,
514 0x1f19f014, 518 0x1f19f014,
515/* 0x043f: main */ 519 0x080007f1,
516 0xf40021d0, 520 0xd00203f0,
517 0x28f40031, 521 0x04bd0001,
518 0x10d7f000, 522/* 0x0458: main */
519 0xf43921f4, 523 0xf40031f4,
520 0xe4b1f401, 524 0xd7f00028,
521 0x1bf54001, 525 0x3921f410,
522 0x87f100d1, 526 0xb1f401f4,
523 0x84b6083c, 527 0xf54001e4,
524 0xf094bd06, 528 0xbd00de1b,
525 0x89d00499, 529 0x0499f094,
526 0x0017f100, 530 0x0f0007f1,
527 0x0614b60b, 531 0xd00203f0,
528 0xcf4012cf, 532 0x04bd0009,
529 0x13c80011, 533 0x0b0017f1,
530 0x7e0bf41f, 534 0xcf0614b6,
535 0x11cf4012,
536 0x1f13c800,
537 0x00870bf5,
531 0xf41f23c8, 538 0xf41f23c8,
532 0x20f95a0b, 539 0x20f9620b,
533 0xf10212b9, 540 0xbd0212b9,
534 0xb6083c87,
535 0x94bd0684,
536 0xd00799f0,
537 0x32f40089,
538 0x0231f401,
539 0x07c721f5,
540 0x085c87f1,
541 0xbd0684b6,
542 0x0799f094, 541 0x0799f094,
543 0xfc0089d0, 542 0x0f0007f1,
544 0x3c87f120, 543 0xd00203f0,
545 0x0684b608, 544 0x04bd0009,
546 0x99f094bd, 545 0xf40132f4,
547 0x0089d006, 546 0x21f50231,
548 0xf50131f4, 547 0x94bd0801,
549 0xf107c721, 548 0xf10799f0,
550 0xb6085c87, 549 0xf0170007,
551 0x94bd0684, 550 0x09d00203,
552 0xd00699f0, 551 0xfc04bd00,
553 0x0ef40089, 552 0xf094bd20,
554/* 0x04d5: chsw_prev_no_next */ 553 0x07f10699,
554 0x03f00f00,
555 0x0009d002,
556 0x31f404bd,
557 0x0121f501,
558 0xf094bd08,
559 0x07f10699,
560 0x03f01700,
561 0x0009d002,
562 0x0ef404bd,
563/* 0x04f9: chsw_prev_no_next */
555 0xb920f931, 564 0xb920f931,
556 0x32f40212, 565 0x32f40212,
557 0x0232f401, 566 0x0232f401,
558 0x07c721f5, 567 0x080121f5,
559 0x17f120fc, 568 0x17f120fc,
560 0x14b60b00, 569 0x14b60b00,
561 0x0012d006, 570 0x0012d006,
562/* 0x04f3: chsw_no_prev */ 571/* 0x0517: chsw_no_prev */
563 0xc8130ef4, 572 0xc8130ef4,
564 0x0bf41f23, 573 0x0bf41f23,
565 0x0131f40d, 574 0x0131f40d,
566 0xf50232f4, 575 0xf50232f4,
567/* 0x0503: chsw_done */ 576/* 0x0527: chsw_done */
568 0xf107c721, 577 0xf1080121,
569 0xb60b0c17, 578 0xb60b0c17,
570 0x27f00614, 579 0x27f00614,
571 0x0012d001, 580 0x0012d001,
572 0x085c87f1,
573 0xbd0684b6,
574 0x0499f094,
575 0xf50089d0,
576/* 0x0523: main_not_ctx_switch */
577 0xb0ff200e,
578 0x1bf401e4,
579 0x02f2b90d,
580 0x075b21f5,
581/* 0x0533: main_not_ctx_chan */
582 0xb0420ef4,
583 0x1bf402e4,
584 0x3c87f12e,
585 0x0684b608,
586 0x99f094bd, 581 0x99f094bd,
587 0x0089d007, 582 0x0007f104,
583 0x0203f017,
584 0xbd0009d0,
585 0x130ef504,
586/* 0x0549: main_not_ctx_switch */
587 0x01e4b0ff,
588 0xb90d1bf4,
589 0x21f502f2,
590 0x0ef40795,
591/* 0x0559: main_not_ctx_chan */
592 0x02e4b046,
593 0xbd321bf4,
594 0x0799f094,
595 0x0f0007f1,
596 0xd00203f0,
597 0x04bd0009,
588 0xf40132f4, 598 0xf40132f4,
589 0x21f50232, 599 0x21f50232,
590 0x87f107c7, 600 0x94bd0801,
591 0x84b6085c, 601 0xf10799f0,
592 0xf094bd06, 602 0xf0170007,
593 0x89d00799, 603 0x09d00203,
594 0x110ef400, 604 0xf404bd00,
595/* 0x0564: main_not_ctx_save */ 605/* 0x058e: main_not_ctx_save */
596 0xf010ef94, 606 0xef94110e,
597 0x21f501f5, 607 0x01f5f010,
598 0x0ef502ec, 608 0x02fe21f5,
599/* 0x0572: main_done */ 609 0xfec00ef5,
600 0x17f1fed1, 610/* 0x059c: main_done */
601 0x14b60820, 611 0x29f024bd,
602 0xf024bd06, 612 0x0007f11f,
603 0x12d01f29, 613 0x0203f008,
604 0xbe0ef500, 614 0xbd0002d0,
605/* 0x0585: ih */ 615 0xab0ef504,
616/* 0x05b1: ih */
606 0xfe80f9fe, 617 0xfe80f9fe,
607 0x80f90188, 618 0x80f90188,
608 0xa0f990f9, 619 0xa0f990f9,
609 0xd0f9b0f9, 620 0xd0f9b0f9,
610 0xf0f9e0f9, 621 0xf0f9e0f9,
611 0xc4800acf, 622 0x0acf04bd,
612 0x0bf404ab, 623 0x04abc480,
613 0x00b7f11d, 624 0xf11d0bf4,
614 0x10d7f019, 625 0xf01900b7,
615 0xcf40becf, 626 0xbecf10d7,
616 0x21f400bf, 627 0x00bfcf40,
617 0x00b0b704, 628 0xb70421f4,
618 0x01e7f004, 629 0xf00400b0,
619/* 0x05bb: ih_no_fifo */ 630 0xbed001e7,
620 0xe400bed0, 631/* 0x05e9: ih_no_fifo */
621 0xf40100ab, 632 0x00abe400,
622 0xd7f00d0b, 633 0x0d0bf401,
623 0x01e7f110, 634 0xf110d7f0,
624 0x0421f440, 635 0xf44001e7,
625/* 0x05cc: ih_no_ctxsw */ 636/* 0x05fa: ih_no_ctxsw */
626 0x0104b7f1, 637 0xb7f10421,
627 0xabffb0bd, 638 0xb0bd0104,
628 0x0d0bf4b4, 639 0xf4b4abff,
629 0x0c1ca7f1, 640 0xa7f10d0b,
630 0xd006a4b6, 641 0xa4b60c1c,
631/* 0x05e2: ih_no_other */ 642 0x00abd006,
632 0x0ad000ab, 643/* 0x0610: ih_no_other */
633 0xfcf0fc40, 644 0xfc400ad0,
634 0xfcd0fce0, 645 0xfce0fcf0,
635 0xfca0fcb0, 646 0xfcb0fcd0,
636 0xfe80fc90, 647 0xfc90fca0,
637 0x80fc0088, 648 0x0088fe80,
638 0xf80032f4, 649 0x32f480fc,
639/* 0x05fd: ctx_4170s */ 650/* 0x062b: ctx_4170s */
640 0x70e7f101, 651 0xf101f800,
641 0x40e3f041, 652 0xf04170e7,
642 0xf410f5f0, 653 0xf5f040e3,
643 0x00f88d21, 654 0x8d21f410,
644/* 0x060c: ctx_4170w */ 655/* 0x063a: ctx_4170w */
645 0x4170e7f1,
646 0xf440e3f0,
647 0xf4f06821,
648 0xf31bf410,
649/* 0x061e: ctx_redswitch */
650 0xe7f100f8, 656 0xe7f100f8,
651 0xe4b60614, 657 0xe3f04170,
652 0x70f7f106, 658 0x6821f440,
653 0x00efd002, 659 0xf410f4f0,
654/* 0x062f: ctx_redswitch_delay */ 660 0x00f8f31b,
655 0xb608f7f0, 661/* 0x064c: ctx_redswitch */
656 0x1bf401f2, 662 0x0614e7f1,
657 0x70f7f1fd, 663 0xf106e4b6,
658 0x00efd007, 664 0xd00270f7,
659/* 0x063e: ctx_86c */ 665 0xf7f000ef,
660 0xe7f100f8, 666/* 0x065d: ctx_redswitch_delay */
661 0xe4b6086c, 667 0x01f2b608,
662 0x00efd006, 668 0xf1fd1bf4,
663 0x8a14e7f1, 669 0xd00770f7,
664 0xf440e3f0, 670 0x00f800ef,
665 0xe7f18d21, 671/* 0x066c: ctx_86c */
666 0xe3f0a86c, 672 0x086ce7f1,
667 0x8d21f441, 673 0xd006e4b6,
668/* 0x065e: ctx_load */ 674 0xe7f100ef,
669 0x87f100f8, 675 0xe3f08a14,
670 0x84b6083c, 676 0x8d21f440,
671 0xf094bd06, 677 0xa86ce7f1,
672 0x89d00599, 678 0xf441e3f0,
673 0x0ca7f000, 679 0x00f88d21,
680/* 0x068c: ctx_load */
681 0x99f094bd,
682 0x0007f105,
683 0x0203f00f,
684 0xbd0009d0,
685 0x0ca7f004,
674 0xf1c921f4, 686 0xf1c921f4,
675 0xb60a2417, 687 0xb60a2417,
676 0x10d00614, 688 0x10d00614,
@@ -680,163 +692,215 @@ uint32_t nve0_grhub_code[] = {
680 0xb60a0c17, 692 0xb60a0c17,
681 0x47f00614, 693 0x47f00614,
682 0x0012d007, 694 0x0012d007,
683/* 0x0697: ctx_chan_wait_0 */ 695/* 0x06c7: ctx_chan_wait_0 */
684 0xcf4014d0, 696 0xcf4014d0,
685 0x44f04014, 697 0x44f04014,
686 0xfa1bf41f, 698 0xfa1bf41f,
687 0xfe0032d0, 699 0xfe0032d0,
688 0x2af0000b, 700 0x2af0000b,
689 0x0424b61f, 701 0x0424b61f,
690 0xf10220b6, 702 0xbd0220b6,
691 0xb6083c87,
692 0x94bd0684,
693 0xd00899f0,
694 0x17f10089,
695 0x14b60a04,
696 0x0012d006,
697 0x0a2017f1,
698 0xf00614b6,
699 0x23f10227,
700 0x12d08000,
701 0x1017f000,
702 0x020027f1,
703 0xfa0223f0,
704 0x03f80512,
705 0x085c87f1,
706 0xbd0684b6,
707 0x0899f094, 703 0x0899f094,
708 0x980089d0, 704 0x0f0007f1,
705 0xd00203f0,
706 0x04bd0009,
707 0x0a0417f1,
708 0xd00614b6,
709 0x17f10012,
710 0x14b60a20,
711 0x0227f006,
712 0x800023f1,
713 0xf00012d0,
714 0x27f11017,
715 0x23f00200,
716 0x0512fa02,
717 0x94bd03f8,
718 0xf10899f0,
719 0xf0170007,
720 0x09d00203,
721 0x9804bd00,
709 0x14b68101, 722 0x14b68101,
710 0x80029818, 723 0x80029818,
711 0xfd0825b6, 724 0xfd0825b6,
712 0x01800512, 725 0x01800512,
713 0x3c87f116, 726 0xf094bd16,
714 0x0684b608, 727 0x07f10999,
715 0x99f094bd, 728 0x03f00f00,
716 0x0089d009, 729 0x0009d002,
717 0x0a0427f1, 730 0x27f104bd,
718 0xd00624b6, 731 0x24b60a04,
719 0x27f00021, 732 0x0021d006,
720 0x2017f101, 733 0xf10127f0,
721 0x0614b60a, 734 0xb60a2017,
722 0xf10012d0, 735 0x12d00614,
736 0x0017f100,
737 0x0613f001,
738 0xf80501fa,
739 0xf094bd03,
740 0x07f10999,
741 0x03f01700,
742 0x0009d002,
743 0x94bd04bd,
744 0xf10599f0,
745 0xf0170007,
746 0x09d00203,
747 0xf804bd00,
748/* 0x0795: ctx_chan */
749 0x8c21f500,
750 0x0ca7f006,
751 0xf1c921f4,
752 0xb60a1017,
753 0x27f00614,
754 0x0012d005,
755/* 0x07ac: ctx_chan_wait */
756 0xfd0012cf,
757 0x1bf40522,
758/* 0x07b7: ctx_mmio_exec */
759 0x9800f8fa,
760 0x27f14103,
761 0x24b60a04,
762 0x0023d006,
763/* 0x07c6: ctx_mmio_loop */
764 0x34c434bd,
765 0x0f1bf4ff,
766 0x020057f1,
767 0xfa0653f0,
768 0x03f80535,
769/* 0x07d8: ctx_mmio_pull */
770 0x98804e98,
771 0x21f4814f,
772 0x0830b68d,
773 0xf40112b6,
774/* 0x07ea: ctx_mmio_done */
775 0x0398df1b,
776 0x0023d016,
777 0xf1400080,
723 0xf0010017, 778 0xf0010017,
724 0x01fa0613, 779 0x01fa0613,
725 0xf103f805, 780 0xf803f806,
726 0xb6085c87, 781/* 0x0801: ctx_xfer */
727 0x94bd0684, 782 0x00f7f100,
728 0xd00999f0, 783 0x06f4b60c,
729 0x87f10089, 784 0xd004e7f0,
730 0x84b6085c, 785/* 0x080e: ctx_xfer_idle */
731 0xf094bd06, 786 0xfecf80fe,
732 0x89d00599, 787 0x00e4f100,
733/* 0x075b: ctx_chan */ 788 0xf91bf420,
734 0xf500f800, 789 0xf40611f4,
735 0xf0065e21, 790/* 0x081e: ctx_xfer_pre */
736 0x21f40ca7, 791 0xf7f00d02,
737 0x1017f1c9, 792 0x6c21f510,
738 0x0614b60a, 793 0x1c11f406,
739 0xd00527f0, 794/* 0x0828: ctx_xfer_pre_load */
740/* 0x0772: ctx_chan_wait */ 795 0xf502f7f0,
741 0x12cf0012, 796 0xf5062b21,
742 0x0522fd00, 797 0xf5063a21,
743 0xf8fa1bf4, 798 0xbd064c21,
744/* 0x077d: ctx_mmio_exec */ 799 0x2b21f5f4,
745 0x41039800, 800 0x8c21f506,
746 0x0a0427f1, 801/* 0x0841: ctx_xfer_exec */
802 0x16019806,
803 0x041427f1,
747 0xd00624b6, 804 0xd00624b6,
748 0x34bd0023, 805 0xe7f10020,
749/* 0x078c: ctx_mmio_loop */ 806 0xe3f0a500,
750 0xf4ff34c4, 807 0x021fb941,
751 0x57f10f1b,
752 0x53f00200,
753 0x0535fa06,
754/* 0x079e: ctx_mmio_pull */
755 0x4e9803f8,
756 0x814f9880,
757 0xb68d21f4, 808 0xb68d21f4,
758 0x12b60830, 809 0xfcf004e0,
759 0xdf1bf401, 810 0x022cf001,
760/* 0x07b0: ctx_mmio_done */ 811 0xfd0124b6,
761 0xd0160398, 812 0x21f405f2,
762 0x00800023, 813 0xfc17f18d,
763 0x0017f140, 814 0x0213f04a,
764 0x0613f001, 815 0xd00c27f0,
765 0xf80601fa, 816 0x21f50012,
766/* 0x07c7: ctx_xfer */ 817 0x27f10215,
767 0xf100f803, 818 0x23f047fc,
768 0xb60c00f7, 819 0x0020d002,
769 0xe7f006f4, 820 0xb6012cf0,
770 0x80fed004, 821 0x12d00320,
771/* 0x07d4: ctx_xfer_idle */ 822 0x01acf000,
772 0xf100fecf, 823 0xf006a5f0,
773 0xf42000e4, 824 0x0c9800b7,
774 0x11f4f91b, 825 0x010d9800,
775 0x0d02f406, 826 0xf500e7f0,
776/* 0x07e4: ctx_xfer_pre */ 827 0xf0016621,
777 0xf510f7f0, 828 0x21f508a7,
778 0xf4063e21, 829 0x21f50109,
779/* 0x07ee: ctx_xfer_pre_load */ 830 0x01f40215,
780 0xf7f01c11, 831 0x0ca7f022,
781 0xfd21f502, 832 0xf1c921f4,
782 0x0c21f505, 833 0xb60a1017,
783 0x1e21f506, 834 0x27f00614,
835 0x0012d005,
836/* 0x08c8: ctx_xfer_post_save_wait */
837 0xfd0012cf,
838 0x1bf40522,
839 0x2e02f4fa,
840/* 0x08d4: ctx_xfer_post */
841 0xf502f7f0,
842 0xbd062b21,
843 0x6c21f5f4,
844 0x3421f506,
845 0x3a21f502,
784 0xf5f4bd06, 846 0xf5f4bd06,
785 0xf505fd21, 847 0xf4062b21,
786/* 0x0807: ctx_xfer_exec */ 848 0x01981011,
787 0x98065e21, 849 0x0511fd40,
788 0x27f11601, 850 0xf5070bf4,
789 0x24b60414, 851/* 0x08ff: ctx_xfer_no_post_mmio */
790 0x0020d006, 852/* 0x08ff: ctx_xfer_done */
791 0xa500e7f1, 853 0xf807b721,
792 0xb941e3f0, 854 0x00000000,
793 0x21f4021f, 855 0x00000000,
794 0x04e0b68d, 856 0x00000000,
795 0xf001fcf0, 857 0x00000000,
796 0x24b6022c, 858 0x00000000,
797 0x05f2fd01, 859 0x00000000,
798 0xf18d21f4, 860 0x00000000,
799 0xf04afc17, 861 0x00000000,
800 0x27f00213, 862 0x00000000,
801 0x0012d00c, 863 0x00000000,
802 0x020721f5, 864 0x00000000,
803 0x47fc27f1, 865 0x00000000,
804 0xd00223f0, 866 0x00000000,
805 0x2cf00020, 867 0x00000000,
806 0x0320b601, 868 0x00000000,
807 0xf00012d0, 869 0x00000000,
808 0xa5f001ac, 870 0x00000000,
809 0x00b7f006, 871 0x00000000,
810 0x98000c98, 872 0x00000000,
811 0xe7f0010d, 873 0x00000000,
812 0x5c21f500, 874 0x00000000,
813 0x08a7f001, 875 0x00000000,
814 0x010321f5, 876 0x00000000,
815 0x020721f5, 877 0x00000000,
816 0xf02201f4, 878 0x00000000,
817 0x21f40ca7, 879 0x00000000,
818 0x1017f1c9, 880 0x00000000,
819 0x0614b60a, 881 0x00000000,
820 0xd00527f0, 882 0x00000000,
821/* 0x088e: ctx_xfer_post_save_wait */ 883 0x00000000,
822 0x12cf0012, 884 0x00000000,
823 0x0522fd00, 885 0x00000000,
824 0xf4fa1bf4, 886 0x00000000,
825/* 0x089a: ctx_xfer_post */ 887 0x00000000,
826 0xf7f02e02, 888 0x00000000,
827 0xfd21f502, 889 0x00000000,
828 0xf5f4bd05, 890 0x00000000,
829 0xf5063e21, 891 0x00000000,
830 0xf5022621, 892 0x00000000,
831 0xbd060c21, 893 0x00000000,
832 0xfd21f5f4, 894 0x00000000,
833 0x1011f405, 895 0x00000000,
834 0xfd400198, 896 0x00000000,
835 0x0bf40511, 897 0x00000000,
836 0x7d21f507, 898 0x00000000,
837/* 0x08c5: ctx_xfer_no_post_mmio */ 899 0x00000000,
838/* 0x08c5: ctx_xfer_done */ 900 0x00000000,
839 0x0000f807, 901 0x00000000,
902 0x00000000,
903 0x00000000,
840 0x00000000, 904 0x00000000,
841 0x00000000, 905 0x00000000,
842 0x00000000, 906 0x00000000,
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvf0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvf0.fuc.h
index 1b64fe55903a..438506d14749 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvf0.fuc.h
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvf0.fuc.h
@@ -206,14 +206,14 @@ uint32_t nvf0_grhub_data[] = {
206}; 206};
207 207
208uint32_t nvf0_grhub_code[] = { 208uint32_t nvf0_grhub_code[] = {
209 0x03090ef5, 209 0x031b0ef5,
210/* 0x0004: queue_put */ 210/* 0x0004: queue_put */
211 0x9800d898, 211 0x9800d898,
212 0x86f001d9, 212 0x86f001d9,
213 0x0489b808, 213 0x0489b808,
214 0xf00c1bf4, 214 0xf00c1bf4,
215 0x21f502f7, 215 0x21f502f7,
216 0x00f802ec, 216 0x00f802fe,
217/* 0x001c: queue_put_next */ 217/* 0x001c: queue_put_next */
218 0xb60798c4, 218 0xb60798c4,
219 0x8dbb0384, 219 0x8dbb0384,
@@ -245,7 +245,7 @@ uint32_t nvf0_grhub_code[] = {
245 0xc800bccf, 245 0xc800bccf,
246 0x1bf41fcc, 246 0x1bf41fcc,
247 0x06a7f0fa, 247 0x06a7f0fa,
248 0x010321f5, 248 0x010921f5,
249 0xf840bfcf, 249 0xf840bfcf,
250/* 0x008d: nv_wr32 */ 250/* 0x008d: nv_wr32 */
251 0x28b7f100, 251 0x28b7f100,
@@ -267,63 +267,66 @@ uint32_t nvf0_grhub_code[] = {
267 0x0684b604, 267 0x0684b604,
268 0xf80080d0, 268 0xf80080d0,
269/* 0x00c9: wait_donez */ 269/* 0x00c9: wait_donez */
270 0x3c87f100, 270 0xf094bd00,
271 0x0684b608, 271 0x07f10099,
272 0x99f094bd, 272 0x03f03700,
273 0x0089d000, 273 0x0009d002,
274 0x081887f1, 274 0x07f104bd,
275 0xd00684b6, 275 0x03f00600,
276/* 0x00e2: wait_donez_ne */ 276 0x000ad002,
277 0x87f1008a, 277/* 0x00e6: wait_donez_ne */
278 0x84b60400, 278 0x87f104bd,
279 0x0088cf06, 279 0x83f00000,
280 0x0088cf01,
280 0xf4888aff, 281 0xf4888aff,
281 0x87f1f31b, 282 0x94bdf31b,
282 0x84b6085c, 283 0xf10099f0,
283 0xf094bd06, 284 0xf0170007,
284 0x89d00099, 285 0x09d00203,
285/* 0x0103: wait_doneo */ 286 0xf804bd00,
286 0xf100f800, 287/* 0x0109: wait_doneo */
287 0xb6083c87, 288 0xf094bd00,
288 0x94bd0684, 289 0x07f10099,
289 0xd00099f0, 290 0x03f03700,
290 0x87f10089, 291 0x0009d002,
292 0x87f104bd,
291 0x84b60818, 293 0x84b60818,
292 0x008ad006, 294 0x008ad006,
293/* 0x011c: wait_doneo_e */ 295/* 0x0124: wait_doneo_e */
294 0x040087f1, 296 0x040087f1,
295 0xcf0684b6, 297 0xcf0684b6,
296 0x8aff0088, 298 0x8aff0088,
297 0xf30bf488, 299 0xf30bf488,
298 0x085c87f1, 300 0x99f094bd,
299 0xbd0684b6, 301 0x0007f100,
300 0x0099f094, 302 0x0203f017,
301 0xf80089d0, 303 0xbd0009d0,
302/* 0x013d: mmctx_size */ 304/* 0x0147: mmctx_size */
303/* 0x013f: nv_mmctx_size_loop */ 305 0xbd00f804,
304 0x9894bd00, 306/* 0x0149: nv_mmctx_size_loop */
305 0x85b600e8, 307 0x00e89894,
306 0x0180b61a, 308 0xb61a85b6,
307 0xbb0284b6, 309 0x84b60180,
308 0xe0b60098, 310 0x0098bb02,
309 0x04efb804, 311 0xb804e0b6,
310 0xb9eb1bf4, 312 0x1bf404ef,
311 0x00f8029f, 313 0x029fb9eb,
312/* 0x015c: mmctx_xfer */ 314/* 0x0166: mmctx_xfer */
313 0x083c87f1, 315 0x94bd00f8,
314 0xbd0684b6, 316 0xf10199f0,
315 0x0199f094, 317 0xf0370007,
316 0xf10089d0, 318 0x09d00203,
319 0xf104bd00,
317 0xb6071087, 320 0xb6071087,
318 0x94bd0684, 321 0x94bd0684,
319 0xf405bbfd, 322 0xf405bbfd,
320 0x8bd0090b, 323 0x8bd0090b,
321 0x0099f000, 324 0x0099f000,
322/* 0x0180: mmctx_base_disabled */ 325/* 0x018c: mmctx_base_disabled */
323 0xf405eefd, 326 0xf405eefd,
324 0x8ed00c0b, 327 0x8ed00c0b,
325 0xc08fd080, 328 0xc08fd080,
326/* 0x018f: mmctx_multi_disabled */ 329/* 0x019b: mmctx_multi_disabled */
327 0xb70199f0, 330 0xb70199f0,
328 0xc8010080, 331 0xc8010080,
329 0xb4b600ab, 332 0xb4b600ab,
@@ -331,8 +334,8 @@ uint32_t nvf0_grhub_code[] = {
331 0xb601aec8, 334 0xb601aec8,
332 0xbefd11e4, 335 0xbefd11e4,
333 0x008bd005, 336 0x008bd005,
334/* 0x01a8: mmctx_exec_loop */ 337/* 0x01b4: mmctx_exec_loop */
335/* 0x01a8: mmctx_wait_free */ 338/* 0x01b4: mmctx_wait_free */
336 0xf0008ecf, 339 0xf0008ecf,
337 0x0bf41fe4, 340 0x0bf41fe4,
338 0x00ce98fa, 341 0x00ce98fa,
@@ -341,76 +344,77 @@ uint32_t nvf0_grhub_code[] = {
341 0x04cdb804, 344 0x04cdb804,
342 0xc8e81bf4, 345 0xc8e81bf4,
343 0x1bf402ab, 346 0x1bf402ab,
344/* 0x01c9: mmctx_fini_wait */ 347/* 0x01d5: mmctx_fini_wait */
345 0x008bcf18, 348 0x008bcf18,
346 0xb01fb4f0, 349 0xb01fb4f0,
347 0x1bf410b4, 350 0x1bf410b4,
348 0x02a7f0f7, 351 0x02a7f0f7,
349 0xf4c921f4, 352 0xf4c921f4,
350/* 0x01de: mmctx_stop */ 353/* 0x01ea: mmctx_stop */
351 0xabc81b0e, 354 0xabc81b0e,
352 0x10b4b600, 355 0x10b4b600,
353 0xf00cb9f0, 356 0xf00cb9f0,
354 0x8bd012b9, 357 0x8bd012b9,
355/* 0x01ed: mmctx_stop_wait */ 358/* 0x01f9: mmctx_stop_wait */
356 0x008bcf00, 359 0x008bcf00,
357 0xf412bbc8, 360 0xf412bbc8,
358/* 0x01f6: mmctx_done */ 361/* 0x0202: mmctx_done */
359 0x87f1fa1b, 362 0x94bdfa1b,
360 0x84b6085c, 363 0xf10199f0,
361 0xf094bd06, 364 0xf0170007,
362 0x89d00199, 365 0x09d00203,
363/* 0x0207: strand_wait */ 366 0xf804bd00,
364 0xf900f800, 367/* 0x0215: strand_wait */
365 0x02a7f0a0, 368 0xf0a0f900,
366 0xfcc921f4, 369 0x21f402a7,
367/* 0x0213: strand_pre */ 370 0xf8a0fcc9,
368 0xf100f8a0, 371/* 0x0221: strand_pre */
369 0xf04afc87, 372 0xfc87f100,
370 0x97f00283, 373 0x0283f04a,
371 0x0089d00c, 374 0xd00c97f0,
372 0x020721f5,
373/* 0x0226: strand_post */
374 0x87f100f8,
375 0x83f04afc,
376 0x0d97f002,
377 0xf50089d0,
378 0xf8020721,
379/* 0x0239: strand_set */
380 0xfca7f100,
381 0x02a3f04f,
382 0x0500aba2,
383 0xd00fc7f0,
384 0xc7f000ac,
385 0x00bcd00b,
386 0x020721f5,
387 0xf000aed0,
388 0xbcd00ac7,
389 0x0721f500,
390/* 0x0263: strand_ctx_init */
391 0xf100f802,
392 0xb6083c87,
393 0x94bd0684,
394 0xd00399f0,
395 0x21f50089, 375 0x21f50089,
396 0xe7f00213, 376 0x00f80215,
397 0x3921f503, 377/* 0x0234: strand_post */
378 0x4afc87f1,
379 0xf00283f0,
380 0x89d00d97,
381 0x1521f500,
382/* 0x0247: strand_set */
383 0xf100f802,
384 0xf04ffca7,
385 0xaba202a3,
386 0xc7f00500,
387 0x00acd00f,
388 0xd00bc7f0,
389 0x21f500bc,
390 0xaed00215,
391 0x0ac7f000,
392 0xf500bcd0,
393 0xf8021521,
394/* 0x0271: strand_ctx_init */
395 0xf094bd00,
396 0x07f10399,
397 0x03f03700,
398 0x0009d002,
399 0x21f504bd,
400 0xe7f00221,
401 0x4721f503,
398 0xfca7f102, 402 0xfca7f102,
399 0x02a3f046, 403 0x02a3f046,
400 0x0400aba0, 404 0x0400aba0,
401 0xf040a0d0, 405 0xf040a0d0,
402 0xbcd001c7, 406 0xbcd001c7,
403 0x0721f500, 407 0x1521f500,
404 0x010c9202, 408 0x010c9202,
405 0xf000acd0, 409 0xf000acd0,
406 0xbcd002c7, 410 0xbcd002c7,
407 0x0721f500, 411 0x1521f500,
408 0x2621f502, 412 0x3421f502,
409 0x8087f102, 413 0x8087f102,
410 0x0684b608, 414 0x0684b608,
411 0xb70089cf, 415 0xb70089cf,
412 0x95220080, 416 0x95220080,
413/* 0x02ba: ctx_init_strand_loop */ 417/* 0x02ca: ctx_init_strand_loop */
414 0x8ed008fe, 418 0x8ed008fe,
415 0x408ed000, 419 0x408ed000,
416 0xb6808acf, 420 0xb6808acf,
@@ -419,258 +423,266 @@ uint32_t nvf0_grhub_code[] = {
419 0xb60480b6, 423 0xb60480b6,
420 0x1bf40192, 424 0x1bf40192,
421 0x08e4b6e8, 425 0x08e4b6e8,
422 0xf1f2efbc, 426 0xbdf2efbc,
423 0xb6085c87, 427 0x0399f094,
424 0x94bd0684, 428 0x170007f1,
425 0xd00399f0, 429 0xd00203f0,
426 0x00f80089, 430 0x04bd0009,
427/* 0x02ec: error */ 431/* 0x02fe: error */
428 0xe7f1e0f9, 432 0x07f100f8,
429 0xe4b60814, 433 0x03f00500,
430 0x00efd006, 434 0x000fd002,
431 0x0c1ce7f1, 435 0xf7f004bd,
432 0xf006e4b6, 436 0x0007f101,
433 0xefd001f7, 437 0x0303f007,
434 0xf8e0fc00, 438 0xbd000fd0,
435/* 0x0309: init */ 439/* 0x031b: init */
436 0xfe04bd00, 440 0xbd00f804,
437 0x07fe0004, 441 0x0004fe04,
438 0x0017f100, 442 0xf10007fe,
439 0x0227f012, 443 0xf0120017,
440 0xf10012d0, 444 0x12d00227,
441 0xfe058517, 445 0xb117f100,
442 0x17f10010, 446 0x0010fe05,
443 0x10d00400, 447 0x040017f1,
444 0x0437f1c0, 448 0xf1c010d0,
445 0x0634b604, 449 0xb6040437,
446 0x200327f1, 450 0x27f10634,
447 0xf10032d0, 451 0x32d02003,
448 0xd0200427,
449 0x27f10132,
450 0x32d0200b,
451 0x0c27f102,
452 0x0732d020,
453 0x0c2427f1,
454 0xb90624b6,
455 0x23d00003,
456 0x0427f100, 452 0x0427f100,
457 0x0023f087, 453 0x0132d020,
458 0xb70012d0, 454 0x200b27f1,
459 0xf0010012, 455 0xf10232d0,
460 0x12d00427, 456 0xd0200c27,
461 0x1031f400, 457 0x27f10732,
462 0x9604e7f1, 458 0x24b60c24,
463 0xf440e3f0, 459 0x0003b906,
464 0xf1c76821, 460 0xf10023d0,
465 0x03018090, 461 0xf0870427,
466 0x801ff4f0, 462 0x12d00023,
467 0x17f0020f, 463 0x0012b700,
468 0x041fbb01, 464 0x0427f001,
469 0xf10112b6, 465 0xf40012d0,
470 0xb6040c27, 466 0xe7f11031,
471 0x21d00624, 467 0xe3f09604,
472 0x4021d000, 468 0x6821f440,
473 0x010017f1, 469 0x8090f1c7,
474 0x98000e98, 470 0xf4f00301,
475 0x21f5010f, 471 0x020f801f,
476 0x37f1013d, 472 0xbb0117f0,
477 0x34b60700, 473 0x12b6041f,
478 0x08149506, 474 0x0c27f101,
479 0xd00034d0, 475 0x0624b604,
480 0x30b74034, 476 0xd00021d0,
481 0x1fbb1300, 477 0x17f14021,
482 0x02f5b600, 478 0x0e980100,
483 0xb6003fd0, 479 0x010f9800,
484 0x10b60815, 480 0x014721f5,
485 0x0814b601, 481 0x070037f1,
486 0xf5021fb9, 482 0x950634b6,
487 0xbb026321, 483 0x34d00814,
488 0x0398001f, 484 0x4034d000,
489 0x0047f102, 485 0x130030b7,
490 0x5043f020, 486 0xb6001fbb,
491/* 0x03e4: init_gpc */ 487 0x3fd002f5,
492 0x08044ea0, 488 0x0815b600,
493 0xf4021fb9, 489 0xb60110b6,
494 0x4ea08d21, 490 0x1fb90814,
495 0xf4bd010c, 491 0x7121f502,
496 0xa08d21f4, 492 0x001fbb02,
497 0xf401044e, 493 0xf1020398,
498 0x4ea08d21, 494 0xf0200047,
499 0xf7f00100, 495/* 0x03f6: init_gpc */
496 0x4ea05043,
497 0x1fb90804,
500 0x8d21f402, 498 0x8d21f402,
501 0x08004ea0, 499 0x010c4ea0,
502/* 0x040c: init_gpc_wait */ 500 0x21f4f4bd,
503 0xc86821f4, 501 0x044ea08d,
504 0x0bf41fff, 502 0x8d21f401,
505 0x044ea0fa, 503 0x01004ea0,
506 0x6821f408, 504 0xf402f7f0,
507 0xb7001fbb, 505 0x4ea08d21,
508 0xb6800040, 506/* 0x041e: init_gpc_wait */
509 0x1bf40132, 507 0x21f40800,
510 0x0027f1be, 508 0x1fffc868,
511 0x0624b608, 509 0xa0fa0bf4,
512 0xb74021d0, 510 0xf408044e,
513 0xbd080020, 511 0x1fbb6821,
512 0x0040b700,
513 0x0132b680,
514 0xf1be1bf4,
515 0xf0010007,
516 0x01d00203,
517 0xbd04bd00,
514 0x1f19f014, 518 0x1f19f014,
515/* 0x043f: main */ 519 0x300007f1,
516 0xf40021d0, 520 0xd00203f0,
517 0x28f40031, 521 0x04bd0001,
518 0x10d7f000, 522/* 0x0458: main */
519 0xf43921f4, 523 0xf40031f4,
520 0xe4b1f401, 524 0xd7f00028,
521 0x1bf54001, 525 0x3921f410,
522 0x87f100d1, 526 0xb1f401f4,
523 0x84b6083c, 527 0xf54001e4,
524 0xf094bd06, 528 0xbd00de1b,
525 0x89d00499, 529 0x0499f094,
526 0x0017f100, 530 0x370007f1,
527 0x0614b60b, 531 0xd00203f0,
528 0xcf4012cf, 532 0x04bd0009,
529 0x13c80011, 533 0x0b0017f1,
530 0x7e0bf41f, 534 0xcf0614b6,
535 0x11cf4012,
536 0x1f13c800,
537 0x00870bf5,
531 0xf41f23c8, 538 0xf41f23c8,
532 0x20f95a0b, 539 0x20f9620b,
533 0xf10212b9, 540 0xbd0212b9,
534 0xb6083c87,
535 0x94bd0684,
536 0xd00799f0,
537 0x32f40089,
538 0x0231f401,
539 0x07c721f5,
540 0x085c87f1,
541 0xbd0684b6,
542 0x0799f094, 541 0x0799f094,
543 0xfc0089d0, 542 0x370007f1,
544 0x3c87f120, 543 0xd00203f0,
545 0x0684b608, 544 0x04bd0009,
546 0x99f094bd, 545 0xf40132f4,
547 0x0089d006, 546 0x21f50231,
548 0xf50131f4, 547 0x94bd0801,
549 0xf107c721, 548 0xf10799f0,
550 0xb6085c87, 549 0xf0170007,
551 0x94bd0684, 550 0x09d00203,
552 0xd00699f0, 551 0xfc04bd00,
553 0x0ef40089, 552 0xf094bd20,
554/* 0x04d5: chsw_prev_no_next */ 553 0x07f10699,
554 0x03f03700,
555 0x0009d002,
556 0x31f404bd,
557 0x0121f501,
558 0xf094bd08,
559 0x07f10699,
560 0x03f01700,
561 0x0009d002,
562 0x0ef404bd,
563/* 0x04f9: chsw_prev_no_next */
555 0xb920f931, 564 0xb920f931,
556 0x32f40212, 565 0x32f40212,
557 0x0232f401, 566 0x0232f401,
558 0x07c721f5, 567 0x080121f5,
559 0x17f120fc, 568 0x17f120fc,
560 0x14b60b00, 569 0x14b60b00,
561 0x0012d006, 570 0x0012d006,
562/* 0x04f3: chsw_no_prev */ 571/* 0x0517: chsw_no_prev */
563 0xc8130ef4, 572 0xc8130ef4,
564 0x0bf41f23, 573 0x0bf41f23,
565 0x0131f40d, 574 0x0131f40d,
566 0xf50232f4, 575 0xf50232f4,
567/* 0x0503: chsw_done */ 576/* 0x0527: chsw_done */
568 0xf107c721, 577 0xf1080121,
569 0xb60b0c17, 578 0xb60b0c17,
570 0x27f00614, 579 0x27f00614,
571 0x0012d001, 580 0x0012d001,
572 0x085c87f1,
573 0xbd0684b6,
574 0x0499f094,
575 0xf50089d0,
576/* 0x0523: main_not_ctx_switch */
577 0xb0ff200e,
578 0x1bf401e4,
579 0x02f2b90d,
580 0x075b21f5,
581/* 0x0533: main_not_ctx_chan */
582 0xb0420ef4,
583 0x1bf402e4,
584 0x3c87f12e,
585 0x0684b608,
586 0x99f094bd, 581 0x99f094bd,
587 0x0089d007, 582 0x0007f104,
583 0x0203f017,
584 0xbd0009d0,
585 0x130ef504,
586/* 0x0549: main_not_ctx_switch */
587 0x01e4b0ff,
588 0xb90d1bf4,
589 0x21f502f2,
590 0x0ef40795,
591/* 0x0559: main_not_ctx_chan */
592 0x02e4b046,
593 0xbd321bf4,
594 0x0799f094,
595 0x370007f1,
596 0xd00203f0,
597 0x04bd0009,
588 0xf40132f4, 598 0xf40132f4,
589 0x21f50232, 599 0x21f50232,
590 0x87f107c7, 600 0x94bd0801,
591 0x84b6085c, 601 0xf10799f0,
592 0xf094bd06, 602 0xf0170007,
593 0x89d00799, 603 0x09d00203,
594 0x110ef400, 604 0xf404bd00,
595/* 0x0564: main_not_ctx_save */ 605/* 0x058e: main_not_ctx_save */
596 0xf010ef94, 606 0xef94110e,
597 0x21f501f5, 607 0x01f5f010,
598 0x0ef502ec, 608 0x02fe21f5,
599/* 0x0572: main_done */ 609 0xfec00ef5,
600 0x17f1fed1, 610/* 0x059c: main_done */
601 0x14b60820, 611 0x29f024bd,
602 0xf024bd06, 612 0x0007f11f,
603 0x12d01f29, 613 0x0203f030,
604 0xbe0ef500, 614 0xbd0002d0,
605/* 0x0585: ih */ 615 0xab0ef504,
616/* 0x05b1: ih */
606 0xfe80f9fe, 617 0xfe80f9fe,
607 0x80f90188, 618 0x80f90188,
608 0xa0f990f9, 619 0xa0f990f9,
609 0xd0f9b0f9, 620 0xd0f9b0f9,
610 0xf0f9e0f9, 621 0xf0f9e0f9,
611 0xc4800acf, 622 0x0acf04bd,
612 0x0bf404ab, 623 0x04abc480,
613 0x00b7f11d, 624 0xf11d0bf4,
614 0x10d7f019, 625 0xf01900b7,
615 0xcf40becf, 626 0xbecf10d7,
616 0x21f400bf, 627 0x00bfcf40,
617 0x00b0b704, 628 0xb70421f4,
618 0x01e7f004, 629 0xf00400b0,
619/* 0x05bb: ih_no_fifo */ 630 0xbed001e7,
620 0xe400bed0, 631/* 0x05e9: ih_no_fifo */
621 0xf40100ab, 632 0x00abe400,
622 0xd7f00d0b, 633 0x0d0bf401,
623 0x01e7f110, 634 0xf110d7f0,
624 0x0421f440, 635 0xf44001e7,
625/* 0x05cc: ih_no_ctxsw */ 636/* 0x05fa: ih_no_ctxsw */
626 0x0104b7f1, 637 0xb7f10421,
627 0xabffb0bd, 638 0xb0bd0104,
628 0x0d0bf4b4, 639 0xf4b4abff,
629 0x0c1ca7f1, 640 0xa7f10d0b,
630 0xd006a4b6, 641 0xa4b60c1c,
631/* 0x05e2: ih_no_other */ 642 0x00abd006,
632 0x0ad000ab, 643/* 0x0610: ih_no_other */
633 0xfcf0fc40, 644 0xfc400ad0,
634 0xfcd0fce0, 645 0xfce0fcf0,
635 0xfca0fcb0, 646 0xfcb0fcd0,
636 0xfe80fc90, 647 0xfc90fca0,
637 0x80fc0088, 648 0x0088fe80,
638 0xf80032f4, 649 0x32f480fc,
639/* 0x05fd: ctx_4170s */ 650/* 0x062b: ctx_4170s */
640 0x70e7f101, 651 0xf101f800,
641 0x40e3f041, 652 0xf04170e7,
642 0xf410f5f0, 653 0xf5f040e3,
643 0x00f88d21, 654 0x8d21f410,
644/* 0x060c: ctx_4170w */ 655/* 0x063a: ctx_4170w */
645 0x4170e7f1,
646 0xf440e3f0,
647 0xf4f06821,
648 0xf31bf410,
649/* 0x061e: ctx_redswitch */
650 0xe7f100f8, 656 0xe7f100f8,
651 0xe4b60614, 657 0xe3f04170,
652 0x70f7f106, 658 0x6821f440,
653 0x00efd002, 659 0xf410f4f0,
654/* 0x062f: ctx_redswitch_delay */ 660 0x00f8f31b,
655 0xb608f7f0, 661/* 0x064c: ctx_redswitch */
656 0x1bf401f2, 662 0x0614e7f1,
657 0x70f7f1fd, 663 0xf106e4b6,
658 0x00efd007, 664 0xd00270f7,
659/* 0x063e: ctx_86c */ 665 0xf7f000ef,
660 0xe7f100f8, 666/* 0x065d: ctx_redswitch_delay */
661 0xe4b6086c, 667 0x01f2b608,
662 0x00efd006, 668 0xf1fd1bf4,
663 0x8a14e7f1, 669 0xd00770f7,
664 0xf440e3f0, 670 0x00f800ef,
665 0xe7f18d21, 671/* 0x066c: ctx_86c */
666 0xe3f0a86c, 672 0x086ce7f1,
667 0x8d21f441, 673 0xd006e4b6,
668/* 0x065e: ctx_load */ 674 0xe7f100ef,
669 0x87f100f8, 675 0xe3f08a14,
670 0x84b6083c, 676 0x8d21f440,
671 0xf094bd06, 677 0xa86ce7f1,
672 0x89d00599, 678 0xf441e3f0,
673 0x0ca7f000, 679 0x00f88d21,
680/* 0x068c: ctx_load */
681 0x99f094bd,
682 0x0007f105,
683 0x0203f037,
684 0xbd0009d0,
685 0x0ca7f004,
674 0xf1c921f4, 686 0xf1c921f4,
675 0xb60a2417, 687 0xb60a2417,
676 0x10d00614, 688 0x10d00614,
@@ -680,163 +692,215 @@ uint32_t nvf0_grhub_code[] = {
680 0xb60a0c17, 692 0xb60a0c17,
681 0x47f00614, 693 0x47f00614,
682 0x0012d007, 694 0x0012d007,
683/* 0x0697: ctx_chan_wait_0 */ 695/* 0x06c7: ctx_chan_wait_0 */
684 0xcf4014d0, 696 0xcf4014d0,
685 0x44f04014, 697 0x44f04014,
686 0xfa1bf41f, 698 0xfa1bf41f,
687 0xfe0032d0, 699 0xfe0032d0,
688 0x2af0000b, 700 0x2af0000b,
689 0x0424b61f, 701 0x0424b61f,
690 0xf10220b6, 702 0xbd0220b6,
691 0xb6083c87,
692 0x94bd0684,
693 0xd00899f0,
694 0x17f10089,
695 0x14b60a04,
696 0x0012d006,
697 0x0a2017f1,
698 0xf00614b6,
699 0x23f10227,
700 0x12d08000,
701 0x1017f000,
702 0x020027f1,
703 0xfa0223f0,
704 0x03f80512,
705 0x085c87f1,
706 0xbd0684b6,
707 0x0899f094, 703 0x0899f094,
708 0x980089d0, 704 0x370007f1,
705 0xd00203f0,
706 0x04bd0009,
707 0x0a0417f1,
708 0xd00614b6,
709 0x17f10012,
710 0x14b60a20,
711 0x0227f006,
712 0x800023f1,
713 0xf00012d0,
714 0x27f11017,
715 0x23f00200,
716 0x0512fa02,
717 0x94bd03f8,
718 0xf10899f0,
719 0xf0170007,
720 0x09d00203,
721 0x9804bd00,
709 0x14b68101, 722 0x14b68101,
710 0x80029818, 723 0x80029818,
711 0xfd0825b6, 724 0xfd0825b6,
712 0x01800512, 725 0x01800512,
713 0x3c87f116, 726 0xf094bd16,
714 0x0684b608, 727 0x07f10999,
715 0x99f094bd, 728 0x03f03700,
716 0x0089d009, 729 0x0009d002,
717 0x0a0427f1, 730 0x27f104bd,
718 0xd00624b6, 731 0x24b60a04,
719 0x27f00021, 732 0x0021d006,
720 0x2017f101, 733 0xf10127f0,
721 0x0614b60a, 734 0xb60a2017,
722 0xf10012d0, 735 0x12d00614,
736 0x0017f100,
737 0x0613f001,
738 0xf80501fa,
739 0xf094bd03,
740 0x07f10999,
741 0x03f01700,
742 0x0009d002,
743 0x94bd04bd,
744 0xf10599f0,
745 0xf0170007,
746 0x09d00203,
747 0xf804bd00,
748/* 0x0795: ctx_chan */
749 0x8c21f500,
750 0x0ca7f006,
751 0xf1c921f4,
752 0xb60a1017,
753 0x27f00614,
754 0x0012d005,
755/* 0x07ac: ctx_chan_wait */
756 0xfd0012cf,
757 0x1bf40522,
758/* 0x07b7: ctx_mmio_exec */
759 0x9800f8fa,
760 0x27f14103,
761 0x24b60a04,
762 0x0023d006,
763/* 0x07c6: ctx_mmio_loop */
764 0x34c434bd,
765 0x0f1bf4ff,
766 0x020057f1,
767 0xfa0653f0,
768 0x03f80535,
769/* 0x07d8: ctx_mmio_pull */
770 0x98804e98,
771 0x21f4814f,
772 0x0830b68d,
773 0xf40112b6,
774/* 0x07ea: ctx_mmio_done */
775 0x0398df1b,
776 0x0023d016,
777 0xf1400080,
723 0xf0010017, 778 0xf0010017,
724 0x01fa0613, 779 0x01fa0613,
725 0xf103f805, 780 0xf803f806,
726 0xb6085c87, 781/* 0x0801: ctx_xfer */
727 0x94bd0684, 782 0x00f7f100,
728 0xd00999f0, 783 0x06f4b60c,
729 0x87f10089, 784 0xd004e7f0,
730 0x84b6085c, 785/* 0x080e: ctx_xfer_idle */
731 0xf094bd06, 786 0xfecf80fe,
732 0x89d00599, 787 0x00e4f100,
733/* 0x075b: ctx_chan */ 788 0xf91bf420,
734 0xf500f800, 789 0xf40611f4,
735 0xf0065e21, 790/* 0x081e: ctx_xfer_pre */
736 0x21f40ca7, 791 0xf7f00d02,
737 0x1017f1c9, 792 0x6c21f510,
738 0x0614b60a, 793 0x1c11f406,
739 0xd00527f0, 794/* 0x0828: ctx_xfer_pre_load */
740/* 0x0772: ctx_chan_wait */ 795 0xf502f7f0,
741 0x12cf0012, 796 0xf5062b21,
742 0x0522fd00, 797 0xf5063a21,
743 0xf8fa1bf4, 798 0xbd064c21,
744/* 0x077d: ctx_mmio_exec */ 799 0x2b21f5f4,
745 0x41039800, 800 0x8c21f506,
746 0x0a0427f1, 801/* 0x0841: ctx_xfer_exec */
802 0x16019806,
803 0x041427f1,
747 0xd00624b6, 804 0xd00624b6,
748 0x34bd0023, 805 0xe7f10020,
749/* 0x078c: ctx_mmio_loop */ 806 0xe3f0a500,
750 0xf4ff34c4, 807 0x021fb941,
751 0x57f10f1b,
752 0x53f00200,
753 0x0535fa06,
754/* 0x079e: ctx_mmio_pull */
755 0x4e9803f8,
756 0x814f9880,
757 0xb68d21f4, 808 0xb68d21f4,
758 0x12b60830, 809 0xfcf004e0,
759 0xdf1bf401, 810 0x022cf001,
760/* 0x07b0: ctx_mmio_done */ 811 0xfd0124b6,
761 0xd0160398, 812 0x21f405f2,
762 0x00800023, 813 0xfc17f18d,
763 0x0017f140, 814 0x0213f04a,
764 0x0613f001, 815 0xd00c27f0,
765 0xf80601fa, 816 0x21f50012,
766/* 0x07c7: ctx_xfer */ 817 0x27f10215,
767 0xf100f803, 818 0x23f047fc,
768 0xb60c00f7, 819 0x0020d002,
769 0xe7f006f4, 820 0xb6012cf0,
770 0x80fed004, 821 0x12d00320,
771/* 0x07d4: ctx_xfer_idle */ 822 0x01acf000,
772 0xf100fecf, 823 0xf006a5f0,
773 0xf42000e4, 824 0x0c9800b7,
774 0x11f4f91b, 825 0x010d9800,
775 0x0d02f406, 826 0xf500e7f0,
776/* 0x07e4: ctx_xfer_pre */ 827 0xf0016621,
777 0xf510f7f0, 828 0x21f508a7,
778 0xf4063e21, 829 0x21f50109,
779/* 0x07ee: ctx_xfer_pre_load */ 830 0x01f40215,
780 0xf7f01c11, 831 0x0ca7f022,
781 0xfd21f502, 832 0xf1c921f4,
782 0x0c21f505, 833 0xb60a1017,
783 0x1e21f506, 834 0x27f00614,
835 0x0012d005,
836/* 0x08c8: ctx_xfer_post_save_wait */
837 0xfd0012cf,
838 0x1bf40522,
839 0x2e02f4fa,
840/* 0x08d4: ctx_xfer_post */
841 0xf502f7f0,
842 0xbd062b21,
843 0x6c21f5f4,
844 0x3421f506,
845 0x3a21f502,
784 0xf5f4bd06, 846 0xf5f4bd06,
785 0xf505fd21, 847 0xf4062b21,
786/* 0x0807: ctx_xfer_exec */ 848 0x01981011,
787 0x98065e21, 849 0x0511fd40,
788 0x27f11601, 850 0xf5070bf4,
789 0x24b60414, 851/* 0x08ff: ctx_xfer_no_post_mmio */
790 0x0020d006, 852/* 0x08ff: ctx_xfer_done */
791 0xa500e7f1, 853 0xf807b721,
792 0xb941e3f0, 854 0x00000000,
793 0x21f4021f, 855 0x00000000,
794 0x04e0b68d, 856 0x00000000,
795 0xf001fcf0, 857 0x00000000,
796 0x24b6022c, 858 0x00000000,
797 0x05f2fd01, 859 0x00000000,
798 0xf18d21f4, 860 0x00000000,
799 0xf04afc17, 861 0x00000000,
800 0x27f00213, 862 0x00000000,
801 0x0012d00c, 863 0x00000000,
802 0x020721f5, 864 0x00000000,
803 0x47fc27f1, 865 0x00000000,
804 0xd00223f0, 866 0x00000000,
805 0x2cf00020, 867 0x00000000,
806 0x0320b601, 868 0x00000000,
807 0xf00012d0, 869 0x00000000,
808 0xa5f001ac, 870 0x00000000,
809 0x00b7f006, 871 0x00000000,
810 0x98000c98, 872 0x00000000,
811 0xe7f0010d, 873 0x00000000,
812 0x5c21f500, 874 0x00000000,
813 0x08a7f001, 875 0x00000000,
814 0x010321f5, 876 0x00000000,
815 0x020721f5, 877 0x00000000,
816 0xf02201f4, 878 0x00000000,
817 0x21f40ca7, 879 0x00000000,
818 0x1017f1c9, 880 0x00000000,
819 0x0614b60a, 881 0x00000000,
820 0xd00527f0, 882 0x00000000,
821/* 0x088e: ctx_xfer_post_save_wait */ 883 0x00000000,
822 0x12cf0012, 884 0x00000000,
823 0x0522fd00, 885 0x00000000,
824 0xf4fa1bf4, 886 0x00000000,
825/* 0x089a: ctx_xfer_post */ 887 0x00000000,
826 0xf7f02e02, 888 0x00000000,
827 0xfd21f502, 889 0x00000000,
828 0xf5f4bd05, 890 0x00000000,
829 0xf5063e21, 891 0x00000000,
830 0xf5022621, 892 0x00000000,
831 0xbd060c21, 893 0x00000000,
832 0xfd21f5f4, 894 0x00000000,
833 0x1011f405, 895 0x00000000,
834 0xfd400198, 896 0x00000000,
835 0x0bf40511, 897 0x00000000,
836 0x7d21f507, 898 0x00000000,
837/* 0x08c5: ctx_xfer_no_post_mmio */ 899 0x00000000,
838/* 0x08c5: ctx_xfer_done */ 900 0x00000000,
839 0x0000f807, 901 0x00000000,
902 0x00000000,
903 0x00000000,
840 0x00000000, 904 0x00000000,
841 0x00000000, 905 0x00000000,
842 0x00000000, 906 0x00000000,
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/macros.fuc b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/macros.fuc
index c74642827021..33a5a82eccbd 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/macros.fuc
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/macros.fuc
@@ -29,6 +29,28 @@
29#define GK100 0xe0 29#define GK100 0xe0
30#define GK110 0xf0 30#define GK110 0xf0
31 31
32#define NV_PGRAPH_FECS_SIGNAL 0x409400
33#if CHIPSET < GK110
34#define NV_PGRAPH_FECS_CC_SCRATCH_VAL(n) ((n) * 4 + 0x409800)
35#define NV_PGRAPH_FECS_CC_SCRATCH_SET(n) ((n) * 4 + 0x409820)
36#define NV_PGRAPH_FECS_CC_SCRATCH_CLR(n) ((n) * 4 + 0x409840)
37#else
38#define NV_PGRAPH_FECS_CC_SCRATCH_VAL(n) ((n) * 4 + 0x409800)
39#define NV_PGRAPH_FECS_CC_SCRATCH_CLR(n) ((n) * 4 + 0x409840)
40#define NV_PGRAPH_FECS_CC_SCRATCH_SET(n) ((n) * 4 + 0x4098c0)
41#endif
42#define NV_PGRAPH_FECS_INTR_UP_SET 0x409c1c
43
44#if CHIPSET < GK110
45#define NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_VAL(n) ((n) * 4 + 0x41a800)
46#define NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_SET(n) ((n) * 4 + 0x41a820)
47#define NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_CLR(n) ((n) * 4 + 0x41a840)
48#else
49#define NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_VAL(n) ((n) * 4 + 0x41a800)
50#define NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_CLR(n) ((n) * 4 + 0x41a840)
51#define NV_PGRAPH_GPCX_GPCCS_CC_SCRATCH_SET(n) ((n) * 4 + 0x41a8c0)
52#endif
53
32#define mmctx_data(r,c) .b32 (((c - 1) << 26) | r) 54#define mmctx_data(r,c) .b32 (((c - 1) << 26) | r)
33#define queue_init .skip 72 // (2 * 4) + ((8 * 4) * 2) 55#define queue_init .skip 72 // (2 * 4) + ((8 * 4) * 2)
34 56
@@ -43,16 +65,25 @@
43#define T_LCHAN 8 65#define T_LCHAN 8
44#define T_LCTXH 9 66#define T_LCTXH 9
45 67
68#define nv_mkmm(rv,r) /*
69*/ movw rv ((r) & 0x0000fffc) /*
70*/ sethi rv ((r) & 0x00ff0000)
71#define nv_mkio(rv,r,i) /*
72*/ nv_mkmm(rv, (((r) & 0xffc) << 6) | ((i) << 2))
73
74#define nv_iord(rv,r,i) /*
75*/ nv_mkio(rv,r,i) /*
76*/ iord rv I[rv]
77#define nv_iowr(r,i,rv) /*
78*/ nv_mkio($r0,r,i) /*
79*/ iowr I[$r0] rv /*
80*/ clear b32 $r0
81
46#define trace_set(bit) /* 82#define trace_set(bit) /*
47*/ mov $r8 0x83c /*
48*/ shl b32 $r8 6 /*
49*/ clear b32 $r9 /* 83*/ clear b32 $r9 /*
50*/ bset $r9 bit /* 84*/ bset $r9 bit /*
51*/ iowr I[$r8 + 0x000] $r9 85*/ nv_iowr(NV_PGRAPH_FECS_CC_SCRATCH_SET(7), 0, $r9)
52
53#define trace_clr(bit) /* 86#define trace_clr(bit) /*
54*/ mov $r8 0x85c /*
55*/ shl b32 $r8 6 /*
56*/ clear b32 $r9 /* 87*/ clear b32 $r9 /*
57*/ bset $r9 bit /* 88*/ bset $r9 bit /*
58*/ iowr I[$r8 + 0x000] $r9 89*/ nv_iowr(NV_PGRAPH_FECS_CC_SCRATCH_CLR(7), 0, $r9)