Lines Matching full:sdma
182 * sDMA - System DMA
190 * (ring buffer, IBs, etc.), but sDMA has it's own
192 * used by the CP. sDMA supports copying data, writing
254 for (i = 0; i < adev->sdma.num_instances; i++) in sdma_v3_0_free_microcode()
255 amdgpu_ucode_release(&adev->sdma.instance[i].fw); in sdma_v3_0_free_microcode()
305 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_init_microcode()
307 err = amdgpu_ucode_request(adev, &adev->sdma.instance[i].fw, in sdma_v3_0_init_microcode()
310 err = amdgpu_ucode_request(adev, &adev->sdma.instance[i].fw, in sdma_v3_0_init_microcode()
314 hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data; in sdma_v3_0_init_microcode()
315 adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version); in sdma_v3_0_init_microcode()
316 adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version); in sdma_v3_0_init_microcode()
317 if (adev->sdma.instance[i].feature_version >= 20) in sdma_v3_0_init_microcode()
318 adev->sdma.instance[i].burst_nop = true; in sdma_v3_0_init_microcode()
322 info->fw = adev->sdma.instance[i].fw; in sdma_v3_0_init_microcode()
332 for (i = 0; i < adev->sdma.num_instances; i++) in sdma_v3_0_init_microcode()
333 amdgpu_ucode_release(&adev->sdma.instance[i].fw); in sdma_v3_0_init_microcode()
400 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in sdma_v3_0_ring_insert_nop() local
404 if (sdma && sdma->burst_nop && (i == 0)) in sdma_v3_0_ring_insert_nop()
517 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_gfx_stop()
576 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_ctx_switch_enable()
618 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_enable()
645 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_gfx_resume()
646 ring = &adev->sdma.instance[i].ring; in sdma_v3_0_gfx_resume()
652 /* SDMA GFX */ in sdma_v3_0_gfx_resume()
740 /* enable sdma ring preemption */ in sdma_v3_0_gfx_resume()
743 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_gfx_resume()
744 ring = &adev->sdma.instance[i].ring; in sdma_v3_0_gfx_resume()
779 /* disable sdma engine before programing it */ in sdma_v3_0_start()
922 * Update PTEs by copying them from the GART using sDMA (CIK).
949 * Update PTEs by writing them manually using sDMA (CIK).
970 * sdma_v3_0_vm_set_pte_pde - update the page tables using sDMA
979 * Update the page tables using sDMA (CIK).
1007 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in sdma_v3_0_ring_pad_ib() local
1013 if (sdma && sdma->burst_nop && (i == 0)) in sdma_v3_0_ring_pad_ib()
1048 * sdma_v3_0_ring_emit_vm_flush - cik vm flush using sDMA
1055 * using sDMA (VI).
1090 adev->sdma.num_instances = 1; in sdma_v3_0_early_init()
1093 adev->sdma.num_instances = SDMA_MAX_INSTANCE; in sdma_v3_0_early_init()
1115 /* SDMA trap event */ in sdma_v3_0_sw_init()
1117 &adev->sdma.trap_irq); in sdma_v3_0_sw_init()
1121 /* SDMA Privileged inst */ in sdma_v3_0_sw_init()
1123 &adev->sdma.illegal_inst_irq); in sdma_v3_0_sw_init()
1127 /* SDMA Privileged inst */ in sdma_v3_0_sw_init()
1129 &adev->sdma.illegal_inst_irq); in sdma_v3_0_sw_init()
1133 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_sw_init()
1134 ring = &adev->sdma.instance[i].ring; in sdma_v3_0_sw_init()
1143 sprintf(ring->name, "sdma%d", i); in sdma_v3_0_sw_init()
1144 r = amdgpu_ring_init(adev, ring, 1024, &adev->sdma.trap_irq, in sdma_v3_0_sw_init()
1160 for (i = 0; i < adev->sdma.num_instances; i++) in sdma_v3_0_sw_fini()
1161 amdgpu_ring_fini(&adev->sdma.instance[i].ring); in sdma_v3_0_sw_fini()
1247 adev->sdma.srbm_soft_reset = srbm_soft_reset; in sdma_v3_0_check_soft_reset()
1250 adev->sdma.srbm_soft_reset = 0; in sdma_v3_0_check_soft_reset()
1260 if (!adev->sdma.srbm_soft_reset) in sdma_v3_0_pre_soft_reset()
1263 srbm_soft_reset = adev->sdma.srbm_soft_reset; in sdma_v3_0_pre_soft_reset()
1279 if (!adev->sdma.srbm_soft_reset) in sdma_v3_0_post_soft_reset()
1282 srbm_soft_reset = adev->sdma.srbm_soft_reset; in sdma_v3_0_post_soft_reset()
1299 if (!adev->sdma.srbm_soft_reset) in sdma_v3_0_soft_reset()
1302 srbm_soft_reset = adev->sdma.srbm_soft_reset; in sdma_v3_0_soft_reset()
1378 DRM_DEBUG("IH: SDMA trap\n"); in sdma_v3_0_process_trap_irq()
1383 amdgpu_fence_process(&adev->sdma.instance[0].ring); in sdma_v3_0_process_trap_irq()
1396 amdgpu_fence_process(&adev->sdma.instance[1].ring); in sdma_v3_0_process_trap_irq()
1416 DRM_ERROR("Illegal instruction in SDMA command stream\n"); in sdma_v3_0_process_illegal_inst_irq()
1421 drm_sched_fault(&adev->sdma.instance[instance_id].ring.sched); in sdma_v3_0_process_illegal_inst_irq()
1433 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_update_sdma_medium_grain_clock_gating()
1447 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_update_sdma_medium_grain_clock_gating()
1472 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_update_sdma_medium_grain_light_sleep()
1480 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_update_sdma_medium_grain_light_sleep()
1593 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_set_ring_funcs()
1594 adev->sdma.instance[i].ring.funcs = &sdma_v3_0_ring_funcs; in sdma_v3_0_set_ring_funcs()
1595 adev->sdma.instance[i].ring.me = i; in sdma_v3_0_set_ring_funcs()
1610 adev->sdma.trap_irq.num_types = AMDGPU_SDMA_IRQ_LAST; in sdma_v3_0_set_irq_funcs()
1611 adev->sdma.trap_irq.funcs = &sdma_v3_0_trap_irq_funcs; in sdma_v3_0_set_irq_funcs()
1612 adev->sdma.illegal_inst_irq.funcs = &sdma_v3_0_illegal_inst_irq_funcs; in sdma_v3_0_set_irq_funcs()
1616 * sdma_v3_0_emit_copy_buffer - copy buffer using the sDMA engine
1645 * sdma_v3_0_emit_fill_buffer - fill buffer using the sDMA engine
1679 adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring; in sdma_v3_0_set_buffer_funcs()
1695 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_set_vm_pte_funcs()
1697 &adev->sdma.instance[i].ring.sched; in sdma_v3_0_set_vm_pte_funcs()
1699 adev->vm_manager.vm_pte_num_scheds = adev->sdma.num_instances; in sdma_v3_0_set_vm_pte_funcs()