Lines Matching full:sdma
77 for (i = 0; i < adev->sdma.num_instances; i++) in cik_sdma_free_microcode()
78 amdgpu_ucode_release(&adev->sdma.instance[i].fw); in cik_sdma_free_microcode()
82 * sDMA - System DMA
90 * (ring buffer, IBs, etc.), but sDMA has it's own
92 * used by the CP. sDMA supports copying data, writing
133 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_init_microcode()
135 err = amdgpu_ucode_request(adev, &adev->sdma.instance[i].fw, in cik_sdma_init_microcode()
138 err = amdgpu_ucode_request(adev, &adev->sdma.instance[i].fw, in cik_sdma_init_microcode()
147 for (i = 0; i < adev->sdma.num_instances; i++) in cik_sdma_init_microcode()
148 amdgpu_ucode_release(&adev->sdma.instance[i].fw); in cik_sdma_init_microcode()
200 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in cik_sdma_ring_insert_nop() local
204 if (sdma && sdma->burst_nop && (i == 0)) in cik_sdma_ring_insert_nop()
312 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_gfx_stop()
369 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_ctx_switch_enable()
407 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_enable()
432 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_gfx_resume()
433 ring = &adev->sdma.instance[i].ring; in cik_sdma_gfx_resume()
438 /* SDMA GFX */ in cik_sdma_gfx_resume()
441 /* XXX SDMA RLC - todo */ in cik_sdma_gfx_resume()
495 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_gfx_resume()
496 ring = &adev->sdma.instance[i].ring; in cik_sdma_gfx_resume()
520 * cik_sdma_load_microcode - load the sDMA ME ucode
537 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_load_microcode()
538 if (!adev->sdma.instance[i].fw) in cik_sdma_load_microcode()
540 hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data; in cik_sdma_load_microcode()
543 adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version); in cik_sdma_load_microcode()
544 adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version); in cik_sdma_load_microcode()
545 if (adev->sdma.instance[i].feature_version >= 20) in cik_sdma_load_microcode()
546 adev->sdma.instance[i].burst_nop = true; in cik_sdma_load_microcode()
548 (adev->sdma.instance[i].fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes)); in cik_sdma_load_microcode()
552 WREG32(mmSDMA0_UCODE_ADDR + sdma_offsets[i], adev->sdma.instance[i].fw_version); in cik_sdma_load_microcode()
576 /* enable sdma ring preemption */ in cik_sdma_start()
714 * Update PTEs by copying them from the GART using sDMA (CIK).
741 * Update PTEs by writing them manually using sDMA (CIK).
762 * cik_sdma_vm_set_pte_pde - update the page tables using sDMA
771 * Update the page tables using sDMA (CIK).
799 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in cik_sdma_ring_pad_ib() local
805 if (sdma && sdma->burst_nop && (i == 0)) in cik_sdma_ring_pad_ib()
839 * cik_sdma_ring_emit_vm_flush - cik vm flush using sDMA
846 * using sDMA (CIK).
926 adev->sdma.num_instances = SDMA_MAX_INSTANCE; in cik_sdma_early_init()
946 /* SDMA trap event */ in cik_sdma_sw_init()
948 &adev->sdma.trap_irq); in cik_sdma_sw_init()
952 /* SDMA Privileged inst */ in cik_sdma_sw_init()
954 &adev->sdma.illegal_inst_irq); in cik_sdma_sw_init()
958 /* SDMA Privileged inst */ in cik_sdma_sw_init()
960 &adev->sdma.illegal_inst_irq); in cik_sdma_sw_init()
964 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_sw_init()
965 ring = &adev->sdma.instance[i].ring; in cik_sdma_sw_init()
967 sprintf(ring->name, "sdma%d", i); in cik_sdma_sw_init()
969 &adev->sdma.trap_irq, in cik_sdma_sw_init()
985 for (i = 0; i < adev->sdma.num_instances; i++) in cik_sdma_sw_fini()
986 amdgpu_ring_fini(&adev->sdma.instance[i].ring); in cik_sdma_sw_fini()
1151 DRM_DEBUG("IH: SDMA trap\n"); in cik_sdma_process_trap_irq()
1156 amdgpu_fence_process(&adev->sdma.instance[0].ring); in cik_sdma_process_trap_irq()
1169 amdgpu_fence_process(&adev->sdma.instance[1].ring); in cik_sdma_process_trap_irq()
1190 DRM_ERROR("Illegal instruction in SDMA command stream\n"); in cik_sdma_process_illegal_inst_irq()
1192 drm_sched_fault(&adev->sdma.instance[instance_id].ring.sched); in cik_sdma_process_illegal_inst_irq()
1267 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_set_ring_funcs()
1268 adev->sdma.instance[i].ring.funcs = &cik_sdma_ring_funcs; in cik_sdma_set_ring_funcs()
1269 adev->sdma.instance[i].ring.me = i; in cik_sdma_set_ring_funcs()
1284 adev->sdma.trap_irq.num_types = AMDGPU_SDMA_IRQ_LAST; in cik_sdma_set_irq_funcs()
1285 adev->sdma.trap_irq.funcs = &cik_sdma_trap_irq_funcs; in cik_sdma_set_irq_funcs()
1286 adev->sdma.illegal_inst_irq.funcs = &cik_sdma_illegal_inst_irq_funcs; in cik_sdma_set_irq_funcs()
1290 * cik_sdma_emit_copy_buffer - copy buffer using the sDMA engine
1318 * cik_sdma_emit_fill_buffer - fill buffer using the sDMA engine
1352 adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring; in cik_sdma_set_buffer_funcs()
1368 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_set_vm_pte_funcs()
1370 &adev->sdma.instance[i].ring.sched; in cik_sdma_set_vm_pte_funcs()
1372 adev->vm_manager.vm_pte_num_scheds = adev->sdma.num_instances; in cik_sdma_set_vm_pte_funcs()