Home
last modified time | relevance | path

Searched refs:mqd_obj (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ring.c531 r = amdgpu_bo_reserve(ring->mqd_obj, false); in amdgpu_debugfs_mqd_read()
535 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&mqd); in amdgpu_debugfs_mqd_read()
537 amdgpu_bo_unreserve(ring->mqd_obj); in amdgpu_debugfs_mqd_read()
556 amdgpu_bo_kunmap(ring->mqd_obj); in amdgpu_debugfs_mqd_read()
558 amdgpu_bo_unreserve(ring->mqd_obj); in amdgpu_debugfs_mqd_read()
597 if (ring->mqd_obj) { in amdgpu_debugfs_ring_init()
Damdgpu_gfx.c394 if (!adev->enable_mes_kiq && !ring->mqd_obj) { in amdgpu_gfx_mqd_sw_init()
403 &ring->mqd_obj, in amdgpu_gfx_mqd_sw_init()
424 if (!ring->mqd_obj) { in amdgpu_gfx_mqd_sw_init()
426 domain, &ring->mqd_obj, in amdgpu_gfx_mqd_sw_init()
448 if (!ring->mqd_obj) { in amdgpu_gfx_mqd_sw_init()
450 domain, &ring->mqd_obj, in amdgpu_gfx_mqd_sw_init()
480 amdgpu_bo_free_kernel(&ring->mqd_obj, in amdgpu_gfx_mqd_sw_fini()
490 amdgpu_bo_free_kernel(&ring->mqd_obj, in amdgpu_gfx_mqd_sw_fini()
497 amdgpu_bo_free_kernel(&ring->mqd_obj, in amdgpu_gfx_mqd_sw_fini()
Damdgpu_mes.c215 amdgpu_bo_free_kernel(&q->mqd_obj, in amdgpu_mes_queue_free_mqd()
519 &q->mqd_obj, in amdgpu_mes_queue_alloc_mqd()
527 r = amdgpu_bo_reserve(q->mqd_obj, false); in amdgpu_mes_queue_alloc_mqd()
534 amdgpu_bo_free_kernel(&q->mqd_obj, in amdgpu_mes_queue_alloc_mqd()
573 amdgpu_bo_unreserve(q->mqd_obj); in amdgpu_mes_queue_init_mqd()
Dmes_v10_1.c897 if (ring->mqd_obj) in mes_v10_1_mqd_sw_init()
902 AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj, in mes_v10_1_mqd_sw_init()
977 amdgpu_bo_free_kernel(&adev->gfx.kiq[0].ring.mqd_obj, in mes_v10_1_sw_fini()
981 amdgpu_bo_free_kernel(&adev->mes.ring.mqd_obj, in mes_v10_1_sw_fini()
Dmes_v11_0.c1003 if (ring->mqd_obj) in mes_v11_0_mqd_sw_init()
1008 AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj, in mes_v11_0_mqd_sw_init()
1085 amdgpu_bo_free_kernel(&adev->gfx.kiq[0].ring.mqd_obj, in mes_v11_0_sw_fini()
1089 amdgpu_bo_free_kernel(&adev->mes.ring.mqd_obj, in mes_v11_0_sw_fini()
Damdgpu_mes.h172 struct amdgpu_bo *mqd_obj; member
Dgfx_v9_4_3.c82 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx_v9_4_3_kiq_map_queues()
1865 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v9_4_3_xcc_kiq_resume()
1869 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v9_4_3_xcc_kiq_resume()
1871 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v9_4_3_xcc_kiq_resume()
1876 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v9_4_3_xcc_kiq_resume()
1878 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v9_4_3_xcc_kiq_resume()
1892 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v9_4_3_xcc_kcq_resume()
1895 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v9_4_3_xcc_kcq_resume()
1898 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v9_4_3_xcc_kcq_resume()
1901 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v9_4_3_xcc_kcq_resume()
Dgfx_v11_0.c151 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx11_kiq_map_queues()
3717 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v11_0_cp_async_gfx_ring_resume()
3721 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v11_0_cp_async_gfx_ring_resume()
3724 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v11_0_cp_async_gfx_ring_resume()
3727 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v11_0_cp_async_gfx_ring_resume()
4053 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v11_0_kiq_resume()
4057 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v11_0_kiq_resume()
4059 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v11_0_kiq_resume()
4064 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v11_0_kiq_resume()
4066 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v11_0_kiq_resume()
[all …]
Damdgpu_ring.h263 struct amdgpu_bo *mqd_obj; member
Dgfx_v8_0.c4353 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx_v8_0_kiq_kcq_enable()
4681 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v8_0_kiq_resume()
4685 r = amdgpu_bo_kmap(ring->mqd_obj, &ring->mqd_ptr); in gfx_v8_0_kiq_resume()
4687 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v8_0_kiq_resume()
4692 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v8_0_kiq_resume()
4694 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v8_0_kiq_resume()
4708 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v8_0_kcq_resume()
4711 r = amdgpu_bo_kmap(ring->mqd_obj, &ring->mqd_ptr); in gfx_v8_0_kcq_resume()
4714 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v8_0_kcq_resume()
4717 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v8_0_kcq_resume()
Dgfx_v9_0.c789 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx_v9_0_kiq_map_queues()
3622 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v9_0_kiq_resume()
3626 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v9_0_kiq_resume()
3628 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v9_0_kiq_resume()
3633 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v9_0_kiq_resume()
3635 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v9_0_kiq_resume()
3649 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v9_0_kcq_resume()
3652 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v9_0_kcq_resume()
3655 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v9_0_kcq_resume()
3658 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v9_0_kcq_resume()
Dgfx_v10_0.c3512 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx10_kiq_map_queues()
6477 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v10_0_cp_async_gfx_ring_resume()
6481 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v10_0_cp_async_gfx_ring_resume()
6484 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v10_0_cp_async_gfx_ring_resume()
6487 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v10_0_cp_async_gfx_ring_resume()
6798 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v10_0_kiq_resume()
6802 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v10_0_kiq_resume()
6804 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v10_0_kiq_resume()
6809 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v10_0_kiq_resume()
6811 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v10_0_kiq_resume()
[all …]
Dgfx_v7_0.c2715 amdgpu_bo_free_kernel(&ring->mqd_obj, NULL, NULL); in gfx_v7_0_cp_compute_fini()
3005 AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj, in gfx_v7_0_compute_queue_init()
3022 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v7_0_compute_queue_init()
3023 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v7_0_compute_queue_init()
/linux-6.6.21/drivers/gpu/drm/radeon/
Dcik.c4344 if (rdev->ring[idx].mqd_obj) { in cik_cp_compute_fini()
4345 r = radeon_bo_reserve(rdev->ring[idx].mqd_obj, false); in cik_cp_compute_fini()
4349 radeon_bo_unpin(rdev->ring[idx].mqd_obj); in cik_cp_compute_fini()
4350 radeon_bo_unreserve(rdev->ring[idx].mqd_obj); in cik_cp_compute_fini()
4352 radeon_bo_unref(&rdev->ring[idx].mqd_obj); in cik_cp_compute_fini()
4353 rdev->ring[idx].mqd_obj = NULL; in cik_cp_compute_fini()
4563 if (rdev->ring[idx].mqd_obj == NULL) { in cik_cp_compute_resume()
4568 NULL, &rdev->ring[idx].mqd_obj); in cik_cp_compute_resume()
4575 r = radeon_bo_reserve(rdev->ring[idx].mqd_obj, false); in cik_cp_compute_resume()
4580 r = radeon_bo_pin(rdev->ring[idx].mqd_obj, RADEON_GEM_DOMAIN_GTT, in cik_cp_compute_resume()
[all …]
Dradeon.h820 struct radeon_bo *mqd_obj; member