2 * Copyright 2008 Advanced Micro Devices, Inc.
3 * Copyright 2008 Red Hat Inc.
4 * Copyright 2009 Jerome Glisse.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 * OTHER DEALINGS IN THE SOFTWARE.
24 * Authors: Dave Airlie
29 #include <linux/console.h>
31 #include <drm/drm_crtc_helper.h>
32 #include <drm/radeon_drm.h>
33 #include <linux/vgaarb.h>
34 #include <linux/vga_switcheroo.h>
35 #include "radeon_reg.h"
37 #include "radeon_asic.h"
41 * Registers accessors functions.
44 * radeon_invalid_rreg - dummy reg read function
46 * @rdev: radeon device pointer
47 * @reg: offset of register
49 * Dummy register read function. Used for register blocks
50 * that certain asics don't have (all asics).
51 * Returns the value in the register.
53 static uint32_t radeon_invalid_rreg(struct radeon_device
*rdev
, uint32_t reg
)
55 DRM_ERROR("Invalid callback to read register 0x%04X\n", reg
);
61 * radeon_invalid_wreg - dummy reg write function
63 * @rdev: radeon device pointer
64 * @reg: offset of register
65 * @v: value to write to the register
67 * Dummy register read function. Used for register blocks
68 * that certain asics don't have (all asics).
70 static void radeon_invalid_wreg(struct radeon_device
*rdev
, uint32_t reg
, uint32_t v
)
72 DRM_ERROR("Invalid callback to write register 0x%04X with 0x%08X\n",
78 * radeon_register_accessor_init - sets up the register accessor callbacks
80 * @rdev: radeon device pointer
82 * Sets up the register accessor callbacks for various register
83 * apertures. Not all asics have all apertures (all asics).
85 static void radeon_register_accessor_init(struct radeon_device
*rdev
)
87 rdev
->mc_rreg
= &radeon_invalid_rreg
;
88 rdev
->mc_wreg
= &radeon_invalid_wreg
;
89 rdev
->pll_rreg
= &radeon_invalid_rreg
;
90 rdev
->pll_wreg
= &radeon_invalid_wreg
;
91 rdev
->pciep_rreg
= &radeon_invalid_rreg
;
92 rdev
->pciep_wreg
= &radeon_invalid_wreg
;
94 /* Don't change order as we are overridding accessor. */
95 if (rdev
->family
< CHIP_RV515
) {
96 rdev
->pcie_reg_mask
= 0xff;
98 rdev
->pcie_reg_mask
= 0x7ff;
100 /* FIXME: not sure here */
101 if (rdev
->family
<= CHIP_R580
) {
102 rdev
->pll_rreg
= &r100_pll_rreg
;
103 rdev
->pll_wreg
= &r100_pll_wreg
;
105 if (rdev
->family
>= CHIP_R420
) {
106 rdev
->mc_rreg
= &r420_mc_rreg
;
107 rdev
->mc_wreg
= &r420_mc_wreg
;
109 if (rdev
->family
>= CHIP_RV515
) {
110 rdev
->mc_rreg
= &rv515_mc_rreg
;
111 rdev
->mc_wreg
= &rv515_mc_wreg
;
113 if (rdev
->family
== CHIP_RS400
|| rdev
->family
== CHIP_RS480
) {
114 rdev
->mc_rreg
= &rs400_mc_rreg
;
115 rdev
->mc_wreg
= &rs400_mc_wreg
;
117 if (rdev
->family
== CHIP_RS690
|| rdev
->family
== CHIP_RS740
) {
118 rdev
->mc_rreg
= &rs690_mc_rreg
;
119 rdev
->mc_wreg
= &rs690_mc_wreg
;
121 if (rdev
->family
== CHIP_RS600
) {
122 rdev
->mc_rreg
= &rs600_mc_rreg
;
123 rdev
->mc_wreg
= &rs600_mc_wreg
;
125 if (rdev
->family
== CHIP_RS780
|| rdev
->family
== CHIP_RS880
) {
126 rdev
->mc_rreg
= &rs780_mc_rreg
;
127 rdev
->mc_wreg
= &rs780_mc_wreg
;
130 if (rdev
->family
>= CHIP_BONAIRE
) {
131 rdev
->pciep_rreg
= &cik_pciep_rreg
;
132 rdev
->pciep_wreg
= &cik_pciep_wreg
;
133 } else if (rdev
->family
>= CHIP_R600
) {
134 rdev
->pciep_rreg
= &r600_pciep_rreg
;
135 rdev
->pciep_wreg
= &r600_pciep_wreg
;
139 static int radeon_invalid_get_allowed_info_register(struct radeon_device
*rdev
,
145 /* helper to disable agp */
147 * radeon_agp_disable - AGP disable helper function
149 * @rdev: radeon device pointer
151 * Removes AGP flags and changes the gart callbacks on AGP
152 * cards when using the internal gart rather than AGP (all asics).
154 void radeon_agp_disable(struct radeon_device
*rdev
)
156 rdev
->flags
&= ~RADEON_IS_AGP
;
157 if (rdev
->family
>= CHIP_R600
) {
158 DRM_INFO("Forcing AGP to PCIE mode\n");
159 rdev
->flags
|= RADEON_IS_PCIE
;
160 } else if (rdev
->family
>= CHIP_RV515
||
161 rdev
->family
== CHIP_RV380
||
162 rdev
->family
== CHIP_RV410
||
163 rdev
->family
== CHIP_R423
) {
164 DRM_INFO("Forcing AGP to PCIE mode\n");
165 rdev
->flags
|= RADEON_IS_PCIE
;
166 rdev
->asic
->gart
.tlb_flush
= &rv370_pcie_gart_tlb_flush
;
167 rdev
->asic
->gart
.get_page_entry
= &rv370_pcie_gart_get_page_entry
;
168 rdev
->asic
->gart
.set_page
= &rv370_pcie_gart_set_page
;
170 DRM_INFO("Forcing AGP to PCI mode\n");
171 rdev
->flags
|= RADEON_IS_PCI
;
172 rdev
->asic
->gart
.tlb_flush
= &r100_pci_gart_tlb_flush
;
173 rdev
->asic
->gart
.get_page_entry
= &r100_pci_gart_get_page_entry
;
174 rdev
->asic
->gart
.set_page
= &r100_pci_gart_set_page
;
176 rdev
->mc
.gtt_size
= radeon_gart_size
* 1024 * 1024;
183 static struct radeon_asic_ring r100_gfx_ring
= {
184 .ib_execute
= &r100_ring_ib_execute
,
185 .emit_fence
= &r100_fence_ring_emit
,
186 .emit_semaphore
= &r100_semaphore_ring_emit
,
187 .cs_parse
= &r100_cs_parse
,
188 .ring_start
= &r100_ring_start
,
189 .ring_test
= &r100_ring_test
,
190 .ib_test
= &r100_ib_test
,
191 .is_lockup
= &r100_gpu_is_lockup
,
192 .get_rptr
= &r100_gfx_get_rptr
,
193 .get_wptr
= &r100_gfx_get_wptr
,
194 .set_wptr
= &r100_gfx_set_wptr
,
197 static struct radeon_asic r100_asic
= {
200 .suspend
= &r100_suspend
,
201 .resume
= &r100_resume
,
202 .vga_set_state
= &r100_vga_set_state
,
203 .asic_reset
= &r100_asic_reset
,
204 .mmio_hdp_flush
= NULL
,
205 .gui_idle
= &r100_gui_idle
,
206 .mc_wait_for_idle
= &r100_mc_wait_for_idle
,
207 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
209 .tlb_flush
= &r100_pci_gart_tlb_flush
,
210 .get_page_entry
= &r100_pci_gart_get_page_entry
,
211 .set_page
= &r100_pci_gart_set_page
,
214 [RADEON_RING_TYPE_GFX_INDEX
] = &r100_gfx_ring
217 .set
= &r100_irq_set
,
218 .process
= &r100_irq_process
,
221 .bandwidth_update
= &r100_bandwidth_update
,
222 .get_vblank_counter
= &r100_get_vblank_counter
,
223 .wait_for_vblank
= &r100_wait_for_vblank
,
224 .set_backlight_level
= &radeon_legacy_set_backlight_level
,
225 .get_backlight_level
= &radeon_legacy_get_backlight_level
,
228 .blit
= &r100_copy_blit
,
229 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
231 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
232 .copy
= &r100_copy_blit
,
233 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
236 .set_reg
= r100_set_surface_reg
,
237 .clear_reg
= r100_clear_surface_reg
,
240 .init
= &r100_hpd_init
,
241 .fini
= &r100_hpd_fini
,
242 .sense
= &r100_hpd_sense
,
243 .set_polarity
= &r100_hpd_set_polarity
,
246 .misc
= &r100_pm_misc
,
247 .prepare
= &r100_pm_prepare
,
248 .finish
= &r100_pm_finish
,
249 .init_profile
= &r100_pm_init_profile
,
250 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
251 .get_engine_clock
= &radeon_legacy_get_engine_clock
,
252 .set_engine_clock
= &radeon_legacy_set_engine_clock
,
253 .get_memory_clock
= &radeon_legacy_get_memory_clock
,
254 .set_memory_clock
= NULL
,
255 .get_pcie_lanes
= NULL
,
256 .set_pcie_lanes
= NULL
,
257 .set_clock_gating
= &radeon_legacy_set_clock_gating
,
260 .page_flip
= &r100_page_flip
,
261 .page_flip_pending
= &r100_page_flip_pending
,
265 static struct radeon_asic r200_asic
= {
268 .suspend
= &r100_suspend
,
269 .resume
= &r100_resume
,
270 .vga_set_state
= &r100_vga_set_state
,
271 .asic_reset
= &r100_asic_reset
,
272 .mmio_hdp_flush
= NULL
,
273 .gui_idle
= &r100_gui_idle
,
274 .mc_wait_for_idle
= &r100_mc_wait_for_idle
,
275 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
277 .tlb_flush
= &r100_pci_gart_tlb_flush
,
278 .get_page_entry
= &r100_pci_gart_get_page_entry
,
279 .set_page
= &r100_pci_gart_set_page
,
282 [RADEON_RING_TYPE_GFX_INDEX
] = &r100_gfx_ring
285 .set
= &r100_irq_set
,
286 .process
= &r100_irq_process
,
289 .bandwidth_update
= &r100_bandwidth_update
,
290 .get_vblank_counter
= &r100_get_vblank_counter
,
291 .wait_for_vblank
= &r100_wait_for_vblank
,
292 .set_backlight_level
= &radeon_legacy_set_backlight_level
,
293 .get_backlight_level
= &radeon_legacy_get_backlight_level
,
296 .blit
= &r100_copy_blit
,
297 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
298 .dma
= &r200_copy_dma
,
299 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
300 .copy
= &r100_copy_blit
,
301 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
304 .set_reg
= r100_set_surface_reg
,
305 .clear_reg
= r100_clear_surface_reg
,
308 .init
= &r100_hpd_init
,
309 .fini
= &r100_hpd_fini
,
310 .sense
= &r100_hpd_sense
,
311 .set_polarity
= &r100_hpd_set_polarity
,
314 .misc
= &r100_pm_misc
,
315 .prepare
= &r100_pm_prepare
,
316 .finish
= &r100_pm_finish
,
317 .init_profile
= &r100_pm_init_profile
,
318 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
319 .get_engine_clock
= &radeon_legacy_get_engine_clock
,
320 .set_engine_clock
= &radeon_legacy_set_engine_clock
,
321 .get_memory_clock
= &radeon_legacy_get_memory_clock
,
322 .set_memory_clock
= NULL
,
323 .get_pcie_lanes
= NULL
,
324 .set_pcie_lanes
= NULL
,
325 .set_clock_gating
= &radeon_legacy_set_clock_gating
,
328 .page_flip
= &r100_page_flip
,
329 .page_flip_pending
= &r100_page_flip_pending
,
333 static struct radeon_asic_ring r300_gfx_ring
= {
334 .ib_execute
= &r100_ring_ib_execute
,
335 .emit_fence
= &r300_fence_ring_emit
,
336 .emit_semaphore
= &r100_semaphore_ring_emit
,
337 .cs_parse
= &r300_cs_parse
,
338 .ring_start
= &r300_ring_start
,
339 .ring_test
= &r100_ring_test
,
340 .ib_test
= &r100_ib_test
,
341 .is_lockup
= &r100_gpu_is_lockup
,
342 .get_rptr
= &r100_gfx_get_rptr
,
343 .get_wptr
= &r100_gfx_get_wptr
,
344 .set_wptr
= &r100_gfx_set_wptr
,
347 static struct radeon_asic_ring rv515_gfx_ring
= {
348 .ib_execute
= &r100_ring_ib_execute
,
349 .emit_fence
= &r300_fence_ring_emit
,
350 .emit_semaphore
= &r100_semaphore_ring_emit
,
351 .cs_parse
= &r300_cs_parse
,
352 .ring_start
= &rv515_ring_start
,
353 .ring_test
= &r100_ring_test
,
354 .ib_test
= &r100_ib_test
,
355 .is_lockup
= &r100_gpu_is_lockup
,
356 .get_rptr
= &r100_gfx_get_rptr
,
357 .get_wptr
= &r100_gfx_get_wptr
,
358 .set_wptr
= &r100_gfx_set_wptr
,
361 static struct radeon_asic r300_asic
= {
364 .suspend
= &r300_suspend
,
365 .resume
= &r300_resume
,
366 .vga_set_state
= &r100_vga_set_state
,
367 .asic_reset
= &r300_asic_reset
,
368 .mmio_hdp_flush
= NULL
,
369 .gui_idle
= &r100_gui_idle
,
370 .mc_wait_for_idle
= &r300_mc_wait_for_idle
,
371 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
373 .tlb_flush
= &r100_pci_gart_tlb_flush
,
374 .get_page_entry
= &r100_pci_gart_get_page_entry
,
375 .set_page
= &r100_pci_gart_set_page
,
378 [RADEON_RING_TYPE_GFX_INDEX
] = &r300_gfx_ring
381 .set
= &r100_irq_set
,
382 .process
= &r100_irq_process
,
385 .bandwidth_update
= &r100_bandwidth_update
,
386 .get_vblank_counter
= &r100_get_vblank_counter
,
387 .wait_for_vblank
= &r100_wait_for_vblank
,
388 .set_backlight_level
= &radeon_legacy_set_backlight_level
,
389 .get_backlight_level
= &radeon_legacy_get_backlight_level
,
392 .blit
= &r100_copy_blit
,
393 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
394 .dma
= &r200_copy_dma
,
395 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
396 .copy
= &r100_copy_blit
,
397 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
400 .set_reg
= r100_set_surface_reg
,
401 .clear_reg
= r100_clear_surface_reg
,
404 .init
= &r100_hpd_init
,
405 .fini
= &r100_hpd_fini
,
406 .sense
= &r100_hpd_sense
,
407 .set_polarity
= &r100_hpd_set_polarity
,
410 .misc
= &r100_pm_misc
,
411 .prepare
= &r100_pm_prepare
,
412 .finish
= &r100_pm_finish
,
413 .init_profile
= &r100_pm_init_profile
,
414 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
415 .get_engine_clock
= &radeon_legacy_get_engine_clock
,
416 .set_engine_clock
= &radeon_legacy_set_engine_clock
,
417 .get_memory_clock
= &radeon_legacy_get_memory_clock
,
418 .set_memory_clock
= NULL
,
419 .get_pcie_lanes
= &rv370_get_pcie_lanes
,
420 .set_pcie_lanes
= &rv370_set_pcie_lanes
,
421 .set_clock_gating
= &radeon_legacy_set_clock_gating
,
424 .page_flip
= &r100_page_flip
,
425 .page_flip_pending
= &r100_page_flip_pending
,
429 static struct radeon_asic r300_asic_pcie
= {
432 .suspend
= &r300_suspend
,
433 .resume
= &r300_resume
,
434 .vga_set_state
= &r100_vga_set_state
,
435 .asic_reset
= &r300_asic_reset
,
436 .mmio_hdp_flush
= NULL
,
437 .gui_idle
= &r100_gui_idle
,
438 .mc_wait_for_idle
= &r300_mc_wait_for_idle
,
439 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
441 .tlb_flush
= &rv370_pcie_gart_tlb_flush
,
442 .get_page_entry
= &rv370_pcie_gart_get_page_entry
,
443 .set_page
= &rv370_pcie_gart_set_page
,
446 [RADEON_RING_TYPE_GFX_INDEX
] = &r300_gfx_ring
449 .set
= &r100_irq_set
,
450 .process
= &r100_irq_process
,
453 .bandwidth_update
= &r100_bandwidth_update
,
454 .get_vblank_counter
= &r100_get_vblank_counter
,
455 .wait_for_vblank
= &r100_wait_for_vblank
,
456 .set_backlight_level
= &radeon_legacy_set_backlight_level
,
457 .get_backlight_level
= &radeon_legacy_get_backlight_level
,
460 .blit
= &r100_copy_blit
,
461 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
462 .dma
= &r200_copy_dma
,
463 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
464 .copy
= &r100_copy_blit
,
465 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
468 .set_reg
= r100_set_surface_reg
,
469 .clear_reg
= r100_clear_surface_reg
,
472 .init
= &r100_hpd_init
,
473 .fini
= &r100_hpd_fini
,
474 .sense
= &r100_hpd_sense
,
475 .set_polarity
= &r100_hpd_set_polarity
,
478 .misc
= &r100_pm_misc
,
479 .prepare
= &r100_pm_prepare
,
480 .finish
= &r100_pm_finish
,
481 .init_profile
= &r100_pm_init_profile
,
482 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
483 .get_engine_clock
= &radeon_legacy_get_engine_clock
,
484 .set_engine_clock
= &radeon_legacy_set_engine_clock
,
485 .get_memory_clock
= &radeon_legacy_get_memory_clock
,
486 .set_memory_clock
= NULL
,
487 .get_pcie_lanes
= &rv370_get_pcie_lanes
,
488 .set_pcie_lanes
= &rv370_set_pcie_lanes
,
489 .set_clock_gating
= &radeon_legacy_set_clock_gating
,
492 .page_flip
= &r100_page_flip
,
493 .page_flip_pending
= &r100_page_flip_pending
,
497 static struct radeon_asic r420_asic
= {
500 .suspend
= &r420_suspend
,
501 .resume
= &r420_resume
,
502 .vga_set_state
= &r100_vga_set_state
,
503 .asic_reset
= &r300_asic_reset
,
504 .mmio_hdp_flush
= NULL
,
505 .gui_idle
= &r100_gui_idle
,
506 .mc_wait_for_idle
= &r300_mc_wait_for_idle
,
507 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
509 .tlb_flush
= &rv370_pcie_gart_tlb_flush
,
510 .get_page_entry
= &rv370_pcie_gart_get_page_entry
,
511 .set_page
= &rv370_pcie_gart_set_page
,
514 [RADEON_RING_TYPE_GFX_INDEX
] = &r300_gfx_ring
517 .set
= &r100_irq_set
,
518 .process
= &r100_irq_process
,
521 .bandwidth_update
= &r100_bandwidth_update
,
522 .get_vblank_counter
= &r100_get_vblank_counter
,
523 .wait_for_vblank
= &r100_wait_for_vblank
,
524 .set_backlight_level
= &atombios_set_backlight_level
,
525 .get_backlight_level
= &atombios_get_backlight_level
,
528 .blit
= &r100_copy_blit
,
529 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
530 .dma
= &r200_copy_dma
,
531 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
532 .copy
= &r100_copy_blit
,
533 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
536 .set_reg
= r100_set_surface_reg
,
537 .clear_reg
= r100_clear_surface_reg
,
540 .init
= &r100_hpd_init
,
541 .fini
= &r100_hpd_fini
,
542 .sense
= &r100_hpd_sense
,
543 .set_polarity
= &r100_hpd_set_polarity
,
546 .misc
= &r100_pm_misc
,
547 .prepare
= &r100_pm_prepare
,
548 .finish
= &r100_pm_finish
,
549 .init_profile
= &r420_pm_init_profile
,
550 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
551 .get_engine_clock
= &radeon_atom_get_engine_clock
,
552 .set_engine_clock
= &radeon_atom_set_engine_clock
,
553 .get_memory_clock
= &radeon_atom_get_memory_clock
,
554 .set_memory_clock
= &radeon_atom_set_memory_clock
,
555 .get_pcie_lanes
= &rv370_get_pcie_lanes
,
556 .set_pcie_lanes
= &rv370_set_pcie_lanes
,
557 .set_clock_gating
= &radeon_atom_set_clock_gating
,
560 .page_flip
= &r100_page_flip
,
561 .page_flip_pending
= &r100_page_flip_pending
,
565 static struct radeon_asic rs400_asic
= {
568 .suspend
= &rs400_suspend
,
569 .resume
= &rs400_resume
,
570 .vga_set_state
= &r100_vga_set_state
,
571 .asic_reset
= &r300_asic_reset
,
572 .mmio_hdp_flush
= NULL
,
573 .gui_idle
= &r100_gui_idle
,
574 .mc_wait_for_idle
= &rs400_mc_wait_for_idle
,
575 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
577 .tlb_flush
= &rs400_gart_tlb_flush
,
578 .get_page_entry
= &rs400_gart_get_page_entry
,
579 .set_page
= &rs400_gart_set_page
,
582 [RADEON_RING_TYPE_GFX_INDEX
] = &r300_gfx_ring
585 .set
= &r100_irq_set
,
586 .process
= &r100_irq_process
,
589 .bandwidth_update
= &r100_bandwidth_update
,
590 .get_vblank_counter
= &r100_get_vblank_counter
,
591 .wait_for_vblank
= &r100_wait_for_vblank
,
592 .set_backlight_level
= &radeon_legacy_set_backlight_level
,
593 .get_backlight_level
= &radeon_legacy_get_backlight_level
,
596 .blit
= &r100_copy_blit
,
597 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
598 .dma
= &r200_copy_dma
,
599 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
600 .copy
= &r100_copy_blit
,
601 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
604 .set_reg
= r100_set_surface_reg
,
605 .clear_reg
= r100_clear_surface_reg
,
608 .init
= &r100_hpd_init
,
609 .fini
= &r100_hpd_fini
,
610 .sense
= &r100_hpd_sense
,
611 .set_polarity
= &r100_hpd_set_polarity
,
614 .misc
= &r100_pm_misc
,
615 .prepare
= &r100_pm_prepare
,
616 .finish
= &r100_pm_finish
,
617 .init_profile
= &r100_pm_init_profile
,
618 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
619 .get_engine_clock
= &radeon_legacy_get_engine_clock
,
620 .set_engine_clock
= &radeon_legacy_set_engine_clock
,
621 .get_memory_clock
= &radeon_legacy_get_memory_clock
,
622 .set_memory_clock
= NULL
,
623 .get_pcie_lanes
= NULL
,
624 .set_pcie_lanes
= NULL
,
625 .set_clock_gating
= &radeon_legacy_set_clock_gating
,
628 .page_flip
= &r100_page_flip
,
629 .page_flip_pending
= &r100_page_flip_pending
,
633 static struct radeon_asic rs600_asic
= {
636 .suspend
= &rs600_suspend
,
637 .resume
= &rs600_resume
,
638 .vga_set_state
= &r100_vga_set_state
,
639 .asic_reset
= &rs600_asic_reset
,
640 .mmio_hdp_flush
= NULL
,
641 .gui_idle
= &r100_gui_idle
,
642 .mc_wait_for_idle
= &rs600_mc_wait_for_idle
,
643 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
645 .tlb_flush
= &rs600_gart_tlb_flush
,
646 .get_page_entry
= &rs600_gart_get_page_entry
,
647 .set_page
= &rs600_gart_set_page
,
650 [RADEON_RING_TYPE_GFX_INDEX
] = &r300_gfx_ring
653 .set
= &rs600_irq_set
,
654 .process
= &rs600_irq_process
,
657 .bandwidth_update
= &rs600_bandwidth_update
,
658 .get_vblank_counter
= &rs600_get_vblank_counter
,
659 .wait_for_vblank
= &avivo_wait_for_vblank
,
660 .set_backlight_level
= &atombios_set_backlight_level
,
661 .get_backlight_level
= &atombios_get_backlight_level
,
664 .blit
= &r100_copy_blit
,
665 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
666 .dma
= &r200_copy_dma
,
667 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
668 .copy
= &r100_copy_blit
,
669 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
672 .set_reg
= r100_set_surface_reg
,
673 .clear_reg
= r100_clear_surface_reg
,
676 .init
= &rs600_hpd_init
,
677 .fini
= &rs600_hpd_fini
,
678 .sense
= &rs600_hpd_sense
,
679 .set_polarity
= &rs600_hpd_set_polarity
,
682 .misc
= &rs600_pm_misc
,
683 .prepare
= &rs600_pm_prepare
,
684 .finish
= &rs600_pm_finish
,
685 .init_profile
= &r420_pm_init_profile
,
686 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
687 .get_engine_clock
= &radeon_atom_get_engine_clock
,
688 .set_engine_clock
= &radeon_atom_set_engine_clock
,
689 .get_memory_clock
= &radeon_atom_get_memory_clock
,
690 .set_memory_clock
= &radeon_atom_set_memory_clock
,
691 .get_pcie_lanes
= NULL
,
692 .set_pcie_lanes
= NULL
,
693 .set_clock_gating
= &radeon_atom_set_clock_gating
,
696 .page_flip
= &rs600_page_flip
,
697 .page_flip_pending
= &rs600_page_flip_pending
,
701 static struct radeon_asic rs690_asic
= {
704 .suspend
= &rs690_suspend
,
705 .resume
= &rs690_resume
,
706 .vga_set_state
= &r100_vga_set_state
,
707 .asic_reset
= &rs600_asic_reset
,
708 .mmio_hdp_flush
= NULL
,
709 .gui_idle
= &r100_gui_idle
,
710 .mc_wait_for_idle
= &rs690_mc_wait_for_idle
,
711 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
713 .tlb_flush
= &rs400_gart_tlb_flush
,
714 .get_page_entry
= &rs400_gart_get_page_entry
,
715 .set_page
= &rs400_gart_set_page
,
718 [RADEON_RING_TYPE_GFX_INDEX
] = &r300_gfx_ring
721 .set
= &rs600_irq_set
,
722 .process
= &rs600_irq_process
,
725 .get_vblank_counter
= &rs600_get_vblank_counter
,
726 .bandwidth_update
= &rs690_bandwidth_update
,
727 .wait_for_vblank
= &avivo_wait_for_vblank
,
728 .set_backlight_level
= &atombios_set_backlight_level
,
729 .get_backlight_level
= &atombios_get_backlight_level
,
732 .blit
= &r100_copy_blit
,
733 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
734 .dma
= &r200_copy_dma
,
735 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
736 .copy
= &r200_copy_dma
,
737 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
740 .set_reg
= r100_set_surface_reg
,
741 .clear_reg
= r100_clear_surface_reg
,
744 .init
= &rs600_hpd_init
,
745 .fini
= &rs600_hpd_fini
,
746 .sense
= &rs600_hpd_sense
,
747 .set_polarity
= &rs600_hpd_set_polarity
,
750 .misc
= &rs600_pm_misc
,
751 .prepare
= &rs600_pm_prepare
,
752 .finish
= &rs600_pm_finish
,
753 .init_profile
= &r420_pm_init_profile
,
754 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
755 .get_engine_clock
= &radeon_atom_get_engine_clock
,
756 .set_engine_clock
= &radeon_atom_set_engine_clock
,
757 .get_memory_clock
= &radeon_atom_get_memory_clock
,
758 .set_memory_clock
= &radeon_atom_set_memory_clock
,
759 .get_pcie_lanes
= NULL
,
760 .set_pcie_lanes
= NULL
,
761 .set_clock_gating
= &radeon_atom_set_clock_gating
,
764 .page_flip
= &rs600_page_flip
,
765 .page_flip_pending
= &rs600_page_flip_pending
,
769 static struct radeon_asic rv515_asic
= {
772 .suspend
= &rv515_suspend
,
773 .resume
= &rv515_resume
,
774 .vga_set_state
= &r100_vga_set_state
,
775 .asic_reset
= &rs600_asic_reset
,
776 .mmio_hdp_flush
= NULL
,
777 .gui_idle
= &r100_gui_idle
,
778 .mc_wait_for_idle
= &rv515_mc_wait_for_idle
,
779 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
781 .tlb_flush
= &rv370_pcie_gart_tlb_flush
,
782 .get_page_entry
= &rv370_pcie_gart_get_page_entry
,
783 .set_page
= &rv370_pcie_gart_set_page
,
786 [RADEON_RING_TYPE_GFX_INDEX
] = &rv515_gfx_ring
789 .set
= &rs600_irq_set
,
790 .process
= &rs600_irq_process
,
793 .get_vblank_counter
= &rs600_get_vblank_counter
,
794 .bandwidth_update
= &rv515_bandwidth_update
,
795 .wait_for_vblank
= &avivo_wait_for_vblank
,
796 .set_backlight_level
= &atombios_set_backlight_level
,
797 .get_backlight_level
= &atombios_get_backlight_level
,
800 .blit
= &r100_copy_blit
,
801 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
802 .dma
= &r200_copy_dma
,
803 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
804 .copy
= &r100_copy_blit
,
805 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
808 .set_reg
= r100_set_surface_reg
,
809 .clear_reg
= r100_clear_surface_reg
,
812 .init
= &rs600_hpd_init
,
813 .fini
= &rs600_hpd_fini
,
814 .sense
= &rs600_hpd_sense
,
815 .set_polarity
= &rs600_hpd_set_polarity
,
818 .misc
= &rs600_pm_misc
,
819 .prepare
= &rs600_pm_prepare
,
820 .finish
= &rs600_pm_finish
,
821 .init_profile
= &r420_pm_init_profile
,
822 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
823 .get_engine_clock
= &radeon_atom_get_engine_clock
,
824 .set_engine_clock
= &radeon_atom_set_engine_clock
,
825 .get_memory_clock
= &radeon_atom_get_memory_clock
,
826 .set_memory_clock
= &radeon_atom_set_memory_clock
,
827 .get_pcie_lanes
= &rv370_get_pcie_lanes
,
828 .set_pcie_lanes
= &rv370_set_pcie_lanes
,
829 .set_clock_gating
= &radeon_atom_set_clock_gating
,
832 .page_flip
= &rs600_page_flip
,
833 .page_flip_pending
= &rs600_page_flip_pending
,
837 static struct radeon_asic r520_asic
= {
840 .suspend
= &rv515_suspend
,
841 .resume
= &r520_resume
,
842 .vga_set_state
= &r100_vga_set_state
,
843 .asic_reset
= &rs600_asic_reset
,
844 .mmio_hdp_flush
= NULL
,
845 .gui_idle
= &r100_gui_idle
,
846 .mc_wait_for_idle
= &r520_mc_wait_for_idle
,
847 .get_allowed_info_register
= radeon_invalid_get_allowed_info_register
,
849 .tlb_flush
= &rv370_pcie_gart_tlb_flush
,
850 .get_page_entry
= &rv370_pcie_gart_get_page_entry
,
851 .set_page
= &rv370_pcie_gart_set_page
,
854 [RADEON_RING_TYPE_GFX_INDEX
] = &rv515_gfx_ring
857 .set
= &rs600_irq_set
,
858 .process
= &rs600_irq_process
,
861 .bandwidth_update
= &rv515_bandwidth_update
,
862 .get_vblank_counter
= &rs600_get_vblank_counter
,
863 .wait_for_vblank
= &avivo_wait_for_vblank
,
864 .set_backlight_level
= &atombios_set_backlight_level
,
865 .get_backlight_level
= &atombios_get_backlight_level
,
868 .blit
= &r100_copy_blit
,
869 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
870 .dma
= &r200_copy_dma
,
871 .dma_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
872 .copy
= &r100_copy_blit
,
873 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
876 .set_reg
= r100_set_surface_reg
,
877 .clear_reg
= r100_clear_surface_reg
,
880 .init
= &rs600_hpd_init
,
881 .fini
= &rs600_hpd_fini
,
882 .sense
= &rs600_hpd_sense
,
883 .set_polarity
= &rs600_hpd_set_polarity
,
886 .misc
= &rs600_pm_misc
,
887 .prepare
= &rs600_pm_prepare
,
888 .finish
= &rs600_pm_finish
,
889 .init_profile
= &r420_pm_init_profile
,
890 .get_dynpm_state
= &r100_pm_get_dynpm_state
,
891 .get_engine_clock
= &radeon_atom_get_engine_clock
,
892 .set_engine_clock
= &radeon_atom_set_engine_clock
,
893 .get_memory_clock
= &radeon_atom_get_memory_clock
,
894 .set_memory_clock
= &radeon_atom_set_memory_clock
,
895 .get_pcie_lanes
= &rv370_get_pcie_lanes
,
896 .set_pcie_lanes
= &rv370_set_pcie_lanes
,
897 .set_clock_gating
= &radeon_atom_set_clock_gating
,
900 .page_flip
= &rs600_page_flip
,
901 .page_flip_pending
= &rs600_page_flip_pending
,
905 static struct radeon_asic_ring r600_gfx_ring
= {
906 .ib_execute
= &r600_ring_ib_execute
,
907 .emit_fence
= &r600_fence_ring_emit
,
908 .emit_semaphore
= &r600_semaphore_ring_emit
,
909 .cs_parse
= &r600_cs_parse
,
910 .ring_test
= &r600_ring_test
,
911 .ib_test
= &r600_ib_test
,
912 .is_lockup
= &r600_gfx_is_lockup
,
913 .get_rptr
= &r600_gfx_get_rptr
,
914 .get_wptr
= &r600_gfx_get_wptr
,
915 .set_wptr
= &r600_gfx_set_wptr
,
918 static struct radeon_asic_ring r600_dma_ring
= {
919 .ib_execute
= &r600_dma_ring_ib_execute
,
920 .emit_fence
= &r600_dma_fence_ring_emit
,
921 .emit_semaphore
= &r600_dma_semaphore_ring_emit
,
922 .cs_parse
= &r600_dma_cs_parse
,
923 .ring_test
= &r600_dma_ring_test
,
924 .ib_test
= &r600_dma_ib_test
,
925 .is_lockup
= &r600_dma_is_lockup
,
926 .get_rptr
= &r600_dma_get_rptr
,
927 .get_wptr
= &r600_dma_get_wptr
,
928 .set_wptr
= &r600_dma_set_wptr
,
931 static struct radeon_asic r600_asic
= {
934 .suspend
= &r600_suspend
,
935 .resume
= &r600_resume
,
936 .vga_set_state
= &r600_vga_set_state
,
937 .asic_reset
= &r600_asic_reset
,
938 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
939 .gui_idle
= &r600_gui_idle
,
940 .mc_wait_for_idle
= &r600_mc_wait_for_idle
,
941 .get_xclk
= &r600_get_xclk
,
942 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
943 .get_allowed_info_register
= r600_get_allowed_info_register
,
945 .tlb_flush
= &r600_pcie_gart_tlb_flush
,
946 .get_page_entry
= &rs600_gart_get_page_entry
,
947 .set_page
= &rs600_gart_set_page
,
950 [RADEON_RING_TYPE_GFX_INDEX
] = &r600_gfx_ring
,
951 [R600_RING_TYPE_DMA_INDEX
] = &r600_dma_ring
,
954 .set
= &r600_irq_set
,
955 .process
= &r600_irq_process
,
958 .bandwidth_update
= &rv515_bandwidth_update
,
959 .get_vblank_counter
= &rs600_get_vblank_counter
,
960 .wait_for_vblank
= &avivo_wait_for_vblank
,
961 .set_backlight_level
= &atombios_set_backlight_level
,
962 .get_backlight_level
= &atombios_get_backlight_level
,
965 .blit
= &r600_copy_cpdma
,
966 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
967 .dma
= &r600_copy_dma
,
968 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
969 .copy
= &r600_copy_cpdma
,
970 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
973 .set_reg
= r600_set_surface_reg
,
974 .clear_reg
= r600_clear_surface_reg
,
977 .init
= &r600_hpd_init
,
978 .fini
= &r600_hpd_fini
,
979 .sense
= &r600_hpd_sense
,
980 .set_polarity
= &r600_hpd_set_polarity
,
983 .misc
= &r600_pm_misc
,
984 .prepare
= &rs600_pm_prepare
,
985 .finish
= &rs600_pm_finish
,
986 .init_profile
= &r600_pm_init_profile
,
987 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
988 .get_engine_clock
= &radeon_atom_get_engine_clock
,
989 .set_engine_clock
= &radeon_atom_set_engine_clock
,
990 .get_memory_clock
= &radeon_atom_get_memory_clock
,
991 .set_memory_clock
= &radeon_atom_set_memory_clock
,
992 .get_pcie_lanes
= &r600_get_pcie_lanes
,
993 .set_pcie_lanes
= &r600_set_pcie_lanes
,
994 .set_clock_gating
= NULL
,
995 .get_temperature
= &rv6xx_get_temp
,
998 .page_flip
= &rs600_page_flip
,
999 .page_flip_pending
= &rs600_page_flip_pending
,
1003 static struct radeon_asic_ring rv6xx_uvd_ring
= {
1004 .ib_execute
= &uvd_v1_0_ib_execute
,
1005 .emit_fence
= &uvd_v1_0_fence_emit
,
1006 .emit_semaphore
= &uvd_v1_0_semaphore_emit
,
1007 .cs_parse
= &radeon_uvd_cs_parse
,
1008 .ring_test
= &uvd_v1_0_ring_test
,
1009 .ib_test
= &uvd_v1_0_ib_test
,
1010 .is_lockup
= &radeon_ring_test_lockup
,
1011 .get_rptr
= &uvd_v1_0_get_rptr
,
1012 .get_wptr
= &uvd_v1_0_get_wptr
,
1013 .set_wptr
= &uvd_v1_0_set_wptr
,
1016 static struct radeon_asic rv6xx_asic
= {
1019 .suspend
= &r600_suspend
,
1020 .resume
= &r600_resume
,
1021 .vga_set_state
= &r600_vga_set_state
,
1022 .asic_reset
= &r600_asic_reset
,
1023 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1024 .gui_idle
= &r600_gui_idle
,
1025 .mc_wait_for_idle
= &r600_mc_wait_for_idle
,
1026 .get_xclk
= &r600_get_xclk
,
1027 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
1028 .get_allowed_info_register
= r600_get_allowed_info_register
,
1030 .tlb_flush
= &r600_pcie_gart_tlb_flush
,
1031 .get_page_entry
= &rs600_gart_get_page_entry
,
1032 .set_page
= &rs600_gart_set_page
,
1035 [RADEON_RING_TYPE_GFX_INDEX
] = &r600_gfx_ring
,
1036 [R600_RING_TYPE_DMA_INDEX
] = &r600_dma_ring
,
1037 [R600_RING_TYPE_UVD_INDEX
] = &rv6xx_uvd_ring
,
1040 .set
= &r600_irq_set
,
1041 .process
= &r600_irq_process
,
1044 .bandwidth_update
= &rv515_bandwidth_update
,
1045 .get_vblank_counter
= &rs600_get_vblank_counter
,
1046 .wait_for_vblank
= &avivo_wait_for_vblank
,
1047 .set_backlight_level
= &atombios_set_backlight_level
,
1048 .get_backlight_level
= &atombios_get_backlight_level
,
1051 .blit
= &r600_copy_cpdma
,
1052 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1053 .dma
= &r600_copy_dma
,
1054 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1055 .copy
= &r600_copy_cpdma
,
1056 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1059 .set_reg
= r600_set_surface_reg
,
1060 .clear_reg
= r600_clear_surface_reg
,
1063 .init
= &r600_hpd_init
,
1064 .fini
= &r600_hpd_fini
,
1065 .sense
= &r600_hpd_sense
,
1066 .set_polarity
= &r600_hpd_set_polarity
,
1069 .misc
= &r600_pm_misc
,
1070 .prepare
= &rs600_pm_prepare
,
1071 .finish
= &rs600_pm_finish
,
1072 .init_profile
= &r600_pm_init_profile
,
1073 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1074 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1075 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1076 .get_memory_clock
= &radeon_atom_get_memory_clock
,
1077 .set_memory_clock
= &radeon_atom_set_memory_clock
,
1078 .get_pcie_lanes
= &r600_get_pcie_lanes
,
1079 .set_pcie_lanes
= &r600_set_pcie_lanes
,
1080 .set_clock_gating
= NULL
,
1081 .get_temperature
= &rv6xx_get_temp
,
1082 .set_uvd_clocks
= &r600_set_uvd_clocks
,
1085 .init
= &rv6xx_dpm_init
,
1086 .setup_asic
= &rv6xx_setup_asic
,
1087 .enable
= &rv6xx_dpm_enable
,
1088 .late_enable
= &r600_dpm_late_enable
,
1089 .disable
= &rv6xx_dpm_disable
,
1090 .pre_set_power_state
= &r600_dpm_pre_set_power_state
,
1091 .set_power_state
= &rv6xx_dpm_set_power_state
,
1092 .post_set_power_state
= &r600_dpm_post_set_power_state
,
1093 .display_configuration_changed
= &rv6xx_dpm_display_configuration_changed
,
1094 .fini
= &rv6xx_dpm_fini
,
1095 .get_sclk
= &rv6xx_dpm_get_sclk
,
1096 .get_mclk
= &rv6xx_dpm_get_mclk
,
1097 .print_power_state
= &rv6xx_dpm_print_power_state
,
1098 .debugfs_print_current_performance_level
= &rv6xx_dpm_debugfs_print_current_performance_level
,
1099 .force_performance_level
= &rv6xx_dpm_force_performance_level
,
1100 .get_current_sclk
= &rv6xx_dpm_get_current_sclk
,
1101 .get_current_mclk
= &rv6xx_dpm_get_current_mclk
,
1104 .page_flip
= &rs600_page_flip
,
1105 .page_flip_pending
= &rs600_page_flip_pending
,
1109 static struct radeon_asic rs780_asic
= {
1112 .suspend
= &r600_suspend
,
1113 .resume
= &r600_resume
,
1114 .vga_set_state
= &r600_vga_set_state
,
1115 .asic_reset
= &r600_asic_reset
,
1116 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1117 .gui_idle
= &r600_gui_idle
,
1118 .mc_wait_for_idle
= &r600_mc_wait_for_idle
,
1119 .get_xclk
= &r600_get_xclk
,
1120 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
1121 .get_allowed_info_register
= r600_get_allowed_info_register
,
1123 .tlb_flush
= &r600_pcie_gart_tlb_flush
,
1124 .get_page_entry
= &rs600_gart_get_page_entry
,
1125 .set_page
= &rs600_gart_set_page
,
1128 [RADEON_RING_TYPE_GFX_INDEX
] = &r600_gfx_ring
,
1129 [R600_RING_TYPE_DMA_INDEX
] = &r600_dma_ring
,
1130 [R600_RING_TYPE_UVD_INDEX
] = &rv6xx_uvd_ring
,
1133 .set
= &r600_irq_set
,
1134 .process
= &r600_irq_process
,
1137 .bandwidth_update
= &rs690_bandwidth_update
,
1138 .get_vblank_counter
= &rs600_get_vblank_counter
,
1139 .wait_for_vblank
= &avivo_wait_for_vblank
,
1140 .set_backlight_level
= &atombios_set_backlight_level
,
1141 .get_backlight_level
= &atombios_get_backlight_level
,
1144 .blit
= &r600_copy_cpdma
,
1145 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1146 .dma
= &r600_copy_dma
,
1147 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1148 .copy
= &r600_copy_cpdma
,
1149 .copy_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1152 .set_reg
= r600_set_surface_reg
,
1153 .clear_reg
= r600_clear_surface_reg
,
1156 .init
= &r600_hpd_init
,
1157 .fini
= &r600_hpd_fini
,
1158 .sense
= &r600_hpd_sense
,
1159 .set_polarity
= &r600_hpd_set_polarity
,
1162 .misc
= &r600_pm_misc
,
1163 .prepare
= &rs600_pm_prepare
,
1164 .finish
= &rs600_pm_finish
,
1165 .init_profile
= &rs780_pm_init_profile
,
1166 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1167 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1168 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1169 .get_memory_clock
= NULL
,
1170 .set_memory_clock
= NULL
,
1171 .get_pcie_lanes
= NULL
,
1172 .set_pcie_lanes
= NULL
,
1173 .set_clock_gating
= NULL
,
1174 .get_temperature
= &rv6xx_get_temp
,
1175 .set_uvd_clocks
= &r600_set_uvd_clocks
,
1178 .init
= &rs780_dpm_init
,
1179 .setup_asic
= &rs780_dpm_setup_asic
,
1180 .enable
= &rs780_dpm_enable
,
1181 .late_enable
= &r600_dpm_late_enable
,
1182 .disable
= &rs780_dpm_disable
,
1183 .pre_set_power_state
= &r600_dpm_pre_set_power_state
,
1184 .set_power_state
= &rs780_dpm_set_power_state
,
1185 .post_set_power_state
= &r600_dpm_post_set_power_state
,
1186 .display_configuration_changed
= &rs780_dpm_display_configuration_changed
,
1187 .fini
= &rs780_dpm_fini
,
1188 .get_sclk
= &rs780_dpm_get_sclk
,
1189 .get_mclk
= &rs780_dpm_get_mclk
,
1190 .print_power_state
= &rs780_dpm_print_power_state
,
1191 .debugfs_print_current_performance_level
= &rs780_dpm_debugfs_print_current_performance_level
,
1192 .force_performance_level
= &rs780_dpm_force_performance_level
,
1193 .get_current_sclk
= &rs780_dpm_get_current_sclk
,
1194 .get_current_mclk
= &rs780_dpm_get_current_mclk
,
1197 .page_flip
= &rs600_page_flip
,
1198 .page_flip_pending
= &rs600_page_flip_pending
,
1202 static struct radeon_asic_ring rv770_uvd_ring
= {
1203 .ib_execute
= &uvd_v1_0_ib_execute
,
1204 .emit_fence
= &uvd_v2_2_fence_emit
,
1205 .emit_semaphore
= &uvd_v2_2_semaphore_emit
,
1206 .cs_parse
= &radeon_uvd_cs_parse
,
1207 .ring_test
= &uvd_v1_0_ring_test
,
1208 .ib_test
= &uvd_v1_0_ib_test
,
1209 .is_lockup
= &radeon_ring_test_lockup
,
1210 .get_rptr
= &uvd_v1_0_get_rptr
,
1211 .get_wptr
= &uvd_v1_0_get_wptr
,
1212 .set_wptr
= &uvd_v1_0_set_wptr
,
1215 static struct radeon_asic rv770_asic
= {
1216 .init
= &rv770_init
,
1217 .fini
= &rv770_fini
,
1218 .suspend
= &rv770_suspend
,
1219 .resume
= &rv770_resume
,
1220 .asic_reset
= &r600_asic_reset
,
1221 .vga_set_state
= &r600_vga_set_state
,
1222 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1223 .gui_idle
= &r600_gui_idle
,
1224 .mc_wait_for_idle
= &r600_mc_wait_for_idle
,
1225 .get_xclk
= &rv770_get_xclk
,
1226 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
1227 .get_allowed_info_register
= r600_get_allowed_info_register
,
1229 .tlb_flush
= &r600_pcie_gart_tlb_flush
,
1230 .get_page_entry
= &rs600_gart_get_page_entry
,
1231 .set_page
= &rs600_gart_set_page
,
1234 [RADEON_RING_TYPE_GFX_INDEX
] = &r600_gfx_ring
,
1235 [R600_RING_TYPE_DMA_INDEX
] = &r600_dma_ring
,
1236 [R600_RING_TYPE_UVD_INDEX
] = &rv770_uvd_ring
,
1239 .set
= &r600_irq_set
,
1240 .process
= &r600_irq_process
,
1243 .bandwidth_update
= &rv515_bandwidth_update
,
1244 .get_vblank_counter
= &rs600_get_vblank_counter
,
1245 .wait_for_vblank
= &avivo_wait_for_vblank
,
1246 .set_backlight_level
= &atombios_set_backlight_level
,
1247 .get_backlight_level
= &atombios_get_backlight_level
,
1250 .blit
= &r600_copy_cpdma
,
1251 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1252 .dma
= &rv770_copy_dma
,
1253 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1254 .copy
= &rv770_copy_dma
,
1255 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1258 .set_reg
= r600_set_surface_reg
,
1259 .clear_reg
= r600_clear_surface_reg
,
1262 .init
= &r600_hpd_init
,
1263 .fini
= &r600_hpd_fini
,
1264 .sense
= &r600_hpd_sense
,
1265 .set_polarity
= &r600_hpd_set_polarity
,
1268 .misc
= &rv770_pm_misc
,
1269 .prepare
= &rs600_pm_prepare
,
1270 .finish
= &rs600_pm_finish
,
1271 .init_profile
= &r600_pm_init_profile
,
1272 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1273 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1274 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1275 .get_memory_clock
= &radeon_atom_get_memory_clock
,
1276 .set_memory_clock
= &radeon_atom_set_memory_clock
,
1277 .get_pcie_lanes
= &r600_get_pcie_lanes
,
1278 .set_pcie_lanes
= &r600_set_pcie_lanes
,
1279 .set_clock_gating
= &radeon_atom_set_clock_gating
,
1280 .set_uvd_clocks
= &rv770_set_uvd_clocks
,
1281 .get_temperature
= &rv770_get_temp
,
1284 .init
= &rv770_dpm_init
,
1285 .setup_asic
= &rv770_dpm_setup_asic
,
1286 .enable
= &rv770_dpm_enable
,
1287 .late_enable
= &rv770_dpm_late_enable
,
1288 .disable
= &rv770_dpm_disable
,
1289 .pre_set_power_state
= &r600_dpm_pre_set_power_state
,
1290 .set_power_state
= &rv770_dpm_set_power_state
,
1291 .post_set_power_state
= &r600_dpm_post_set_power_state
,
1292 .display_configuration_changed
= &rv770_dpm_display_configuration_changed
,
1293 .fini
= &rv770_dpm_fini
,
1294 .get_sclk
= &rv770_dpm_get_sclk
,
1295 .get_mclk
= &rv770_dpm_get_mclk
,
1296 .print_power_state
= &rv770_dpm_print_power_state
,
1297 .debugfs_print_current_performance_level
= &rv770_dpm_debugfs_print_current_performance_level
,
1298 .force_performance_level
= &rv770_dpm_force_performance_level
,
1299 .vblank_too_short
= &rv770_dpm_vblank_too_short
,
1300 .get_current_sclk
= &rv770_dpm_get_current_sclk
,
1301 .get_current_mclk
= &rv770_dpm_get_current_mclk
,
1304 .page_flip
= &rv770_page_flip
,
1305 .page_flip_pending
= &rv770_page_flip_pending
,
1309 static struct radeon_asic_ring evergreen_gfx_ring
= {
1310 .ib_execute
= &evergreen_ring_ib_execute
,
1311 .emit_fence
= &r600_fence_ring_emit
,
1312 .emit_semaphore
= &r600_semaphore_ring_emit
,
1313 .cs_parse
= &evergreen_cs_parse
,
1314 .ring_test
= &r600_ring_test
,
1315 .ib_test
= &r600_ib_test
,
1316 .is_lockup
= &evergreen_gfx_is_lockup
,
1317 .get_rptr
= &r600_gfx_get_rptr
,
1318 .get_wptr
= &r600_gfx_get_wptr
,
1319 .set_wptr
= &r600_gfx_set_wptr
,
1322 static struct radeon_asic_ring evergreen_dma_ring
= {
1323 .ib_execute
= &evergreen_dma_ring_ib_execute
,
1324 .emit_fence
= &evergreen_dma_fence_ring_emit
,
1325 .emit_semaphore
= &r600_dma_semaphore_ring_emit
,
1326 .cs_parse
= &evergreen_dma_cs_parse
,
1327 .ring_test
= &r600_dma_ring_test
,
1328 .ib_test
= &r600_dma_ib_test
,
1329 .is_lockup
= &evergreen_dma_is_lockup
,
1330 .get_rptr
= &r600_dma_get_rptr
,
1331 .get_wptr
= &r600_dma_get_wptr
,
1332 .set_wptr
= &r600_dma_set_wptr
,
1335 static struct radeon_asic evergreen_asic
= {
1336 .init
= &evergreen_init
,
1337 .fini
= &evergreen_fini
,
1338 .suspend
= &evergreen_suspend
,
1339 .resume
= &evergreen_resume
,
1340 .asic_reset
= &evergreen_asic_reset
,
1341 .vga_set_state
= &r600_vga_set_state
,
1342 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1343 .gui_idle
= &r600_gui_idle
,
1344 .mc_wait_for_idle
= &evergreen_mc_wait_for_idle
,
1345 .get_xclk
= &rv770_get_xclk
,
1346 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
1347 .get_allowed_info_register
= evergreen_get_allowed_info_register
,
1349 .tlb_flush
= &evergreen_pcie_gart_tlb_flush
,
1350 .get_page_entry
= &rs600_gart_get_page_entry
,
1351 .set_page
= &rs600_gart_set_page
,
1354 [RADEON_RING_TYPE_GFX_INDEX
] = &evergreen_gfx_ring
,
1355 [R600_RING_TYPE_DMA_INDEX
] = &evergreen_dma_ring
,
1356 [R600_RING_TYPE_UVD_INDEX
] = &rv770_uvd_ring
,
1359 .set
= &evergreen_irq_set
,
1360 .process
= &evergreen_irq_process
,
1363 .bandwidth_update
= &evergreen_bandwidth_update
,
1364 .get_vblank_counter
= &evergreen_get_vblank_counter
,
1365 .wait_for_vblank
= &dce4_wait_for_vblank
,
1366 .set_backlight_level
= &atombios_set_backlight_level
,
1367 .get_backlight_level
= &atombios_get_backlight_level
,
1370 .blit
= &r600_copy_cpdma
,
1371 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1372 .dma
= &evergreen_copy_dma
,
1373 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1374 .copy
= &evergreen_copy_dma
,
1375 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1378 .set_reg
= r600_set_surface_reg
,
1379 .clear_reg
= r600_clear_surface_reg
,
1382 .init
= &evergreen_hpd_init
,
1383 .fini
= &evergreen_hpd_fini
,
1384 .sense
= &evergreen_hpd_sense
,
1385 .set_polarity
= &evergreen_hpd_set_polarity
,
1388 .misc
= &evergreen_pm_misc
,
1389 .prepare
= &evergreen_pm_prepare
,
1390 .finish
= &evergreen_pm_finish
,
1391 .init_profile
= &r600_pm_init_profile
,
1392 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1393 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1394 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1395 .get_memory_clock
= &radeon_atom_get_memory_clock
,
1396 .set_memory_clock
= &radeon_atom_set_memory_clock
,
1397 .get_pcie_lanes
= &r600_get_pcie_lanes
,
1398 .set_pcie_lanes
= &r600_set_pcie_lanes
,
1399 .set_clock_gating
= NULL
,
1400 .set_uvd_clocks
= &evergreen_set_uvd_clocks
,
1401 .get_temperature
= &evergreen_get_temp
,
1404 .init
= &cypress_dpm_init
,
1405 .setup_asic
= &cypress_dpm_setup_asic
,
1406 .enable
= &cypress_dpm_enable
,
1407 .late_enable
= &rv770_dpm_late_enable
,
1408 .disable
= &cypress_dpm_disable
,
1409 .pre_set_power_state
= &r600_dpm_pre_set_power_state
,
1410 .set_power_state
= &cypress_dpm_set_power_state
,
1411 .post_set_power_state
= &r600_dpm_post_set_power_state
,
1412 .display_configuration_changed
= &cypress_dpm_display_configuration_changed
,
1413 .fini
= &cypress_dpm_fini
,
1414 .get_sclk
= &rv770_dpm_get_sclk
,
1415 .get_mclk
= &rv770_dpm_get_mclk
,
1416 .print_power_state
= &rv770_dpm_print_power_state
,
1417 .debugfs_print_current_performance_level
= &rv770_dpm_debugfs_print_current_performance_level
,
1418 .force_performance_level
= &rv770_dpm_force_performance_level
,
1419 .vblank_too_short
= &cypress_dpm_vblank_too_short
,
1420 .get_current_sclk
= &rv770_dpm_get_current_sclk
,
1421 .get_current_mclk
= &rv770_dpm_get_current_mclk
,
1424 .page_flip
= &evergreen_page_flip
,
1425 .page_flip_pending
= &evergreen_page_flip_pending
,
1429 static struct radeon_asic sumo_asic
= {
1430 .init
= &evergreen_init
,
1431 .fini
= &evergreen_fini
,
1432 .suspend
= &evergreen_suspend
,
1433 .resume
= &evergreen_resume
,
1434 .asic_reset
= &evergreen_asic_reset
,
1435 .vga_set_state
= &r600_vga_set_state
,
1436 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1437 .gui_idle
= &r600_gui_idle
,
1438 .mc_wait_for_idle
= &evergreen_mc_wait_for_idle
,
1439 .get_xclk
= &r600_get_xclk
,
1440 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
1441 .get_allowed_info_register
= evergreen_get_allowed_info_register
,
1443 .tlb_flush
= &evergreen_pcie_gart_tlb_flush
,
1444 .get_page_entry
= &rs600_gart_get_page_entry
,
1445 .set_page
= &rs600_gart_set_page
,
1448 [RADEON_RING_TYPE_GFX_INDEX
] = &evergreen_gfx_ring
,
1449 [R600_RING_TYPE_DMA_INDEX
] = &evergreen_dma_ring
,
1450 [R600_RING_TYPE_UVD_INDEX
] = &rv770_uvd_ring
,
1453 .set
= &evergreen_irq_set
,
1454 .process
= &evergreen_irq_process
,
1457 .bandwidth_update
= &evergreen_bandwidth_update
,
1458 .get_vblank_counter
= &evergreen_get_vblank_counter
,
1459 .wait_for_vblank
= &dce4_wait_for_vblank
,
1460 .set_backlight_level
= &atombios_set_backlight_level
,
1461 .get_backlight_level
= &atombios_get_backlight_level
,
1464 .blit
= &r600_copy_cpdma
,
1465 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1466 .dma
= &evergreen_copy_dma
,
1467 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1468 .copy
= &evergreen_copy_dma
,
1469 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1472 .set_reg
= r600_set_surface_reg
,
1473 .clear_reg
= r600_clear_surface_reg
,
1476 .init
= &evergreen_hpd_init
,
1477 .fini
= &evergreen_hpd_fini
,
1478 .sense
= &evergreen_hpd_sense
,
1479 .set_polarity
= &evergreen_hpd_set_polarity
,
1482 .misc
= &evergreen_pm_misc
,
1483 .prepare
= &evergreen_pm_prepare
,
1484 .finish
= &evergreen_pm_finish
,
1485 .init_profile
= &sumo_pm_init_profile
,
1486 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1487 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1488 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1489 .get_memory_clock
= NULL
,
1490 .set_memory_clock
= NULL
,
1491 .get_pcie_lanes
= NULL
,
1492 .set_pcie_lanes
= NULL
,
1493 .set_clock_gating
= NULL
,
1494 .set_uvd_clocks
= &sumo_set_uvd_clocks
,
1495 .get_temperature
= &sumo_get_temp
,
1498 .init
= &sumo_dpm_init
,
1499 .setup_asic
= &sumo_dpm_setup_asic
,
1500 .enable
= &sumo_dpm_enable
,
1501 .late_enable
= &sumo_dpm_late_enable
,
1502 .disable
= &sumo_dpm_disable
,
1503 .pre_set_power_state
= &sumo_dpm_pre_set_power_state
,
1504 .set_power_state
= &sumo_dpm_set_power_state
,
1505 .post_set_power_state
= &sumo_dpm_post_set_power_state
,
1506 .display_configuration_changed
= &sumo_dpm_display_configuration_changed
,
1507 .fini
= &sumo_dpm_fini
,
1508 .get_sclk
= &sumo_dpm_get_sclk
,
1509 .get_mclk
= &sumo_dpm_get_mclk
,
1510 .print_power_state
= &sumo_dpm_print_power_state
,
1511 .debugfs_print_current_performance_level
= &sumo_dpm_debugfs_print_current_performance_level
,
1512 .force_performance_level
= &sumo_dpm_force_performance_level
,
1513 .get_current_sclk
= &sumo_dpm_get_current_sclk
,
1514 .get_current_mclk
= &sumo_dpm_get_current_mclk
,
1517 .page_flip
= &evergreen_page_flip
,
1518 .page_flip_pending
= &evergreen_page_flip_pending
,
1522 static struct radeon_asic btc_asic
= {
1523 .init
= &evergreen_init
,
1524 .fini
= &evergreen_fini
,
1525 .suspend
= &evergreen_suspend
,
1526 .resume
= &evergreen_resume
,
1527 .asic_reset
= &evergreen_asic_reset
,
1528 .vga_set_state
= &r600_vga_set_state
,
1529 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1530 .gui_idle
= &r600_gui_idle
,
1531 .mc_wait_for_idle
= &evergreen_mc_wait_for_idle
,
1532 .get_xclk
= &rv770_get_xclk
,
1533 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
1534 .get_allowed_info_register
= evergreen_get_allowed_info_register
,
1536 .tlb_flush
= &evergreen_pcie_gart_tlb_flush
,
1537 .get_page_entry
= &rs600_gart_get_page_entry
,
1538 .set_page
= &rs600_gart_set_page
,
1541 [RADEON_RING_TYPE_GFX_INDEX
] = &evergreen_gfx_ring
,
1542 [R600_RING_TYPE_DMA_INDEX
] = &evergreen_dma_ring
,
1543 [R600_RING_TYPE_UVD_INDEX
] = &rv770_uvd_ring
,
1546 .set
= &evergreen_irq_set
,
1547 .process
= &evergreen_irq_process
,
1550 .bandwidth_update
= &evergreen_bandwidth_update
,
1551 .get_vblank_counter
= &evergreen_get_vblank_counter
,
1552 .wait_for_vblank
= &dce4_wait_for_vblank
,
1553 .set_backlight_level
= &atombios_set_backlight_level
,
1554 .get_backlight_level
= &atombios_get_backlight_level
,
1557 .blit
= &r600_copy_cpdma
,
1558 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1559 .dma
= &evergreen_copy_dma
,
1560 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1561 .copy
= &evergreen_copy_dma
,
1562 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1565 .set_reg
= r600_set_surface_reg
,
1566 .clear_reg
= r600_clear_surface_reg
,
1569 .init
= &evergreen_hpd_init
,
1570 .fini
= &evergreen_hpd_fini
,
1571 .sense
= &evergreen_hpd_sense
,
1572 .set_polarity
= &evergreen_hpd_set_polarity
,
1575 .misc
= &evergreen_pm_misc
,
1576 .prepare
= &evergreen_pm_prepare
,
1577 .finish
= &evergreen_pm_finish
,
1578 .init_profile
= &btc_pm_init_profile
,
1579 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1580 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1581 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1582 .get_memory_clock
= &radeon_atom_get_memory_clock
,
1583 .set_memory_clock
= &radeon_atom_set_memory_clock
,
1584 .get_pcie_lanes
= &r600_get_pcie_lanes
,
1585 .set_pcie_lanes
= &r600_set_pcie_lanes
,
1586 .set_clock_gating
= NULL
,
1587 .set_uvd_clocks
= &evergreen_set_uvd_clocks
,
1588 .get_temperature
= &evergreen_get_temp
,
1591 .init
= &btc_dpm_init
,
1592 .setup_asic
= &btc_dpm_setup_asic
,
1593 .enable
= &btc_dpm_enable
,
1594 .late_enable
= &rv770_dpm_late_enable
,
1595 .disable
= &btc_dpm_disable
,
1596 .pre_set_power_state
= &btc_dpm_pre_set_power_state
,
1597 .set_power_state
= &btc_dpm_set_power_state
,
1598 .post_set_power_state
= &btc_dpm_post_set_power_state
,
1599 .display_configuration_changed
= &cypress_dpm_display_configuration_changed
,
1600 .fini
= &btc_dpm_fini
,
1601 .get_sclk
= &btc_dpm_get_sclk
,
1602 .get_mclk
= &btc_dpm_get_mclk
,
1603 .print_power_state
= &rv770_dpm_print_power_state
,
1604 .debugfs_print_current_performance_level
= &btc_dpm_debugfs_print_current_performance_level
,
1605 .force_performance_level
= &rv770_dpm_force_performance_level
,
1606 .vblank_too_short
= &btc_dpm_vblank_too_short
,
1607 .get_current_sclk
= &btc_dpm_get_current_sclk
,
1608 .get_current_mclk
= &btc_dpm_get_current_mclk
,
1611 .page_flip
= &evergreen_page_flip
,
1612 .page_flip_pending
= &evergreen_page_flip_pending
,
1616 static struct radeon_asic_ring cayman_gfx_ring
= {
1617 .ib_execute
= &cayman_ring_ib_execute
,
1618 .ib_parse
= &evergreen_ib_parse
,
1619 .emit_fence
= &cayman_fence_ring_emit
,
1620 .emit_semaphore
= &r600_semaphore_ring_emit
,
1621 .cs_parse
= &evergreen_cs_parse
,
1622 .ring_test
= &r600_ring_test
,
1623 .ib_test
= &r600_ib_test
,
1624 .is_lockup
= &cayman_gfx_is_lockup
,
1625 .vm_flush
= &cayman_vm_flush
,
1626 .get_rptr
= &cayman_gfx_get_rptr
,
1627 .get_wptr
= &cayman_gfx_get_wptr
,
1628 .set_wptr
= &cayman_gfx_set_wptr
,
1631 static struct radeon_asic_ring cayman_dma_ring
= {
1632 .ib_execute
= &cayman_dma_ring_ib_execute
,
1633 .ib_parse
= &evergreen_dma_ib_parse
,
1634 .emit_fence
= &evergreen_dma_fence_ring_emit
,
1635 .emit_semaphore
= &r600_dma_semaphore_ring_emit
,
1636 .cs_parse
= &evergreen_dma_cs_parse
,
1637 .ring_test
= &r600_dma_ring_test
,
1638 .ib_test
= &r600_dma_ib_test
,
1639 .is_lockup
= &cayman_dma_is_lockup
,
1640 .vm_flush
= &cayman_dma_vm_flush
,
1641 .get_rptr
= &cayman_dma_get_rptr
,
1642 .get_wptr
= &cayman_dma_get_wptr
,
1643 .set_wptr
= &cayman_dma_set_wptr
1646 static struct radeon_asic_ring cayman_uvd_ring
= {
1647 .ib_execute
= &uvd_v1_0_ib_execute
,
1648 .emit_fence
= &uvd_v2_2_fence_emit
,
1649 .emit_semaphore
= &uvd_v3_1_semaphore_emit
,
1650 .cs_parse
= &radeon_uvd_cs_parse
,
1651 .ring_test
= &uvd_v1_0_ring_test
,
1652 .ib_test
= &uvd_v1_0_ib_test
,
1653 .is_lockup
= &radeon_ring_test_lockup
,
1654 .get_rptr
= &uvd_v1_0_get_rptr
,
1655 .get_wptr
= &uvd_v1_0_get_wptr
,
1656 .set_wptr
= &uvd_v1_0_set_wptr
,
1659 static struct radeon_asic cayman_asic
= {
1660 .init
= &cayman_init
,
1661 .fini
= &cayman_fini
,
1662 .suspend
= &cayman_suspend
,
1663 .resume
= &cayman_resume
,
1664 .asic_reset
= &cayman_asic_reset
,
1665 .vga_set_state
= &r600_vga_set_state
,
1666 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1667 .gui_idle
= &r600_gui_idle
,
1668 .mc_wait_for_idle
= &evergreen_mc_wait_for_idle
,
1669 .get_xclk
= &rv770_get_xclk
,
1670 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
1671 .get_allowed_info_register
= cayman_get_allowed_info_register
,
1673 .tlb_flush
= &cayman_pcie_gart_tlb_flush
,
1674 .get_page_entry
= &rs600_gart_get_page_entry
,
1675 .set_page
= &rs600_gart_set_page
,
1678 .init
= &cayman_vm_init
,
1679 .fini
= &cayman_vm_fini
,
1680 .copy_pages
= &cayman_dma_vm_copy_pages
,
1681 .write_pages
= &cayman_dma_vm_write_pages
,
1682 .set_pages
= &cayman_dma_vm_set_pages
,
1683 .pad_ib
= &cayman_dma_vm_pad_ib
,
1686 [RADEON_RING_TYPE_GFX_INDEX
] = &cayman_gfx_ring
,
1687 [CAYMAN_RING_TYPE_CP1_INDEX
] = &cayman_gfx_ring
,
1688 [CAYMAN_RING_TYPE_CP2_INDEX
] = &cayman_gfx_ring
,
1689 [R600_RING_TYPE_DMA_INDEX
] = &cayman_dma_ring
,
1690 [CAYMAN_RING_TYPE_DMA1_INDEX
] = &cayman_dma_ring
,
1691 [R600_RING_TYPE_UVD_INDEX
] = &cayman_uvd_ring
,
1694 .set
= &evergreen_irq_set
,
1695 .process
= &evergreen_irq_process
,
1698 .bandwidth_update
= &evergreen_bandwidth_update
,
1699 .get_vblank_counter
= &evergreen_get_vblank_counter
,
1700 .wait_for_vblank
= &dce4_wait_for_vblank
,
1701 .set_backlight_level
= &atombios_set_backlight_level
,
1702 .get_backlight_level
= &atombios_get_backlight_level
,
1705 .blit
= &r600_copy_cpdma
,
1706 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1707 .dma
= &evergreen_copy_dma
,
1708 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1709 .copy
= &evergreen_copy_dma
,
1710 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1713 .set_reg
= r600_set_surface_reg
,
1714 .clear_reg
= r600_clear_surface_reg
,
1717 .init
= &evergreen_hpd_init
,
1718 .fini
= &evergreen_hpd_fini
,
1719 .sense
= &evergreen_hpd_sense
,
1720 .set_polarity
= &evergreen_hpd_set_polarity
,
1723 .misc
= &evergreen_pm_misc
,
1724 .prepare
= &evergreen_pm_prepare
,
1725 .finish
= &evergreen_pm_finish
,
1726 .init_profile
= &btc_pm_init_profile
,
1727 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1728 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1729 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1730 .get_memory_clock
= &radeon_atom_get_memory_clock
,
1731 .set_memory_clock
= &radeon_atom_set_memory_clock
,
1732 .get_pcie_lanes
= &r600_get_pcie_lanes
,
1733 .set_pcie_lanes
= &r600_set_pcie_lanes
,
1734 .set_clock_gating
= NULL
,
1735 .set_uvd_clocks
= &evergreen_set_uvd_clocks
,
1736 .get_temperature
= &evergreen_get_temp
,
1739 .init
= &ni_dpm_init
,
1740 .setup_asic
= &ni_dpm_setup_asic
,
1741 .enable
= &ni_dpm_enable
,
1742 .late_enable
= &rv770_dpm_late_enable
,
1743 .disable
= &ni_dpm_disable
,
1744 .pre_set_power_state
= &ni_dpm_pre_set_power_state
,
1745 .set_power_state
= &ni_dpm_set_power_state
,
1746 .post_set_power_state
= &ni_dpm_post_set_power_state
,
1747 .display_configuration_changed
= &cypress_dpm_display_configuration_changed
,
1748 .fini
= &ni_dpm_fini
,
1749 .get_sclk
= &ni_dpm_get_sclk
,
1750 .get_mclk
= &ni_dpm_get_mclk
,
1751 .print_power_state
= &ni_dpm_print_power_state
,
1752 .debugfs_print_current_performance_level
= &ni_dpm_debugfs_print_current_performance_level
,
1753 .force_performance_level
= &ni_dpm_force_performance_level
,
1754 .vblank_too_short
= &ni_dpm_vblank_too_short
,
1755 .get_current_sclk
= &ni_dpm_get_current_sclk
,
1756 .get_current_mclk
= &ni_dpm_get_current_mclk
,
1759 .page_flip
= &evergreen_page_flip
,
1760 .page_flip_pending
= &evergreen_page_flip_pending
,
1764 static struct radeon_asic_ring trinity_vce_ring
= {
1765 .ib_execute
= &radeon_vce_ib_execute
,
1766 .emit_fence
= &radeon_vce_fence_emit
,
1767 .emit_semaphore
= &radeon_vce_semaphore_emit
,
1768 .cs_parse
= &radeon_vce_cs_parse
,
1769 .ring_test
= &radeon_vce_ring_test
,
1770 .ib_test
= &radeon_vce_ib_test
,
1771 .is_lockup
= &radeon_ring_test_lockup
,
1772 .get_rptr
= &vce_v1_0_get_rptr
,
1773 .get_wptr
= &vce_v1_0_get_wptr
,
1774 .set_wptr
= &vce_v1_0_set_wptr
,
1777 static struct radeon_asic trinity_asic
= {
1778 .init
= &cayman_init
,
1779 .fini
= &cayman_fini
,
1780 .suspend
= &cayman_suspend
,
1781 .resume
= &cayman_resume
,
1782 .asic_reset
= &cayman_asic_reset
,
1783 .vga_set_state
= &r600_vga_set_state
,
1784 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1785 .gui_idle
= &r600_gui_idle
,
1786 .mc_wait_for_idle
= &evergreen_mc_wait_for_idle
,
1787 .get_xclk
= &r600_get_xclk
,
1788 .get_gpu_clock_counter
= &r600_get_gpu_clock_counter
,
1789 .get_allowed_info_register
= cayman_get_allowed_info_register
,
1791 .tlb_flush
= &cayman_pcie_gart_tlb_flush
,
1792 .get_page_entry
= &rs600_gart_get_page_entry
,
1793 .set_page
= &rs600_gart_set_page
,
1796 .init
= &cayman_vm_init
,
1797 .fini
= &cayman_vm_fini
,
1798 .copy_pages
= &cayman_dma_vm_copy_pages
,
1799 .write_pages
= &cayman_dma_vm_write_pages
,
1800 .set_pages
= &cayman_dma_vm_set_pages
,
1801 .pad_ib
= &cayman_dma_vm_pad_ib
,
1804 [RADEON_RING_TYPE_GFX_INDEX
] = &cayman_gfx_ring
,
1805 [CAYMAN_RING_TYPE_CP1_INDEX
] = &cayman_gfx_ring
,
1806 [CAYMAN_RING_TYPE_CP2_INDEX
] = &cayman_gfx_ring
,
1807 [R600_RING_TYPE_DMA_INDEX
] = &cayman_dma_ring
,
1808 [CAYMAN_RING_TYPE_DMA1_INDEX
] = &cayman_dma_ring
,
1809 [R600_RING_TYPE_UVD_INDEX
] = &cayman_uvd_ring
,
1810 [TN_RING_TYPE_VCE1_INDEX
] = &trinity_vce_ring
,
1811 [TN_RING_TYPE_VCE2_INDEX
] = &trinity_vce_ring
,
1814 .set
= &evergreen_irq_set
,
1815 .process
= &evergreen_irq_process
,
1818 .bandwidth_update
= &dce6_bandwidth_update
,
1819 .get_vblank_counter
= &evergreen_get_vblank_counter
,
1820 .wait_for_vblank
= &dce4_wait_for_vblank
,
1821 .set_backlight_level
= &atombios_set_backlight_level
,
1822 .get_backlight_level
= &atombios_get_backlight_level
,
1825 .blit
= &r600_copy_cpdma
,
1826 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1827 .dma
= &evergreen_copy_dma
,
1828 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1829 .copy
= &evergreen_copy_dma
,
1830 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1833 .set_reg
= r600_set_surface_reg
,
1834 .clear_reg
= r600_clear_surface_reg
,
1837 .init
= &evergreen_hpd_init
,
1838 .fini
= &evergreen_hpd_fini
,
1839 .sense
= &evergreen_hpd_sense
,
1840 .set_polarity
= &evergreen_hpd_set_polarity
,
1843 .misc
= &evergreen_pm_misc
,
1844 .prepare
= &evergreen_pm_prepare
,
1845 .finish
= &evergreen_pm_finish
,
1846 .init_profile
= &sumo_pm_init_profile
,
1847 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1848 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1849 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1850 .get_memory_clock
= NULL
,
1851 .set_memory_clock
= NULL
,
1852 .get_pcie_lanes
= NULL
,
1853 .set_pcie_lanes
= NULL
,
1854 .set_clock_gating
= NULL
,
1855 .set_uvd_clocks
= &sumo_set_uvd_clocks
,
1856 .set_vce_clocks
= &tn_set_vce_clocks
,
1857 .get_temperature
= &tn_get_temp
,
1860 .init
= &trinity_dpm_init
,
1861 .setup_asic
= &trinity_dpm_setup_asic
,
1862 .enable
= &trinity_dpm_enable
,
1863 .late_enable
= &trinity_dpm_late_enable
,
1864 .disable
= &trinity_dpm_disable
,
1865 .pre_set_power_state
= &trinity_dpm_pre_set_power_state
,
1866 .set_power_state
= &trinity_dpm_set_power_state
,
1867 .post_set_power_state
= &trinity_dpm_post_set_power_state
,
1868 .display_configuration_changed
= &trinity_dpm_display_configuration_changed
,
1869 .fini
= &trinity_dpm_fini
,
1870 .get_sclk
= &trinity_dpm_get_sclk
,
1871 .get_mclk
= &trinity_dpm_get_mclk
,
1872 .print_power_state
= &trinity_dpm_print_power_state
,
1873 .debugfs_print_current_performance_level
= &trinity_dpm_debugfs_print_current_performance_level
,
1874 .force_performance_level
= &trinity_dpm_force_performance_level
,
1875 .enable_bapm
= &trinity_dpm_enable_bapm
,
1876 .get_current_sclk
= &trinity_dpm_get_current_sclk
,
1877 .get_current_mclk
= &trinity_dpm_get_current_mclk
,
1880 .page_flip
= &evergreen_page_flip
,
1881 .page_flip_pending
= &evergreen_page_flip_pending
,
1885 static struct radeon_asic_ring si_gfx_ring
= {
1886 .ib_execute
= &si_ring_ib_execute
,
1887 .ib_parse
= &si_ib_parse
,
1888 .emit_fence
= &si_fence_ring_emit
,
1889 .emit_semaphore
= &r600_semaphore_ring_emit
,
1891 .ring_test
= &r600_ring_test
,
1892 .ib_test
= &r600_ib_test
,
1893 .is_lockup
= &si_gfx_is_lockup
,
1894 .vm_flush
= &si_vm_flush
,
1895 .get_rptr
= &cayman_gfx_get_rptr
,
1896 .get_wptr
= &cayman_gfx_get_wptr
,
1897 .set_wptr
= &cayman_gfx_set_wptr
,
1900 static struct radeon_asic_ring si_dma_ring
= {
1901 .ib_execute
= &cayman_dma_ring_ib_execute
,
1902 .ib_parse
= &evergreen_dma_ib_parse
,
1903 .emit_fence
= &evergreen_dma_fence_ring_emit
,
1904 .emit_semaphore
= &r600_dma_semaphore_ring_emit
,
1906 .ring_test
= &r600_dma_ring_test
,
1907 .ib_test
= &r600_dma_ib_test
,
1908 .is_lockup
= &si_dma_is_lockup
,
1909 .vm_flush
= &si_dma_vm_flush
,
1910 .get_rptr
= &cayman_dma_get_rptr
,
1911 .get_wptr
= &cayman_dma_get_wptr
,
1912 .set_wptr
= &cayman_dma_set_wptr
,
1915 static struct radeon_asic si_asic
= {
1918 .suspend
= &si_suspend
,
1919 .resume
= &si_resume
,
1920 .asic_reset
= &si_asic_reset
,
1921 .vga_set_state
= &r600_vga_set_state
,
1922 .mmio_hdp_flush
= r600_mmio_hdp_flush
,
1923 .gui_idle
= &r600_gui_idle
,
1924 .mc_wait_for_idle
= &evergreen_mc_wait_for_idle
,
1925 .get_xclk
= &si_get_xclk
,
1926 .get_gpu_clock_counter
= &si_get_gpu_clock_counter
,
1927 .get_allowed_info_register
= si_get_allowed_info_register
,
1929 .tlb_flush
= &si_pcie_gart_tlb_flush
,
1930 .get_page_entry
= &rs600_gart_get_page_entry
,
1931 .set_page
= &rs600_gart_set_page
,
1934 .init
= &si_vm_init
,
1935 .fini
= &si_vm_fini
,
1936 .copy_pages
= &si_dma_vm_copy_pages
,
1937 .write_pages
= &si_dma_vm_write_pages
,
1938 .set_pages
= &si_dma_vm_set_pages
,
1939 .pad_ib
= &cayman_dma_vm_pad_ib
,
1942 [RADEON_RING_TYPE_GFX_INDEX
] = &si_gfx_ring
,
1943 [CAYMAN_RING_TYPE_CP1_INDEX
] = &si_gfx_ring
,
1944 [CAYMAN_RING_TYPE_CP2_INDEX
] = &si_gfx_ring
,
1945 [R600_RING_TYPE_DMA_INDEX
] = &si_dma_ring
,
1946 [CAYMAN_RING_TYPE_DMA1_INDEX
] = &si_dma_ring
,
1947 [R600_RING_TYPE_UVD_INDEX
] = &cayman_uvd_ring
,
1948 [TN_RING_TYPE_VCE1_INDEX
] = &trinity_vce_ring
,
1949 [TN_RING_TYPE_VCE2_INDEX
] = &trinity_vce_ring
,
1953 .process
= &si_irq_process
,
1956 .bandwidth_update
= &dce6_bandwidth_update
,
1957 .get_vblank_counter
= &evergreen_get_vblank_counter
,
1958 .wait_for_vblank
= &dce4_wait_for_vblank
,
1959 .set_backlight_level
= &atombios_set_backlight_level
,
1960 .get_backlight_level
= &atombios_get_backlight_level
,
1963 .blit
= &r600_copy_cpdma
,
1964 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
1965 .dma
= &si_copy_dma
,
1966 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1967 .copy
= &si_copy_dma
,
1968 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
1971 .set_reg
= r600_set_surface_reg
,
1972 .clear_reg
= r600_clear_surface_reg
,
1975 .init
= &evergreen_hpd_init
,
1976 .fini
= &evergreen_hpd_fini
,
1977 .sense
= &evergreen_hpd_sense
,
1978 .set_polarity
= &evergreen_hpd_set_polarity
,
1981 .misc
= &evergreen_pm_misc
,
1982 .prepare
= &evergreen_pm_prepare
,
1983 .finish
= &evergreen_pm_finish
,
1984 .init_profile
= &sumo_pm_init_profile
,
1985 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
1986 .get_engine_clock
= &radeon_atom_get_engine_clock
,
1987 .set_engine_clock
= &radeon_atom_set_engine_clock
,
1988 .get_memory_clock
= &radeon_atom_get_memory_clock
,
1989 .set_memory_clock
= &radeon_atom_set_memory_clock
,
1990 .get_pcie_lanes
= &r600_get_pcie_lanes
,
1991 .set_pcie_lanes
= &r600_set_pcie_lanes
,
1992 .set_clock_gating
= NULL
,
1993 .set_uvd_clocks
= &si_set_uvd_clocks
,
1994 .set_vce_clocks
= &si_set_vce_clocks
,
1995 .get_temperature
= &si_get_temp
,
1998 .init
= &si_dpm_init
,
1999 .setup_asic
= &si_dpm_setup_asic
,
2000 .enable
= &si_dpm_enable
,
2001 .late_enable
= &si_dpm_late_enable
,
2002 .disable
= &si_dpm_disable
,
2003 .pre_set_power_state
= &si_dpm_pre_set_power_state
,
2004 .set_power_state
= &si_dpm_set_power_state
,
2005 .post_set_power_state
= &si_dpm_post_set_power_state
,
2006 .display_configuration_changed
= &si_dpm_display_configuration_changed
,
2007 .fini
= &si_dpm_fini
,
2008 .get_sclk
= &ni_dpm_get_sclk
,
2009 .get_mclk
= &ni_dpm_get_mclk
,
2010 .print_power_state
= &ni_dpm_print_power_state
,
2011 .debugfs_print_current_performance_level
= &si_dpm_debugfs_print_current_performance_level
,
2012 .force_performance_level
= &si_dpm_force_performance_level
,
2013 .vblank_too_short
= &ni_dpm_vblank_too_short
,
2014 .fan_ctrl_set_mode
= &si_fan_ctrl_set_mode
,
2015 .fan_ctrl_get_mode
= &si_fan_ctrl_get_mode
,
2016 .get_fan_speed_percent
= &si_fan_ctrl_get_fan_speed_percent
,
2017 .set_fan_speed_percent
= &si_fan_ctrl_set_fan_speed_percent
,
2018 .get_current_sclk
= &si_dpm_get_current_sclk
,
2019 .get_current_mclk
= &si_dpm_get_current_mclk
,
2022 .page_flip
= &evergreen_page_flip
,
2023 .page_flip_pending
= &evergreen_page_flip_pending
,
2027 static struct radeon_asic_ring ci_gfx_ring
= {
2028 .ib_execute
= &cik_ring_ib_execute
,
2029 .ib_parse
= &cik_ib_parse
,
2030 .emit_fence
= &cik_fence_gfx_ring_emit
,
2031 .emit_semaphore
= &cik_semaphore_ring_emit
,
2033 .ring_test
= &cik_ring_test
,
2034 .ib_test
= &cik_ib_test
,
2035 .is_lockup
= &cik_gfx_is_lockup
,
2036 .vm_flush
= &cik_vm_flush
,
2037 .get_rptr
= &cik_gfx_get_rptr
,
2038 .get_wptr
= &cik_gfx_get_wptr
,
2039 .set_wptr
= &cik_gfx_set_wptr
,
2042 static struct radeon_asic_ring ci_cp_ring
= {
2043 .ib_execute
= &cik_ring_ib_execute
,
2044 .ib_parse
= &cik_ib_parse
,
2045 .emit_fence
= &cik_fence_compute_ring_emit
,
2046 .emit_semaphore
= &cik_semaphore_ring_emit
,
2048 .ring_test
= &cik_ring_test
,
2049 .ib_test
= &cik_ib_test
,
2050 .is_lockup
= &cik_gfx_is_lockup
,
2051 .vm_flush
= &cik_vm_flush
,
2052 .get_rptr
= &cik_compute_get_rptr
,
2053 .get_wptr
= &cik_compute_get_wptr
,
2054 .set_wptr
= &cik_compute_set_wptr
,
2057 static struct radeon_asic_ring ci_dma_ring
= {
2058 .ib_execute
= &cik_sdma_ring_ib_execute
,
2059 .ib_parse
= &cik_ib_parse
,
2060 .emit_fence
= &cik_sdma_fence_ring_emit
,
2061 .emit_semaphore
= &cik_sdma_semaphore_ring_emit
,
2063 .ring_test
= &cik_sdma_ring_test
,
2064 .ib_test
= &cik_sdma_ib_test
,
2065 .is_lockup
= &cik_sdma_is_lockup
,
2066 .vm_flush
= &cik_dma_vm_flush
,
2067 .get_rptr
= &cik_sdma_get_rptr
,
2068 .get_wptr
= &cik_sdma_get_wptr
,
2069 .set_wptr
= &cik_sdma_set_wptr
,
2072 static struct radeon_asic_ring ci_vce_ring
= {
2073 .ib_execute
= &radeon_vce_ib_execute
,
2074 .emit_fence
= &radeon_vce_fence_emit
,
2075 .emit_semaphore
= &radeon_vce_semaphore_emit
,
2076 .cs_parse
= &radeon_vce_cs_parse
,
2077 .ring_test
= &radeon_vce_ring_test
,
2078 .ib_test
= &radeon_vce_ib_test
,
2079 .is_lockup
= &radeon_ring_test_lockup
,
2080 .get_rptr
= &vce_v1_0_get_rptr
,
2081 .get_wptr
= &vce_v1_0_get_wptr
,
2082 .set_wptr
= &vce_v1_0_set_wptr
,
2085 static struct radeon_asic ci_asic
= {
2088 .suspend
= &cik_suspend
,
2089 .resume
= &cik_resume
,
2090 .asic_reset
= &cik_asic_reset
,
2091 .vga_set_state
= &r600_vga_set_state
,
2092 .mmio_hdp_flush
= &r600_mmio_hdp_flush
,
2093 .gui_idle
= &r600_gui_idle
,
2094 .mc_wait_for_idle
= &evergreen_mc_wait_for_idle
,
2095 .get_xclk
= &cik_get_xclk
,
2096 .get_gpu_clock_counter
= &cik_get_gpu_clock_counter
,
2097 .get_allowed_info_register
= cik_get_allowed_info_register
,
2099 .tlb_flush
= &cik_pcie_gart_tlb_flush
,
2100 .get_page_entry
= &rs600_gart_get_page_entry
,
2101 .set_page
= &rs600_gart_set_page
,
2104 .init
= &cik_vm_init
,
2105 .fini
= &cik_vm_fini
,
2106 .copy_pages
= &cik_sdma_vm_copy_pages
,
2107 .write_pages
= &cik_sdma_vm_write_pages
,
2108 .set_pages
= &cik_sdma_vm_set_pages
,
2109 .pad_ib
= &cik_sdma_vm_pad_ib
,
2112 [RADEON_RING_TYPE_GFX_INDEX
] = &ci_gfx_ring
,
2113 [CAYMAN_RING_TYPE_CP1_INDEX
] = &ci_cp_ring
,
2114 [CAYMAN_RING_TYPE_CP2_INDEX
] = &ci_cp_ring
,
2115 [R600_RING_TYPE_DMA_INDEX
] = &ci_dma_ring
,
2116 [CAYMAN_RING_TYPE_DMA1_INDEX
] = &ci_dma_ring
,
2117 [R600_RING_TYPE_UVD_INDEX
] = &cayman_uvd_ring
,
2118 [TN_RING_TYPE_VCE1_INDEX
] = &ci_vce_ring
,
2119 [TN_RING_TYPE_VCE2_INDEX
] = &ci_vce_ring
,
2122 .set
= &cik_irq_set
,
2123 .process
= &cik_irq_process
,
2126 .bandwidth_update
= &dce8_bandwidth_update
,
2127 .get_vblank_counter
= &evergreen_get_vblank_counter
,
2128 .wait_for_vblank
= &dce4_wait_for_vblank
,
2129 .set_backlight_level
= &atombios_set_backlight_level
,
2130 .get_backlight_level
= &atombios_get_backlight_level
,
2133 .blit
= &cik_copy_cpdma
,
2134 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
2135 .dma
= &cik_copy_dma
,
2136 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
2137 .copy
= &cik_copy_dma
,
2138 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
2141 .set_reg
= r600_set_surface_reg
,
2142 .clear_reg
= r600_clear_surface_reg
,
2145 .init
= &evergreen_hpd_init
,
2146 .fini
= &evergreen_hpd_fini
,
2147 .sense
= &evergreen_hpd_sense
,
2148 .set_polarity
= &evergreen_hpd_set_polarity
,
2151 .misc
= &evergreen_pm_misc
,
2152 .prepare
= &evergreen_pm_prepare
,
2153 .finish
= &evergreen_pm_finish
,
2154 .init_profile
= &sumo_pm_init_profile
,
2155 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
2156 .get_engine_clock
= &radeon_atom_get_engine_clock
,
2157 .set_engine_clock
= &radeon_atom_set_engine_clock
,
2158 .get_memory_clock
= &radeon_atom_get_memory_clock
,
2159 .set_memory_clock
= &radeon_atom_set_memory_clock
,
2160 .get_pcie_lanes
= NULL
,
2161 .set_pcie_lanes
= NULL
,
2162 .set_clock_gating
= NULL
,
2163 .set_uvd_clocks
= &cik_set_uvd_clocks
,
2164 .set_vce_clocks
= &cik_set_vce_clocks
,
2165 .get_temperature
= &ci_get_temp
,
2168 .init
= &ci_dpm_init
,
2169 .setup_asic
= &ci_dpm_setup_asic
,
2170 .enable
= &ci_dpm_enable
,
2171 .late_enable
= &ci_dpm_late_enable
,
2172 .disable
= &ci_dpm_disable
,
2173 .pre_set_power_state
= &ci_dpm_pre_set_power_state
,
2174 .set_power_state
= &ci_dpm_set_power_state
,
2175 .post_set_power_state
= &ci_dpm_post_set_power_state
,
2176 .display_configuration_changed
= &ci_dpm_display_configuration_changed
,
2177 .fini
= &ci_dpm_fini
,
2178 .get_sclk
= &ci_dpm_get_sclk
,
2179 .get_mclk
= &ci_dpm_get_mclk
,
2180 .print_power_state
= &ci_dpm_print_power_state
,
2181 .debugfs_print_current_performance_level
= &ci_dpm_debugfs_print_current_performance_level
,
2182 .force_performance_level
= &ci_dpm_force_performance_level
,
2183 .vblank_too_short
= &ci_dpm_vblank_too_short
,
2184 .powergate_uvd
= &ci_dpm_powergate_uvd
,
2185 .fan_ctrl_set_mode
= &ci_fan_ctrl_set_mode
,
2186 .fan_ctrl_get_mode
= &ci_fan_ctrl_get_mode
,
2187 .get_fan_speed_percent
= &ci_fan_ctrl_get_fan_speed_percent
,
2188 .set_fan_speed_percent
= &ci_fan_ctrl_set_fan_speed_percent
,
2189 .get_current_sclk
= &ci_dpm_get_current_sclk
,
2190 .get_current_mclk
= &ci_dpm_get_current_mclk
,
2193 .page_flip
= &evergreen_page_flip
,
2194 .page_flip_pending
= &evergreen_page_flip_pending
,
2198 static struct radeon_asic kv_asic
= {
2201 .suspend
= &cik_suspend
,
2202 .resume
= &cik_resume
,
2203 .asic_reset
= &cik_asic_reset
,
2204 .vga_set_state
= &r600_vga_set_state
,
2205 .mmio_hdp_flush
= &r600_mmio_hdp_flush
,
2206 .gui_idle
= &r600_gui_idle
,
2207 .mc_wait_for_idle
= &evergreen_mc_wait_for_idle
,
2208 .get_xclk
= &cik_get_xclk
,
2209 .get_gpu_clock_counter
= &cik_get_gpu_clock_counter
,
2210 .get_allowed_info_register
= cik_get_allowed_info_register
,
2212 .tlb_flush
= &cik_pcie_gart_tlb_flush
,
2213 .get_page_entry
= &rs600_gart_get_page_entry
,
2214 .set_page
= &rs600_gart_set_page
,
2217 .init
= &cik_vm_init
,
2218 .fini
= &cik_vm_fini
,
2219 .copy_pages
= &cik_sdma_vm_copy_pages
,
2220 .write_pages
= &cik_sdma_vm_write_pages
,
2221 .set_pages
= &cik_sdma_vm_set_pages
,
2222 .pad_ib
= &cik_sdma_vm_pad_ib
,
2225 [RADEON_RING_TYPE_GFX_INDEX
] = &ci_gfx_ring
,
2226 [CAYMAN_RING_TYPE_CP1_INDEX
] = &ci_cp_ring
,
2227 [CAYMAN_RING_TYPE_CP2_INDEX
] = &ci_cp_ring
,
2228 [R600_RING_TYPE_DMA_INDEX
] = &ci_dma_ring
,
2229 [CAYMAN_RING_TYPE_DMA1_INDEX
] = &ci_dma_ring
,
2230 [R600_RING_TYPE_UVD_INDEX
] = &cayman_uvd_ring
,
2231 [TN_RING_TYPE_VCE1_INDEX
] = &ci_vce_ring
,
2232 [TN_RING_TYPE_VCE2_INDEX
] = &ci_vce_ring
,
2235 .set
= &cik_irq_set
,
2236 .process
= &cik_irq_process
,
2239 .bandwidth_update
= &dce8_bandwidth_update
,
2240 .get_vblank_counter
= &evergreen_get_vblank_counter
,
2241 .wait_for_vblank
= &dce4_wait_for_vblank
,
2242 .set_backlight_level
= &atombios_set_backlight_level
,
2243 .get_backlight_level
= &atombios_get_backlight_level
,
2246 .blit
= &cik_copy_cpdma
,
2247 .blit_ring_index
= RADEON_RING_TYPE_GFX_INDEX
,
2248 .dma
= &cik_copy_dma
,
2249 .dma_ring_index
= R600_RING_TYPE_DMA_INDEX
,
2250 .copy
= &cik_copy_dma
,
2251 .copy_ring_index
= R600_RING_TYPE_DMA_INDEX
,
2254 .set_reg
= r600_set_surface_reg
,
2255 .clear_reg
= r600_clear_surface_reg
,
2258 .init
= &evergreen_hpd_init
,
2259 .fini
= &evergreen_hpd_fini
,
2260 .sense
= &evergreen_hpd_sense
,
2261 .set_polarity
= &evergreen_hpd_set_polarity
,
2264 .misc
= &evergreen_pm_misc
,
2265 .prepare
= &evergreen_pm_prepare
,
2266 .finish
= &evergreen_pm_finish
,
2267 .init_profile
= &sumo_pm_init_profile
,
2268 .get_dynpm_state
= &r600_pm_get_dynpm_state
,
2269 .get_engine_clock
= &radeon_atom_get_engine_clock
,
2270 .set_engine_clock
= &radeon_atom_set_engine_clock
,
2271 .get_memory_clock
= &radeon_atom_get_memory_clock
,
2272 .set_memory_clock
= &radeon_atom_set_memory_clock
,
2273 .get_pcie_lanes
= NULL
,
2274 .set_pcie_lanes
= NULL
,
2275 .set_clock_gating
= NULL
,
2276 .set_uvd_clocks
= &cik_set_uvd_clocks
,
2277 .set_vce_clocks
= &cik_set_vce_clocks
,
2278 .get_temperature
= &kv_get_temp
,
2281 .init
= &kv_dpm_init
,
2282 .setup_asic
= &kv_dpm_setup_asic
,
2283 .enable
= &kv_dpm_enable
,
2284 .late_enable
= &kv_dpm_late_enable
,
2285 .disable
= &kv_dpm_disable
,
2286 .pre_set_power_state
= &kv_dpm_pre_set_power_state
,
2287 .set_power_state
= &kv_dpm_set_power_state
,
2288 .post_set_power_state
= &kv_dpm_post_set_power_state
,
2289 .display_configuration_changed
= &kv_dpm_display_configuration_changed
,
2290 .fini
= &kv_dpm_fini
,
2291 .get_sclk
= &kv_dpm_get_sclk
,
2292 .get_mclk
= &kv_dpm_get_mclk
,
2293 .print_power_state
= &kv_dpm_print_power_state
,
2294 .debugfs_print_current_performance_level
= &kv_dpm_debugfs_print_current_performance_level
,
2295 .force_performance_level
= &kv_dpm_force_performance_level
,
2296 .powergate_uvd
= &kv_dpm_powergate_uvd
,
2297 .enable_bapm
= &kv_dpm_enable_bapm
,
2298 .get_current_sclk
= &kv_dpm_get_current_sclk
,
2299 .get_current_mclk
= &kv_dpm_get_current_mclk
,
2302 .page_flip
= &evergreen_page_flip
,
2303 .page_flip_pending
= &evergreen_page_flip_pending
,
2308 * radeon_asic_init - register asic specific callbacks
2310 * @rdev: radeon device pointer
2312 * Registers the appropriate asic specific callbacks for each
2313 * chip family. Also sets other asics specific info like the number
2314 * of crtcs and the register aperture accessors (all asics).
2315 * Returns 0 for success.
2317 int radeon_asic_init(struct radeon_device
*rdev
)
2319 radeon_register_accessor_init(rdev
);
2321 /* set the number of crtcs */
2322 if (rdev
->flags
& RADEON_SINGLE_CRTC
)
2327 rdev
->has_uvd
= false;
2329 switch (rdev
->family
) {
2335 rdev
->asic
= &r100_asic
;
2341 rdev
->asic
= &r200_asic
;
2347 if (rdev
->flags
& RADEON_IS_PCIE
)
2348 rdev
->asic
= &r300_asic_pcie
;
2350 rdev
->asic
= &r300_asic
;
2355 rdev
->asic
= &r420_asic
;
2357 if (rdev
->bios
== NULL
) {
2358 rdev
->asic
->pm
.get_engine_clock
= &radeon_legacy_get_engine_clock
;
2359 rdev
->asic
->pm
.set_engine_clock
= &radeon_legacy_set_engine_clock
;
2360 rdev
->asic
->pm
.get_memory_clock
= &radeon_legacy_get_memory_clock
;
2361 rdev
->asic
->pm
.set_memory_clock
= NULL
;
2362 rdev
->asic
->display
.set_backlight_level
= &radeon_legacy_set_backlight_level
;
2367 rdev
->asic
= &rs400_asic
;
2370 rdev
->asic
= &rs600_asic
;
2374 rdev
->asic
= &rs690_asic
;
2377 rdev
->asic
= &rv515_asic
;
2384 rdev
->asic
= &r520_asic
;
2387 rdev
->asic
= &r600_asic
;
2394 rdev
->asic
= &rv6xx_asic
;
2395 rdev
->has_uvd
= true;
2399 rdev
->asic
= &rs780_asic
;
2400 /* 760G/780V/880V don't have UVD */
2401 if ((rdev
->pdev
->device
== 0x9616)||
2402 (rdev
->pdev
->device
== 0x9611)||
2403 (rdev
->pdev
->device
== 0x9613)||
2404 (rdev
->pdev
->device
== 0x9711)||
2405 (rdev
->pdev
->device
== 0x9713))
2406 rdev
->has_uvd
= false;
2408 rdev
->has_uvd
= true;
2414 rdev
->asic
= &rv770_asic
;
2415 rdev
->has_uvd
= true;
2423 if (rdev
->family
== CHIP_CEDAR
)
2427 rdev
->asic
= &evergreen_asic
;
2428 rdev
->has_uvd
= true;
2433 rdev
->asic
= &sumo_asic
;
2434 rdev
->has_uvd
= true;
2440 if (rdev
->family
== CHIP_CAICOS
)
2444 rdev
->asic
= &btc_asic
;
2445 rdev
->has_uvd
= true;
2448 rdev
->asic
= &cayman_asic
;
2451 rdev
->has_uvd
= true;
2454 rdev
->asic
= &trinity_asic
;
2457 rdev
->has_uvd
= true;
2459 RADEON_CG_SUPPORT_VCE_MGCG
;
2466 rdev
->asic
= &si_asic
;
2468 if (rdev
->family
== CHIP_HAINAN
)
2470 else if (rdev
->family
== CHIP_OLAND
)
2474 if (rdev
->family
== CHIP_HAINAN
)
2475 rdev
->has_uvd
= false;
2477 rdev
->has_uvd
= true;
2478 switch (rdev
->family
) {
2481 RADEON_CG_SUPPORT_GFX_MGCG
|
2482 RADEON_CG_SUPPORT_GFX_MGLS
|
2483 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2484 RADEON_CG_SUPPORT_GFX_CGLS
|
2485 RADEON_CG_SUPPORT_GFX_CGTS
|
2486 RADEON_CG_SUPPORT_GFX_CP_LS
|
2487 RADEON_CG_SUPPORT_MC_MGCG
|
2488 RADEON_CG_SUPPORT_SDMA_MGCG
|
2489 RADEON_CG_SUPPORT_BIF_LS
|
2490 RADEON_CG_SUPPORT_VCE_MGCG
|
2491 RADEON_CG_SUPPORT_UVD_MGCG
|
2492 RADEON_CG_SUPPORT_HDP_LS
|
2493 RADEON_CG_SUPPORT_HDP_MGCG
;
2498 RADEON_CG_SUPPORT_GFX_MGCG
|
2499 RADEON_CG_SUPPORT_GFX_MGLS
|
2500 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2501 RADEON_CG_SUPPORT_GFX_CGLS
|
2502 RADEON_CG_SUPPORT_GFX_CGTS
|
2503 RADEON_CG_SUPPORT_GFX_CP_LS
|
2504 RADEON_CG_SUPPORT_GFX_RLC_LS
|
2505 RADEON_CG_SUPPORT_MC_LS
|
2506 RADEON_CG_SUPPORT_MC_MGCG
|
2507 RADEON_CG_SUPPORT_SDMA_MGCG
|
2508 RADEON_CG_SUPPORT_BIF_LS
|
2509 RADEON_CG_SUPPORT_VCE_MGCG
|
2510 RADEON_CG_SUPPORT_UVD_MGCG
|
2511 RADEON_CG_SUPPORT_HDP_LS
|
2512 RADEON_CG_SUPPORT_HDP_MGCG
;
2517 RADEON_CG_SUPPORT_GFX_MGCG
|
2518 RADEON_CG_SUPPORT_GFX_MGLS
|
2519 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2520 RADEON_CG_SUPPORT_GFX_CGLS
|
2521 RADEON_CG_SUPPORT_GFX_CGTS
|
2522 RADEON_CG_SUPPORT_GFX_CP_LS
|
2523 RADEON_CG_SUPPORT_GFX_RLC_LS
|
2524 RADEON_CG_SUPPORT_MC_LS
|
2525 RADEON_CG_SUPPORT_MC_MGCG
|
2526 RADEON_CG_SUPPORT_SDMA_MGCG
|
2527 RADEON_CG_SUPPORT_BIF_LS
|
2528 RADEON_CG_SUPPORT_VCE_MGCG
|
2529 RADEON_CG_SUPPORT_UVD_MGCG
|
2530 RADEON_CG_SUPPORT_HDP_LS
|
2531 RADEON_CG_SUPPORT_HDP_MGCG
;
2532 rdev
->pg_flags
= 0 |
2533 /*RADEON_PG_SUPPORT_GFX_PG | */
2534 RADEON_PG_SUPPORT_SDMA
;
2538 RADEON_CG_SUPPORT_GFX_MGCG
|
2539 RADEON_CG_SUPPORT_GFX_MGLS
|
2540 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2541 RADEON_CG_SUPPORT_GFX_CGLS
|
2542 RADEON_CG_SUPPORT_GFX_CGTS
|
2543 RADEON_CG_SUPPORT_GFX_CP_LS
|
2544 RADEON_CG_SUPPORT_GFX_RLC_LS
|
2545 RADEON_CG_SUPPORT_MC_LS
|
2546 RADEON_CG_SUPPORT_MC_MGCG
|
2547 RADEON_CG_SUPPORT_SDMA_MGCG
|
2548 RADEON_CG_SUPPORT_BIF_LS
|
2549 RADEON_CG_SUPPORT_UVD_MGCG
|
2550 RADEON_CG_SUPPORT_HDP_LS
|
2551 RADEON_CG_SUPPORT_HDP_MGCG
;
2556 RADEON_CG_SUPPORT_GFX_MGCG
|
2557 RADEON_CG_SUPPORT_GFX_MGLS
|
2558 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2559 RADEON_CG_SUPPORT_GFX_CGLS
|
2560 RADEON_CG_SUPPORT_GFX_CGTS
|
2561 RADEON_CG_SUPPORT_GFX_CP_LS
|
2562 RADEON_CG_SUPPORT_GFX_RLC_LS
|
2563 RADEON_CG_SUPPORT_MC_LS
|
2564 RADEON_CG_SUPPORT_MC_MGCG
|
2565 RADEON_CG_SUPPORT_SDMA_MGCG
|
2566 RADEON_CG_SUPPORT_BIF_LS
|
2567 RADEON_CG_SUPPORT_HDP_LS
|
2568 RADEON_CG_SUPPORT_HDP_MGCG
;
2579 rdev
->asic
= &ci_asic
;
2581 rdev
->has_uvd
= true;
2582 if (rdev
->family
== CHIP_BONAIRE
) {
2584 RADEON_CG_SUPPORT_GFX_MGCG
|
2585 RADEON_CG_SUPPORT_GFX_MGLS
|
2586 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2587 RADEON_CG_SUPPORT_GFX_CGLS
|
2588 RADEON_CG_SUPPORT_GFX_CGTS
|
2589 RADEON_CG_SUPPORT_GFX_CGTS_LS
|
2590 RADEON_CG_SUPPORT_GFX_CP_LS
|
2591 RADEON_CG_SUPPORT_MC_LS
|
2592 RADEON_CG_SUPPORT_MC_MGCG
|
2593 RADEON_CG_SUPPORT_SDMA_MGCG
|
2594 RADEON_CG_SUPPORT_SDMA_LS
|
2595 RADEON_CG_SUPPORT_BIF_LS
|
2596 RADEON_CG_SUPPORT_VCE_MGCG
|
2597 RADEON_CG_SUPPORT_UVD_MGCG
|
2598 RADEON_CG_SUPPORT_HDP_LS
|
2599 RADEON_CG_SUPPORT_HDP_MGCG
;
2603 RADEON_CG_SUPPORT_GFX_MGCG
|
2604 RADEON_CG_SUPPORT_GFX_MGLS
|
2605 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2606 RADEON_CG_SUPPORT_GFX_CGLS
|
2607 RADEON_CG_SUPPORT_GFX_CGTS
|
2608 RADEON_CG_SUPPORT_GFX_CP_LS
|
2609 RADEON_CG_SUPPORT_MC_LS
|
2610 RADEON_CG_SUPPORT_MC_MGCG
|
2611 RADEON_CG_SUPPORT_SDMA_MGCG
|
2612 RADEON_CG_SUPPORT_SDMA_LS
|
2613 RADEON_CG_SUPPORT_BIF_LS
|
2614 RADEON_CG_SUPPORT_VCE_MGCG
|
2615 RADEON_CG_SUPPORT_UVD_MGCG
|
2616 RADEON_CG_SUPPORT_HDP_LS
|
2617 RADEON_CG_SUPPORT_HDP_MGCG
;
2624 rdev
->asic
= &kv_asic
;
2626 if (rdev
->family
== CHIP_KAVERI
) {
2629 RADEON_CG_SUPPORT_GFX_MGCG
|
2630 RADEON_CG_SUPPORT_GFX_MGLS
|
2631 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2632 RADEON_CG_SUPPORT_GFX_CGLS
|
2633 RADEON_CG_SUPPORT_GFX_CGTS
|
2634 RADEON_CG_SUPPORT_GFX_CGTS_LS
|
2635 RADEON_CG_SUPPORT_GFX_CP_LS
|
2636 RADEON_CG_SUPPORT_SDMA_MGCG
|
2637 RADEON_CG_SUPPORT_SDMA_LS
|
2638 RADEON_CG_SUPPORT_BIF_LS
|
2639 RADEON_CG_SUPPORT_VCE_MGCG
|
2640 RADEON_CG_SUPPORT_UVD_MGCG
|
2641 RADEON_CG_SUPPORT_HDP_LS
|
2642 RADEON_CG_SUPPORT_HDP_MGCG
;
2644 /*RADEON_PG_SUPPORT_GFX_PG |
2645 RADEON_PG_SUPPORT_GFX_SMG |
2646 RADEON_PG_SUPPORT_GFX_DMG |
2647 RADEON_PG_SUPPORT_UVD |
2648 RADEON_PG_SUPPORT_VCE |
2649 RADEON_PG_SUPPORT_CP |
2650 RADEON_PG_SUPPORT_GDS |
2651 RADEON_PG_SUPPORT_RLC_SMU_HS |
2652 RADEON_PG_SUPPORT_ACP |
2653 RADEON_PG_SUPPORT_SAMU;*/
2657 RADEON_CG_SUPPORT_GFX_MGCG
|
2658 RADEON_CG_SUPPORT_GFX_MGLS
|
2659 /*RADEON_CG_SUPPORT_GFX_CGCG |*/
2660 RADEON_CG_SUPPORT_GFX_CGLS
|
2661 RADEON_CG_SUPPORT_GFX_CGTS
|
2662 RADEON_CG_SUPPORT_GFX_CGTS_LS
|
2663 RADEON_CG_SUPPORT_GFX_CP_LS
|
2664 RADEON_CG_SUPPORT_SDMA_MGCG
|
2665 RADEON_CG_SUPPORT_SDMA_LS
|
2666 RADEON_CG_SUPPORT_BIF_LS
|
2667 RADEON_CG_SUPPORT_VCE_MGCG
|
2668 RADEON_CG_SUPPORT_UVD_MGCG
|
2669 RADEON_CG_SUPPORT_HDP_LS
|
2670 RADEON_CG_SUPPORT_HDP_MGCG
;
2672 /*RADEON_PG_SUPPORT_GFX_PG |
2673 RADEON_PG_SUPPORT_GFX_SMG |
2674 RADEON_PG_SUPPORT_UVD |
2675 RADEON_PG_SUPPORT_VCE |
2676 RADEON_PG_SUPPORT_CP |
2677 RADEON_PG_SUPPORT_GDS |
2678 RADEON_PG_SUPPORT_RLC_SMU_HS |
2679 RADEON_PG_SUPPORT_SAMU;*/
2681 rdev
->has_uvd
= true;
2684 /* FIXME: not supported yet */
2688 if (rdev
->flags
& RADEON_IS_IGP
) {
2689 rdev
->asic
->pm
.get_memory_clock
= NULL
;
2690 rdev
->asic
->pm
.set_memory_clock
= NULL
;