Lines Matching +full:0 +full:x34000000

144 	u32 addr = 0x110974, i;  in gk104_ram_train()
146 ram_mask(fuc, 0x10f910, mask, data); in gk104_ram_train()
147 ram_mask(fuc, 0x10f914, mask, data); in gk104_ram_train()
149 for (i = 0; (data & 0x80000000) && i < ram->parts; addr += 0x1000, i++) { in gk104_ram_train()
152 ram_wait(fuc, addr, 0x0000000f, 0x00000000, 500000); in gk104_ram_train()
166 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00001100); in r1373f4_init()
167 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00000010); in r1373f4_init()
169 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010010); in r1373f4_init()
172 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000000); in r1373f4_init()
173 ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000000); in r1373f4_init()
176 if ((ram_rd32(fuc, 0x132024) & 0xffffffff) != rcoef || in r1373f4_init()
177 (ram_rd32(fuc, 0x132034) & 0x0000ffff) != runk1) { in r1373f4_init()
178 ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); in r1373f4_init()
179 ram_mask(fuc, 0x132020, 0x00000001, 0x00000000); in r1373f4_init()
180 ram_wr32(fuc, 0x137320, 0x00000000); in r1373f4_init()
181 ram_mask(fuc, 0x132030, 0xffff0000, runk0); in r1373f4_init()
182 ram_mask(fuc, 0x132034, 0x0000ffff, runk1); in r1373f4_init()
183 ram_wr32(fuc, 0x132024, rcoef); in r1373f4_init()
184 ram_mask(fuc, 0x132028, 0x00080000, 0x00080000); in r1373f4_init()
185 ram_mask(fuc, 0x132020, 0x00000001, 0x00000001); in r1373f4_init()
186 ram_wait(fuc, 0x137390, 0x00020000, 0x00020000, 64000); in r1373f4_init()
187 ram_mask(fuc, 0x132028, 0x00080000, 0x00000000); in r1373f4_init()
192 ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); in r1373f4_init()
193 ram_mask(fuc, 0x132000, 0x80000000, 0x80000000); in r1373f4_init()
194 ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); in r1373f4_init()
195 ram_mask(fuc, 0x132004, 0x103fffff, mcoef); in r1373f4_init()
196 ram_mask(fuc, 0x132000, 0x00000001, 0x00000001); in r1373f4_init()
197 ram_wait(fuc, 0x137390, 0x00000002, 0x00000002, 64000); in r1373f4_init()
198 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00001100); in r1373f4_init()
200 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010100); in r1373f4_init()
203 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00000010); in r1373f4_init()
215 tmp = ram_rd32(fuc, 0x1373ec) & ~0x00030000; in r1373f4_fini()
216 ram_wr32(fuc, 0x1373ec, tmp | (v1 << 16)); in r1373f4_fini()
217 ram_mask(fuc, 0x1373f0, (~ram->mode & 3), 0x00000000); in r1373f4_fini()
219 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000002); in r1373f4_fini()
220 ram_mask(fuc, 0x1373f4, 0x00001100, 0x00000000); in r1373f4_fini()
222 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000001); in r1373f4_fini()
223 ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); in r1373f4_fini()
225 ram_mask(fuc, 0x10f800, 0x00000030, (v0 ^ v1) << 4); in r1373f4_fini()
235 u32 addr = 0x110000 + (reg->addr & 0xfff); in gk104_ram_nuts()
240 for (i = 0; i < 16; i++, addr += 0x1000) { in gk104_ram_nuts()
260 ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000); in gk104_ram_calc_gddr5()
264 ram_wr32(fuc, 0x62c000, 0x0f0f0000); in gk104_ram_calc_gddr5()
267 if ((ram->base.mr[1] & 0x03c) != 0x030) { in gk104_ram_calc_gddr5()
268 ram_mask(fuc, mr[1], 0x03c, ram->base.mr[1] & 0x03c); in gk104_ram_calc_gddr5()
269 ram_nuts(ram, mr[1], 0x03c, ram->base.mr1_nuts & 0x03c, 0x000); in gk104_ram_calc_gddr5()
273 u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[1]); in gk104_ram_calc_gddr5()
280 ram_mask(fuc, 0x10f200, 0x00000800, 0x00000000); in gk104_ram_calc_gddr5()
282 gk104_ram_train(fuc, 0x01020000, 0x000c0000); in gk104_ram_calc_gddr5()
284 ram_wr32(fuc, 0x10f210, 0x00000000); /* REFRESH_AUTO = 0 */ in gk104_ram_calc_gddr5()
286 ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ in gk104_ram_calc_gddr5()
289 ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); in gk104_ram_calc_gddr5()
290 ram_wr32(fuc, 0x10f314, 0x00000001); /* PRECHARGE */ in gk104_ram_calc_gddr5()
291 ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); in gk104_ram_calc_gddr5()
292 ram_wr32(fuc, 0x10f090, 0x00000061); in gk104_ram_calc_gddr5()
293 ram_wr32(fuc, 0x10f090, 0xc000007f); in gk104_ram_calc_gddr5()
296 ram_wr32(fuc, 0x10f698, 0x00000000); in gk104_ram_calc_gddr5()
297 ram_wr32(fuc, 0x10f69c, 0x00000000); in gk104_ram_calc_gddr5()
304 mask = 0x800f07e0; in gk104_ram_calc_gddr5()
305 data = 0x00030000; in gk104_ram_calc_gddr5()
306 if (ram_rd32(fuc, 0x10f978) & 0x00800000) in gk104_ram_calc_gddr5()
307 data |= 0x00040000; in gk104_ram_calc_gddr5()
310 data |= 0x800807e0; in gk104_ram_calc_gddr5()
312 case 3: data &= ~0x00000040; break; in gk104_ram_calc_gddr5()
313 case 2: data &= ~0x00000100; break; in gk104_ram_calc_gddr5()
314 case 1: data &= ~0x80000000; break; in gk104_ram_calc_gddr5()
315 case 0: data &= ~0x00000400; break; in gk104_ram_calc_gddr5()
319 case 3: data &= ~0x00000020; break; in gk104_ram_calc_gddr5()
320 case 2: data &= ~0x00000080; break; in gk104_ram_calc_gddr5()
321 case 1: data &= ~0x00080000; break; in gk104_ram_calc_gddr5()
322 case 0: data &= ~0x00000200; break; in gk104_ram_calc_gddr5()
327 mask |= 0x03000000; in gk104_ram_calc_gddr5()
329 mask |= 0x00002000; in gk104_ram_calc_gddr5()
331 mask |= 0x00004000; in gk104_ram_calc_gddr5()
333 mask |= 0x00000003; in gk104_ram_calc_gddr5()
335 mask |= 0x34000000; in gk104_ram_calc_gddr5()
336 if (ram_rd32(fuc, 0x10f978) & 0x00800000) in gk104_ram_calc_gddr5()
337 mask |= 0x40000000; in gk104_ram_calc_gddr5()
339 ram_mask(fuc, 0x10f824, mask, data); in gk104_ram_calc_gddr5()
341 ram_mask(fuc, 0x132040, 0x00010000, 0x00000000); in gk104_ram_calc_gddr5()
344 ram_mask(fuc, 0x10f808, 0x00080000, 0x00000000); in gk104_ram_calc_gddr5()
345 ram_mask(fuc, 0x10f200, 0x18008000, 0x00008000); in gk104_ram_calc_gddr5()
346 ram_mask(fuc, 0x10f800, 0x00000000, 0x00000004); in gk104_ram_calc_gddr5()
347 ram_mask(fuc, 0x10f830, 0x00008000, 0x01040010); in gk104_ram_calc_gddr5()
348 ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); in gk104_ram_calc_gddr5()
350 ram_mask(fuc, 0x1373f0, 0x00000002, 0x00000001); in gk104_ram_calc_gddr5()
352 ram_mask(fuc, 0x10f830, 0x00c00000, 0x00240001); in gk104_ram_calc_gddr5()
360 u32 temp = ram_mask(fuc, gpioMV, 0x3000, fuc->r_funcMV[mv]); in gk104_ram_calc_gddr5()
369 ram_mask(fuc, 0x132040, 0x00010000, 0x00010000); in gk104_ram_calc_gddr5()
374 if (0 /*XXX: Titan */) in gk104_ram_calc_gddr5()
375 ram_mask(fuc, 0x10f200, 0x18000000, 0x18000000); in gk104_ram_calc_gddr5()
376 ram_mask(fuc, 0x10f800, 0x00000004, 0x00000000); in gk104_ram_calc_gddr5()
377 ram_mask(fuc, 0x1373f0, 0x00000000, 0x00000002); in gk104_ram_calc_gddr5()
378 ram_mask(fuc, 0x10f830, 0x00800001, 0x00408010); in gk104_ram_calc_gddr5()
381 ram_mask(fuc, 0x10f808, 0x00000000, 0x00080000); in gk104_ram_calc_gddr5()
382 ram_mask(fuc, 0x10f200, 0x00808000, 0x00800000); in gk104_ram_calc_gddr5()
385 ram_mask(fuc, 0x10f800, 0x00000004, 0x00000000); in gk104_ram_calc_gddr5()
392 ram_mask(fuc, 0x10f670, 0x80000000, 0x80000000); in gk104_ram_calc_gddr5()
395 ram_wr32(fuc, 0x10f65c, 0x00000011 * next->bios.rammap_11_11_0c); in gk104_ram_calc_gddr5()
396 ram_wr32(fuc, 0x10f6b8, 0x01010101 * next->bios.ramcfg_11_09); in gk104_ram_calc_gddr5()
397 ram_wr32(fuc, 0x10f6bc, 0x01010101 * next->bios.ramcfg_11_09); in gk104_ram_calc_gddr5()
400 ram_wr32(fuc, 0x10f698, 0x01010101 * next->bios.ramcfg_11_04); in gk104_ram_calc_gddr5()
401 ram_wr32(fuc, 0x10f69c, 0x01010101 * next->bios.ramcfg_11_04); in gk104_ram_calc_gddr5()
404 ram_wr32(fuc, 0x10f698, 0x00000000); in gk104_ram_calc_gddr5()
405 ram_wr32(fuc, 0x10f69c, 0x00000000); in gk104_ram_calc_gddr5()
409 u32 data = 0x01000100 * next->bios.ramcfg_11_04; in gk104_ram_calc_gddr5()
410 ram_nuke(fuc, 0x10f694); in gk104_ram_calc_gddr5()
411 ram_mask(fuc, 0x10f694, 0xff00ff00, data); in gk104_ram_calc_gddr5()
415 data = 0x00000080; in gk104_ram_calc_gddr5()
417 data = 0x00000000; in gk104_ram_calc_gddr5()
418 ram_mask(fuc, 0x10f60c, 0x00000080, data); in gk104_ram_calc_gddr5()
420 mask = 0x00070000; in gk104_ram_calc_gddr5()
421 data = 0x00000000; in gk104_ram_calc_gddr5()
423 data |= 0x03000000; in gk104_ram_calc_gddr5()
425 data |= 0x00002000; in gk104_ram_calc_gddr5()
427 data |= 0x00004000; in gk104_ram_calc_gddr5()
429 data |= 0x00000003; in gk104_ram_calc_gddr5()
431 data |= 0x74000000; in gk104_ram_calc_gddr5()
432 ram_mask(fuc, 0x10f824, mask, data); in gk104_ram_calc_gddr5()
435 data = 0x00000000; in gk104_ram_calc_gddr5()
437 data = 0x00001000; in gk104_ram_calc_gddr5()
438 ram_mask(fuc, 0x10f200, 0x00001000, data); in gk104_ram_calc_gddr5()
440 if (ram_rd32(fuc, 0x10f670) & 0x80000000) { in gk104_ram_calc_gddr5()
442 ram_mask(fuc, 0x10f670, 0x80000000, 0x00000000); in gk104_ram_calc_gddr5()
446 data = 0x00100000; in gk104_ram_calc_gddr5()
448 data = 0x00000000; in gk104_ram_calc_gddr5()
449 ram_mask(fuc, 0x10f82c, 0x00100000, data); in gk104_ram_calc_gddr5()
451 data = 0x00000000; in gk104_ram_calc_gddr5()
453 data |= 0x00002000; in gk104_ram_calc_gddr5()
455 data |= 0x00001000; in gk104_ram_calc_gddr5()
457 data |= 0x00004000; in gk104_ram_calc_gddr5()
458 ram_mask(fuc, 0x10f830, 0x00007000, data); in gk104_ram_calc_gddr5()
461 ram_mask(fuc, 0x10f248, 0xffffffff, next->bios.timing[10]); in gk104_ram_calc_gddr5()
462 ram_mask(fuc, 0x10f290, 0xffffffff, next->bios.timing[0]); in gk104_ram_calc_gddr5()
463 ram_mask(fuc, 0x10f294, 0xffffffff, next->bios.timing[1]); in gk104_ram_calc_gddr5()
464 ram_mask(fuc, 0x10f298, 0xffffffff, next->bios.timing[2]); in gk104_ram_calc_gddr5()
465 ram_mask(fuc, 0x10f29c, 0xffffffff, next->bios.timing[3]); in gk104_ram_calc_gddr5()
466 ram_mask(fuc, 0x10f2a0, 0xffffffff, next->bios.timing[4]); in gk104_ram_calc_gddr5()
467 ram_mask(fuc, 0x10f2a4, 0xffffffff, next->bios.timing[5]); in gk104_ram_calc_gddr5()
468 ram_mask(fuc, 0x10f2a8, 0xffffffff, next->bios.timing[6]); in gk104_ram_calc_gddr5()
469 ram_mask(fuc, 0x10f2ac, 0xffffffff, next->bios.timing[7]); in gk104_ram_calc_gddr5()
470 ram_mask(fuc, 0x10f2cc, 0xffffffff, next->bios.timing[8]); in gk104_ram_calc_gddr5()
471 ram_mask(fuc, 0x10f2e8, 0xffffffff, next->bios.timing[9]); in gk104_ram_calc_gddr5()
473 data = mask = 0x00000000; in gk104_ram_calc_gddr5()
476 data |= 0x01000000; in gk104_ram_calc_gddr5()
477 mask |= 0x01000000; in gk104_ram_calc_gddr5()
479 ram_mask(fuc, 0x10f200, mask, data); in gk104_ram_calc_gddr5()
481 data = mask = 0x00000000; in gk104_ram_calc_gddr5()
484 mask |= 0x00000300; in gk104_ram_calc_gddr5()
488 data |= 0x70000000; in gk104_ram_calc_gddr5()
489 mask |= 0x70000000; in gk104_ram_calc_gddr5()
491 ram_mask(fuc, 0x10f604, mask, data); in gk104_ram_calc_gddr5()
493 data = mask = 0x00000000; in gk104_ram_calc_gddr5()
496 mask |= 0x70000000; in gk104_ram_calc_gddr5()
500 data |= 0x00000100; in gk104_ram_calc_gddr5()
501 mask |= 0x00000100; in gk104_ram_calc_gddr5()
503 ram_mask(fuc, 0x10f614, mask, data); in gk104_ram_calc_gddr5()
505 data = mask = 0x00000000; in gk104_ram_calc_gddr5()
508 mask |= 0x70000000; in gk104_ram_calc_gddr5()
512 data |= 0x00000100; in gk104_ram_calc_gddr5()
513 mask |= 0x00000100; in gk104_ram_calc_gddr5()
515 ram_mask(fuc, 0x10f610, mask, data); in gk104_ram_calc_gddr5()
517 mask = 0x33f00000; in gk104_ram_calc_gddr5()
518 data = 0x00000000; in gk104_ram_calc_gddr5()
520 data |= 0x20200000; in gk104_ram_calc_gddr5()
522 data |= 0x12800000; in gk104_ram_calc_gddr5()
529 mask |= 0x00000020; in gk104_ram_calc_gddr5()
531 data |= 0x00000020; in gk104_ram_calc_gddr5()
532 mask |= 0x00000004; in gk104_ram_calc_gddr5()
535 mask |= 0x40000020; in gk104_ram_calc_gddr5()
536 data |= 0x00000004; in gk104_ram_calc_gddr5()
539 ram_mask(fuc, 0x10f808, mask, data); in gk104_ram_calc_gddr5()
541 ram_wr32(fuc, 0x10f870, 0x11111111 * next->bios.ramcfg_11_03_0f); in gk104_ram_calc_gddr5()
543 data = mask = 0x00000000; in gk104_ram_calc_gddr5()
546 mask |= 0x00000003; in gk104_ram_calc_gddr5()
550 data |= 0x00000004; in gk104_ram_calc_gddr5()
551 mask |= 0x00000004; in gk104_ram_calc_gddr5()
554 if ((ram_mask(fuc, 0x100770, mask, data) & mask & 4) != (data & 4)) { in gk104_ram_calc_gddr5()
555 ram_mask(fuc, 0x100750, 0x00000008, 0x00000008); in gk104_ram_calc_gddr5()
556 ram_wr32(fuc, 0x100710, 0x00000000); in gk104_ram_calc_gddr5()
557 ram_wait(fuc, 0x100710, 0x80000000, 0x80000000, 200000); in gk104_ram_calc_gddr5()
562 data |= 0x80000000; in gk104_ram_calc_gddr5()
563 ram_mask(fuc, 0x100778, 0x00000700, data); in gk104_ram_calc_gddr5()
565 ram_mask(fuc, 0x10f250, 0x000003f0, next->bios.timing_20_2c_003f << 4); in gk104_ram_calc_gddr5()
566 data = (next->bios.timing[10] & 0x7f000000) >> 24; in gk104_ram_calc_gddr5()
569 ram_mask(fuc, 0x10f24c, 0x7f000000, data << 24); in gk104_ram_calc_gddr5()
570 ram_mask(fuc, 0x10f224, 0x001f0000, next->bios.timing_20_30_f8 << 16); in gk104_ram_calc_gddr5()
572 ram_mask(fuc, 0x10fec4, 0x041e0f07, next->bios.timing_20_31_0800 << 26 | in gk104_ram_calc_gddr5()
576 ram_mask(fuc, 0x10fec8, 0x00000027, next->bios.timing_20_31_8000 << 5 | in gk104_ram_calc_gddr5()
579 ram_wr32(fuc, 0x10f090, 0x4000007e); in gk104_ram_calc_gddr5()
581 ram_wr32(fuc, 0x10f314, 0x00000001); /* PRECHARGE */ in gk104_ram_calc_gddr5()
582 ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ in gk104_ram_calc_gddr5()
583 ram_wr32(fuc, 0x10f210, 0x80000000); /* REFRESH_AUTO = 1 */ in gk104_ram_calc_gddr5()
586 u32 temp = ram_mask(fuc, 0x10f294, 0xff000000, 0x24000000); in gk104_ram_calc_gddr5()
587 gk104_ram_train(fuc, 0xbc0e0000, 0xa4010000); /*XXX*/ in gk104_ram_calc_gddr5()
589 ram_wr32(fuc, 0x10f294, temp); in gk104_ram_calc_gddr5()
592 ram_mask(fuc, mr[3], 0xfff, ram->base.mr[3]); in gk104_ram_calc_gddr5()
593 ram_wr32(fuc, mr[0], ram->base.mr[0]); in gk104_ram_calc_gddr5()
594 ram_mask(fuc, mr[8], 0xfff, ram->base.mr[8]); in gk104_ram_calc_gddr5()
596 ram_mask(fuc, mr[1], 0xfff, ram->base.mr[1]); in gk104_ram_calc_gddr5()
597 ram_mask(fuc, mr[5], 0xfff, ram->base.mr[5] & ~0x004); /* LP3 later */ in gk104_ram_calc_gddr5()
598 ram_mask(fuc, mr[6], 0xfff, ram->base.mr[6]); in gk104_ram_calc_gddr5()
599 ram_mask(fuc, mr[7], 0xfff, ram->base.mr[7]); in gk104_ram_calc_gddr5()
601 if (vc == 0 && ram_have(fuc, gpio2E)) { in gk104_ram_calc_gddr5()
602 u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[0]); in gk104_ram_calc_gddr5()
609 ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); in gk104_ram_calc_gddr5()
610 ram_wr32(fuc, 0x10f318, 0x00000001); /* NOP? */ in gk104_ram_calc_gddr5()
611 ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); in gk104_ram_calc_gddr5()
613 ram_nuts(ram, 0x10f200, 0x18808800, 0x00000000, 0x18808800); in gk104_ram_calc_gddr5()
615 data = ram_rd32(fuc, 0x10f978); in gk104_ram_calc_gddr5()
616 data &= ~0x00046144; in gk104_ram_calc_gddr5()
617 data |= 0x0000000b; in gk104_ram_calc_gddr5()
620 data |= 0x0000200c; in gk104_ram_calc_gddr5()
622 data |= 0x00000000; in gk104_ram_calc_gddr5()
624 data |= 0x00040044; in gk104_ram_calc_gddr5()
626 ram_wr32(fuc, 0x10f978, data); in gk104_ram_calc_gddr5()
629 data = ram_rd32(fuc, 0x10f830) | 0x00000001; in gk104_ram_calc_gddr5()
630 ram_wr32(fuc, 0x10f830, data); in gk104_ram_calc_gddr5()
634 data = 0x88020000; in gk104_ram_calc_gddr5()
636 data |= 0x10000000; in gk104_ram_calc_gddr5()
638 data |= 0x00080000; in gk104_ram_calc_gddr5()
640 data = 0xa40e0000; in gk104_ram_calc_gddr5()
642 gk104_ram_train(fuc, 0xbc0f0000, data); in gk104_ram_calc_gddr5()
647 ram_mask(fuc, 0x10f800, 0x00000004, 0x00000004); in gk104_ram_calc_gddr5()
651 if (ram_mask(fuc, mr[5], 0x004, ram->base.mr[5]) != ram->base.mr[5]) in gk104_ram_calc_gddr5()
655 ram_mask(fuc, 0x10f830, 0x01000000, 0x01000000); in gk104_ram_calc_gddr5()
656 ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); in gk104_ram_calc_gddr5()
660 gk104_ram_train(fuc, 0x80020000, 0x01000000); in gk104_ram_calc_gddr5()
665 ram_wr32(fuc, 0x62c000, 0x0f0f0f00); in gk104_ram_calc_gddr5()
668 data = 0x00000800; in gk104_ram_calc_gddr5()
670 data = 0x00000000; in gk104_ram_calc_gddr5()
671 ram_mask(fuc, 0x10f200, 0x00000800, data); in gk104_ram_calc_gddr5()
672 ram_nuts(ram, 0x10f200, 0x18808800, data, 0x18808800); in gk104_ram_calc_gddr5()
673 return 0; in gk104_ram_calc_gddr5()
683 ram_nuke(fuc, mr[0]); in nvkm_sddr3_dll_reset()
684 ram_mask(fuc, mr[0], 0x100, 0x100); in nvkm_sddr3_dll_reset()
685 ram_mask(fuc, mr[0], 0x100, 0x000); in nvkm_sddr3_dll_reset()
693 if (!(mr1_old & 0x1)) { in nvkm_sddr3_dll_disable()
694 ram_mask(fuc, mr[1], 0x1, 0x1); in nvkm_sddr3_dll_disable()
711 ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000); in gk104_ram_calc_sddr3()
715 ram_wr32(fuc, 0x62c000, 0x0f0f0000); in gk104_ram_calc_sddr3()
718 u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[1]); in gk104_ram_calc_sddr3()
725 ram_mask(fuc, 0x10f200, 0x00000800, 0x00000000); in gk104_ram_calc_sddr3()
727 ram_mask(fuc, 0x10f808, 0x04000000, 0x04000000); in gk104_ram_calc_sddr3()
729 ram_wr32(fuc, 0x10f314, 0x00000001); /* PRECHARGE */ in gk104_ram_calc_sddr3()
734 ram_wr32(fuc, 0x10f210, 0x00000000); /* REFRESH_AUTO = 0 */ in gk104_ram_calc_sddr3()
735 ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ in gk104_ram_calc_sddr3()
736 ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); in gk104_ram_calc_sddr3()
737 ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ in gk104_ram_calc_sddr3()
738 ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); in gk104_ram_calc_sddr3()
741 ram_wr32(fuc, 0x10f090, 0x00000060); in gk104_ram_calc_sddr3()
742 ram_wr32(fuc, 0x10f090, 0xc000007e); in gk104_ram_calc_sddr3()
749 mask = 0x00010000; in gk104_ram_calc_sddr3()
750 data = 0x00010000; in gk104_ram_calc_sddr3()
753 mask |= 0x800807e0; in gk104_ram_calc_sddr3()
754 data |= 0x800807e0; in gk104_ram_calc_sddr3()
756 case 3: data &= ~0x00000040; break; in gk104_ram_calc_sddr3()
757 case 2: data &= ~0x00000100; break; in gk104_ram_calc_sddr3()
758 case 1: data &= ~0x80000000; break; in gk104_ram_calc_sddr3()
759 case 0: data &= ~0x00000400; break; in gk104_ram_calc_sddr3()
763 case 3: data &= ~0x00000020; break; in gk104_ram_calc_sddr3()
764 case 2: data &= ~0x00000080; break; in gk104_ram_calc_sddr3()
765 case 1: data &= ~0x00080000; break; in gk104_ram_calc_sddr3()
766 case 0: data &= ~0x00000200; break; in gk104_ram_calc_sddr3()
771 mask |= 0x03000000; in gk104_ram_calc_sddr3()
773 mask |= 0x00002000; in gk104_ram_calc_sddr3()
775 mask |= 0x00004000; in gk104_ram_calc_sddr3()
777 mask |= 0x00000003; in gk104_ram_calc_sddr3()
779 mask |= 0x14000000; in gk104_ram_calc_sddr3()
780 ram_mask(fuc, 0x10f824, mask, data); in gk104_ram_calc_sddr3()
782 ram_mask(fuc, 0x132040, 0x00010000, 0x00000000); in gk104_ram_calc_sddr3()
784 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010010); in gk104_ram_calc_sddr3()
785 data = ram_rd32(fuc, 0x1373ec) & ~0x00030000; in gk104_ram_calc_sddr3()
787 ram_wr32(fuc, 0x1373ec, data); in gk104_ram_calc_sddr3()
788 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000000); in gk104_ram_calc_sddr3()
789 ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000000); in gk104_ram_calc_sddr3()
792 if ((ram_rd32(fuc, 0x132024) & 0xffffffff) != rcoef || in gk104_ram_calc_sddr3()
793 (ram_rd32(fuc, 0x132034) & 0x0000ffff) != runk1) { in gk104_ram_calc_sddr3()
794 ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); in gk104_ram_calc_sddr3()
795 ram_mask(fuc, 0x132020, 0x00000001, 0x00000000); in gk104_ram_calc_sddr3()
796 ram_wr32(fuc, 0x137320, 0x00000000); in gk104_ram_calc_sddr3()
797 ram_mask(fuc, 0x132030, 0xffff0000, runk0); in gk104_ram_calc_sddr3()
798 ram_mask(fuc, 0x132034, 0x0000ffff, runk1); in gk104_ram_calc_sddr3()
799 ram_wr32(fuc, 0x132024, rcoef); in gk104_ram_calc_sddr3()
800 ram_mask(fuc, 0x132028, 0x00080000, 0x00080000); in gk104_ram_calc_sddr3()
801 ram_mask(fuc, 0x132020, 0x00000001, 0x00000001); in gk104_ram_calc_sddr3()
802 ram_wait(fuc, 0x137390, 0x00020000, 0x00020000, 64000); in gk104_ram_calc_sddr3()
803 ram_mask(fuc, 0x132028, 0x00080000, 0x00000000); in gk104_ram_calc_sddr3()
806 ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000010); in gk104_ram_calc_sddr3()
807 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000001); in gk104_ram_calc_sddr3()
808 ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); in gk104_ram_calc_sddr3()
811 u32 temp = ram_mask(fuc, gpioMV, 0x3000, fuc->r_funcMV[mv]); in gk104_ram_calc_sddr3()
820 ram_mask(fuc, 0x132040, 0x00010000, 0x00010000); in gk104_ram_calc_sddr3()
826 ram_mask(fuc, 0x10f670, 0x80000000, 0x80000000); in gk104_ram_calc_sddr3()
829 ram_wr32(fuc, 0x10f65c, 0x00000011 * next->bios.rammap_11_11_0c); in gk104_ram_calc_sddr3()
830 ram_wr32(fuc, 0x10f6b8, 0x01010101 * next->bios.ramcfg_11_09); in gk104_ram_calc_sddr3()
831 ram_wr32(fuc, 0x10f6bc, 0x01010101 * next->bios.ramcfg_11_09); in gk104_ram_calc_sddr3()
833 mask = 0x00010000; in gk104_ram_calc_sddr3()
834 data = 0x00000000; in gk104_ram_calc_sddr3()
836 data |= 0x03000000; in gk104_ram_calc_sddr3()
838 data |= 0x00002000; in gk104_ram_calc_sddr3()
840 data |= 0x00004000; in gk104_ram_calc_sddr3()
842 data |= 0x00000003; in gk104_ram_calc_sddr3()
844 data |= 0x14000000; in gk104_ram_calc_sddr3()
845 ram_mask(fuc, 0x10f824, mask, data); in gk104_ram_calc_sddr3()
849 data = 0x00100000; in gk104_ram_calc_sddr3()
851 data = 0x00000000; in gk104_ram_calc_sddr3()
852 ram_mask(fuc, 0x10f82c, 0x00100000, data); in gk104_ram_calc_sddr3()
855 ram_mask(fuc, 0x10f248, 0xffffffff, next->bios.timing[10]); in gk104_ram_calc_sddr3()
856 ram_mask(fuc, 0x10f290, 0xffffffff, next->bios.timing[0]); in gk104_ram_calc_sddr3()
857 ram_mask(fuc, 0x10f294, 0xffffffff, next->bios.timing[1]); in gk104_ram_calc_sddr3()
858 ram_mask(fuc, 0x10f298, 0xffffffff, next->bios.timing[2]); in gk104_ram_calc_sddr3()
859 ram_mask(fuc, 0x10f29c, 0xffffffff, next->bios.timing[3]); in gk104_ram_calc_sddr3()
860 ram_mask(fuc, 0x10f2a0, 0xffffffff, next->bios.timing[4]); in gk104_ram_calc_sddr3()
861 ram_mask(fuc, 0x10f2a4, 0xffffffff, next->bios.timing[5]); in gk104_ram_calc_sddr3()
862 ram_mask(fuc, 0x10f2a8, 0xffffffff, next->bios.timing[6]); in gk104_ram_calc_sddr3()
863 ram_mask(fuc, 0x10f2ac, 0xffffffff, next->bios.timing[7]); in gk104_ram_calc_sddr3()
864 ram_mask(fuc, 0x10f2cc, 0xffffffff, next->bios.timing[8]); in gk104_ram_calc_sddr3()
865 ram_mask(fuc, 0x10f2e8, 0xffffffff, next->bios.timing[9]); in gk104_ram_calc_sddr3()
867 mask = 0x33f00000; in gk104_ram_calc_sddr3()
868 data = 0x00000000; in gk104_ram_calc_sddr3()
870 data |= 0x20200000; in gk104_ram_calc_sddr3()
872 data |= 0x12800000; in gk104_ram_calc_sddr3()
879 mask |= 0x00000020; in gk104_ram_calc_sddr3()
881 data |= 0x00000020; in gk104_ram_calc_sddr3()
882 mask |= 0x08000004; in gk104_ram_calc_sddr3()
884 data |= 0x04000000; in gk104_ram_calc_sddr3()
886 mask |= 0x44000020; in gk104_ram_calc_sddr3()
887 data |= 0x08000004; in gk104_ram_calc_sddr3()
890 ram_mask(fuc, 0x10f808, mask, data); in gk104_ram_calc_sddr3()
892 ram_wr32(fuc, 0x10f870, 0x11111111 * next->bios.ramcfg_11_03_0f); in gk104_ram_calc_sddr3()
894 ram_mask(fuc, 0x10f250, 0x000003f0, next->bios.timing_20_2c_003f << 4); in gk104_ram_calc_sddr3()
896 data = (next->bios.timing[10] & 0x7f000000) >> 24; in gk104_ram_calc_sddr3()
899 ram_mask(fuc, 0x10f24c, 0x7f000000, data << 24); in gk104_ram_calc_sddr3()
901 ram_mask(fuc, 0x10f224, 0x001f0000, next->bios.timing_20_30_f8 << 16); in gk104_ram_calc_sddr3()
903 ram_wr32(fuc, 0x10f090, 0x4000007f); in gk104_ram_calc_sddr3()
906 ram_wr32(fuc, 0x10f314, 0x00000001); /* PRECHARGE */ in gk104_ram_calc_sddr3()
907 ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ in gk104_ram_calc_sddr3()
908 ram_wr32(fuc, 0x10f210, 0x80000000); /* REFRESH_AUTO = 1 */ in gk104_ram_calc_sddr3()
912 ram_mask(fuc, mr[1], 0x1, 0x0); in gk104_ram_calc_sddr3()
916 ram_mask(fuc, mr[2], 0x00000fff, ram->base.mr[2]); in gk104_ram_calc_sddr3()
917 ram_mask(fuc, mr[1], 0xffffffff, ram->base.mr[1]); in gk104_ram_calc_sddr3()
918 ram_wr32(fuc, mr[0], ram->base.mr[0]); in gk104_ram_calc_sddr3()
926 if (vc == 0 && ram_have(fuc, gpio2E)) { in gk104_ram_calc_sddr3()
927 u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[0]); in gk104_ram_calc_sddr3()
935 ram_mask(fuc, 0x10f830, 0x01000000, 0x01000000); in gk104_ram_calc_sddr3()
936 ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); in gk104_ram_calc_sddr3()
939 ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); in gk104_ram_calc_sddr3()
940 ram_wr32(fuc, 0x10f318, 0x00000001); /* NOP? */ in gk104_ram_calc_sddr3()
941 ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); in gk104_ram_calc_sddr3()
947 ram_wr32(fuc, 0x62c000, 0x0f0f0f00); in gk104_ram_calc_sddr3()
950 data = 0x00000800; in gk104_ram_calc_sddr3()
952 data = 0x00000000; in gk104_ram_calc_sddr3()
953 ram_mask(fuc, 0x10f200, 0x00000800, data); in gk104_ram_calc_sddr3()
954 return 0; in gk104_ram_calc_sddr3()
973 return 0; in gk104_ram_calc_data()
1001 for (p_ref = 0x7; p_ref >= 0x5; --p_ref) { in gk104_pll_calc_hiclk()
1002 for (n_ref = 0x25; n_ref <= 0x2b; ++n_ref) { in gk104_pll_calc_hiclk()
1005 cur_clk = gk104_calc_pll_output(0, 1, n_ref, p_ref, crystal); in gk104_pll_calc_hiclk()
1008 - gk104_calc_pll_output(0xf000, 1, cur_N, 1, cur_clk); in gk104_pll_calc_hiclk()
1020 cur_err = gk104_calc_pll_output(0xf000, 1, cur_N, 1, cur_clk) in gk104_pll_calc_hiclk()
1053 ram->from = ram_rd32(fuc, 0x1373f4) & 0x0000000f; in gk104_ram_calc_xits()
1069 if (ret <= 0) { in gk104_ram_calc_xits()
1080 if (ret <= 0) { in gk104_ram_calc_xits()
1086 for (i = 0; i < ARRAY_SIZE(fuc->r_mr); i++) { in gk104_ram_calc_xits()
1095 if (ret == 0) in gk104_ram_calc_xits()
1099 ret = nvkm_gddr5_calc(&ram->base, ram->pnuts != 0); in gk104_ram_calc_xits()
1100 if (ret == 0) in gk104_ram_calc_xits()
1171 if (mask = 0, data = 0, ram->diff.rammap_11_0a_03fe) { in gk104_ram_prog_0()
1173 mask |= 0x001ff000; in gk104_ram_prog_0()
1177 mask |= 0x000001ff; in gk104_ram_prog_0()
1179 nvkm_mask(device, 0x10f468, mask, data); in gk104_ram_prog_0()
1181 if (mask = 0, data = 0, ram->diff.rammap_11_0a_0400) { in gk104_ram_prog_0()
1183 mask |= 0x00000001; in gk104_ram_prog_0()
1185 nvkm_mask(device, 0x10f420, mask, data); in gk104_ram_prog_0()
1187 if (mask = 0, data = 0, ram->diff.rammap_11_0a_0800) { in gk104_ram_prog_0()
1189 mask |= 0x00000001; in gk104_ram_prog_0()
1191 nvkm_mask(device, 0x10f430, mask, data); in gk104_ram_prog_0()
1193 if (mask = 0, data = 0, ram->diff.rammap_11_0b_01f0) { in gk104_ram_prog_0()
1195 mask |= 0x0000001f; in gk104_ram_prog_0()
1197 nvkm_mask(device, 0x10f400, mask, data); in gk104_ram_prog_0()
1199 if (mask = 0, data = 0, ram->diff.rammap_11_0b_0200) { in gk104_ram_prog_0()
1201 mask |= 0x00000200; in gk104_ram_prog_0()
1203 nvkm_mask(device, 0x10f410, mask, data); in gk104_ram_prog_0()
1205 if (mask = 0, data = 0, ram->diff.rammap_11_0d) { in gk104_ram_prog_0()
1207 mask |= 0x00ff0000; in gk104_ram_prog_0()
1211 mask |= 0x0000ff00; in gk104_ram_prog_0()
1213 nvkm_mask(device, 0x10f440, mask, data); in gk104_ram_prog_0()
1215 if (mask = 0, data = 0, ram->diff.rammap_11_0e) { in gk104_ram_prog_0()
1217 mask |= 0x0000ff00; in gk104_ram_prog_0()
1221 mask |= 0x00000080; in gk104_ram_prog_0()
1225 mask |= 0x00000020; in gk104_ram_prog_0()
1227 nvkm_mask(device, 0x10f444, mask, data); in gk104_ram_prog_0()
1288 case 0x00: value = &train->type00; break; in gk104_ram_train_type()
1289 case 0x01: value = &train->type01; break; in gk104_ram_train_type()
1290 case 0x04: value = &train->type04; break; in gk104_ram_train_type()
1291 case 0x06: value = &train->type06; break; in gk104_ram_train_type()
1292 case 0x07: value = &train->type07; break; in gk104_ram_train_type()
1293 case 0x08: value = &train->type08; break; in gk104_ram_train_type()
1294 case 0x09: value = &train->type09; break; in gk104_ram_train_type()
1296 return 0; in gk104_ram_train_type()
1309 if (!(data = nvbios_M0209Sp(bios, i, 0, &ver, &hdr, value))) in gk104_ram_train_type()
1317 if (!(data = nvbios_M0209Sp(bios, M0209E.v03, 0, &ver, &hdr, in gk104_ram_train_type()
1321 for (i = 0; i < ARRAY_SIZE(value->data); i++) in gk104_ram_train_type()
1328 return 0; in gk104_ram_train_type()
1338 if ((train->mask & 0x03d3) != 0x03d3) { in gk104_ram_train_init_0()
1343 for (i = 0; i < 0x30; i++) { in gk104_ram_train_init_0()
1344 for (j = 0; j < 8; j += 4) { in gk104_ram_train_init_0()
1345 nvkm_wr32(device, 0x10f968 + j, 0x00000000 | (i << 8)); in gk104_ram_train_init_0()
1346 nvkm_wr32(device, 0x10f920 + j, 0x00000000 | in gk104_ram_train_init_0()
1349 nvkm_wr32(device, 0x10f918 + j, train->type00.data[i]); in gk104_ram_train_init_0()
1350 nvkm_wr32(device, 0x10f920 + j, 0x00000100 | in gk104_ram_train_init_0()
1353 nvkm_wr32(device, 0x10f918 + j, train->type01.data[i]); in gk104_ram_train_init_0()
1357 for (j = 0; j < 8; j += 4) { in gk104_ram_train_init_0()
1358 for (i = 0; i < 0x100; i++) { in gk104_ram_train_init_0()
1359 nvkm_wr32(device, 0x10f968 + j, i); in gk104_ram_train_init_0()
1360 nvkm_wr32(device, 0x10f900 + j, train->type04.data[i]); in gk104_ram_train_init_0()
1364 return 0; in gk104_ram_train_init_0()
1377 for (i = 0; i < 0x100; i++) { in gk104_ram_train_init()
1388 ret = 0; in gk104_ram_train_init()
1413 * (likely selected by 0x10f65c's lower bits?), and the in gk104_ram_init()
1418 if (!data || hdr < 0x15) in gk104_ram_init()
1421 cnt = nvbios_rd08(bios, data + 0x14); /* guess at count */ in gk104_ram_init()
1422 data = nvbios_rd32(bios, data + 0x10); /* guess u32... */ in gk104_ram_init()
1423 save = nvkm_rd32(device, 0x10f65c) & 0x000000f0; in gk104_ram_init()
1424 for (i = 0; i < cnt; i++, data += 4) { in gk104_ram_init()
1426 nvkm_mask(device, 0x10f65c, 0x000000f0, i << 4); in gk104_ram_init()
1430 nvkm_mask(device, 0x10f65c, 0x000000f0, save); in gk104_ram_init()
1431 nvkm_mask(device, 0x10f584, 0x11000000, 0x00000000); in gk104_ram_init()
1432 nvkm_wr32(device, 0x10ecc0, 0xffffffff); in gk104_ram_init()
1433 nvkm_mask(device, 0x10f160, 0x00000010, 0x00000010); in gk104_ram_init()
1458 if (ret = -ENOSYS, ver != 0x11 || hdr < 0x12) in gk104_ram_ctor_data()
1466 if (ret = -ENOSYS, ver != 0x11 || hdr < 0x0a) in gk104_ram_ctor_data()
1470 if (cfg->bios.ramcfg_timing != 0xff) { in gk104_ram_ctor_data()
1476 if (ret = -ENOSYS, ver != 0x20 || hdr < 0x33) in gk104_ram_ctor_data()
1481 if (ret = 0, i == 0) in gk104_ram_ctor_data()
1548 ram->parts = nvkm_rd32(device, 0x022438); in gk104_ram_new_()
1549 ram->pmask = nvkm_rd32(device, 0x022554); in gk104_ram_new_()
1550 ram->pnuts = 0; in gk104_ram_new_()
1551 for (i = 0, tmp = 0; i < ram->parts; i++) { in gk104_ram_new_()
1553 u32 cfg1 = nvkm_rd32(device, 0x110204 + (i * 0x1000)); in gk104_ram_new_()
1573 for (i = 0; !ret; i++) { in gk104_ram_new_()
1582 ret = nvbios_pll_parse(bios, 0x0c, &ram->fuc.refpll); in gk104_ram_new_()
1588 ret = nvbios_pll_parse(bios, 0x04, &ram->fuc.mempll); in gk104_ram_new_()
1595 ret = nvkm_gpio_find(device->gpio, 0, 0x18, DCB_GPIO_UNUSED, &gpio); in gk104_ram_new_()
1596 if (ret == 0) { in gk104_ram_new_()
1597 ram->fuc.r_gpioMV = ramfuc_reg(0x00d610 + (gpio.line * 0x04)); in gk104_ram_new_()
1598 ram->fuc.r_funcMV[0] = (gpio.log[0] ^ 2) << 12; in gk104_ram_new_()
1602 ret = nvkm_gpio_find(device->gpio, 0, 0x2e, DCB_GPIO_UNUSED, &gpio); in gk104_ram_new_()
1603 if (ret == 0) { in gk104_ram_new_()
1604 ram->fuc.r_gpio2E = ramfuc_reg(0x00d610 + (gpio.line * 0x04)); in gk104_ram_new_()
1605 ram->fuc.r_func2E[0] = (gpio.log[0] ^ 2) << 12; in gk104_ram_new_()
1609 ram->fuc.r_gpiotrig = ramfuc_reg(0x00d604); in gk104_ram_new_()
1611 ram->fuc.r_0x132020 = ramfuc_reg(0x132020); in gk104_ram_new_()
1612 ram->fuc.r_0x132028 = ramfuc_reg(0x132028); in gk104_ram_new_()
1613 ram->fuc.r_0x132024 = ramfuc_reg(0x132024); in gk104_ram_new_()
1614 ram->fuc.r_0x132030 = ramfuc_reg(0x132030); in gk104_ram_new_()
1615 ram->fuc.r_0x132034 = ramfuc_reg(0x132034); in gk104_ram_new_()
1616 ram->fuc.r_0x132000 = ramfuc_reg(0x132000); in gk104_ram_new_()
1617 ram->fuc.r_0x132004 = ramfuc_reg(0x132004); in gk104_ram_new_()
1618 ram->fuc.r_0x132040 = ramfuc_reg(0x132040); in gk104_ram_new_()
1620 ram->fuc.r_0x10f248 = ramfuc_reg(0x10f248); in gk104_ram_new_()
1621 ram->fuc.r_0x10f290 = ramfuc_reg(0x10f290); in gk104_ram_new_()
1622 ram->fuc.r_0x10f294 = ramfuc_reg(0x10f294); in gk104_ram_new_()
1623 ram->fuc.r_0x10f298 = ramfuc_reg(0x10f298); in gk104_ram_new_()
1624 ram->fuc.r_0x10f29c = ramfuc_reg(0x10f29c); in gk104_ram_new_()
1625 ram->fuc.r_0x10f2a0 = ramfuc_reg(0x10f2a0); in gk104_ram_new_()
1626 ram->fuc.r_0x10f2a4 = ramfuc_reg(0x10f2a4); in gk104_ram_new_()
1627 ram->fuc.r_0x10f2a8 = ramfuc_reg(0x10f2a8); in gk104_ram_new_()
1628 ram->fuc.r_0x10f2ac = ramfuc_reg(0x10f2ac); in gk104_ram_new_()
1629 ram->fuc.r_0x10f2cc = ramfuc_reg(0x10f2cc); in gk104_ram_new_()
1630 ram->fuc.r_0x10f2e8 = ramfuc_reg(0x10f2e8); in gk104_ram_new_()
1631 ram->fuc.r_0x10f250 = ramfuc_reg(0x10f250); in gk104_ram_new_()
1632 ram->fuc.r_0x10f24c = ramfuc_reg(0x10f24c); in gk104_ram_new_()
1633 ram->fuc.r_0x10fec4 = ramfuc_reg(0x10fec4); in gk104_ram_new_()
1634 ram->fuc.r_0x10fec8 = ramfuc_reg(0x10fec8); in gk104_ram_new_()
1635 ram->fuc.r_0x10f604 = ramfuc_reg(0x10f604); in gk104_ram_new_()
1636 ram->fuc.r_0x10f614 = ramfuc_reg(0x10f614); in gk104_ram_new_()
1637 ram->fuc.r_0x10f610 = ramfuc_reg(0x10f610); in gk104_ram_new_()
1638 ram->fuc.r_0x100770 = ramfuc_reg(0x100770); in gk104_ram_new_()
1639 ram->fuc.r_0x100778 = ramfuc_reg(0x100778); in gk104_ram_new_()
1640 ram->fuc.r_0x10f224 = ramfuc_reg(0x10f224); in gk104_ram_new_()
1642 ram->fuc.r_0x10f870 = ramfuc_reg(0x10f870); in gk104_ram_new_()
1643 ram->fuc.r_0x10f698 = ramfuc_reg(0x10f698); in gk104_ram_new_()
1644 ram->fuc.r_0x10f694 = ramfuc_reg(0x10f694); in gk104_ram_new_()
1645 ram->fuc.r_0x10f6b8 = ramfuc_reg(0x10f6b8); in gk104_ram_new_()
1646 ram->fuc.r_0x10f808 = ramfuc_reg(0x10f808); in gk104_ram_new_()
1647 ram->fuc.r_0x10f670 = ramfuc_reg(0x10f670); in gk104_ram_new_()
1648 ram->fuc.r_0x10f60c = ramfuc_reg(0x10f60c); in gk104_ram_new_()
1649 ram->fuc.r_0x10f830 = ramfuc_reg(0x10f830); in gk104_ram_new_()
1650 ram->fuc.r_0x1373ec = ramfuc_reg(0x1373ec); in gk104_ram_new_()
1651 ram->fuc.r_0x10f800 = ramfuc_reg(0x10f800); in gk104_ram_new_()
1652 ram->fuc.r_0x10f82c = ramfuc_reg(0x10f82c); in gk104_ram_new_()
1654 ram->fuc.r_0x10f978 = ramfuc_reg(0x10f978); in gk104_ram_new_()
1655 ram->fuc.r_0x10f910 = ramfuc_reg(0x10f910); in gk104_ram_new_()
1656 ram->fuc.r_0x10f914 = ramfuc_reg(0x10f914); in gk104_ram_new_()
1660 ram->fuc.r_mr[0] = ramfuc_reg(0x10f300); in gk104_ram_new_()
1661 ram->fuc.r_mr[1] = ramfuc_reg(0x10f330); in gk104_ram_new_()
1662 ram->fuc.r_mr[2] = ramfuc_reg(0x10f334); in gk104_ram_new_()
1663 ram->fuc.r_mr[3] = ramfuc_reg(0x10f338); in gk104_ram_new_()
1664 ram->fuc.r_mr[4] = ramfuc_reg(0x10f33c); in gk104_ram_new_()
1665 ram->fuc.r_mr[5] = ramfuc_reg(0x10f340); in gk104_ram_new_()
1666 ram->fuc.r_mr[6] = ramfuc_reg(0x10f344); in gk104_ram_new_()
1667 ram->fuc.r_mr[7] = ramfuc_reg(0x10f348); in gk104_ram_new_()
1668 ram->fuc.r_mr[8] = ramfuc_reg(0x10f354); in gk104_ram_new_()
1669 ram->fuc.r_mr[15] = ramfuc_reg(0x10f34c); in gk104_ram_new_()
1672 ram->fuc.r_mr[0] = ramfuc_reg(0x10f300); in gk104_ram_new_()
1673 ram->fuc.r_mr[1] = ramfuc_reg(0x10f304); in gk104_ram_new_()
1674 ram->fuc.r_mr[2] = ramfuc_reg(0x10f320); in gk104_ram_new_()
1680 ram->fuc.r_0x62c000 = ramfuc_reg(0x62c000); in gk104_ram_new_()
1681 ram->fuc.r_0x10f200 = ramfuc_reg(0x10f200); in gk104_ram_new_()
1682 ram->fuc.r_0x10f210 = ramfuc_reg(0x10f210); in gk104_ram_new_()
1683 ram->fuc.r_0x10f310 = ramfuc_reg(0x10f310); in gk104_ram_new_()
1684 ram->fuc.r_0x10f314 = ramfuc_reg(0x10f314); in gk104_ram_new_()
1685 ram->fuc.r_0x10f318 = ramfuc_reg(0x10f318); in gk104_ram_new_()
1686 ram->fuc.r_0x10f090 = ramfuc_reg(0x10f090); in gk104_ram_new_()
1687 ram->fuc.r_0x10f69c = ramfuc_reg(0x10f69c); in gk104_ram_new_()
1688 ram->fuc.r_0x10f824 = ramfuc_reg(0x10f824); in gk104_ram_new_()
1689 ram->fuc.r_0x1373f0 = ramfuc_reg(0x1373f0); in gk104_ram_new_()
1690 ram->fuc.r_0x1373f4 = ramfuc_reg(0x1373f4); in gk104_ram_new_()
1691 ram->fuc.r_0x137320 = ramfuc_reg(0x137320); in gk104_ram_new_()
1692 ram->fuc.r_0x10f65c = ramfuc_reg(0x10f65c); in gk104_ram_new_()
1693 ram->fuc.r_0x10f6bc = ramfuc_reg(0x10f6bc); in gk104_ram_new_()
1694 ram->fuc.r_0x100710 = ramfuc_reg(0x100710); in gk104_ram_new_()
1695 ram->fuc.r_0x100750 = ramfuc_reg(0x100750); in gk104_ram_new_()
1696 return 0; in gk104_ram_new_()
1701 .upper = 0x0200000000ULL,