Lines Matching +full:0 +full:x00000000 +full:- +full:0 +full:x07ffffff
82 .max_level = 0,
133 switch (adev->asic_type) { in cik_query_video_codecs()
143 return 0; in cik_query_video_codecs()
145 return -EINVAL; in cik_query_video_codecs()
157 spin_lock_irqsave(&adev->pcie_idx_lock, flags); in cik_pcie_rreg()
161 spin_unlock_irqrestore(&adev->pcie_idx_lock, flags); in cik_pcie_rreg()
169 spin_lock_irqsave(&adev->pcie_idx_lock, flags); in cik_pcie_wreg()
174 spin_unlock_irqrestore(&adev->pcie_idx_lock, flags); in cik_pcie_wreg()
182 spin_lock_irqsave(&adev->smc_idx_lock, flags); in cik_smc_rreg()
185 spin_unlock_irqrestore(&adev->smc_idx_lock, flags); in cik_smc_rreg()
193 spin_lock_irqsave(&adev->smc_idx_lock, flags); in cik_smc_wreg()
196 spin_unlock_irqrestore(&adev->smc_idx_lock, flags); in cik_smc_wreg()
204 spin_lock_irqsave(&adev->uvd_ctx_idx_lock, flags); in cik_uvd_ctx_rreg()
205 WREG32(mmUVD_CTX_INDEX, ((reg) & 0x1ff)); in cik_uvd_ctx_rreg()
207 spin_unlock_irqrestore(&adev->uvd_ctx_idx_lock, flags); in cik_uvd_ctx_rreg()
215 spin_lock_irqsave(&adev->uvd_ctx_idx_lock, flags); in cik_uvd_ctx_wreg()
216 WREG32(mmUVD_CTX_INDEX, ((reg) & 0x1ff)); in cik_uvd_ctx_wreg()
218 spin_unlock_irqrestore(&adev->uvd_ctx_idx_lock, flags); in cik_uvd_ctx_wreg()
226 spin_lock_irqsave(&adev->didt_idx_lock, flags); in cik_didt_rreg()
229 spin_unlock_irqrestore(&adev->didt_idx_lock, flags); in cik_didt_rreg()
237 spin_lock_irqsave(&adev->didt_idx_lock, flags); in cik_didt_wreg()
240 spin_unlock_irqrestore(&adev->didt_idx_lock, flags); in cik_didt_wreg()
245 0xc200, 0xe0ffffff, 0xe0000000
250 0x31dc, 0xffffffff, 0x00000800,
251 0x31dd, 0xffffffff, 0x00000800,
252 0x31e6, 0xffffffff, 0x00007fbf,
253 0x31e7, 0xffffffff, 0x00007faf
258 0xcd5, 0x00000333, 0x00000333,
259 0xcd4, 0x000c0fc0, 0x00040200,
260 0x2684, 0x00010000, 0x00058208,
261 0xf000, 0xffff1fff, 0x00140000,
262 0xf080, 0xfdfc0fff, 0x00000100,
263 0xf08d, 0x40000000, 0x40000200,
264 0x260c, 0xffffffff, 0x00000000,
265 0x260d, 0xf00fffff, 0x00000400,
266 0x260e, 0x0002021c, 0x00020200,
267 0x31e, 0x00000080, 0x00000000,
268 0x16ec, 0x000000f0, 0x00000070,
269 0x16f0, 0xf0311fff, 0x80300000,
270 0x263e, 0x73773777, 0x12010001,
271 0xd43, 0x00810000, 0x408af000,
272 0x1c0c, 0x31000111, 0x00000011,
273 0xbd2, 0x73773777, 0x12010001,
274 0x883, 0x00007fb6, 0x0021a1b1,
275 0x884, 0x00007fb6, 0x002021b1,
276 0x860, 0x00007fb6, 0x00002191,
277 0x886, 0x00007fb6, 0x002121b1,
278 0x887, 0x00007fb6, 0x002021b1,
279 0x877, 0x00007fb6, 0x00002191,
280 0x878, 0x00007fb6, 0x00002191,
281 0xd8a, 0x0000003f, 0x0000000a,
282 0xd8b, 0x0000003f, 0x0000000a,
283 0xab9, 0x00073ffe, 0x000022a2,
284 0x903, 0x000007ff, 0x00000000,
285 0x2285, 0xf000003f, 0x00000007,
286 0x22fc, 0x00002001, 0x00000001,
287 0x22c9, 0xffffffff, 0x00ffffff,
288 0xc281, 0x0000ff0f, 0x00000000,
289 0xa293, 0x07ffffff, 0x06000000,
290 0x136, 0x00000fff, 0x00000100,
291 0xf9e, 0x00000001, 0x00000002,
292 0x2440, 0x03000000, 0x0362c688,
293 0x2300, 0x000000ff, 0x00000001,
294 0x390, 0x00001fff, 0x00001fff,
295 0x2418, 0x0000007f, 0x00000020,
296 0x2542, 0x00010000, 0x00010000,
297 0x2b05, 0x000003ff, 0x000000f3,
298 0x2b03, 0xffffffff, 0x00001032
303 0x3108, 0xffffffff, 0xfffffffc,
304 0xc200, 0xffffffff, 0xe0000000,
305 0xf0a8, 0xffffffff, 0x00000100,
306 0xf082, 0xffffffff, 0x00000100,
307 0xf0b0, 0xffffffff, 0xc0000100,
308 0xf0b2, 0xffffffff, 0xc0000100,
309 0xf0b1, 0xffffffff, 0xc0000100,
310 0x1579, 0xffffffff, 0x00600100,
311 0xf0a0, 0xffffffff, 0x00000100,
312 0xf085, 0xffffffff, 0x06000100,
313 0xf088, 0xffffffff, 0x00000100,
314 0xf086, 0xffffffff, 0x06000100,
315 0xf081, 0xffffffff, 0x00000100,
316 0xf0b8, 0xffffffff, 0x00000100,
317 0xf089, 0xffffffff, 0x00000100,
318 0xf080, 0xffffffff, 0x00000100,
319 0xf08c, 0xffffffff, 0x00000100,
320 0xf08d, 0xffffffff, 0x00000100,
321 0xf094, 0xffffffff, 0x00000100,
322 0xf095, 0xffffffff, 0x00000100,
323 0xf096, 0xffffffff, 0x00000100,
324 0xf097, 0xffffffff, 0x00000100,
325 0xf098, 0xffffffff, 0x00000100,
326 0xf09f, 0xffffffff, 0x00000100,
327 0xf09e, 0xffffffff, 0x00000100,
328 0xf084, 0xffffffff, 0x06000100,
329 0xf0a4, 0xffffffff, 0x00000100,
330 0xf09d, 0xffffffff, 0x00000100,
331 0xf0ad, 0xffffffff, 0x00000100,
332 0xf0ac, 0xffffffff, 0x00000100,
333 0xf09c, 0xffffffff, 0x00000100,
334 0xc200, 0xffffffff, 0xe0000000,
335 0xf008, 0xffffffff, 0x00010000,
336 0xf009, 0xffffffff, 0x00030002,
337 0xf00a, 0xffffffff, 0x00040007,
338 0xf00b, 0xffffffff, 0x00060005,
339 0xf00c, 0xffffffff, 0x00090008,
340 0xf00d, 0xffffffff, 0x00010000,
341 0xf00e, 0xffffffff, 0x00030002,
342 0xf00f, 0xffffffff, 0x00040007,
343 0xf010, 0xffffffff, 0x00060005,
344 0xf011, 0xffffffff, 0x00090008,
345 0xf012, 0xffffffff, 0x00010000,
346 0xf013, 0xffffffff, 0x00030002,
347 0xf014, 0xffffffff, 0x00040007,
348 0xf015, 0xffffffff, 0x00060005,
349 0xf016, 0xffffffff, 0x00090008,
350 0xf017, 0xffffffff, 0x00010000,
351 0xf018, 0xffffffff, 0x00030002,
352 0xf019, 0xffffffff, 0x00040007,
353 0xf01a, 0xffffffff, 0x00060005,
354 0xf01b, 0xffffffff, 0x00090008,
355 0xf01c, 0xffffffff, 0x00010000,
356 0xf01d, 0xffffffff, 0x00030002,
357 0xf01e, 0xffffffff, 0x00040007,
358 0xf01f, 0xffffffff, 0x00060005,
359 0xf020, 0xffffffff, 0x00090008,
360 0xf021, 0xffffffff, 0x00010000,
361 0xf022, 0xffffffff, 0x00030002,
362 0xf023, 0xffffffff, 0x00040007,
363 0xf024, 0xffffffff, 0x00060005,
364 0xf025, 0xffffffff, 0x00090008,
365 0xf026, 0xffffffff, 0x00010000,
366 0xf027, 0xffffffff, 0x00030002,
367 0xf028, 0xffffffff, 0x00040007,
368 0xf029, 0xffffffff, 0x00060005,
369 0xf02a, 0xffffffff, 0x00090008,
370 0xf000, 0xffffffff, 0x96e00200,
371 0x21c2, 0xffffffff, 0x00900100,
372 0x3109, 0xffffffff, 0x0020003f,
373 0xe, 0xffffffff, 0x0140001c,
374 0xf, 0x000f0000, 0x000f0000,
375 0x88, 0xffffffff, 0xc060000c,
376 0x89, 0xc0000fff, 0x00000100,
377 0x3e4, 0xffffffff, 0x00000100,
378 0x3e6, 0x00000101, 0x00000000,
379 0x82a, 0xffffffff, 0x00000104,
380 0x1579, 0xff000fff, 0x00000100,
381 0xc33, 0xc0000fff, 0x00000104,
382 0x3079, 0x00000001, 0x00000001,
383 0x3403, 0xff000ff0, 0x00000100,
384 0x3603, 0xff000ff0, 0x00000100
389 0xc200, 0xe0ffffff, 0xe0000000
394 0x31dc, 0xffffffff, 0x00000800,
395 0x31dd, 0xffffffff, 0x00000800,
396 0x31e6, 0xffffffff, 0x00007fbf,
397 0x31e7, 0xffffffff, 0x00007faf
402 0xf000, 0xffff1fff, 0x96940200,
403 0xf003, 0xffff0001, 0xff000000,
404 0xf080, 0xfffc0fff, 0x00000100,
405 0x1bb6, 0x00010101, 0x00010000,
406 0x260d, 0xf00fffff, 0x00000400,
407 0x260e, 0xfffffffc, 0x00020200,
408 0x16ec, 0x000000f0, 0x00000070,
409 0x16f0, 0xf0311fff, 0x80300000,
410 0x263e, 0x73773777, 0x12010001,
411 0x26df, 0x00ff0000, 0x00fc0000,
412 0xbd2, 0x73773777, 0x12010001,
413 0x2285, 0xf000003f, 0x00000007,
414 0x22c9, 0xffffffff, 0x00ffffff,
415 0xa0d4, 0x3f3f3fff, 0x00000082,
416 0xa0d5, 0x0000003f, 0x00000000,
417 0xf9e, 0x00000001, 0x00000002,
418 0x244f, 0xffff03df, 0x00000004,
419 0x31da, 0x00000008, 0x00000008,
420 0x2300, 0x000008ff, 0x00000800,
421 0x2542, 0x00010000, 0x00010000,
422 0x2b03, 0xffffffff, 0x54763210,
423 0x853e, 0x01ff01ff, 0x00000002,
424 0x8526, 0x007ff800, 0x00200000,
425 0x8057, 0xffffffff, 0x00000f40,
426 0xc24d, 0xffffffff, 0x00000001
431 0x3108, 0xffffffff, 0xfffffffc,
432 0xc200, 0xffffffff, 0xe0000000,
433 0xf0a8, 0xffffffff, 0x00000100,
434 0xf082, 0xffffffff, 0x00000100,
435 0xf0b0, 0xffffffff, 0x00000100,
436 0xf0b2, 0xffffffff, 0x00000100,
437 0xf0b1, 0xffffffff, 0x00000100,
438 0x1579, 0xffffffff, 0x00600100,
439 0xf0a0, 0xffffffff, 0x00000100,
440 0xf085, 0xffffffff, 0x06000100,
441 0xf088, 0xffffffff, 0x00000100,
442 0xf086, 0xffffffff, 0x06000100,
443 0xf081, 0xffffffff, 0x00000100,
444 0xf0b8, 0xffffffff, 0x00000100,
445 0xf089, 0xffffffff, 0x00000100,
446 0xf080, 0xffffffff, 0x00000100,
447 0xf08c, 0xffffffff, 0x00000100,
448 0xf08d, 0xffffffff, 0x00000100,
449 0xf094, 0xffffffff, 0x00000100,
450 0xf095, 0xffffffff, 0x00000100,
451 0xf096, 0xffffffff, 0x00000100,
452 0xf097, 0xffffffff, 0x00000100,
453 0xf098, 0xffffffff, 0x00000100,
454 0xf09f, 0xffffffff, 0x00000100,
455 0xf09e, 0xffffffff, 0x00000100,
456 0xf084, 0xffffffff, 0x06000100,
457 0xf0a4, 0xffffffff, 0x00000100,
458 0xf09d, 0xffffffff, 0x00000100,
459 0xf0ad, 0xffffffff, 0x00000100,
460 0xf0ac, 0xffffffff, 0x00000100,
461 0xf09c, 0xffffffff, 0x00000100,
462 0xc200, 0xffffffff, 0xe0000000,
463 0xf008, 0xffffffff, 0x00010000,
464 0xf009, 0xffffffff, 0x00030002,
465 0xf00a, 0xffffffff, 0x00040007,
466 0xf00b, 0xffffffff, 0x00060005,
467 0xf00c, 0xffffffff, 0x00090008,
468 0xf00d, 0xffffffff, 0x00010000,
469 0xf00e, 0xffffffff, 0x00030002,
470 0xf00f, 0xffffffff, 0x00040007,
471 0xf010, 0xffffffff, 0x00060005,
472 0xf011, 0xffffffff, 0x00090008,
473 0xf012, 0xffffffff, 0x00010000,
474 0xf013, 0xffffffff, 0x00030002,
475 0xf014, 0xffffffff, 0x00040007,
476 0xf015, 0xffffffff, 0x00060005,
477 0xf016, 0xffffffff, 0x00090008,
478 0xf017, 0xffffffff, 0x00010000,
479 0xf018, 0xffffffff, 0x00030002,
480 0xf019, 0xffffffff, 0x00040007,
481 0xf01a, 0xffffffff, 0x00060005,
482 0xf01b, 0xffffffff, 0x00090008,
483 0xf01c, 0xffffffff, 0x00010000,
484 0xf01d, 0xffffffff, 0x00030002,
485 0xf01e, 0xffffffff, 0x00040007,
486 0xf01f, 0xffffffff, 0x00060005,
487 0xf020, 0xffffffff, 0x00090008,
488 0xf021, 0xffffffff, 0x00010000,
489 0xf022, 0xffffffff, 0x00030002,
490 0xf023, 0xffffffff, 0x00040007,
491 0xf024, 0xffffffff, 0x00060005,
492 0xf025, 0xffffffff, 0x00090008,
493 0xf026, 0xffffffff, 0x00010000,
494 0xf027, 0xffffffff, 0x00030002,
495 0xf028, 0xffffffff, 0x00040007,
496 0xf029, 0xffffffff, 0x00060005,
497 0xf02a, 0xffffffff, 0x00090008,
498 0xf02b, 0xffffffff, 0x00010000,
499 0xf02c, 0xffffffff, 0x00030002,
500 0xf02d, 0xffffffff, 0x00040007,
501 0xf02e, 0xffffffff, 0x00060005,
502 0xf02f, 0xffffffff, 0x00090008,
503 0xf000, 0xffffffff, 0x96e00200,
504 0x21c2, 0xffffffff, 0x00900100,
505 0x3109, 0xffffffff, 0x0020003f,
506 0xe, 0xffffffff, 0x0140001c,
507 0xf, 0x000f0000, 0x000f0000,
508 0x88, 0xffffffff, 0xc060000c,
509 0x89, 0xc0000fff, 0x00000100,
510 0x3e4, 0xffffffff, 0x00000100,
511 0x3e6, 0x00000101, 0x00000000,
512 0x82a, 0xffffffff, 0x00000104,
513 0x1579, 0xff000fff, 0x00000100,
514 0xc33, 0xc0000fff, 0x00000104,
515 0x3079, 0x00000001, 0x00000001,
516 0x3403, 0xff000ff0, 0x00000100,
517 0x3603, 0xff000ff0, 0x00000100
522 0xc200, 0xe0ffffff, 0xe0000000
527 0x31dc, 0xffffffff, 0x00000800,
528 0x31dd, 0xffffffff, 0x00000800,
529 0x31e6, 0xffffffff, 0x00007fbf,
530 0x31e7, 0xffffffff, 0x00007faf
535 0xf000, 0xffffdfff, 0x6e944040,
536 0x1579, 0xff607fff, 0xfc000100,
537 0xf088, 0xff000fff, 0x00000100,
538 0xf089, 0xff000fff, 0x00000100,
539 0xf080, 0xfffc0fff, 0x00000100,
540 0x1bb6, 0x00010101, 0x00010000,
541 0x260c, 0xffffffff, 0x00000000,
542 0x260d, 0xf00fffff, 0x00000400,
543 0x16ec, 0x000000f0, 0x00000070,
544 0x16f0, 0xf0311fff, 0x80300000,
545 0x263e, 0x73773777, 0x12010001,
546 0x263f, 0xffffffff, 0x00000010,
547 0x26df, 0x00ff0000, 0x00fc0000,
548 0x200c, 0x00001f0f, 0x0000100a,
549 0xbd2, 0x73773777, 0x12010001,
550 0x902, 0x000fffff, 0x000c007f,
551 0x2285, 0xf000003f, 0x00000007,
552 0x22c9, 0x3fff3fff, 0x00ffcfff,
553 0xc281, 0x0000ff0f, 0x00000000,
554 0xa293, 0x07ffffff, 0x06000000,
555 0x136, 0x00000fff, 0x00000100,
556 0xf9e, 0x00000001, 0x00000002,
557 0x31da, 0x00000008, 0x00000008,
558 0x2300, 0x000000ff, 0x00000003,
559 0x853e, 0x01ff01ff, 0x00000002,
560 0x8526, 0x007ff800, 0x00200000,
561 0x8057, 0xffffffff, 0x00000f40,
562 0x2231, 0x001f3ae3, 0x00000082,
563 0x2235, 0x0000001f, 0x00000010,
564 0xc24d, 0xffffffff, 0x00000000
569 0x3108, 0xffffffff, 0xfffffffc,
570 0xc200, 0xffffffff, 0xe0000000,
571 0xf0a8, 0xffffffff, 0x00000100,
572 0xf082, 0xffffffff, 0x00000100,
573 0xf0b0, 0xffffffff, 0x00000100,
574 0xf0b2, 0xffffffff, 0x00000100,
575 0xf0b1, 0xffffffff, 0x00000100,
576 0x1579, 0xffffffff, 0x00600100,
577 0xf0a0, 0xffffffff, 0x00000100,
578 0xf085, 0xffffffff, 0x06000100,
579 0xf088, 0xffffffff, 0x00000100,
580 0xf086, 0xffffffff, 0x06000100,
581 0xf081, 0xffffffff, 0x00000100,
582 0xf0b8, 0xffffffff, 0x00000100,
583 0xf089, 0xffffffff, 0x00000100,
584 0xf080, 0xffffffff, 0x00000100,
585 0xf08c, 0xffffffff, 0x00000100,
586 0xf08d, 0xffffffff, 0x00000100,
587 0xf094, 0xffffffff, 0x00000100,
588 0xf095, 0xffffffff, 0x00000100,
589 0xf096, 0xffffffff, 0x00000100,
590 0xf097, 0xffffffff, 0x00000100,
591 0xf098, 0xffffffff, 0x00000100,
592 0xf09f, 0xffffffff, 0x00000100,
593 0xf09e, 0xffffffff, 0x00000100,
594 0xf084, 0xffffffff, 0x06000100,
595 0xf0a4, 0xffffffff, 0x00000100,
596 0xf09d, 0xffffffff, 0x00000100,
597 0xf0ad, 0xffffffff, 0x00000100,
598 0xf0ac, 0xffffffff, 0x00000100,
599 0xf09c, 0xffffffff, 0x00000100,
600 0xc200, 0xffffffff, 0xe0000000,
601 0xf008, 0xffffffff, 0x00010000,
602 0xf009, 0xffffffff, 0x00030002,
603 0xf00a, 0xffffffff, 0x00040007,
604 0xf00b, 0xffffffff, 0x00060005,
605 0xf00c, 0xffffffff, 0x00090008,
606 0xf00d, 0xffffffff, 0x00010000,
607 0xf00e, 0xffffffff, 0x00030002,
608 0xf00f, 0xffffffff, 0x00040007,
609 0xf010, 0xffffffff, 0x00060005,
610 0xf011, 0xffffffff, 0x00090008,
611 0xf000, 0xffffffff, 0x96e00200,
612 0x21c2, 0xffffffff, 0x00900100,
613 0x3109, 0xffffffff, 0x0020003f,
614 0xe, 0xffffffff, 0x0140001c,
615 0xf, 0x000f0000, 0x000f0000,
616 0x88, 0xffffffff, 0xc060000c,
617 0x89, 0xc0000fff, 0x00000100,
618 0x82a, 0xffffffff, 0x00000104,
619 0x1579, 0xff000fff, 0x00000100,
620 0xc33, 0xc0000fff, 0x00000104,
621 0x3079, 0x00000001, 0x00000001,
622 0x3403, 0xff000ff0, 0x00000100,
623 0x3603, 0xff000ff0, 0x00000100
628 0xc200, 0xe0ffffff, 0xe0000000
633 0xc200, 0xffffffff, 0xe0000000,
634 0xa0d4, 0xffffffff, 0x3a00161a,
635 0xa0d5, 0xffffffff, 0x0000002e,
636 0x2684, 0xffffffff, 0x00018208,
637 0x263e, 0xffffffff, 0x12011003
642 0xcd5, 0x00000333, 0x00000333,
643 0x2684, 0x00010000, 0x00058208,
644 0x260c, 0xffffffff, 0x00000000,
645 0x260d, 0xf00fffff, 0x00000400,
646 0x260e, 0x0002021c, 0x00020200,
647 0x31e, 0x00000080, 0x00000000,
648 0x16ec, 0x000000f0, 0x00000070,
649 0x16f0, 0xf0311fff, 0x80300000,
650 0xd43, 0x00810000, 0x408af000,
651 0x1c0c, 0x31000111, 0x00000011,
652 0xbd2, 0x73773777, 0x12010001,
653 0x848, 0x0000007f, 0x0000001b,
654 0x877, 0x00007fb6, 0x00002191,
655 0xd8a, 0x0000003f, 0x0000000a,
656 0xd8b, 0x0000003f, 0x0000000a,
657 0xab9, 0x00073ffe, 0x000022a2,
658 0x903, 0x000007ff, 0x00000000,
659 0x22fc, 0x00002001, 0x00000001,
660 0x22c9, 0xffffffff, 0x00ffffff,
661 0xc281, 0x0000ff0f, 0x00000000,
662 0xa293, 0x07ffffff, 0x06000000,
663 0xf9e, 0x00000001, 0x00000002,
664 0x31da, 0x00000008, 0x00000008,
665 0x31dc, 0x00000f00, 0x00000800,
666 0x31dd, 0x00000f00, 0x00000800,
667 0x31e6, 0x00ffffff, 0x00ff7fbf,
668 0x31e7, 0x00ffffff, 0x00ff7faf,
669 0x2300, 0x000000ff, 0x00000800,
670 0x390, 0x00001fff, 0x00001fff,
671 0x2418, 0x0000007f, 0x00000020,
672 0x2542, 0x00010000, 0x00010000,
673 0x2b80, 0x00100000, 0x000ff07c,
674 0x2b05, 0x000003ff, 0x0000000f,
675 0x2b04, 0xffffffff, 0x7564fdec,
676 0x2b03, 0xffffffff, 0x3120b9a8,
677 0x2b02, 0x20000000, 0x0f9c0000
682 0x3108, 0xffffffff, 0xfffffffd,
683 0xc200, 0xffffffff, 0xe0000000,
684 0xf0a8, 0xffffffff, 0x00000100,
685 0xf082, 0xffffffff, 0x00000100,
686 0xf0b0, 0xffffffff, 0x00000100,
687 0xf0b2, 0xffffffff, 0x00000100,
688 0xf0b1, 0xffffffff, 0x00000100,
689 0x1579, 0xffffffff, 0x00200100,
690 0xf0a0, 0xffffffff, 0x00000100,
691 0xf085, 0xffffffff, 0x06000100,
692 0xf088, 0xffffffff, 0x00000100,
693 0xf086, 0xffffffff, 0x06000100,
694 0xf081, 0xffffffff, 0x00000100,
695 0xf0b8, 0xffffffff, 0x00000100,
696 0xf089, 0xffffffff, 0x00000100,
697 0xf080, 0xffffffff, 0x00000100,
698 0xf08c, 0xffffffff, 0x00000100,
699 0xf08d, 0xffffffff, 0x00000100,
700 0xf094, 0xffffffff, 0x00000100,
701 0xf095, 0xffffffff, 0x00000100,
702 0xf096, 0xffffffff, 0x00000100,
703 0xf097, 0xffffffff, 0x00000100,
704 0xf098, 0xffffffff, 0x00000100,
705 0xf09f, 0xffffffff, 0x00000100,
706 0xf09e, 0xffffffff, 0x00000100,
707 0xf084, 0xffffffff, 0x06000100,
708 0xf0a4, 0xffffffff, 0x00000100,
709 0xf09d, 0xffffffff, 0x00000100,
710 0xf0ad, 0xffffffff, 0x00000100,
711 0xf0ac, 0xffffffff, 0x00000100,
712 0xf09c, 0xffffffff, 0x00000100,
713 0xc200, 0xffffffff, 0xe0000000,
714 0xf008, 0xffffffff, 0x00010000,
715 0xf009, 0xffffffff, 0x00030002,
716 0xf00a, 0xffffffff, 0x00040007,
717 0xf00b, 0xffffffff, 0x00060005,
718 0xf00c, 0xffffffff, 0x00090008,
719 0xf00d, 0xffffffff, 0x00010000,
720 0xf00e, 0xffffffff, 0x00030002,
721 0xf00f, 0xffffffff, 0x00040007,
722 0xf010, 0xffffffff, 0x00060005,
723 0xf011, 0xffffffff, 0x00090008,
724 0xf012, 0xffffffff, 0x00010000,
725 0xf013, 0xffffffff, 0x00030002,
726 0xf014, 0xffffffff, 0x00040007,
727 0xf015, 0xffffffff, 0x00060005,
728 0xf016, 0xffffffff, 0x00090008,
729 0xf017, 0xffffffff, 0x00010000,
730 0xf018, 0xffffffff, 0x00030002,
731 0xf019, 0xffffffff, 0x00040007,
732 0xf01a, 0xffffffff, 0x00060005,
733 0xf01b, 0xffffffff, 0x00090008,
734 0xf01c, 0xffffffff, 0x00010000,
735 0xf01d, 0xffffffff, 0x00030002,
736 0xf01e, 0xffffffff, 0x00040007,
737 0xf01f, 0xffffffff, 0x00060005,
738 0xf020, 0xffffffff, 0x00090008,
739 0xf021, 0xffffffff, 0x00010000,
740 0xf022, 0xffffffff, 0x00030002,
741 0xf023, 0xffffffff, 0x00040007,
742 0xf024, 0xffffffff, 0x00060005,
743 0xf025, 0xffffffff, 0x00090008,
744 0xf026, 0xffffffff, 0x00010000,
745 0xf027, 0xffffffff, 0x00030002,
746 0xf028, 0xffffffff, 0x00040007,
747 0xf029, 0xffffffff, 0x00060005,
748 0xf02a, 0xffffffff, 0x00090008,
749 0xf02b, 0xffffffff, 0x00010000,
750 0xf02c, 0xffffffff, 0x00030002,
751 0xf02d, 0xffffffff, 0x00040007,
752 0xf02e, 0xffffffff, 0x00060005,
753 0xf02f, 0xffffffff, 0x00090008,
754 0xf030, 0xffffffff, 0x00010000,
755 0xf031, 0xffffffff, 0x00030002,
756 0xf032, 0xffffffff, 0x00040007,
757 0xf033, 0xffffffff, 0x00060005,
758 0xf034, 0xffffffff, 0x00090008,
759 0xf035, 0xffffffff, 0x00010000,
760 0xf036, 0xffffffff, 0x00030002,
761 0xf037, 0xffffffff, 0x00040007,
762 0xf038, 0xffffffff, 0x00060005,
763 0xf039, 0xffffffff, 0x00090008,
764 0xf03a, 0xffffffff, 0x00010000,
765 0xf03b, 0xffffffff, 0x00030002,
766 0xf03c, 0xffffffff, 0x00040007,
767 0xf03d, 0xffffffff, 0x00060005,
768 0xf03e, 0xffffffff, 0x00090008,
769 0x30c6, 0xffffffff, 0x00020200,
770 0xcd4, 0xffffffff, 0x00000200,
771 0x570, 0xffffffff, 0x00000400,
772 0x157a, 0xffffffff, 0x00000000,
773 0xbd4, 0xffffffff, 0x00000902,
774 0xf000, 0xffffffff, 0x96940200,
775 0x21c2, 0xffffffff, 0x00900100,
776 0x3109, 0xffffffff, 0x0020003f,
777 0xe, 0xffffffff, 0x0140001c,
778 0xf, 0x000f0000, 0x000f0000,
779 0x88, 0xffffffff, 0xc060000c,
780 0x89, 0xc0000fff, 0x00000100,
781 0x3e4, 0xffffffff, 0x00000100,
782 0x3e6, 0x00000101, 0x00000000,
783 0x82a, 0xffffffff, 0x00000104,
784 0x1579, 0xff000fff, 0x00000100,
785 0xc33, 0xc0000fff, 0x00000104,
786 0x3079, 0x00000001, 0x00000001,
787 0x3403, 0xff000ff0, 0x00000100,
788 0x3603, 0xff000ff0, 0x00000100
793 0x1579, 0xff607fff, 0xfc000100,
794 0x1bb6, 0x00010101, 0x00010000,
795 0x260c, 0xffffffff, 0x00000000,
796 0x260c0, 0xf00fffff, 0x00000400,
797 0x184c, 0xffffffff, 0x00010000,
798 0x16ec, 0x000000f0, 0x00000070,
799 0x16f0, 0xf0311fff, 0x80300000,
800 0x263e, 0x73773777, 0x12010001,
801 0x263f, 0xffffffff, 0x00000010,
802 0x200c, 0x00001f0f, 0x0000100a,
803 0xbd2, 0x73773777, 0x12010001,
804 0x902, 0x000fffff, 0x000c007f,
805 0x2285, 0xf000003f, 0x00000007,
806 0x22c9, 0xffffffff, 0x00ff0fff,
807 0xc281, 0x0000ff0f, 0x00000000,
808 0xa293, 0x07ffffff, 0x06000000,
809 0x136, 0x00000fff, 0x00000100,
810 0x3405, 0x00010000, 0x00810001,
811 0x3605, 0x00010000, 0x00810001,
812 0xf9e, 0x00000001, 0x00000002,
813 0x31da, 0x00000008, 0x00000008,
814 0x31dc, 0x00000f00, 0x00000800,
815 0x31dd, 0x00000f00, 0x00000800,
816 0x31e6, 0x00ffffff, 0x00ff7fbf,
817 0x31e7, 0x00ffffff, 0x00ff7faf,
818 0x2300, 0x000000ff, 0x00000001,
819 0x853e, 0x01ff01ff, 0x00000002,
820 0x8526, 0x007ff800, 0x00200000,
821 0x8057, 0xffffffff, 0x00000f40,
822 0x2231, 0x001f3ae3, 0x00000082,
823 0x2235, 0x0000001f, 0x00000010,
824 0xc24d, 0xffffffff, 0x00000000
830 mutex_lock(&adev->grbm_idx_mutex); in cik_init_golden_registers()
832 switch (adev->asic_type) { in cik_init_golden_registers()
906 mutex_unlock(&adev->grbm_idx_mutex); in cik_init_golden_registers()
910 * cik_get_xclk - get the xclk
919 u32 reference_clock = adev->clock.spll.reference_freq; in cik_get_xclk()
921 if (adev->flags & AMD_IS_APU) { in cik_get_xclk()
932 * cik_srbm_select - select specific register instances
970 u32 d1vga_control = 0; in cik_read_disabled_bios()
971 u32 d2vga_control = 0; in cik_read_disabled_bios()
972 u32 vga_render_control = 0; in cik_read_disabled_bios()
977 if (adev->mode_info.num_crtc) { in cik_read_disabled_bios()
986 if (adev->mode_info.num_crtc) { in cik_read_disabled_bios()
1003 if (adev->mode_info.num_crtc) { in cik_read_disabled_bios()
1021 if (length_bytes == 0) in cik_read_bios_from_rom()
1024 if (adev->flags & AMD_IS_APU) in cik_read_bios_from_rom()
1030 spin_lock_irqsave(&adev->smc_idx_lock, flags); in cik_read_bios_from_rom()
1031 /* set rom index to 0 */ in cik_read_bios_from_rom()
1033 WREG32(mmSMC_IND_DATA_0, 0); in cik_read_bios_from_rom()
1036 for (i = 0; i < length_dw; i++) in cik_read_bios_from_rom()
1038 spin_unlock_irqrestore(&adev->smc_idx_lock, flags); in cik_read_bios_from_rom()
1128 unsigned se_idx = (se_num == 0xffffffff) ? 0 : se_num; in cik_get_register_value()
1129 unsigned sh_idx = (sh_num == 0xffffffff) ? 0 : sh_num; in cik_get_register_value()
1133 return adev->gfx.config.rb_config[se_idx][sh_idx].rb_backend_disable; in cik_get_register_value()
1135 return adev->gfx.config.rb_config[se_idx][sh_idx].user_rb_backend_disable; in cik_get_register_value()
1137 return adev->gfx.config.rb_config[se_idx][sh_idx].raster_config; in cik_get_register_value()
1139 return adev->gfx.config.rb_config[se_idx][sh_idx].raster_config_1; in cik_get_register_value()
1142 mutex_lock(&adev->grbm_idx_mutex); in cik_get_register_value()
1143 if (se_num != 0xffffffff || sh_num != 0xffffffff) in cik_get_register_value()
1144 amdgpu_gfx_select_se_sh(adev, se_num, sh_num, 0xffffffff, 0); in cik_get_register_value()
1148 if (se_num != 0xffffffff || sh_num != 0xffffffff) in cik_get_register_value()
1149 amdgpu_gfx_select_se_sh(adev, 0xffffffff, 0xffffffff, 0xffffffff, 0); in cik_get_register_value()
1150 mutex_unlock(&adev->grbm_idx_mutex); in cik_get_register_value()
1157 return adev->gfx.config.gb_addr_config; in cik_get_register_value()
1159 return adev->gfx.config.mc_arb_ramcfg; in cik_get_register_value()
1192 idx = (reg_offset - mmGB_TILE_MODE0); in cik_get_register_value()
1193 return adev->gfx.config.tile_mode_array[idx]; in cik_get_register_value()
1210 idx = (reg_offset - mmGB_MACROTILE_MODE0); in cik_get_register_value()
1211 return adev->gfx.config.macrotile_mode_array[idx]; in cik_get_register_value()
1223 *value = 0; in cik_read_register()
1224 for (i = 0; i < ARRAY_SIZE(cik_allowed_read_registers); i++) { in cik_read_register()
1232 return 0; in cik_read_register()
1234 return -EINVAL; in cik_read_register()
1246 save->gmcon_reng_execute = RREG32(mmGMCON_RENG_EXECUTE); in kv_save_regs_for_reset()
1247 save->gmcon_misc = RREG32(mmGMCON_MISC); in kv_save_regs_for_reset()
1248 save->gmcon_misc3 = RREG32(mmGMCON_MISC3); in kv_save_regs_for_reset()
1250 WREG32(mmGMCON_RENG_EXECUTE, save->gmcon_reng_execute & in kv_save_regs_for_reset()
1252 WREG32(mmGMCON_MISC, save->gmcon_misc & in kv_save_regs_for_reset()
1262 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1263 WREG32(mmGMCON_PGFSM_CONFIG, 0x200010ff); in kv_restore_regs_for_reset()
1265 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1266 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1268 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1269 WREG32(mmGMCON_PGFSM_CONFIG, 0x300010ff); in kv_restore_regs_for_reset()
1271 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1272 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1274 WREG32(mmGMCON_PGFSM_WRITE, 0x210000); in kv_restore_regs_for_reset()
1275 WREG32(mmGMCON_PGFSM_CONFIG, 0xa00010ff); in kv_restore_regs_for_reset()
1277 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1278 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1280 WREG32(mmGMCON_PGFSM_WRITE, 0x21003); in kv_restore_regs_for_reset()
1281 WREG32(mmGMCON_PGFSM_CONFIG, 0xb00010ff); in kv_restore_regs_for_reset()
1283 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1284 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1286 WREG32(mmGMCON_PGFSM_WRITE, 0x2b00); in kv_restore_regs_for_reset()
1287 WREG32(mmGMCON_PGFSM_CONFIG, 0xc00010ff); in kv_restore_regs_for_reset()
1289 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1290 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1292 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1293 WREG32(mmGMCON_PGFSM_CONFIG, 0xd00010ff); in kv_restore_regs_for_reset()
1295 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1296 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1298 WREG32(mmGMCON_PGFSM_WRITE, 0x420000); in kv_restore_regs_for_reset()
1299 WREG32(mmGMCON_PGFSM_CONFIG, 0x100010ff); in kv_restore_regs_for_reset()
1301 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1302 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1304 WREG32(mmGMCON_PGFSM_WRITE, 0x120202); in kv_restore_regs_for_reset()
1305 WREG32(mmGMCON_PGFSM_CONFIG, 0x500010ff); in kv_restore_regs_for_reset()
1307 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1308 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1310 WREG32(mmGMCON_PGFSM_WRITE, 0x3e3e36); in kv_restore_regs_for_reset()
1311 WREG32(mmGMCON_PGFSM_CONFIG, 0x600010ff); in kv_restore_regs_for_reset()
1313 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1314 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1316 WREG32(mmGMCON_PGFSM_WRITE, 0x373f3e); in kv_restore_regs_for_reset()
1317 WREG32(mmGMCON_PGFSM_CONFIG, 0x700010ff); in kv_restore_regs_for_reset()
1319 for (i = 0; i < 5; i++) in kv_restore_regs_for_reset()
1320 WREG32(mmGMCON_PGFSM_WRITE, 0); in kv_restore_regs_for_reset()
1322 WREG32(mmGMCON_PGFSM_WRITE, 0x3e1332); in kv_restore_regs_for_reset()
1323 WREG32(mmGMCON_PGFSM_CONFIG, 0xe00010ff); in kv_restore_regs_for_reset()
1325 WREG32(mmGMCON_MISC3, save->gmcon_misc3); in kv_restore_regs_for_reset()
1326 WREG32(mmGMCON_MISC, save->gmcon_misc); in kv_restore_regs_for_reset()
1327 WREG32(mmGMCON_RENG_EXECUTE, save->gmcon_reng_execute); in kv_restore_regs_for_reset()
1331 * cik_asic_pci_config_reset - soft reset GPU
1337 * Returns 0 for success.
1341 struct kv_reset_save_regs kv_save = { 0 }; in cik_asic_pci_config_reset()
1343 int r = -EINVAL; in cik_asic_pci_config_reset()
1347 if (adev->flags & AMD_IS_APU) in cik_asic_pci_config_reset()
1351 pci_clear_master(adev->pdev); in cik_asic_pci_config_reset()
1358 for (i = 0; i < adev->usec_timeout; i++) { in cik_asic_pci_config_reset()
1359 if (RREG32(mmCONFIG_MEMSIZE) != 0xffffffff) { in cik_asic_pci_config_reset()
1361 pci_set_master(adev->pdev); in cik_asic_pci_config_reset()
1362 adev->has_hw_reset = true; in cik_asic_pci_config_reset()
1363 r = 0; in cik_asic_pci_config_reset()
1370 if (adev->flags & AMD_IS_APU) in cik_asic_pci_config_reset()
1380 switch (adev->asic_type) { in cik_asic_supports_baco()
1385 return 0; in cik_asic_supports_baco()
1398 if (amdgpu_reset_method != -1) in cik_asic_reset_method()
1399 dev_warn(adev->dev, "Specified reset:%d isn't supported, using AUTO instead.\n", in cik_asic_reset_method()
1402 switch (adev->asic_type) { in cik_asic_reset_method()
1419 * cik_asic_reset - soft reset GPU
1425 * Returns 0 for success.
1432 if (adev->flags & AMD_IS_APU) in cik_asic_reset()
1433 return 0; in cik_asic_reset()
1436 dev_info(adev->dev, "BACO reset\n"); in cik_asic_reset()
1439 dev_info(adev->dev, "PCI CONFIG reset\n"); in cik_asic_reset()
1470 for (i = 0; i < 100; i++) { in cik_set_uvd_clock()
1476 return -ETIMEDOUT; in cik_set_uvd_clock()
1478 return 0; in cik_set_uvd_clock()
1483 int r = 0; in cik_set_uvd_clocks()
1505 for (i = 0; i < 100; i++) { in cik_set_vce_clocks()
1511 return -ETIMEDOUT; in cik_set_vce_clocks()
1519 for (i = 0; i < 100; i++) { in cik_set_vce_clocks()
1525 return -ETIMEDOUT; in cik_set_vce_clocks()
1527 return 0; in cik_set_vce_clocks()
1532 struct pci_dev *root = adev->pdev->bus->self; in cik_pcie_gen3_enable()
1537 if (pci_is_root_bus(adev->pdev->bus)) in cik_pcie_gen3_enable()
1540 if (amdgpu_pcie_gen2 == 0) in cik_pcie_gen3_enable()
1543 if (adev->flags & AMD_IS_APU) in cik_pcie_gen3_enable()
1546 if (!(adev->pm.pcie_gen_mask & (CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2 | in cik_pcie_gen3_enable()
1553 if (adev->pm.pcie_gen_mask & CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3) { in cik_pcie_gen3_enable()
1558 DRM_INFO("enabling PCIE gen 3 link speeds, disable with amdgpu.pcie_gen2=0\n"); in cik_pcie_gen3_enable()
1559 } else if (adev->pm.pcie_gen_mask & CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2) { in cik_pcie_gen3_enable()
1564 DRM_INFO("enabling PCIE gen 2 link speeds, disable with amdgpu.pcie_gen2=0\n"); in cik_pcie_gen3_enable()
1567 if (!pci_is_pcie(root) || !pci_is_pcie(adev->pdev)) in cik_pcie_gen3_enable()
1570 if (adev->pm.pcie_gen_mask & CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3) { in cik_pcie_gen3_enable()
1571 /* re-try equalization if gen3 is not already enabled */ in cik_pcie_gen3_enable()
1578 pcie_capability_set_word(adev->pdev, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
1600 for (i = 0; i < 10; i++) { in cik_pcie_gen3_enable()
1602 pcie_capability_read_word(adev->pdev, in cik_pcie_gen3_enable()
1610 pcie_capability_read_word(adev->pdev, in cik_pcie_gen3_enable()
1616 pcie_capability_read_word(adev->pdev, in cik_pcie_gen3_enable()
1635 pcie_capability_clear_and_set_word(adev->pdev, PCI_EXP_LNKCTL, in cik_pcie_gen3_enable()
1647 pcie_capability_clear_and_set_word(adev->pdev, PCI_EXP_LNKCTL2, in cik_pcie_gen3_enable()
1667 tmp16 = 0; in cik_pcie_gen3_enable()
1668 if (adev->pm.pcie_gen_mask & CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3) in cik_pcie_gen3_enable()
1670 else if (adev->pm.pcie_gen_mask & CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2) in cik_pcie_gen3_enable()
1674 pcie_capability_clear_and_set_word(adev->pdev, PCI_EXP_LNKCTL2, in cik_pcie_gen3_enable()
1681 for (i = 0; i < adev->usec_timeout; i++) { in cik_pcie_gen3_enable()
1683 if ((speed_cntl & PCIE_LC_SPEED_CNTL__LC_INITIATE_LINK_SPEED_CHANGE_MASK) == 0) in cik_pcie_gen3_enable()
1698 if (pci_is_root_bus(adev->pdev->bus)) in cik_program_aspm()
1703 data |= (0x24 << PCIE_LC_N_FTS_CNTL__LC_XMIT_N_FTS__SHIFT) | in cik_program_aspm()
1773 struct pci_dev *root = adev->pdev->bus->self; in cik_program_aspm()
1860 if (!ring || !ring->funcs->emit_wreg) { in cik_flush_hdp()
1871 if (!ring || !ring->funcs->emit_wreg) { in cik_invalidate_hdp()
1888 uint32_t perfctr = 0; in cik_get_pcie_usage()
1892 /* This reports 0 on APUs, so return to avoid writing/reading registers in cik_get_pcie_usage()
1895 if (adev->flags & AMD_IS_APU) in cik_get_pcie_usage()
1906 * Write 0x5: in cik_get_pcie_usage()
1907 * Bit 0 = Start all counters(1) in cik_get_pcie_usage()
1910 WREG32_PCIE(ixPCIE_PERF_COUNT_CNTL, 0x00000005); in cik_get_pcie_usage()
1915 * Write 0x2: in cik_get_pcie_usage()
1916 * Bit 0 = Stop counters(0) in cik_get_pcie_usage()
1919 WREG32_PCIE(ixPCIE_PERF_COUNT_CNTL, 0x00000002); in cik_get_pcie_usage()
1935 if (adev->flags & AMD_IS_APU) in cik_need_reset_on_init()
1941 if ((0 == REG_GET_FIELD(clock_cntl, SMC_SYSCON_CLOCK_CNTL_0, ck_disable)) && in cik_need_reset_on_init()
1942 (0x20100 <= pc)) in cik_need_reset_on_init()
1992 adev->smc_rreg = &cik_smc_rreg; in cik_common_early_init()
1993 adev->smc_wreg = &cik_smc_wreg; in cik_common_early_init()
1994 adev->pcie_rreg = &cik_pcie_rreg; in cik_common_early_init()
1995 adev->pcie_wreg = &cik_pcie_wreg; in cik_common_early_init()
1996 adev->uvd_ctx_rreg = &cik_uvd_ctx_rreg; in cik_common_early_init()
1997 adev->uvd_ctx_wreg = &cik_uvd_ctx_wreg; in cik_common_early_init()
1998 adev->didt_rreg = &cik_didt_rreg; in cik_common_early_init()
1999 adev->didt_wreg = &cik_didt_wreg; in cik_common_early_init()
2001 adev->asic_funcs = &cik_asic_funcs; in cik_common_early_init()
2003 adev->rev_id = cik_get_rev_id(adev); in cik_common_early_init()
2004 adev->external_rev_id = 0xFF; in cik_common_early_init()
2005 switch (adev->asic_type) { in cik_common_early_init()
2007 adev->cg_flags = in cik_common_early_init()
2024 adev->pg_flags = 0; in cik_common_early_init()
2025 adev->external_rev_id = adev->rev_id + 0x14; in cik_common_early_init()
2028 adev->cg_flags = in cik_common_early_init()
2044 adev->pg_flags = 0; in cik_common_early_init()
2045 adev->external_rev_id = 0x28; in cik_common_early_init()
2048 adev->cg_flags = in cik_common_early_init()
2063 adev->pg_flags = in cik_common_early_init()
2074 0; in cik_common_early_init()
2075 if (adev->pdev->device == 0x1312 || in cik_common_early_init()
2076 adev->pdev->device == 0x1316 || in cik_common_early_init()
2077 adev->pdev->device == 0x1317) in cik_common_early_init()
2078 adev->external_rev_id = 0x41; in cik_common_early_init()
2080 adev->external_rev_id = 0x1; in cik_common_early_init()
2084 adev->cg_flags = in cik_common_early_init()
2099 adev->pg_flags = in cik_common_early_init()
2108 0; in cik_common_early_init()
2109 if (adev->asic_type == CHIP_KABINI) { in cik_common_early_init()
2110 if (adev->rev_id == 0) in cik_common_early_init()
2111 adev->external_rev_id = 0x81; in cik_common_early_init()
2112 else if (adev->rev_id == 1) in cik_common_early_init()
2113 adev->external_rev_id = 0x82; in cik_common_early_init()
2114 else if (adev->rev_id == 2) in cik_common_early_init()
2115 adev->external_rev_id = 0x85; in cik_common_early_init()
2117 adev->external_rev_id = adev->rev_id + 0xa1; in cik_common_early_init()
2121 return -EINVAL; in cik_common_early_init()
2124 return 0; in cik_common_early_init()
2129 return 0; in cik_common_sw_init()
2134 return 0; in cik_common_sw_fini()
2148 return 0; in cik_common_hw_init()
2153 return 0; in cik_common_hw_fini()
2177 return 0; in cik_common_wait_for_idle()
2183 return 0; in cik_common_soft_reset()
2189 return 0; in cik_common_set_clockgating_state()
2195 return 0; in cik_common_set_powergating_state()
2221 .minor = 0,
2222 .rev = 0,
2228 switch (adev->asic_type) { in cik_set_ip_blocks()
2236 if (adev->enable_virtual_display) in cik_set_ip_blocks()
2254 if (adev->enable_virtual_display) in cik_set_ip_blocks()
2272 if (adev->enable_virtual_display) in cik_set_ip_blocks()
2292 if (adev->enable_virtual_display) in cik_set_ip_blocks()
2305 return -EINVAL; in cik_set_ip_blocks()
2307 return 0; in cik_set_ip_blocks()