Lines Matching refs:kiq
3571 if (adev->enable_mes && !adev->gfx.kiq.ring.sched.ready) { in gfx10_kiq_unmap_queues()
3639 adev->gfx.kiq.pmf = &gfx_v10_0_kiq_pm4_funcs; in gfx_v10_0_set_kiq_pm4_funcs()
4507 struct amdgpu_kiq *kiq; in gfx_v10_0_sw_init() local
4551 &adev->gfx.kiq.irq); in gfx_v10_0_sw_init()
4636 kiq = &adev->gfx.kiq; in gfx_v10_0_sw_init()
4637 r = amdgpu_gfx_kiq_init_ring(adev, &kiq->ring, &kiq->irq); in gfx_v10_0_sw_init()
4694 amdgpu_gfx_kiq_free_ring(&adev->gfx.kiq.ring); in gfx_v10_0_sw_fini()
6215 adev->gfx.kiq.ring.sched.ready = false; in gfx_v10_0_cp_compute_enable()
6525 struct amdgpu_kiq *kiq = &adev->gfx.kiq; in gfx_v10_0_kiq_enable_kgq() local
6526 struct amdgpu_ring *kiq_ring = &adev->gfx.kiq.ring; in gfx_v10_0_kiq_enable_kgq()
6529 if (!kiq->pmf || !kiq->pmf->kiq_map_queues) in gfx_v10_0_kiq_enable_kgq()
6532 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size * in gfx_v10_0_kiq_enable_kgq()
6540 kiq->pmf->kiq_map_queues(kiq_ring, &adev->gfx.gfx_ring[i]); in gfx_v10_0_kiq_enable_kgq()
6779 (adev->doorbell_index.kiq * 2) << 2); in gfx_v10_0_kiq_init_register()
6886 ring = &adev->gfx.kiq.ring; in gfx_v10_0_kiq_resume()
7244 struct amdgpu_kiq *kiq = &adev->gfx.kiq; in gfx_v10_0_kiq_disable_kgq() local
7245 struct amdgpu_ring *kiq_ring = &kiq->ring; in gfx_v10_0_kiq_disable_kgq()
7248 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in gfx_v10_0_kiq_disable_kgq()
7251 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size * in gfx_v10_0_kiq_disable_kgq()
7256 kiq->pmf->kiq_unmap_queues(kiq_ring, &adev->gfx.gfx_ring[i], in gfx_v10_0_kiq_disable_kgq()
8650 struct amdgpu_kiq *kiq = &adev->gfx.kiq; in gfx_v10_0_ring_preempt_ib() local
8651 struct amdgpu_ring *kiq_ring = &kiq->ring; in gfx_v10_0_ring_preempt_ib()
8654 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in gfx_v10_0_ring_preempt_ib()
8657 spin_lock_irqsave(&kiq->ring_lock, flags); in gfx_v10_0_ring_preempt_ib()
8659 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size)) { in gfx_v10_0_ring_preempt_ib()
8660 spin_unlock_irqrestore(&kiq->ring_lock, flags); in gfx_v10_0_ring_preempt_ib()
8668 kiq->pmf->kiq_unmap_queues(kiq_ring, ring, PREEMPT_QUEUES_NO_UNMAP, in gfx_v10_0_ring_preempt_ib()
8673 spin_unlock_irqrestore(&kiq->ring_lock, flags); in gfx_v10_0_ring_preempt_ib()
9158 struct amdgpu_ring *ring = &(adev->gfx.kiq.ring); in gfx_v10_0_kiq_set_interrupt_state()
9202 struct amdgpu_ring *ring = &(adev->gfx.kiq.ring); in gfx_v10_0_kiq_irq()
9382 adev->gfx.kiq.ring.funcs = &gfx_v10_0_ring_funcs_kiq; in gfx_v10_0_set_ring_funcs()
9416 adev->gfx.kiq.irq.num_types = AMDGPU_CP_KIQ_IRQ_LAST; in gfx_v10_0_set_irq_funcs()
9417 adev->gfx.kiq.irq.funcs = &gfx_v10_0_kiq_irq_funcs; in gfx_v10_0_set_irq_funcs()