Lines Matching +full:0 +full:x00000100
42 #define DC_HPDx_CONTROL(x) (DC_HPD1_CONTROL + (x * 0xc))
43 #define DC_HPDx_INT_CONTROL(x) (DC_HPD1_INT_CONTROL + (x * 0xc))
44 #define DC_HPDx_INT_STATUS_REG(x) (DC_HPD1_INT_STATUS + (x * 0xc))
55 WREG32(EVERGREEN_CG_IND_ADDR, ((reg) & 0xffff)); in eg_cg_rreg()
66 WREG32(EVERGREEN_CG_IND_ADDR, ((reg) & 0xffff)); in eg_cg_wreg()
77 WREG32(EVERGREEN_PIF_PHY0_INDEX, ((reg) & 0xffff)); in eg_pif_phy0_rreg()
88 WREG32(EVERGREEN_PIF_PHY0_INDEX, ((reg) & 0xffff)); in eg_pif_phy0_wreg()
99 WREG32(EVERGREEN_PIF_PHY1_INDEX, ((reg) & 0xffff)); in eg_pif_phy1_rreg()
110 WREG32(EVERGREEN_PIF_PHY1_INDEX, ((reg) & 0xffff)); in eg_pif_phy1_wreg()
129 0x98fc,
130 0x9830,
131 0x9834,
132 0x9838,
133 0x9870,
134 0x9874,
135 0x8a14,
136 0x8b24,
137 0x8bcc,
138 0x8b10,
139 0x8d00,
140 0x8d04,
141 0x8c00,
142 0x8c04,
143 0x8c08,
144 0x8c0c,
145 0x8d8c,
146 0x8c20,
147 0x8c24,
148 0x8c28,
149 0x8c18,
150 0x8c1c,
151 0x8cf0,
152 0x8e2c,
153 0x8e38,
154 0x8c30,
155 0x9508,
156 0x9688,
157 0x9608,
158 0x960c,
159 0x9610,
160 0x9614,
161 0x88c4,
162 0x88d4,
163 0xa008,
164 0x900c,
165 0x9100,
166 0x913c,
167 0x98f8,
168 0x98f4,
169 0x9b7c,
170 0x3f8c,
171 0x8950,
172 0x8954,
173 0x8a18,
174 0x8b28,
175 0x9144,
176 0x9148,
177 0x914c,
178 0x3f90,
179 0x3f94,
180 0x915c,
181 0x9160,
182 0x9178,
183 0x917c,
184 0x9180,
185 0x918c,
186 0x9190,
187 0x9194,
188 0x9198,
189 0x919c,
190 0x91a8,
191 0x91ac,
192 0x91b0,
193 0x91b4,
194 0x91b8,
195 0x91c4,
196 0x91c8,
197 0x91cc,
198 0x91d0,
199 0x91d4,
200 0x91e0,
201 0x91e4,
202 0x91ec,
203 0x91f0,
204 0x91f4,
205 0x9200,
206 0x9204,
207 0x929c,
208 0x9150,
209 0x802c,
230 0x3f90, 0xffff0000, 0xff000000,
231 0x9148, 0xffff0000, 0xff000000,
232 0x3f94, 0xffff0000, 0xff000000,
233 0x914c, 0xffff0000, 0xff000000,
234 0x9b7c, 0xffffffff, 0x00000000,
235 0x8a14, 0xffffffff, 0x00000007,
236 0x8b10, 0xffffffff, 0x00000000,
237 0x960c, 0xffffffff, 0x54763210,
238 0x88c4, 0xffffffff, 0x000000c2,
239 0x88d4, 0xffffffff, 0x00000010,
240 0x8974, 0xffffffff, 0x00000000,
241 0xc78, 0x00000080, 0x00000080,
242 0x5eb4, 0xffffffff, 0x00000002,
243 0x5e78, 0xffffffff, 0x001000f0,
244 0x6104, 0x01000300, 0x00000000,
245 0x5bc0, 0x00300000, 0x00000000,
246 0x7030, 0xffffffff, 0x00000011,
247 0x7c30, 0xffffffff, 0x00000011,
248 0x10830, 0xffffffff, 0x00000011,
249 0x11430, 0xffffffff, 0x00000011,
250 0x12030, 0xffffffff, 0x00000011,
251 0x12c30, 0xffffffff, 0x00000011,
252 0xd02c, 0xffffffff, 0x08421000,
253 0x240c, 0xffffffff, 0x00000380,
254 0x8b24, 0xffffffff, 0x00ff0fff,
255 0x28a4c, 0x06000000, 0x06000000,
256 0x10c, 0x00000001, 0x00000001,
257 0x8d00, 0xffffffff, 0x100e4848,
258 0x8d04, 0xffffffff, 0x00164745,
259 0x8c00, 0xffffffff, 0xe4000003,
260 0x8c04, 0xffffffff, 0x40600060,
261 0x8c08, 0xffffffff, 0x001c001c,
262 0x8cf0, 0xffffffff, 0x08e00620,
263 0x8c20, 0xffffffff, 0x00800080,
264 0x8c24, 0xffffffff, 0x00800080,
265 0x8c18, 0xffffffff, 0x20202078,
266 0x8c1c, 0xffffffff, 0x00001010,
267 0x28350, 0xffffffff, 0x00000000,
268 0xa008, 0xffffffff, 0x00010000,
269 0x5c4, 0xffffffff, 0x00000001,
270 0x9508, 0xffffffff, 0x00000002,
271 0x913c, 0x0000000f, 0x0000000a
276 0x2f4c, 0xffffffff, 0x00000000,
277 0x54f4, 0xffffffff, 0x00000000,
278 0x54f0, 0xffffffff, 0x00000000,
279 0x5498, 0xffffffff, 0x00000000,
280 0x549c, 0xffffffff, 0x00000000,
281 0x5494, 0xffffffff, 0x00000000,
282 0x53cc, 0xffffffff, 0x00000000,
283 0x53c8, 0xffffffff, 0x00000000,
284 0x53c4, 0xffffffff, 0x00000000,
285 0x53c0, 0xffffffff, 0x00000000,
286 0x53bc, 0xffffffff, 0x00000000,
287 0x53b8, 0xffffffff, 0x00000000,
288 0x53b4, 0xffffffff, 0x00000000,
289 0x53b0, 0xffffffff, 0x00000000
294 0x802c, 0xffffffff, 0xc0000000,
295 0x5448, 0xffffffff, 0x00000100,
296 0x55e4, 0xffffffff, 0x00000100,
297 0x160c, 0xffffffff, 0x00000100,
298 0x5644, 0xffffffff, 0x00000100,
299 0xc164, 0xffffffff, 0x00000100,
300 0x8a18, 0xffffffff, 0x00000100,
301 0x897c, 0xffffffff, 0x06000100,
302 0x8b28, 0xffffffff, 0x00000100,
303 0x9144, 0xffffffff, 0x00000100,
304 0x9a60, 0xffffffff, 0x00000100,
305 0x9868, 0xffffffff, 0x00000100,
306 0x8d58, 0xffffffff, 0x00000100,
307 0x9510, 0xffffffff, 0x00000100,
308 0x949c, 0xffffffff, 0x00000100,
309 0x9654, 0xffffffff, 0x00000100,
310 0x9030, 0xffffffff, 0x00000100,
311 0x9034, 0xffffffff, 0x00000100,
312 0x9038, 0xffffffff, 0x00000100,
313 0x903c, 0xffffffff, 0x00000100,
314 0x9040, 0xffffffff, 0x00000100,
315 0xa200, 0xffffffff, 0x00000100,
316 0xa204, 0xffffffff, 0x00000100,
317 0xa208, 0xffffffff, 0x00000100,
318 0xa20c, 0xffffffff, 0x00000100,
319 0x971c, 0xffffffff, 0x00000100,
320 0x977c, 0xffffffff, 0x00000100,
321 0x3f80, 0xffffffff, 0x00000100,
322 0xa210, 0xffffffff, 0x00000100,
323 0xa214, 0xffffffff, 0x00000100,
324 0x4d8, 0xffffffff, 0x00000100,
325 0x9784, 0xffffffff, 0x00000100,
326 0x9698, 0xffffffff, 0x00000100,
327 0x4d4, 0xffffffff, 0x00000200,
328 0x30cc, 0xffffffff, 0x00000100,
329 0xd0c0, 0xffffffff, 0xff000100,
330 0x802c, 0xffffffff, 0x40000000,
331 0x915c, 0xffffffff, 0x00010000,
332 0x9160, 0xffffffff, 0x00030002,
333 0x9178, 0xffffffff, 0x00070000,
334 0x917c, 0xffffffff, 0x00030002,
335 0x9180, 0xffffffff, 0x00050004,
336 0x918c, 0xffffffff, 0x00010006,
337 0x9190, 0xffffffff, 0x00090008,
338 0x9194, 0xffffffff, 0x00070000,
339 0x9198, 0xffffffff, 0x00030002,
340 0x919c, 0xffffffff, 0x00050004,
341 0x91a8, 0xffffffff, 0x00010006,
342 0x91ac, 0xffffffff, 0x00090008,
343 0x91b0, 0xffffffff, 0x00070000,
344 0x91b4, 0xffffffff, 0x00030002,
345 0x91b8, 0xffffffff, 0x00050004,
346 0x91c4, 0xffffffff, 0x00010006,
347 0x91c8, 0xffffffff, 0x00090008,
348 0x91cc, 0xffffffff, 0x00070000,
349 0x91d0, 0xffffffff, 0x00030002,
350 0x91d4, 0xffffffff, 0x00050004,
351 0x91e0, 0xffffffff, 0x00010006,
352 0x91e4, 0xffffffff, 0x00090008,
353 0x91e8, 0xffffffff, 0x00000000,
354 0x91ec, 0xffffffff, 0x00070000,
355 0x91f0, 0xffffffff, 0x00030002,
356 0x91f4, 0xffffffff, 0x00050004,
357 0x9200, 0xffffffff, 0x00010006,
358 0x9204, 0xffffffff, 0x00090008,
359 0x9208, 0xffffffff, 0x00070000,
360 0x920c, 0xffffffff, 0x00030002,
361 0x9210, 0xffffffff, 0x00050004,
362 0x921c, 0xffffffff, 0x00010006,
363 0x9220, 0xffffffff, 0x00090008,
364 0x9224, 0xffffffff, 0x00070000,
365 0x9228, 0xffffffff, 0x00030002,
366 0x922c, 0xffffffff, 0x00050004,
367 0x9238, 0xffffffff, 0x00010006,
368 0x923c, 0xffffffff, 0x00090008,
369 0x9240, 0xffffffff, 0x00070000,
370 0x9244, 0xffffffff, 0x00030002,
371 0x9248, 0xffffffff, 0x00050004,
372 0x9254, 0xffffffff, 0x00010006,
373 0x9258, 0xffffffff, 0x00090008,
374 0x925c, 0xffffffff, 0x00070000,
375 0x9260, 0xffffffff, 0x00030002,
376 0x9264, 0xffffffff, 0x00050004,
377 0x9270, 0xffffffff, 0x00010006,
378 0x9274, 0xffffffff, 0x00090008,
379 0x9278, 0xffffffff, 0x00070000,
380 0x927c, 0xffffffff, 0x00030002,
381 0x9280, 0xffffffff, 0x00050004,
382 0x928c, 0xffffffff, 0x00010006,
383 0x9290, 0xffffffff, 0x00090008,
384 0x9294, 0xffffffff, 0x00000000,
385 0x929c, 0xffffffff, 0x00000001,
386 0x802c, 0xffffffff, 0x40010000,
387 0x915c, 0xffffffff, 0x00010000,
388 0x9160, 0xffffffff, 0x00030002,
389 0x9178, 0xffffffff, 0x00070000,
390 0x917c, 0xffffffff, 0x00030002,
391 0x9180, 0xffffffff, 0x00050004,
392 0x918c, 0xffffffff, 0x00010006,
393 0x9190, 0xffffffff, 0x00090008,
394 0x9194, 0xffffffff, 0x00070000,
395 0x9198, 0xffffffff, 0x00030002,
396 0x919c, 0xffffffff, 0x00050004,
397 0x91a8, 0xffffffff, 0x00010006,
398 0x91ac, 0xffffffff, 0x00090008,
399 0x91b0, 0xffffffff, 0x00070000,
400 0x91b4, 0xffffffff, 0x00030002,
401 0x91b8, 0xffffffff, 0x00050004,
402 0x91c4, 0xffffffff, 0x00010006,
403 0x91c8, 0xffffffff, 0x00090008,
404 0x91cc, 0xffffffff, 0x00070000,
405 0x91d0, 0xffffffff, 0x00030002,
406 0x91d4, 0xffffffff, 0x00050004,
407 0x91e0, 0xffffffff, 0x00010006,
408 0x91e4, 0xffffffff, 0x00090008,
409 0x91e8, 0xffffffff, 0x00000000,
410 0x91ec, 0xffffffff, 0x00070000,
411 0x91f0, 0xffffffff, 0x00030002,
412 0x91f4, 0xffffffff, 0x00050004,
413 0x9200, 0xffffffff, 0x00010006,
414 0x9204, 0xffffffff, 0x00090008,
415 0x9208, 0xffffffff, 0x00070000,
416 0x920c, 0xffffffff, 0x00030002,
417 0x9210, 0xffffffff, 0x00050004,
418 0x921c, 0xffffffff, 0x00010006,
419 0x9220, 0xffffffff, 0x00090008,
420 0x9224, 0xffffffff, 0x00070000,
421 0x9228, 0xffffffff, 0x00030002,
422 0x922c, 0xffffffff, 0x00050004,
423 0x9238, 0xffffffff, 0x00010006,
424 0x923c, 0xffffffff, 0x00090008,
425 0x9240, 0xffffffff, 0x00070000,
426 0x9244, 0xffffffff, 0x00030002,
427 0x9248, 0xffffffff, 0x00050004,
428 0x9254, 0xffffffff, 0x00010006,
429 0x9258, 0xffffffff, 0x00090008,
430 0x925c, 0xffffffff, 0x00070000,
431 0x9260, 0xffffffff, 0x00030002,
432 0x9264, 0xffffffff, 0x00050004,
433 0x9270, 0xffffffff, 0x00010006,
434 0x9274, 0xffffffff, 0x00090008,
435 0x9278, 0xffffffff, 0x00070000,
436 0x927c, 0xffffffff, 0x00030002,
437 0x9280, 0xffffffff, 0x00050004,
438 0x928c, 0xffffffff, 0x00010006,
439 0x9290, 0xffffffff, 0x00090008,
440 0x9294, 0xffffffff, 0x00000000,
441 0x929c, 0xffffffff, 0x00000001,
442 0x802c, 0xffffffff, 0xc0000000
447 0x802c, 0xffffffff, 0xc0000000,
448 0x5448, 0xffffffff, 0x00000100,
449 0x55e4, 0xffffffff, 0x00000100,
450 0x160c, 0xffffffff, 0x00000100,
451 0x5644, 0xffffffff, 0x00000100,
452 0xc164, 0xffffffff, 0x00000100,
453 0x8a18, 0xffffffff, 0x00000100,
454 0x897c, 0xffffffff, 0x06000100,
455 0x8b28, 0xffffffff, 0x00000100,
456 0x9144, 0xffffffff, 0x00000100,
457 0x9a60, 0xffffffff, 0x00000100,
458 0x9868, 0xffffffff, 0x00000100,
459 0x8d58, 0xffffffff, 0x00000100,
460 0x9510, 0xffffffff, 0x00000100,
461 0x949c, 0xffffffff, 0x00000100,
462 0x9654, 0xffffffff, 0x00000100,
463 0x9030, 0xffffffff, 0x00000100,
464 0x9034, 0xffffffff, 0x00000100,
465 0x9038, 0xffffffff, 0x00000100,
466 0x903c, 0xffffffff, 0x00000100,
467 0x9040, 0xffffffff, 0x00000100,
468 0xa200, 0xffffffff, 0x00000100,
469 0xa204, 0xffffffff, 0x00000100,
470 0xa208, 0xffffffff, 0x00000100,
471 0xa20c, 0xffffffff, 0x00000100,
472 0x971c, 0xffffffff, 0x00000100,
473 0x977c, 0xffffffff, 0x00000100,
474 0x3f80, 0xffffffff, 0x00000100,
475 0xa210, 0xffffffff, 0x00000100,
476 0xa214, 0xffffffff, 0x00000100,
477 0x4d8, 0xffffffff, 0x00000100,
478 0x9784, 0xffffffff, 0x00000100,
479 0x9698, 0xffffffff, 0x00000100,
480 0x4d4, 0xffffffff, 0x00000200,
481 0x30cc, 0xffffffff, 0x00000100,
482 0xd0c0, 0xffffffff, 0xff000100,
483 0x802c, 0xffffffff, 0x40000000,
484 0x915c, 0xffffffff, 0x00010000,
485 0x9160, 0xffffffff, 0x00030002,
486 0x9178, 0xffffffff, 0x00070000,
487 0x917c, 0xffffffff, 0x00030002,
488 0x9180, 0xffffffff, 0x00050004,
489 0x918c, 0xffffffff, 0x00010006,
490 0x9190, 0xffffffff, 0x00090008,
491 0x9194, 0xffffffff, 0x00070000,
492 0x9198, 0xffffffff, 0x00030002,
493 0x919c, 0xffffffff, 0x00050004,
494 0x91a8, 0xffffffff, 0x00010006,
495 0x91ac, 0xffffffff, 0x00090008,
496 0x91b0, 0xffffffff, 0x00070000,
497 0x91b4, 0xffffffff, 0x00030002,
498 0x91b8, 0xffffffff, 0x00050004,
499 0x91c4, 0xffffffff, 0x00010006,
500 0x91c8, 0xffffffff, 0x00090008,
501 0x91cc, 0xffffffff, 0x00070000,
502 0x91d0, 0xffffffff, 0x00030002,
503 0x91d4, 0xffffffff, 0x00050004,
504 0x91e0, 0xffffffff, 0x00010006,
505 0x91e4, 0xffffffff, 0x00090008,
506 0x91e8, 0xffffffff, 0x00000000,
507 0x91ec, 0xffffffff, 0x00070000,
508 0x91f0, 0xffffffff, 0x00030002,
509 0x91f4, 0xffffffff, 0x00050004,
510 0x9200, 0xffffffff, 0x00010006,
511 0x9204, 0xffffffff, 0x00090008,
512 0x9294, 0xffffffff, 0x00000000,
513 0x929c, 0xffffffff, 0x00000001,
514 0x802c, 0xffffffff, 0xc0000000
519 0x3f90, 0xffff0000, 0xff000000,
520 0x9148, 0xffff0000, 0xff000000,
521 0x3f94, 0xffff0000, 0xff000000,
522 0x914c, 0xffff0000, 0xff000000,
523 0x9b7c, 0xffffffff, 0x00000000,
524 0x8a14, 0xffffffff, 0x00000007,
525 0x8b10, 0xffffffff, 0x00000000,
526 0x960c, 0xffffffff, 0x54763210,
527 0x88c4, 0xffffffff, 0x000000c2,
528 0x88d4, 0xffffffff, 0x00000000,
529 0x8974, 0xffffffff, 0x00000000,
530 0xc78, 0x00000080, 0x00000080,
531 0x5eb4, 0xffffffff, 0x00000002,
532 0x5e78, 0xffffffff, 0x001000f0,
533 0x6104, 0x01000300, 0x00000000,
534 0x5bc0, 0x00300000, 0x00000000,
535 0x7030, 0xffffffff, 0x00000011,
536 0x7c30, 0xffffffff, 0x00000011,
537 0x10830, 0xffffffff, 0x00000011,
538 0x11430, 0xffffffff, 0x00000011,
539 0xd02c, 0xffffffff, 0x08421000,
540 0x240c, 0xffffffff, 0x00000380,
541 0x8b24, 0xffffffff, 0x00ff0fff,
542 0x28a4c, 0x06000000, 0x06000000,
543 0x10c, 0x00000001, 0x00000001,
544 0x8d00, 0xffffffff, 0x100e4848,
545 0x8d04, 0xffffffff, 0x00164745,
546 0x8c00, 0xffffffff, 0xe4000003,
547 0x8c04, 0xffffffff, 0x40600060,
548 0x8c08, 0xffffffff, 0x001c001c,
549 0x8cf0, 0xffffffff, 0x08e00410,
550 0x8c20, 0xffffffff, 0x00800080,
551 0x8c24, 0xffffffff, 0x00800080,
552 0x8c18, 0xffffffff, 0x20202078,
553 0x8c1c, 0xffffffff, 0x00001010,
554 0x28350, 0xffffffff, 0x00000000,
555 0xa008, 0xffffffff, 0x00010000,
556 0x5c4, 0xffffffff, 0x00000001,
557 0x9508, 0xffffffff, 0x00000002
562 0x802c, 0xffffffff, 0xc0000000,
563 0x5448, 0xffffffff, 0x00000100,
564 0x55e4, 0xffffffff, 0x00000100,
565 0x160c, 0xffffffff, 0x00000100,
566 0x5644, 0xffffffff, 0x00000100,
567 0xc164, 0xffffffff, 0x00000100,
568 0x8a18, 0xffffffff, 0x00000100,
569 0x897c, 0xffffffff, 0x06000100,
570 0x8b28, 0xffffffff, 0x00000100,
571 0x9144, 0xffffffff, 0x00000100,
572 0x9a60, 0xffffffff, 0x00000100,
573 0x9868, 0xffffffff, 0x00000100,
574 0x8d58, 0xffffffff, 0x00000100,
575 0x9510, 0xffffffff, 0x00000100,
576 0x949c, 0xffffffff, 0x00000100,
577 0x9654, 0xffffffff, 0x00000100,
578 0x9030, 0xffffffff, 0x00000100,
579 0x9034, 0xffffffff, 0x00000100,
580 0x9038, 0xffffffff, 0x00000100,
581 0x903c, 0xffffffff, 0x00000100,
582 0x9040, 0xffffffff, 0x00000100,
583 0xa200, 0xffffffff, 0x00000100,
584 0xa204, 0xffffffff, 0x00000100,
585 0xa208, 0xffffffff, 0x00000100,
586 0xa20c, 0xffffffff, 0x00000100,
587 0x971c, 0xffffffff, 0x00000100,
588 0x977c, 0xffffffff, 0x00000100,
589 0x3f80, 0xffffffff, 0x00000100,
590 0xa210, 0xffffffff, 0x00000100,
591 0xa214, 0xffffffff, 0x00000100,
592 0x4d8, 0xffffffff, 0x00000100,
593 0x9784, 0xffffffff, 0x00000100,
594 0x9698, 0xffffffff, 0x00000100,
595 0x4d4, 0xffffffff, 0x00000200,
596 0x30cc, 0xffffffff, 0x00000100,
597 0xd0c0, 0xffffffff, 0xff000100,
598 0x802c, 0xffffffff, 0x40000000,
599 0x915c, 0xffffffff, 0x00010000,
600 0x9178, 0xffffffff, 0x00050000,
601 0x917c, 0xffffffff, 0x00030002,
602 0x918c, 0xffffffff, 0x00010004,
603 0x9190, 0xffffffff, 0x00070006,
604 0x9194, 0xffffffff, 0x00050000,
605 0x9198, 0xffffffff, 0x00030002,
606 0x91a8, 0xffffffff, 0x00010004,
607 0x91ac, 0xffffffff, 0x00070006,
608 0x91e8, 0xffffffff, 0x00000000,
609 0x9294, 0xffffffff, 0x00000000,
610 0x929c, 0xffffffff, 0x00000001,
611 0x802c, 0xffffffff, 0xc0000000
616 0x802c, 0xffffffff, 0xc0000000,
617 0x5448, 0xffffffff, 0x00000100,
618 0x55e4, 0xffffffff, 0x00000100,
619 0x160c, 0xffffffff, 0x00000100,
620 0x5644, 0xffffffff, 0x00000100,
621 0xc164, 0xffffffff, 0x00000100,
622 0x8a18, 0xffffffff, 0x00000100,
623 0x897c, 0xffffffff, 0x06000100,
624 0x8b28, 0xffffffff, 0x00000100,
625 0x9144, 0xffffffff, 0x00000100,
626 0x9a60, 0xffffffff, 0x00000100,
627 0x9868, 0xffffffff, 0x00000100,
628 0x8d58, 0xffffffff, 0x00000100,
629 0x9510, 0xffffffff, 0x00000100,
630 0x949c, 0xffffffff, 0x00000100,
631 0x9654, 0xffffffff, 0x00000100,
632 0x9030, 0xffffffff, 0x00000100,
633 0x9034, 0xffffffff, 0x00000100,
634 0x9038, 0xffffffff, 0x00000100,
635 0x903c, 0xffffffff, 0x00000100,
636 0x9040, 0xffffffff, 0x00000100,
637 0xa200, 0xffffffff, 0x00000100,
638 0xa204, 0xffffffff, 0x00000100,
639 0xa208, 0xffffffff, 0x00000100,
640 0xa20c, 0xffffffff, 0x00000100,
641 0x971c, 0xffffffff, 0x00000100,
642 0xd0c0, 0xffffffff, 0xff000100,
643 0x802c, 0xffffffff, 0x40000000,
644 0x915c, 0xffffffff, 0x00010000,
645 0x9160, 0xffffffff, 0x00030002,
646 0x9178, 0xffffffff, 0x00070000,
647 0x917c, 0xffffffff, 0x00030002,
648 0x9180, 0xffffffff, 0x00050004,
649 0x918c, 0xffffffff, 0x00010006,
650 0x9190, 0xffffffff, 0x00090008,
651 0x9194, 0xffffffff, 0x00070000,
652 0x9198, 0xffffffff, 0x00030002,
653 0x919c, 0xffffffff, 0x00050004,
654 0x91a8, 0xffffffff, 0x00010006,
655 0x91ac, 0xffffffff, 0x00090008,
656 0x91b0, 0xffffffff, 0x00070000,
657 0x91b4, 0xffffffff, 0x00030002,
658 0x91b8, 0xffffffff, 0x00050004,
659 0x91c4, 0xffffffff, 0x00010006,
660 0x91c8, 0xffffffff, 0x00090008,
661 0x91cc, 0xffffffff, 0x00070000,
662 0x91d0, 0xffffffff, 0x00030002,
663 0x91d4, 0xffffffff, 0x00050004,
664 0x91e0, 0xffffffff, 0x00010006,
665 0x91e4, 0xffffffff, 0x00090008,
666 0x91e8, 0xffffffff, 0x00000000,
667 0x91ec, 0xffffffff, 0x00070000,
668 0x91f0, 0xffffffff, 0x00030002,
669 0x91f4, 0xffffffff, 0x00050004,
670 0x9200, 0xffffffff, 0x00010006,
671 0x9204, 0xffffffff, 0x00090008,
672 0x9208, 0xffffffff, 0x00070000,
673 0x920c, 0xffffffff, 0x00030002,
674 0x9210, 0xffffffff, 0x00050004,
675 0x921c, 0xffffffff, 0x00010006,
676 0x9220, 0xffffffff, 0x00090008,
677 0x9224, 0xffffffff, 0x00070000,
678 0x9228, 0xffffffff, 0x00030002,
679 0x922c, 0xffffffff, 0x00050004,
680 0x9238, 0xffffffff, 0x00010006,
681 0x923c, 0xffffffff, 0x00090008,
682 0x9240, 0xffffffff, 0x00070000,
683 0x9244, 0xffffffff, 0x00030002,
684 0x9248, 0xffffffff, 0x00050004,
685 0x9254, 0xffffffff, 0x00010006,
686 0x9258, 0xffffffff, 0x00090008,
687 0x925c, 0xffffffff, 0x00070000,
688 0x9260, 0xffffffff, 0x00030002,
689 0x9264, 0xffffffff, 0x00050004,
690 0x9270, 0xffffffff, 0x00010006,
691 0x9274, 0xffffffff, 0x00090008,
692 0x9278, 0xffffffff, 0x00070000,
693 0x927c, 0xffffffff, 0x00030002,
694 0x9280, 0xffffffff, 0x00050004,
695 0x928c, 0xffffffff, 0x00010006,
696 0x9290, 0xffffffff, 0x00090008,
697 0x9294, 0xffffffff, 0x00000000,
698 0x929c, 0xffffffff, 0x00000001,
699 0x802c, 0xffffffff, 0xc0000000,
700 0x977c, 0xffffffff, 0x00000100,
701 0x3f80, 0xffffffff, 0x00000100,
702 0xa210, 0xffffffff, 0x00000100,
703 0xa214, 0xffffffff, 0x00000100,
704 0x4d8, 0xffffffff, 0x00000100,
705 0x9784, 0xffffffff, 0x00000100,
706 0x9698, 0xffffffff, 0x00000100,
707 0x4d4, 0xffffffff, 0x00000200,
708 0x30cc, 0xffffffff, 0x00000100,
709 0x802c, 0xffffffff, 0xc0000000
714 0x5eb4, 0xffffffff, 0x00000002,
715 0x5c4, 0xffffffff, 0x00000001,
716 0x7030, 0xffffffff, 0x00000011,
717 0x7c30, 0xffffffff, 0x00000011,
718 0x6104, 0x01000300, 0x00000000,
719 0x5bc0, 0x00300000, 0x00000000,
720 0x8c04, 0xffffffff, 0x40600060,
721 0x8c08, 0xffffffff, 0x001c001c,
722 0x8c20, 0xffffffff, 0x00800080,
723 0x8c24, 0xffffffff, 0x00800080,
724 0x8c18, 0xffffffff, 0x20202078,
725 0x8c1c, 0xffffffff, 0x00001010,
726 0x918c, 0xffffffff, 0x00010006,
727 0x91a8, 0xffffffff, 0x00010006,
728 0x91c4, 0xffffffff, 0x00010006,
729 0x91e0, 0xffffffff, 0x00010006,
730 0x9200, 0xffffffff, 0x00010006,
731 0x9150, 0xffffffff, 0x6e944040,
732 0x917c, 0xffffffff, 0x00030002,
733 0x9180, 0xffffffff, 0x00050004,
734 0x9198, 0xffffffff, 0x00030002,
735 0x919c, 0xffffffff, 0x00050004,
736 0x91b4, 0xffffffff, 0x00030002,
737 0x91b8, 0xffffffff, 0x00050004,
738 0x91d0, 0xffffffff, 0x00030002,
739 0x91d4, 0xffffffff, 0x00050004,
740 0x91f0, 0xffffffff, 0x00030002,
741 0x91f4, 0xffffffff, 0x00050004,
742 0x915c, 0xffffffff, 0x00010000,
743 0x9160, 0xffffffff, 0x00030002,
744 0x3f90, 0xffff0000, 0xff000000,
745 0x9178, 0xffffffff, 0x00070000,
746 0x9194, 0xffffffff, 0x00070000,
747 0x91b0, 0xffffffff, 0x00070000,
748 0x91cc, 0xffffffff, 0x00070000,
749 0x91ec, 0xffffffff, 0x00070000,
750 0x9148, 0xffff0000, 0xff000000,
751 0x9190, 0xffffffff, 0x00090008,
752 0x91ac, 0xffffffff, 0x00090008,
753 0x91c8, 0xffffffff, 0x00090008,
754 0x91e4, 0xffffffff, 0x00090008,
755 0x9204, 0xffffffff, 0x00090008,
756 0x3f94, 0xffff0000, 0xff000000,
757 0x914c, 0xffff0000, 0xff000000,
758 0x929c, 0xffffffff, 0x00000001,
759 0x8a18, 0xffffffff, 0x00000100,
760 0x8b28, 0xffffffff, 0x00000100,
761 0x9144, 0xffffffff, 0x00000100,
762 0x5644, 0xffffffff, 0x00000100,
763 0x9b7c, 0xffffffff, 0x00000000,
764 0x8030, 0xffffffff, 0x0000100a,
765 0x8a14, 0xffffffff, 0x00000007,
766 0x8b24, 0xffffffff, 0x00ff0fff,
767 0x8b10, 0xffffffff, 0x00000000,
768 0x28a4c, 0x06000000, 0x06000000,
769 0x4d8, 0xffffffff, 0x00000100,
770 0x913c, 0xffff000f, 0x0100000a,
771 0x960c, 0xffffffff, 0x54763210,
772 0x88c4, 0xffffffff, 0x000000c2,
773 0x88d4, 0xffffffff, 0x00000010,
774 0x8974, 0xffffffff, 0x00000000,
775 0xc78, 0x00000080, 0x00000080,
776 0x5e78, 0xffffffff, 0x001000f0,
777 0xd02c, 0xffffffff, 0x08421000,
778 0xa008, 0xffffffff, 0x00010000,
779 0x8d00, 0xffffffff, 0x100e4848,
780 0x8d04, 0xffffffff, 0x00164745,
781 0x8c00, 0xffffffff, 0xe4000003,
782 0x8cf0, 0x1fffffff, 0x08e00620,
783 0x28350, 0xffffffff, 0x00000000,
784 0x9508, 0xffffffff, 0x00000002
789 0x900c, 0x00ffffff, 0x0017071f,
790 0x8c18, 0xffffffff, 0x10101060,
791 0x8c1c, 0xffffffff, 0x00001010,
792 0x8c30, 0x0000000f, 0x00000005,
793 0x9688, 0x0000000f, 0x00000007
798 0x5eb4, 0xffffffff, 0x00000002,
799 0x5c4, 0xffffffff, 0x00000001,
800 0x7030, 0xffffffff, 0x00000011,
801 0x7c30, 0xffffffff, 0x00000011,
802 0x6104, 0x01000300, 0x00000000,
803 0x5bc0, 0x00300000, 0x00000000,
804 0x918c, 0xffffffff, 0x00010006,
805 0x91a8, 0xffffffff, 0x00010006,
806 0x9150, 0xffffffff, 0x6e944040,
807 0x917c, 0xffffffff, 0x00030002,
808 0x9198, 0xffffffff, 0x00030002,
809 0x915c, 0xffffffff, 0x00010000,
810 0x3f90, 0xffff0000, 0xff000000,
811 0x9178, 0xffffffff, 0x00070000,
812 0x9194, 0xffffffff, 0x00070000,
813 0x9148, 0xffff0000, 0xff000000,
814 0x9190, 0xffffffff, 0x00090008,
815 0x91ac, 0xffffffff, 0x00090008,
816 0x3f94, 0xffff0000, 0xff000000,
817 0x914c, 0xffff0000, 0xff000000,
818 0x929c, 0xffffffff, 0x00000001,
819 0x8a18, 0xffffffff, 0x00000100,
820 0x8b28, 0xffffffff, 0x00000100,
821 0x9144, 0xffffffff, 0x00000100,
822 0x9b7c, 0xffffffff, 0x00000000,
823 0x8030, 0xffffffff, 0x0000100a,
824 0x8a14, 0xffffffff, 0x00000001,
825 0x8b24, 0xffffffff, 0x00ff0fff,
826 0x8b10, 0xffffffff, 0x00000000,
827 0x28a4c, 0x06000000, 0x06000000,
828 0x4d8, 0xffffffff, 0x00000100,
829 0x913c, 0xffff000f, 0x0100000a,
830 0x960c, 0xffffffff, 0x54763210,
831 0x88c4, 0xffffffff, 0x000000c2,
832 0x88d4, 0xffffffff, 0x00000010,
833 0x8974, 0xffffffff, 0x00000000,
834 0xc78, 0x00000080, 0x00000080,
835 0x5e78, 0xffffffff, 0x001000f0,
836 0xd02c, 0xffffffff, 0x08421000,
837 0xa008, 0xffffffff, 0x00010000,
838 0x8d00, 0xffffffff, 0x100e4848,
839 0x8d04, 0xffffffff, 0x00164745,
840 0x8c00, 0xffffffff, 0xe4000003,
841 0x8cf0, 0x1fffffff, 0x08e00410,
842 0x28350, 0xffffffff, 0x00000000,
843 0x9508, 0xffffffff, 0x00000002,
844 0x900c, 0xffffffff, 0x0017071f,
845 0x8c18, 0xffffffff, 0x10101060,
846 0x8c1c, 0xffffffff, 0x00001010
851 0x5eb4, 0xffffffff, 0x00000002,
852 0x5e78, 0x8f311ff1, 0x001000f0,
853 0x3f90, 0xffff0000, 0xff000000,
854 0x9148, 0xffff0000, 0xff000000,
855 0x3f94, 0xffff0000, 0xff000000,
856 0x914c, 0xffff0000, 0xff000000,
857 0xc78, 0x00000080, 0x00000080,
858 0xbd4, 0x70073777, 0x00010001,
859 0xd02c, 0xbfffff1f, 0x08421000,
860 0xd0b8, 0x03773777, 0x02011003,
861 0x5bc0, 0x00200000, 0x50100000,
862 0x98f8, 0x33773777, 0x02011003,
863 0x98fc, 0xffffffff, 0x76543210,
864 0x7030, 0x31000311, 0x00000011,
865 0x2f48, 0x00000007, 0x02011003,
866 0x6b28, 0x00000010, 0x00000012,
867 0x7728, 0x00000010, 0x00000012,
868 0x10328, 0x00000010, 0x00000012,
869 0x10f28, 0x00000010, 0x00000012,
870 0x11b28, 0x00000010, 0x00000012,
871 0x12728, 0x00000010, 0x00000012,
872 0x240c, 0x000007ff, 0x00000380,
873 0x8a14, 0xf000001f, 0x00000007,
874 0x8b24, 0x3fff3fff, 0x00ff0fff,
875 0x8b10, 0x0000ff0f, 0x00000000,
876 0x28a4c, 0x07ffffff, 0x06000000,
877 0x10c, 0x00000001, 0x00010003,
878 0xa02c, 0xffffffff, 0x0000009b,
879 0x913c, 0x0000000f, 0x0100000a,
880 0x8d00, 0xffff7f7f, 0x100e4848,
881 0x8d04, 0x00ffffff, 0x00164745,
882 0x8c00, 0xfffc0003, 0xe4000003,
883 0x8c04, 0xf8ff00ff, 0x40600060,
884 0x8c08, 0x00ff00ff, 0x001c001c,
885 0x8cf0, 0x1fff1fff, 0x08e00620,
886 0x8c20, 0x0fff0fff, 0x00800080,
887 0x8c24, 0x0fff0fff, 0x00800080,
888 0x8c18, 0xffffffff, 0x20202078,
889 0x8c1c, 0x0000ffff, 0x00001010,
890 0x28350, 0x00000f01, 0x00000000,
891 0x9508, 0x3700001f, 0x00000002,
892 0x960c, 0xffffffff, 0x54763210,
893 0x88c4, 0x001f3ae3, 0x000000c2,
894 0x88d4, 0x0000001f, 0x00000010,
895 0x8974, 0xffffffff, 0x00000000
900 0x5eb4, 0xffffffff, 0x00000002,
901 0x5e78, 0x8f311ff1, 0x001000f0,
902 0x8c8, 0x00003000, 0x00001070,
903 0x8cc, 0x000fffff, 0x00040035,
904 0x3f90, 0xffff0000, 0xfff00000,
905 0x9148, 0xffff0000, 0xfff00000,
906 0x3f94, 0xffff0000, 0xfff00000,
907 0x914c, 0xffff0000, 0xfff00000,
908 0xc78, 0x00000080, 0x00000080,
909 0xbd4, 0x00073007, 0x00010002,
910 0xd02c, 0xbfffff1f, 0x08421000,
911 0xd0b8, 0x03773777, 0x02010002,
912 0x5bc0, 0x00200000, 0x50100000,
913 0x98f8, 0x33773777, 0x00010002,
914 0x98fc, 0xffffffff, 0x33221100,
915 0x7030, 0x31000311, 0x00000011,
916 0x2f48, 0x33773777, 0x00010002,
917 0x6b28, 0x00000010, 0x00000012,
918 0x7728, 0x00000010, 0x00000012,
919 0x10328, 0x00000010, 0x00000012,
920 0x10f28, 0x00000010, 0x00000012,
921 0x11b28, 0x00000010, 0x00000012,
922 0x12728, 0x00000010, 0x00000012,
923 0x240c, 0x000007ff, 0x00000380,
924 0x8a14, 0xf000001f, 0x00000007,
925 0x8b24, 0x3fff3fff, 0x00ff0fff,
926 0x8b10, 0x0000ff0f, 0x00000000,
927 0x28a4c, 0x07ffffff, 0x06000000,
928 0x10c, 0x00000001, 0x00010003,
929 0xa02c, 0xffffffff, 0x0000009b,
930 0x913c, 0x0000000f, 0x0100000a,
931 0x8d00, 0xffff7f7f, 0x100e4848,
932 0x8d04, 0x00ffffff, 0x00164745,
933 0x8c00, 0xfffc0003, 0xe4000003,
934 0x8c04, 0xf8ff00ff, 0x40600060,
935 0x8c08, 0x00ff00ff, 0x001c001c,
936 0x8cf0, 0x1fff1fff, 0x08e00410,
937 0x8c20, 0x0fff0fff, 0x00800080,
938 0x8c24, 0x0fff0fff, 0x00800080,
939 0x8c18, 0xffffffff, 0x20202078,
940 0x8c1c, 0x0000ffff, 0x00001010,
941 0x28350, 0x00000f01, 0x00000000,
942 0x9508, 0x3700001f, 0x00000002,
943 0x960c, 0xffffffff, 0x54763210,
944 0x88c4, 0x001f3ae3, 0x000000c2,
945 0x88d4, 0x0000001f, 0x00000010,
946 0x8974, 0xffffffff, 0x00000000
951 0x5eb4, 0xffffffff, 0x00000002,
952 0x5e78, 0x8f311ff1, 0x001000f0,
953 0x8c8, 0x00003420, 0x00001450,
954 0x8cc, 0x000fffff, 0x00040035,
955 0x3f90, 0xffff0000, 0xfffc0000,
956 0x9148, 0xffff0000, 0xfffc0000,
957 0x3f94, 0xffff0000, 0xfffc0000,
958 0x914c, 0xffff0000, 0xfffc0000,
959 0xc78, 0x00000080, 0x00000080,
960 0xbd4, 0x00073007, 0x00010001,
961 0xd02c, 0xbfffff1f, 0x08421000,
962 0xd0b8, 0x03773777, 0x02010001,
963 0x5bc0, 0x00200000, 0x50100000,
964 0x98f8, 0x33773777, 0x02010001,
965 0x98fc, 0xffffffff, 0x33221100,
966 0x7030, 0x31000311, 0x00000011,
967 0x2f48, 0x33773777, 0x02010001,
968 0x6b28, 0x00000010, 0x00000012,
969 0x7728, 0x00000010, 0x00000012,
970 0x10328, 0x00000010, 0x00000012,
971 0x10f28, 0x00000010, 0x00000012,
972 0x11b28, 0x00000010, 0x00000012,
973 0x12728, 0x00000010, 0x00000012,
974 0x240c, 0x000007ff, 0x00000380,
975 0x8a14, 0xf000001f, 0x00000001,
976 0x8b24, 0x3fff3fff, 0x00ff0fff,
977 0x8b10, 0x0000ff0f, 0x00000000,
978 0x28a4c, 0x07ffffff, 0x06000000,
979 0x10c, 0x00000001, 0x00010003,
980 0xa02c, 0xffffffff, 0x0000009b,
981 0x913c, 0x0000000f, 0x0100000a,
982 0x8d00, 0xffff7f7f, 0x100e4848,
983 0x8d04, 0x00ffffff, 0x00164745,
984 0x8c00, 0xfffc0003, 0xe4000003,
985 0x8c04, 0xf8ff00ff, 0x40600060,
986 0x8c08, 0x00ff00ff, 0x001c001c,
987 0x8cf0, 0x1fff1fff, 0x08e00410,
988 0x8c20, 0x0fff0fff, 0x00800080,
989 0x8c24, 0x0fff0fff, 0x00800080,
990 0x8c18, 0xffffffff, 0x20202078,
991 0x8c1c, 0x0000ffff, 0x00001010,
992 0x28350, 0x00000f01, 0x00000000,
993 0x9508, 0x3700001f, 0x00000002,
994 0x960c, 0xffffffff, 0x54763210,
995 0x88c4, 0x001f3ae3, 0x000000c2,
996 0x88d4, 0x0000001f, 0x00000010,
997 0x8974, 0xffffffff, 0x00000000
1093 * Returns 0 for success or -EINVAL for an invalid register
1108 return 0; in evergreen_get_allowed_info_register()
1158 for (i = 0; i < 100; i++) { in sumo_set_uvd_clock()
1166 return 0; in sumo_set_uvd_clock()
1171 int r = 0; in sumo_set_uvd_clocks()
1177 cg_scratch &= 0xffff0000; in sumo_set_uvd_clocks()
1183 cg_scratch &= 0x0000ffff; in sumo_set_uvd_clocks()
1195 unsigned fb_div = 0, vclk_div = 0, dclk_div = 0; in evergreen_set_uvd_clocks()
1209 return 0; in evergreen_set_uvd_clocks()
1213 16384, 0x03FFFFFF, 0, 128, 5, in evergreen_set_uvd_clocks()
1221 /* toggle UPLL_SLEEP to 1 then back to 0 */ in evergreen_set_uvd_clocks()
1223 WREG32_P(CG_UPLL_FUNC_CNTL, 0, ~UPLL_SLEEP_MASK); in evergreen_set_uvd_clocks()
1226 WREG32_P(CG_UPLL_FUNC_CNTL, 0, ~UPLL_RESET_MASK); in evergreen_set_uvd_clocks()
1238 WREG32_P(CG_UPLL_SPREAD_SPECTRUM, 0, ~SSEN_MASK); in evergreen_set_uvd_clocks()
1243 /* set ref divider to 0 */ in evergreen_set_uvd_clocks()
1244 WREG32_P(CG_UPLL_FUNC_CNTL, 0, ~UPLL_REF_DIV_MASK); in evergreen_set_uvd_clocks()
1247 WREG32_P(CG_UPLL_FUNC_CNTL_4, 0, ~UPLL_SPARE_ISPARE9); in evergreen_set_uvd_clocks()
1260 WREG32_P(CG_UPLL_FUNC_CNTL, 0, ~UPLL_RESET_MASK); in evergreen_set_uvd_clocks()
1265 WREG32_P(CG_UPLL_FUNC_CNTL, 0, ~UPLL_BYPASS_EN_MASK); in evergreen_set_uvd_clocks()
1278 return 0; in evergreen_set_uvd_clocks()
1291 if ((v == 0) || (v == 6) || (v == 7)) in evergreen_fix_pci_max_read_req_size()
1302 int bpc = 0; in dce4_program_fmt()
1303 u32 tmp = 0; in dce4_program_fmt()
1321 if (bpc == 0) in dce4_program_fmt()
1382 unsigned i = 0; in dce4_wait_for_vblank()
1394 if (i++ % 100 == 0) { in dce4_wait_for_vblank()
1401 if (i++ % 100 == 0) { in dce4_wait_for_vblank()
1425 async ? EVERGREEN_GRPH_SURFACE_UPDATE_H_RETRACE_EN : 0); in evergreen_page_flip()
1455 int actual_temp = 0; in evergreen_get_temp()
1463 if (toffset & 0x100) in evergreen_get_temp()
1464 actual_temp = temp / 2 - (0x200 - toffset); in evergreen_get_temp()
1474 if (temp & 0x400) in evergreen_get_temp()
1476 else if (temp & 0x200) in evergreen_get_temp()
1478 else if (temp & 0x100) { in evergreen_get_temp()
1479 actual_temp = temp & 0x1ff; in evergreen_get_temp()
1480 actual_temp |= ~0x1ff; in evergreen_get_temp()
1482 actual_temp = temp & 0xff; in evergreen_get_temp()
1492 u32 temp = RREG32(CG_THERMAL_STATUS) & 0xff; in sumo_get_temp()
1514 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_cm_idx = 0; in sumo_pm_init_profile()
1515 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_cm_idx = 0; in sumo_pm_init_profile()
1519 idx = radeon_pm_get_type_index(rdev, POWER_STATE_TYPE_BATTERY, 0); in sumo_pm_init_profile()
1521 idx = radeon_pm_get_type_index(rdev, POWER_STATE_TYPE_PERFORMANCE, 0); in sumo_pm_init_profile()
1525 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_cm_idx = 0; in sumo_pm_init_profile()
1526 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_cm_idx = 0; in sumo_pm_init_profile()
1530 rdev->pm.profiles[PM_PROFILE_LOW_MH_IDX].dpms_off_cm_idx = 0; in sumo_pm_init_profile()
1531 rdev->pm.profiles[PM_PROFILE_LOW_MH_IDX].dpms_on_cm_idx = 0; in sumo_pm_init_profile()
1535 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_off_cm_idx = 0; in sumo_pm_init_profile()
1536 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_on_cm_idx = 0; in sumo_pm_init_profile()
1540 rdev->pm.profiles[PM_PROFILE_MID_MH_IDX].dpms_off_cm_idx = 0; in sumo_pm_init_profile()
1541 rdev->pm.profiles[PM_PROFILE_MID_MH_IDX].dpms_on_cm_idx = 0; in sumo_pm_init_profile()
1544 idx = radeon_pm_get_type_index(rdev, POWER_STATE_TYPE_PERFORMANCE, 0); in sumo_pm_init_profile()
1547 rdev->pm.profiles[PM_PROFILE_HIGH_SH_IDX].dpms_off_cm_idx = 0; in sumo_pm_init_profile()
1553 rdev->pm.profiles[PM_PROFILE_HIGH_MH_IDX].dpms_off_cm_idx = 0; in sumo_pm_init_profile()
1574 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_cm_idx = 0; in btc_pm_init_profile()
1581 idx = radeon_pm_get_type_index(rdev, POWER_STATE_TYPE_BATTERY, 0); in btc_pm_init_profile()
1583 idx = radeon_pm_get_type_index(rdev, POWER_STATE_TYPE_PERFORMANCE, 0); in btc_pm_init_profile()
1587 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_cm_idx = 0; in btc_pm_init_profile()
1588 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_cm_idx = 0; in btc_pm_init_profile()
1592 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_off_cm_idx = 0; in btc_pm_init_profile()
1597 rdev->pm.profiles[PM_PROFILE_HIGH_SH_IDX].dpms_off_cm_idx = 0; in btc_pm_init_profile()
1602 rdev->pm.profiles[PM_PROFILE_LOW_MH_IDX].dpms_off_cm_idx = 0; in btc_pm_init_profile()
1603 rdev->pm.profiles[PM_PROFILE_LOW_MH_IDX].dpms_on_cm_idx = 0; in btc_pm_init_profile()
1607 rdev->pm.profiles[PM_PROFILE_MID_MH_IDX].dpms_off_cm_idx = 0; in btc_pm_init_profile()
1612 rdev->pm.profiles[PM_PROFILE_HIGH_MH_IDX].dpms_off_cm_idx = 0; in btc_pm_init_profile()
1632 /* 0xff0x are flags rather then an actual voltage */ in evergreen_pm_misc()
1633 if ((voltage->voltage & 0xff00) == 0xff00) in evergreen_pm_misc()
1653 /* 0xff0x are flags rather then an actual voltage */ in evergreen_pm_misc()
1654 if ((voltage->vddci & 0xff00) == 0xff00) in evergreen_pm_misc()
1765 unsigned enabled = 0; in evergreen_hpd_init()
1766 u32 tmp = DC_HPDx_CONNECTION_TIMER(0x9c4) | in evergreen_hpd_init()
1767 DC_HPDx_RX_INT_TIMER(0xfa) | DC_HPDx_EN; in evergreen_hpd_init()
1806 unsigned disabled = 0; in evergreen_hpd_fini()
1815 WREG32(DC_HPDx_CONTROL(hpd), 0); in evergreen_hpd_fini()
1829 u32 pipe_offset = radeon_crtc->crtc_id * 0x20; in evergreen_line_buffer_adjust()
1835 * preset allocations specified in bits 2:0: in evergreen_line_buffer_adjust()
1837 * 0 - first half of lb (3840 * 2) in evergreen_line_buffer_adjust()
1853 tmp = 0; /* 1/2 */ in evergreen_line_buffer_adjust()
1860 tmp = 0; in evergreen_line_buffer_adjust()
1861 buffer_alloc = 0; in evergreen_line_buffer_adjust()
1872 for (i = 0; i < rdev->usec_timeout; i++) { in evergreen_line_buffer_adjust()
1882 case 0: in evergreen_line_buffer_adjust()
1911 return 0; in evergreen_line_buffer_adjust()
1919 case 0: in evergreen_get_number_of_dram_channels()
2075 if (wm->num_heads == 0) in evergreen_latency_watermark()
2076 return 0; in evergreen_latency_watermark()
2160 u32 line_time = 0; in evergreen_program_watermarks()
2161 u32 latency_watermark_a = 0, latency_watermark_b = 0; in evergreen_program_watermarks()
2162 u32 priority_a_mark = 0, priority_b_mark = 0; in evergreen_program_watermarks()
2175 priority_a_cnt = 0; in evergreen_program_watermarks()
2176 priority_b_cnt = 0; in evergreen_program_watermarks()
2325 u32 num_heads = 0, lb_size; in evergreen_bandwidth_update()
2333 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_bandwidth_update()
2337 for (i = 0; i < rdev->num_crtc; i += 2) { in evergreen_bandwidth_update()
2354 * Returns 0 if the MC is idle, -1 if not.
2361 for (i = 0; i < rdev->usec_timeout; i++) { in evergreen_mc_wait_for_idle()
2363 tmp = RREG32(SRBM_STATUS) & 0x1F00; in evergreen_mc_wait_for_idle()
2365 return 0; in evergreen_mc_wait_for_idle()
2379 WREG32(HDP_MEM_COHERENCY_FLUSH_CNTL, 0x1); in evergreen_pcie_gart_tlb_flush()
2382 for (i = 0; i < rdev->usec_timeout; i++) { in evergreen_pcie_gart_tlb_flush()
2413 WREG32(VM_L2_CNTL2, 0); in evergreen_pcie_gart_enable()
2414 WREG32(VM_L2_CNTL3, BANK_SELECT(0) | CACHE_UPDATE_MODE(2)); in evergreen_pcie_gart_enable()
2441 WREG32(VM_CONTEXT0_CNTL, ENABLE_CONTEXT | PAGE_TABLE_DEPTH(0) | in evergreen_pcie_gart_enable()
2445 WREG32(VM_CONTEXT1_CNTL, 0); in evergreen_pcie_gart_enable()
2448 DRM_INFO("PCIE GART of %uM enabled (table at 0x%016llX).\n", in evergreen_pcie_gart_enable()
2452 return 0; in evergreen_pcie_gart_enable()
2460 WREG32(VM_CONTEXT0_CNTL, 0); in evergreen_pcie_gart_disable()
2461 WREG32(VM_CONTEXT1_CNTL, 0); in evergreen_pcie_gart_disable()
2466 WREG32(VM_L2_CNTL2, 0); in evergreen_pcie_gart_disable()
2467 WREG32(VM_L2_CNTL3, BANK_SELECT(0) | CACHE_UPDATE_MODE(2)); in evergreen_pcie_gart_disable()
2496 WREG32(VM_L2_CNTL2, 0); in evergreen_agp_enable()
2497 WREG32(VM_L2_CNTL3, BANK_SELECT(0) | CACHE_UPDATE_MODE(2)); in evergreen_agp_enable()
2510 WREG32(VM_CONTEXT0_CNTL, 0); in evergreen_agp_enable()
2511 WREG32(VM_CONTEXT1_CNTL, 0); in evergreen_agp_enable()
2579 for (i = 0; i < ARRAY_SIZE(ni_dig_offsets); i++) { in evergreen_is_dp_sst_stream_enabled()
2593 for (i = 0; i < ARRAY_SIZE(ni_dig_offsets); i++) { in evergreen_is_dp_sst_stream_enabled()
2629 unsigned counter = 0; in evergreen_blank_dp_output()
2675 WREG32(VGA_RENDER_CONTROL, 0); in evergreen_mc_stop()
2678 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_stop()
2689 WREG32(EVERGREEN_CRTC_UPDATE_LOCK + crtc_offsets[i], 0); in evergreen_mc_stop()
2698 WREG32(EVERGREEN_CRTC_UPDATE_LOCK + crtc_offsets[i], 0); in evergreen_mc_stop()
2703 for (j = 0; j < rdev->usec_timeout; j++) { in evergreen_mc_stop()
2724 WREG32(EVERGREEN_CRTC_UPDATE_LOCK + crtc_offsets[i], 0); in evergreen_mc_stop()
2737 WREG32(BIF_FB_EN, 0); in evergreen_mc_stop()
2746 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_stop()
2768 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_resume()
2785 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_resume()
2788 if ((tmp & 0x7) != 0) { in evergreen_mc_resume()
2789 tmp &= ~0x7; in evergreen_mc_resume()
2802 for (j = 0; j < rdev->usec_timeout; j++) { in evergreen_mc_resume()
2804 if ((tmp & EVERGREEN_GRPH_SURFACE_UPDATE_PENDING) == 0) in evergreen_mc_resume()
2818 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_resume()
2825 WREG32(EVERGREEN_CRTC_UPDATE_LOCK + crtc_offsets[i], 0); in evergreen_mc_resume()
2831 WREG32(EVERGREEN_CRTC_UPDATE_LOCK + crtc_offsets[i], 0); in evergreen_mc_resume()
2835 for (j = 0; j < rdev->usec_timeout; j++) { in evergreen_mc_resume()
2857 for (i = 0, j = 0; i < 32; i++, j += 0x18) { in evergreen_mc_program()
2858 WREG32((0x2c14 + j), 0x00000000); in evergreen_mc_program()
2859 WREG32((0x2c18 + j), 0x00000000); in evergreen_mc_program()
2860 WREG32((0x2c1c + j), 0x00000000); in evergreen_mc_program()
2861 WREG32((0x2c20 + j), 0x00000000); in evergreen_mc_program()
2862 WREG32((0x2c24 + j), 0x00000000); in evergreen_mc_program()
2864 WREG32(HDP_REG_COHERENCY_FLUSH_CNTL, 0); in evergreen_mc_program()
2898 tmp = RREG32(MC_FUS_VM_FB_OFFSET) & 0x000FFFFF; in evergreen_mc_program()
2899 tmp |= ((rdev->mc.vram_end >> 20) & 0xF) << 24; in evergreen_mc_program()
2900 tmp |= ((rdev->mc.vram_start >> 20) & 0xF) << 20; in evergreen_mc_program()
2903 tmp = ((rdev->mc.vram_end >> 24) & 0xFFFF) << 16; in evergreen_mc_program()
2904 tmp |= ((rdev->mc.vram_start >> 24) & 0xFFFF); in evergreen_mc_program()
2908 WREG32(HDP_NONSURFACE_SIZE, 0x3FFFFFFF); in evergreen_mc_program()
2914 WREG32(MC_VM_AGP_BASE, 0); in evergreen_mc_program()
2915 WREG32(MC_VM_AGP_TOP, 0x0FFFFFFF); in evergreen_mc_program()
2916 WREG32(MC_VM_AGP_BOT, 0x0FFFFFFF); in evergreen_mc_program()
2936 radeon_ring_write(ring, PACKET3(PACKET3_MODE_CONTROL, 0)); in evergreen_ring_ib_execute()
2948 radeon_ring_write(ring, ring->next_rptr_gpu_addr & 0xfffffffc); in evergreen_ring_ib_execute()
2949 radeon_ring_write(ring, (upper_32_bits(ring->next_rptr_gpu_addr) & 0xff) | (1 << 18)); in evergreen_ring_ib_execute()
2951 radeon_ring_write(ring, 0); in evergreen_ring_ib_execute()
2957 (2 << 0) | in evergreen_ring_ib_execute()
2959 (ib->gpu_addr & 0xFFFFFFFC)); in evergreen_ring_ib_execute()
2960 radeon_ring_write(ring, upper_32_bits(ib->gpu_addr) & 0xFF); in evergreen_ring_ib_execute()
2981 WREG32(CP_PFP_UCODE_ADDR, 0); in evergreen_cp_load_microcode()
2982 for (i = 0; i < EVERGREEN_PFP_UCODE_SIZE; i++) in evergreen_cp_load_microcode()
2984 WREG32(CP_PFP_UCODE_ADDR, 0); in evergreen_cp_load_microcode()
2987 WREG32(CP_ME_RAM_WADDR, 0); in evergreen_cp_load_microcode()
2988 for (i = 0; i < EVERGREEN_PM4_UCODE_SIZE; i++) in evergreen_cp_load_microcode()
2991 WREG32(CP_PFP_UCODE_ADDR, 0); in evergreen_cp_load_microcode()
2992 WREG32(CP_ME_RAM_WADDR, 0); in evergreen_cp_load_microcode()
2993 WREG32(CP_ME_RAM_RADDR, 0); in evergreen_cp_load_microcode()
2994 return 0; in evergreen_cp_load_microcode()
3009 radeon_ring_write(ring, 0x1); in evergreen_cp_start()
3010 radeon_ring_write(ring, 0x0); in evergreen_cp_start()
3013 radeon_ring_write(ring, 0); in evergreen_cp_start()
3014 radeon_ring_write(ring, 0); in evergreen_cp_start()
3017 cp_me = 0xff; in evergreen_cp_start()
3027 radeon_ring_write(ring, PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in evergreen_cp_start()
3030 for (i = 0; i < evergreen_default_size; i++) in evergreen_cp_start()
3033 radeon_ring_write(ring, PACKET3(PACKET3_PREAMBLE_CNTL, 0)); in evergreen_cp_start()
3037 radeon_ring_write(ring, PACKET3(PACKET3_CLEAR_STATE, 0)); in evergreen_cp_start()
3038 radeon_ring_write(ring, 0); in evergreen_cp_start()
3041 radeon_ring_write(ring, 0xc0026f00); in evergreen_cp_start()
3042 radeon_ring_write(ring, 0x00000000); in evergreen_cp_start()
3043 radeon_ring_write(ring, 0x00000000); in evergreen_cp_start()
3044 radeon_ring_write(ring, 0x00000000); in evergreen_cp_start()
3047 radeon_ring_write(ring, 0xc0036f00); in evergreen_cp_start()
3048 radeon_ring_write(ring, 0x00000bc4); in evergreen_cp_start()
3049 radeon_ring_write(ring, 0xffffffff); in evergreen_cp_start()
3050 radeon_ring_write(ring, 0xffffffff); in evergreen_cp_start()
3051 radeon_ring_write(ring, 0xffffffff); in evergreen_cp_start()
3053 radeon_ring_write(ring, 0xc0026900); in evergreen_cp_start()
3054 radeon_ring_write(ring, 0x00000316); in evergreen_cp_start()
3055 radeon_ring_write(ring, 0x0000000e); /* VGT_VERTEX_REUSE_BLOCK_CNTL */ in evergreen_cp_start()
3056 radeon_ring_write(ring, 0x00000010); /* */ in evergreen_cp_start()
3060 return 0; in evergreen_cp_start()
3079 WREG32(GRBM_SOFT_RESET, 0); in evergreen_cp_resume()
3089 WREG32(CP_SEM_WAIT_TIMER, 0x0); in evergreen_cp_resume()
3090 WREG32(CP_SEM_INCOMPLETE_TIMER_CNTL, 0x0); in evergreen_cp_resume()
3093 WREG32(CP_RB_WPTR_DELAY, 0); in evergreen_cp_resume()
3097 WREG32(CP_RB_RPTR_WR, 0); in evergreen_cp_resume()
3098 ring->wptr = 0; in evergreen_cp_resume()
3103 ((rdev->wb.gpu_addr + RADEON_WB_CP_RPTR_OFFSET) & 0xFFFFFFFC)); in evergreen_cp_resume()
3104 WREG32(CP_RB_RPTR_ADDR_HI, upper_32_bits(rdev->wb.gpu_addr + RADEON_WB_CP_RPTR_OFFSET) & 0xFF); in evergreen_cp_resume()
3105 WREG32(SCRATCH_ADDR, ((rdev->wb.gpu_addr + RADEON_WB_SCRATCH_OFFSET) >> 8) & 0xFFFFFFFF); in evergreen_cp_resume()
3108 WREG32(SCRATCH_UMSK, 0xff); in evergreen_cp_resume()
3111 WREG32(SCRATCH_UMSK, 0); in evergreen_cp_resume()
3127 return 0; in evergreen_cp_resume()
3173 rdev->config.evergreen.sc_prim_fifo_size = 0x100; in evergreen_gpu_init()
3174 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3175 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3195 rdev->config.evergreen.sc_prim_fifo_size = 0x100; in evergreen_gpu_init()
3196 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3197 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3217 rdev->config.evergreen.sc_prim_fifo_size = 0x100; in evergreen_gpu_init()
3218 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3219 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3240 rdev->config.evergreen.sc_prim_fifo_size = 0x40; in evergreen_gpu_init()
3241 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3242 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3262 rdev->config.evergreen.sc_prim_fifo_size = 0x40; in evergreen_gpu_init()
3263 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3264 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3271 if (rdev->pdev->device == 0x9648) in evergreen_gpu_init()
3273 else if ((rdev->pdev->device == 0x9647) || in evergreen_gpu_init()
3274 (rdev->pdev->device == 0x964a)) in evergreen_gpu_init()
3290 rdev->config.evergreen.sc_prim_fifo_size = 0x40; in evergreen_gpu_init()
3291 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3292 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3312 rdev->config.evergreen.sc_prim_fifo_size = 0x40; in evergreen_gpu_init()
3313 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3314 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3334 rdev->config.evergreen.sc_prim_fifo_size = 0x100; in evergreen_gpu_init()
3335 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3336 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3356 rdev->config.evergreen.sc_prim_fifo_size = 0x100; in evergreen_gpu_init()
3357 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3358 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3378 rdev->config.evergreen.sc_prim_fifo_size = 0x40; in evergreen_gpu_init()
3379 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; in evergreen_gpu_init()
3380 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; in evergreen_gpu_init()
3386 for (i = 0, j = 0; i < 32; i++, j += 0x18) { in evergreen_gpu_init()
3387 WREG32((0x2c14 + j), 0x00000000); in evergreen_gpu_init()
3388 WREG32((0x2c18 + j), 0x00000000); in evergreen_gpu_init()
3389 WREG32((0x2c1c + j), 0x00000000); in evergreen_gpu_init()
3390 WREG32((0x2c20 + j), 0x00000000); in evergreen_gpu_init()
3391 WREG32((0x2c24 + j), 0x00000000); in evergreen_gpu_init()
3394 WREG32(GRBM_CNTL, GRBM_READ_TIMEOUT(0xff)); in evergreen_gpu_init()
3395 WREG32(SRBM_INT_CNTL, 0x1); in evergreen_gpu_init()
3396 WREG32(SRBM_INT_ACK, 0x1); in evergreen_gpu_init()
3410 * bits 3:0 num_pipes in evergreen_gpu_init()
3415 rdev->config.evergreen.tile_config = 0; in evergreen_gpu_init()
3419 rdev->config.evergreen.tile_config |= (0 << 0); in evergreen_gpu_init()
3422 rdev->config.evergreen.tile_config |= (1 << 0); in evergreen_gpu_init()
3425 rdev->config.evergreen.tile_config |= (2 << 0); in evergreen_gpu_init()
3428 rdev->config.evergreen.tile_config |= (3 << 0); in evergreen_gpu_init()
3431 /* num banks is 8 on all fusion asics. 0 = 4, 1 = 8, 2 = 16 */ in evergreen_gpu_init()
3436 case 0: /* four banks */ in evergreen_gpu_init()
3437 rdev->config.evergreen.tile_config |= 0 << 4; in evergreen_gpu_init()
3448 rdev->config.evergreen.tile_config |= 0 << 8; in evergreen_gpu_init()
3450 ((gb_addr_config & 0x30000000) >> 28) << 12; in evergreen_gpu_init()
3456 efuse_straps_4 = RREG32_RCU(0x204); in evergreen_gpu_init()
3457 efuse_straps_3 = RREG32_RCU(0x203); in evergreen_gpu_init()
3458 tmp = (((efuse_straps_4 & 0xf) << 4) | in evergreen_gpu_init()
3459 ((efuse_straps_3 & 0xf0000000) >> 28)); in evergreen_gpu_init()
3461 tmp = 0; in evergreen_gpu_init()
3462 for (i = (rdev->config.evergreen.num_ses - 1); i >= 0; i--) { in evergreen_gpu_init()
3467 rb_disable_bitmap = (RREG32(CC_RB_BACKEND_DISABLE) & 0x00ff0000) >> 16; in evergreen_gpu_init()
3474 tmp = 0; in evergreen_gpu_init()
3475 for (i = 0; i < rdev->config.evergreen.max_backends; i++) in evergreen_gpu_init()
3479 for (i = 0; i < rdev->config.evergreen.max_backends; i++) in evergreen_gpu_init()
3483 for (i = 0; i < rdev->config.evergreen.num_ses; i++) { in evergreen_gpu_init()
3488 simd_disable_bitmap = (RREG32(CC_GC_SHADER_PIPE_CONFIG) & 0xffff0000) >> 16; in evergreen_gpu_init()
3489 simd_disable_bitmap |= 0xffffffff << rdev->config.evergreen.max_simds; in evergreen_gpu_init()
3510 tmp = 0x11111111; in evergreen_gpu_init()
3513 tmp = 0x00000000; in evergreen_gpu_init()
3523 WREG32(CGTS_SYS_TCC_DISABLE, 0); in evergreen_gpu_init()
3524 WREG32(CGTS_TCC_DISABLE, 0); in evergreen_gpu_init()
3525 WREG32(CGTS_USER_SYS_TCC_DISABLE, 0); in evergreen_gpu_init()
3526 WREG32(CGTS_USER_TCC_DISABLE, 0); in evergreen_gpu_init()
3529 WREG32(CP_QUEUE_THRESHOLDS, (ROQ_IB1_START(0x16) | in evergreen_gpu_init()
3530 ROQ_IB2_START(0x2b))); in evergreen_gpu_init()
3532 WREG32(CP_MEQ_THRESHOLDS, STQ_SPLIT(0x30)); in evergreen_gpu_init()
3545 smx_dc_ctl0 &= ~NUMBER_OF_SETS(0x1ff); in evergreen_gpu_init()
3550 WREG32(SMX_SAR_CTL0, 0x00010000); in evergreen_gpu_init()
3561 WREG32(SPI_CONFIG_CNTL, 0); in evergreen_gpu_init()
3563 WREG32(CP_PERFMON_CNTL, 0); in evergreen_gpu_init()
3566 FETCH_FIFO_HIWATER(0x4) | in evergreen_gpu_init()
3567 DONE_FIFO_HIWATER(0xe0) | in evergreen_gpu_init()
3568 ALU_UPDATE_FIFO_HIWATER(0x8))); in evergreen_gpu_init()
3577 PS_PRIO(0) | in evergreen_gpu_init()
3640 WREG32(SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, 0); in evergreen_gpu_init()
3662 WREG32(PA_SU_LINE_STIPPLE_VALUE, 0); in evergreen_gpu_init()
3663 WREG32(PA_SC_LINE_STIPPLE_STATE, 0); in evergreen_gpu_init()
3668 WREG32(CB_PERF_CTR0_SEL_0, 0); in evergreen_gpu_init()
3669 WREG32(CB_PERF_CTR0_SEL_1, 0); in evergreen_gpu_init()
3670 WREG32(CB_PERF_CTR1_SEL_0, 0); in evergreen_gpu_init()
3671 WREG32(CB_PERF_CTR1_SEL_1, 0); in evergreen_gpu_init()
3672 WREG32(CB_PERF_CTR2_SEL_0, 0); in evergreen_gpu_init()
3673 WREG32(CB_PERF_CTR2_SEL_1, 0); in evergreen_gpu_init()
3674 WREG32(CB_PERF_CTR3_SEL_0, 0); in evergreen_gpu_init()
3675 WREG32(CB_PERF_CTR3_SEL_1, 0); in evergreen_gpu_init()
3678 WREG32(CB_COLOR0_BASE, 0); in evergreen_gpu_init()
3679 WREG32(CB_COLOR1_BASE, 0); in evergreen_gpu_init()
3680 WREG32(CB_COLOR2_BASE, 0); in evergreen_gpu_init()
3681 WREG32(CB_COLOR3_BASE, 0); in evergreen_gpu_init()
3682 WREG32(CB_COLOR4_BASE, 0); in evergreen_gpu_init()
3683 WREG32(CB_COLOR5_BASE, 0); in evergreen_gpu_init()
3684 WREG32(CB_COLOR6_BASE, 0); in evergreen_gpu_init()
3685 WREG32(CB_COLOR7_BASE, 0); in evergreen_gpu_init()
3686 WREG32(CB_COLOR8_BASE, 0); in evergreen_gpu_init()
3687 WREG32(CB_COLOR9_BASE, 0); in evergreen_gpu_init()
3688 WREG32(CB_COLOR10_BASE, 0); in evergreen_gpu_init()
3689 WREG32(CB_COLOR11_BASE, 0); in evergreen_gpu_init()
3691 /* set the shader const cache sizes to 0 */ in evergreen_gpu_init()
3692 for (i = SQ_ALU_CONST_BUFFER_SIZE_PS_0; i < 0x28200; i += 4) in evergreen_gpu_init()
3693 WREG32(i, 0); in evergreen_gpu_init()
3694 for (i = SQ_ALU_CONST_BUFFER_SIZE_HS_0; i < 0x29000; i += 4) in evergreen_gpu_init()
3695 WREG32(i, 0); in evergreen_gpu_init()
3732 case 0: in evergreen_mc_init()
3747 /* Could aper size report 0 ? */ in evergreen_mc_init()
3748 rdev->mc.aper_base = pci_resource_start(rdev->pdev, 0); in evergreen_mc_init()
3749 rdev->mc.aper_size = pci_resource_len(rdev->pdev, 0); in evergreen_mc_init()
3766 return 0; in evergreen_mc_init()
3771 dev_info(rdev->dev, " GRBM_STATUS = 0x%08X\n", in evergreen_print_gpu_status_regs()
3773 dev_info(rdev->dev, " GRBM_STATUS_SE0 = 0x%08X\n", in evergreen_print_gpu_status_regs()
3775 dev_info(rdev->dev, " GRBM_STATUS_SE1 = 0x%08X\n", in evergreen_print_gpu_status_regs()
3777 dev_info(rdev->dev, " SRBM_STATUS = 0x%08X\n", in evergreen_print_gpu_status_regs()
3779 dev_info(rdev->dev, " SRBM_STATUS2 = 0x%08X\n", in evergreen_print_gpu_status_regs()
3781 dev_info(rdev->dev, " R_008674_CP_STALLED_STAT1 = 0x%08X\n", in evergreen_print_gpu_status_regs()
3783 dev_info(rdev->dev, " R_008678_CP_STALLED_STAT2 = 0x%08X\n", in evergreen_print_gpu_status_regs()
3785 dev_info(rdev->dev, " R_00867C_CP_BUSY_STAT = 0x%08X\n", in evergreen_print_gpu_status_regs()
3787 dev_info(rdev->dev, " R_008680_CP_STAT = 0x%08X\n", in evergreen_print_gpu_status_regs()
3789 dev_info(rdev->dev, " R_00D034_DMA_STATUS_REG = 0x%08X\n", in evergreen_print_gpu_status_regs()
3792 dev_info(rdev->dev, " R_00D834_DMA_STATUS_REG = 0x%08X\n", in evergreen_print_gpu_status_regs()
3793 RREG32(DMA_STATUS_REG + 0x800)); in evergreen_print_gpu_status_regs()
3799 u32 crtc_hung = 0; in evergreen_is_display_hung()
3803 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_is_display_hung()
3810 for (j = 0; j < 10; j++) { in evergreen_is_display_hung()
3811 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_is_display_hung()
3818 if (crtc_hung == 0) in evergreen_is_display_hung()
3828 u32 reset_mask = 0; in evergreen_gpu_check_soft_reset()
3888 DRM_DEBUG("MC busy: 0x%08X, clearing.\n", reset_mask); in evergreen_gpu_check_soft_reset()
3898 u32 grbm_soft_reset = 0, srbm_soft_reset = 0; in evergreen_gpu_soft_reset()
3901 if (reset_mask == 0) in evergreen_gpu_soft_reset()
3904 dev_info(rdev->dev, "GPU softreset: 0x%08X\n", reset_mask); in evergreen_gpu_soft_reset()
3975 dev_info(rdev->dev, "GRBM_SOFT_RESET=0x%08X\n", tmp); in evergreen_gpu_soft_reset()
3989 dev_info(rdev->dev, "SRBM_SOFT_RESET=0x%08X\n", tmp); in evergreen_gpu_soft_reset()
4044 for (i = 0; i < rdev->usec_timeout; i++) { in evergreen_gpu_pci_config_reset()
4045 if (RREG32(CONFIG_MEMSIZE) != 0xffffffff) in evergreen_gpu_pci_config_reset()
4057 return 0; in evergreen_asic_reset()
4079 return 0; in evergreen_asic_reset()
4107 #define RLC_SAVE_RESTORE_LIST_END_MARKER 0x00000000
4108 #define RLC_CLEAR_STATE_END_MARKER 0x00000001
4117 if (unlikely(r != 0)) in sumo_rlc_fini()
4129 if (unlikely(r != 0)) in sumo_rlc_fini()
4141 if (unlikely(r != 0)) in sumo_rlc_fini()
4158 u32 reg_list_num, reg_list_hdr_blk_index, reg_list_blk_index = 0; in sumo_rlc_init()
4174 RADEON_GEM_DOMAIN_VRAM, 0, NULL, in sumo_rlc_init()
4183 if (unlikely(r != 0)) { in sumo_rlc_init()
4206 for (i = 0; i < rdev->rlc.reg_list_size; i++) in sumo_rlc_init()
4215 for (i = 0; i < dws; i++) { in sumo_rlc_init()
4238 reg_list_num = 0; in sumo_rlc_init()
4239 dws = 0; in sumo_rlc_init()
4240 for (i = 0; cs_data[i].section != NULL; i++) { in sumo_rlc_init()
4241 for (j = 0; cs_data[i].section[j].extent != NULL; j++) { in sumo_rlc_init()
4253 RADEON_GEM_DOMAIN_VRAM, 0, NULL, in sumo_rlc_init()
4262 if (unlikely(r != 0)) { in sumo_rlc_init()
4287 dst_ptr[0] = cpu_to_le32(upper_32_bits(reg_list_mc_addr)); in sumo_rlc_init()
4292 reg_list_hdr_blk_index = 0; in sumo_rlc_init()
4297 for (i = 0; cs_data[i].section != NULL; i++) { in sumo_rlc_init()
4298 for (j = 0; cs_data[i].section[j].extent != NULL; j++) { in sumo_rlc_init()
4300 data = reg_list_mc_addr & 0xffffffff; in sumo_rlc_init()
4304 data = (cs_data[i].section[j].reg_index * 4) & 0xffffffff; in sumo_rlc_init()
4308 data = 0x08000000 | (reg_num * 4); in sumo_rlc_init()
4312 for (k = 0; k < reg_num; k++) { in sumo_rlc_init()
4330 RADEON_GEM_DOMAIN_VRAM, 0, NULL, in sumo_rlc_init()
4340 if (unlikely(r != 0)) { in sumo_rlc_init()
4367 return 0; in sumo_rlc_init()
4391 WREG32(RLC_HB_CNTL, 0); in evergreen_rlc_resume()
4398 u32 tmp = (RREG32(CC_GC_SHADER_PIPE_CONFIG) & 0xffff0000) >> 16; in evergreen_rlc_resume()
4399 tmp |= 0xffffffff << rdev->config.cayman.max_simds_per_se; in evergreen_rlc_resume()
4403 WREG32(TN_RLC_LB_PARAMS, 0x00601004); in evergreen_rlc_resume()
4404 WREG32(TN_RLC_LB_INIT_SIMD_MASK, 0xffffffff); in evergreen_rlc_resume()
4405 WREG32(TN_RLC_LB_CNTR_INIT, 0x00000000); in evergreen_rlc_resume()
4406 WREG32(TN_RLC_LB_CNTR_MAX, 0x00002000); in evergreen_rlc_resume()
4409 WREG32(RLC_HB_WPTR_LSB_ADDR, 0); in evergreen_rlc_resume()
4410 WREG32(RLC_HB_WPTR_MSB_ADDR, 0); in evergreen_rlc_resume()
4415 WREG32(RLC_HB_BASE, 0); in evergreen_rlc_resume()
4416 WREG32(RLC_HB_RPTR, 0); in evergreen_rlc_resume()
4417 WREG32(RLC_HB_WPTR, 0); in evergreen_rlc_resume()
4418 WREG32(RLC_HB_WPTR_LSB_ADDR, 0); in evergreen_rlc_resume()
4419 WREG32(RLC_HB_WPTR_MSB_ADDR, 0); in evergreen_rlc_resume()
4421 WREG32(RLC_MC_CNTL, 0); in evergreen_rlc_resume()
4422 WREG32(RLC_UCODE_CNTL, 0); in evergreen_rlc_resume()
4426 for (i = 0; i < ARUBA_RLC_UCODE_SIZE; i++) { in evergreen_rlc_resume()
4431 for (i = 0; i < CAYMAN_RLC_UCODE_SIZE; i++) { in evergreen_rlc_resume()
4436 for (i = 0; i < EVERGREEN_RLC_UCODE_SIZE; i++) { in evergreen_rlc_resume()
4441 WREG32(RLC_UCODE_ADDR, 0); in evergreen_rlc_resume()
4445 return 0; in evergreen_rlc_resume()
4453 return 0; in evergreen_get_vblank_counter()
4464 cayman_cp_int_cntl_setup(rdev, 0, in evergreen_disable_interrupt_state()
4466 cayman_cp_int_cntl_setup(rdev, 1, 0); in evergreen_disable_interrupt_state()
4467 cayman_cp_int_cntl_setup(rdev, 2, 0); in evergreen_disable_interrupt_state()
4474 WREG32(GRBM_INT_CNTL, 0); in evergreen_disable_interrupt_state()
4475 WREG32(SRBM_INT_CNTL, 0); in evergreen_disable_interrupt_state()
4476 for (i = 0; i < rdev->num_crtc; i++) in evergreen_disable_interrupt_state()
4477 WREG32(INT_MASK + crtc_offsets[i], 0); in evergreen_disable_interrupt_state()
4478 for (i = 0; i < rdev->num_crtc; i++) in evergreen_disable_interrupt_state()
4479 WREG32(GRPH_INT_CONTROL + crtc_offsets[i], 0); in evergreen_disable_interrupt_state()
4483 WREG32(DACA_AUTODETECT_INT_CONTROL, 0); in evergreen_disable_interrupt_state()
4484 WREG32(DACB_AUTODETECT_INT_CONTROL, 0); in evergreen_disable_interrupt_state()
4486 for (i = 0; i < 6; i++) in evergreen_disable_interrupt_state()
4495 u32 cp_int_cntl1 = 0, cp_int_cntl2 = 0; in evergreen_irq_set()
4496 u32 grbm_int_cntl = 0; in evergreen_irq_set()
4497 u32 dma_cntl, dma_cntl1 = 0; in evergreen_irq_set()
4498 u32 thermal_int = 0; in evergreen_irq_set()
4509 return 0; in evergreen_irq_set()
4562 cayman_cp_int_cntl_setup(rdev, 0, cp_int_cntl); in evergreen_irq_set()
4575 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_irq_set()
4583 for (i = 0; i < rdev->num_crtc; i++) in evergreen_irq_set()
4586 for (i = 0; i < 6; i++) { in evergreen_irq_set()
4598 for (i = 0; i < 6; i++) { in evergreen_irq_set()
4608 return 0; in evergreen_irq_set()
4619 for (i = 0; i < 6; i++) { in evergreen_irq_ack()
4627 for (i = 0; i < rdev->num_crtc; i += 2) { in evergreen_irq_ack()
4644 for (i = 0; i < 6; i++) { in evergreen_irq_ack()
4649 for (i = 0; i < 6; i++) { in evergreen_irq_ack()
4654 for (i = 0; i < 6; i++) { in evergreen_irq_ack()
4691 dev_warn(rdev->dev, "IH ring buffer overflow (0x%08X, 0x%08X, 0x%08X)\n", in evergreen_get_ih_wptr()
4740 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in evergreen_irq_process()
4741 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in evergreen_irq_process()
4752 if (src_data == 0) { /* vblank */ in evergreen_irq_process()
4791 if (radeon_use_pflipirq > 0) in evergreen_irq_process()
4835 DRM_ERROR("SRBM_READ_ERROR: 0x%x\n", RREG32(SRBM_READ_ERROR)); in evergreen_irq_process()
4836 WREG32(SRBM_INT_ACK, 0x1); in evergreen_irq_process()
4839 DRM_DEBUG("IH: UVD int: 0x%08x\n", src_data); in evergreen_irq_process()
4848 if (addr == 0x0 && status == 0x0) in evergreen_irq_process()
4850 dev_err(rdev->dev, "GPU fault detected: %d 0x%08x\n", src_id, src_data); in evergreen_irq_process()
4851 dev_err(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x%08X\n", in evergreen_irq_process()
4853 dev_err(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x%08X\n", in evergreen_irq_process()
4860 DRM_DEBUG("IH: CP int: 0x%08x\n", src_data); in evergreen_irq_process()
4867 case 0: in evergreen_irq_process()
4916 schedule_delayed_work(&rdev->hotplug_work, 0); in evergreen_irq_process()
4922 atomic_set(&rdev->ih.lock, 0); in evergreen_irq_process()
4975 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; in evergreen_uvd_start()
4987 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); in evergreen_uvd_resume()
5088 DMA_PACKET(DMA_PACKET_NOP, 0, 0)); in evergreen_startup()
5116 return 0; in evergreen_startup()
5167 return 0; in evergreen_suspend()
5297 return 0; in evergreen_init()
5329 if (radeon_pcie_gen2 == 0) in evergreen_pcie_gen2_enable()
5352 DRM_INFO("enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0\n"); in evergreen_pcie_gen2_enable()
5379 /* XXX: only disable it if gen1 bridge vendor == 0x111d or 0x1106 */ in evergreen_pcie_gen2_enable()
5400 if (radeon_aspm == 0) in evergreen_program_aspm()