/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ring.c | 531 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()
|
D | amdgpu_gfx.c | 394 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()
|
D | amdgpu_mes.c | 215 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()
|
D | mes_v10_1.c | 897 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()
|
D | mes_v11_0.c | 1003 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()
|
D | amdgpu_mes.h | 172 struct amdgpu_bo *mqd_obj; member
|
D | gfx_v9_4_3.c | 82 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()
|
D | gfx_v11_0.c | 151 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 …]
|
D | amdgpu_ring.h | 263 struct amdgpu_bo *mqd_obj; member
|
D | gfx_v8_0.c | 4353 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()
|
D | gfx_v9_0.c | 789 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()
|
D | gfx_v10_0.c | 3512 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 …]
|
D | gfx_v7_0.c | 2715 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/ |
D | cik.c | 4344 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 …]
|
D | radeon.h | 820 struct radeon_bo *mqd_obj; member
|