Home
last modified time | relevance | path

Searched refs:kiq_ring (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gfx_v10_3.c280 struct amdgpu_ring *kiq_ring = &adev->gfx.kiq[0].ring; in hiq_mqd_load_v10_3() local
296 r = amdgpu_ring_alloc(kiq_ring, 7); in hiq_mqd_load_v10_3()
302 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_MAP_QUEUES, 5)); in hiq_mqd_load_v10_3()
303 amdgpu_ring_write(kiq_ring, in hiq_mqd_load_v10_3()
313 amdgpu_ring_write(kiq_ring, in hiq_mqd_load_v10_3()
315 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_lo); in hiq_mqd_load_v10_3()
316 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_hi); in hiq_mqd_load_v10_3()
317 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_lo); in hiq_mqd_load_v10_3()
318 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_hi); in hiq_mqd_load_v10_3()
319 amdgpu_ring_commit(kiq_ring); in hiq_mqd_load_v10_3()
H A Damdgpu_gfx.c537 kiq->pmf->kiq_unmap_queues(kiq_ring, in amdgpu_gfx_disable_kcq()
554 r = amdgpu_ring_test_helper(kiq_ring); in amdgpu_gfx_disable_kcq()
592 kiq->pmf->kiq_unmap_queues(kiq_ring, in amdgpu_gfx_disable_kgq()
599 r = amdgpu_ring_test_helper(kiq_ring); in amdgpu_gfx_disable_kgq()
637 r = amdgpu_ring_test_helper(kiq_ring); in amdgpu_gfx_mes_enable_kcq()
686 DRM_INFO("kiq ring mec %d pipe %d q %d\n", kiq_ring->me, kiq_ring->pipe, in amdgpu_gfx_enable_kcq()
687 kiq_ring->queue); in amdgpu_gfx_enable_kcq()
702 kiq->pmf->kiq_map_queues(kiq_ring, in amdgpu_gfx_enable_kcq()
706 r = amdgpu_ring_test_helper(kiq_ring); in amdgpu_gfx_enable_kcq()
752 kiq->pmf->kiq_map_queues(kiq_ring, in amdgpu_gfx_enable_kgq()
[all …]
H A Damdgpu_amdkfd_gfx_v11.c265 struct amdgpu_ring *kiq_ring = &adev->gfx.kiq[0].ring; in hiq_mqd_load_v11() local
281 r = amdgpu_ring_alloc(kiq_ring, 7); in hiq_mqd_load_v11()
287 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_MAP_QUEUES, 5)); in hiq_mqd_load_v11()
288 amdgpu_ring_write(kiq_ring, in hiq_mqd_load_v11()
298 amdgpu_ring_write(kiq_ring, in hiq_mqd_load_v11()
300 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_lo); in hiq_mqd_load_v11()
301 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_hi); in hiq_mqd_load_v11()
302 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_lo); in hiq_mqd_load_v11()
303 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_hi); in hiq_mqd_load_v11()
304 amdgpu_ring_commit(kiq_ring); in hiq_mqd_load_v11()
H A Damdgpu_amdkfd_gfx_v10.c294 struct amdgpu_ring *kiq_ring = &adev->gfx.kiq[0].ring; in kgd_hiq_mqd_load() local
310 r = amdgpu_ring_alloc(kiq_ring, 7); in kgd_hiq_mqd_load()
316 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_MAP_QUEUES, 5)); in kgd_hiq_mqd_load()
317 amdgpu_ring_write(kiq_ring, in kgd_hiq_mqd_load()
327 amdgpu_ring_write(kiq_ring, in kgd_hiq_mqd_load()
329 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_lo); in kgd_hiq_mqd_load()
330 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_hi); in kgd_hiq_mqd_load()
331 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_lo); in kgd_hiq_mqd_load()
332 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_hi); in kgd_hiq_mqd_load()
333 amdgpu_ring_commit(kiq_ring); in kgd_hiq_mqd_load()
H A Dgfx_v9_4_3.c180 amdgpu_ring_write(kiq_ring, in gfx_v9_4_3_kiq_set_resources()
184 amdgpu_ring_write(kiq_ring, in gfx_v9_4_3_kiq_set_resources()
186 amdgpu_ring_write(kiq_ring, in gfx_v9_4_3_kiq_set_resources()
217 amdgpu_ring_write(kiq_ring, in gfx_v9_4_3_kiq_map_queues()
238 amdgpu_ring_write(kiq_ring, in gfx_v9_4_3_kiq_unmap_queues()
246 amdgpu_ring_write(kiq_ring, 0); in gfx_v9_4_3_kiq_unmap_queues()
247 amdgpu_ring_write(kiq_ring, 0); in gfx_v9_4_3_kiq_unmap_queues()
248 amdgpu_ring_write(kiq_ring, 0); in gfx_v9_4_3_kiq_unmap_queues()
260 amdgpu_ring_write(kiq_ring, in gfx_v9_4_3_kiq_query_status()
265 amdgpu_ring_write(kiq_ring, in gfx_v9_4_3_kiq_query_status()
[all …]
H A Damdgpu_gfx.h127 void (*kiq_set_resources)(struct amdgpu_ring *kiq_ring,
129 void (*kiq_map_queues)(struct amdgpu_ring *kiq_ring,
131 void (*kiq_unmap_queues)(struct amdgpu_ring *kiq_ring,
135 void (*kiq_query_status)(struct amdgpu_ring *kiq_ring,
139 void (*kiq_invalidate_tlbs)(struct amdgpu_ring *kiq_ring,
142 void (*kiq_reset_hw_queue)(struct amdgpu_ring *kiq_ring,
H A Damdgpu_amdkfd_gfx_v9.c305 struct amdgpu_ring *kiq_ring = &adev->gfx.kiq[inst].ring; in kgd_gfx_v9_hiq_mqd_load() local
321 r = amdgpu_ring_alloc(kiq_ring, 7); in kgd_gfx_v9_hiq_mqd_load()
327 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_MAP_QUEUES, 5)); in kgd_gfx_v9_hiq_mqd_load()
328 amdgpu_ring_write(kiq_ring, in kgd_gfx_v9_hiq_mqd_load()
338 amdgpu_ring_write(kiq_ring, in kgd_gfx_v9_hiq_mqd_load()
340 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_lo); in kgd_gfx_v9_hiq_mqd_load()
341 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_hi); in kgd_gfx_v9_hiq_mqd_load()
342 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_lo); in kgd_gfx_v9_hiq_mqd_load()
343 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_hi); in kgd_gfx_v9_hiq_mqd_load()
344 amdgpu_ring_commit(kiq_ring); in kgd_gfx_v9_hiq_mqd_load()
H A Dgfx_v9_0.c910 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_set_resources()
914 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_set_resources()
916 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_set_resources()
946 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_map_queues()
967 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_unmap_queues()
990 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_query_status()
995 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_query_status()
1009 amdgpu_ring_write(kiq_ring, in gfx_v9_0_kiq_invalidate_tlbs()
5726 amdgpu_ring_commit(kiq_ring); in gfx_v9_0_ring_preempt_ib()
7211 amdgpu_ring_commit(kiq_ring); in gfx_v9_0_reset_kgq()
[all …]
H A Dgfx_v12_0.c255 amdgpu_ring_write(kiq_ring, 0); /* oac mask */ in gfx_v12_0_kiq_set_resources()
256 amdgpu_ring_write(kiq_ring, 0); in gfx_v12_0_kiq_set_resources()
307 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v12_0_kiq_unmap_queues()
321 amdgpu_ring_write(kiq_ring, in gfx_v12_0_kiq_unmap_queues()
327 amdgpu_ring_write(kiq_ring, seq); in gfx_v12_0_kiq_unmap_queues()
329 amdgpu_ring_write(kiq_ring, 0); in gfx_v12_0_kiq_unmap_queues()
330 amdgpu_ring_write(kiq_ring, 0); in gfx_v12_0_kiq_unmap_queues()
331 amdgpu_ring_write(kiq_ring, 0); in gfx_v12_0_kiq_unmap_queues()
342 amdgpu_ring_write(kiq_ring, in gfx_v12_0_kiq_query_status()
4509 struct amdgpu_ring *kiq_ring = &kiq->ring; in gfx_v12_0_ring_preempt_ib() local
[all …]
H A Damdgpu_amdkfd.c829 struct amdgpu_ring *kiq_ring = &kiq->ring; in amdgpu_amdkfd_unmap_hiq() local
853 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size)) { in amdgpu_amdkfd_unmap_hiq()
859 kiq->pmf->kiq_unmap_queues(kiq_ring, ring, RESET_QUEUES, 0, 0); in amdgpu_amdkfd_unmap_hiq()
861 if (kiq_ring->sched.ready && !adev->job_hang) in amdgpu_amdkfd_unmap_hiq()
862 r = amdgpu_ring_test_helper(kiq_ring); in amdgpu_amdkfd_unmap_hiq()
H A Dgfx_v11_0.c304 amdgpu_ring_write(kiq_ring, 0); /* oac mask */ in gfx11_kiq_set_resources()
356 struct amdgpu_device *adev = kiq_ring->adev; in gfx11_kiq_unmap_queues()
370 amdgpu_ring_write(kiq_ring, in gfx11_kiq_unmap_queues()
376 amdgpu_ring_write(kiq_ring, seq); in gfx11_kiq_unmap_queues()
378 amdgpu_ring_write(kiq_ring, 0); in gfx11_kiq_unmap_queues()
379 amdgpu_ring_write(kiq_ring, 0); in gfx11_kiq_unmap_queues()
380 amdgpu_ring_write(kiq_ring, 0); in gfx11_kiq_unmap_queues()
392 amdgpu_ring_write(kiq_ring, in gfx11_kiq_query_status()
401 amdgpu_ring_write(kiq_ring, lower_32_bits(seq)); in gfx11_kiq_query_status()
5923 struct amdgpu_ring *kiq_ring = &kiq->ring; in gfx_v11_0_ring_preempt_ib() local
[all …]
H A Dgfx_v10_0.c3744 amdgpu_ring_write(kiq_ring, in gfx10_kiq_unmap_queues()
3750 amdgpu_ring_write(kiq_ring, seq); in gfx10_kiq_unmap_queues()
3752 amdgpu_ring_write(kiq_ring, 0); in gfx10_kiq_unmap_queues()
3753 amdgpu_ring_write(kiq_ring, 0); in gfx10_kiq_unmap_queues()
3754 amdgpu_ring_write(kiq_ring, 0); in gfx10_kiq_unmap_queues()
3766 amdgpu_ring_write(kiq_ring, in gfx10_kiq_query_status()
8781 amdgpu_ring_commit(kiq_ring); in gfx_v10_0_ring_preempt_ib()
9452 gfx_v10_0_ring_emit_wreg(kiq_ring, in gfx_v10_0_reset_kgq()
9460 amdgpu_ring_commit(kiq_ring); in gfx_v10_0_reset_kgq()
9512 amdgpu_ring_commit(kiq_ring); in gfx_v10_0_reset_kcq()
[all …]
H A Dgfx_v8_0.c4355 amdgpu_ring_write(kiq_ring, in gfx_v8_0_kiq_kcq_enable()
4357 amdgpu_ring_write(kiq_ring, in gfx_v8_0_kiq_kcq_enable()
4368 amdgpu_ring_commit(kiq_ring); in gfx_v8_0_kiq_kcq_enable()
4822 amdgpu_ring_write(kiq_ring, 0); in gfx_v8_0_kcq_disable()
4823 amdgpu_ring_write(kiq_ring, 0); in gfx_v8_0_kcq_disable()
4824 amdgpu_ring_write(kiq_ring, 0); in gfx_v8_0_kcq_disable()
4826 r = amdgpu_ring_test_helper(kiq_ring); in gfx_v8_0_kcq_disable()
6893 struct amdgpu_ring *kiq_ring = &kiq->ring; in gfx_v8_0_reset_kgq() local
6906 if (amdgpu_ring_alloc(kiq_ring, 5)) { in gfx_v8_0_reset_kgq()
6913 amdgpu_ring_commit(kiq_ring); in gfx_v8_0_reset_kgq()
[all …]
H A Dmes_v12_0.c1173 struct amdgpu_ring *kiq_ring = &adev->gfx.kiq[0].ring; in mes_v12_0_kiq_enable_queue() local
1179 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size); in mes_v12_0_kiq_enable_queue()
1185 kiq->pmf->kiq_map_queues(kiq_ring, &adev->mes.ring[0]); in mes_v12_0_kiq_enable_queue()
1187 r = amdgpu_ring_test_ring(kiq_ring); in mes_v12_0_kiq_enable_queue()
1190 kiq_ring->sched.ready = false; in mes_v12_0_kiq_enable_queue()
H A Dmes_v11_0.c1200 struct amdgpu_ring *kiq_ring = &adev->gfx.kiq[0].ring; in mes_v11_0_kiq_enable_queue() local
1206 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size); in mes_v11_0_kiq_enable_queue()
1212 kiq->pmf->kiq_map_queues(kiq_ring, &adev->mes.ring[0]); in mes_v11_0_kiq_enable_queue()
1214 return amdgpu_ring_test_helper(kiq_ring); in mes_v11_0_kiq_enable_queue()
H A Dgfx_v7_0.c4959 struct amdgpu_ring *kiq_ring = &kiq->ring; in gfx_v7_0_reset_kgq() local
4972 if (amdgpu_ring_alloc(kiq_ring, 5)) { in gfx_v7_0_reset_kgq()
4978 gfx_v7_0_ring_emit_wreg(kiq_ring, mmCP_VMID_RESET, tmp); in gfx_v7_0_reset_kgq()
4979 amdgpu_ring_commit(kiq_ring); in gfx_v7_0_reset_kgq()
4983 r = amdgpu_ring_test_ring(kiq_ring); in gfx_v7_0_reset_kgq()