Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gfx.c368 if (!ring->mqd_obj) { in amdgpu_gfx_mqd_sw_init()
375 AMDGPU_GEM_DOMAIN_VRAM, &ring->mqd_obj, in amdgpu_gfx_mqd_sw_init()
392 if (!ring->mqd_obj) { in amdgpu_gfx_mqd_sw_init()
394 AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj, in amdgpu_gfx_mqd_sw_init()
412 if (!ring->mqd_obj) { in amdgpu_gfx_mqd_sw_init()
414 AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj, in amdgpu_gfx_mqd_sw_init()
440 amdgpu_bo_free_kernel(&ring->mqd_obj, in amdgpu_gfx_mqd_sw_fini()
449 amdgpu_bo_free_kernel(&ring->mqd_obj, in amdgpu_gfx_mqd_sw_fini()
456 amdgpu_bo_free_kernel(&ring->mqd_obj, in amdgpu_gfx_mqd_sw_fini()
Dmes_v10_1.c859 if (ring->mqd_obj) in mes_v10_1_mqd_sw_init()
863 AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj, in mes_v10_1_mqd_sw_init()
920 amdgpu_bo_free_kernel(&adev->mes.ring.mqd_obj, in mes_v10_1_sw_fini()
Damdgpu_ring.h223 struct amdgpu_bo *mqd_obj; member
Dgfx_v8_0.c4387 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx_v8_0_kiq_kcq_enable()
4717 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v8_0_kiq_resume()
4721 r = amdgpu_bo_kmap(ring->mqd_obj, &ring->mqd_ptr); in gfx_v8_0_kiq_resume()
4726 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v8_0_kiq_resume()
4728 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v8_0_kiq_resume()
4743 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v8_0_kcq_resume()
4746 r = amdgpu_bo_kmap(ring->mqd_obj, &ring->mqd_ptr); in gfx_v8_0_kcq_resume()
4749 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v8_0_kcq_resume()
4752 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v8_0_kcq_resume()
Dgfx_v9_0.c834 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx_v9_0_kiq_map_queues()
3798 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v9_0_kiq_resume()
3802 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v9_0_kiq_resume()
3807 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v9_0_kiq_resume()
3809 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v9_0_kiq_resume()
3824 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v9_0_kcq_resume()
3827 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v9_0_kcq_resume()
3830 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v9_0_kcq_resume()
3833 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v9_0_kcq_resume()
Dgfx_v10_0.c3237 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx10_kiq_map_queues()
6331 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v10_0_cp_async_gfx_ring_resume()
6335 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v10_0_cp_async_gfx_ring_resume()
6338 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v10_0_cp_async_gfx_ring_resume()
6341 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v10_0_cp_async_gfx_ring_resume()
6700 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v10_0_kiq_resume()
6704 r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr); in gfx_v10_0_kiq_resume()
6709 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v10_0_kiq_resume()
6711 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v10_0_kiq_resume()
6726 r = amdgpu_bo_reserve(ring->mqd_obj, false); in gfx_v10_0_kcq_resume()
[all …]
Dgfx_v7_0.c2783 amdgpu_bo_free_kernel(&ring->mqd_obj, NULL, NULL); in gfx_v7_0_cp_compute_fini()
3073 AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj, in gfx_v7_0_compute_queue_init()
3090 amdgpu_bo_kunmap(ring->mqd_obj); in gfx_v7_0_compute_queue_init()
3091 amdgpu_bo_unreserve(ring->mqd_obj); in gfx_v7_0_compute_queue_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dcik.c4354 if (rdev->ring[idx].mqd_obj) { in cik_cp_compute_fini()
4355 r = radeon_bo_reserve(rdev->ring[idx].mqd_obj, false); in cik_cp_compute_fini()
4359 radeon_bo_unpin(rdev->ring[idx].mqd_obj); in cik_cp_compute_fini()
4360 radeon_bo_unreserve(rdev->ring[idx].mqd_obj); in cik_cp_compute_fini()
4362 radeon_bo_unref(&rdev->ring[idx].mqd_obj); in cik_cp_compute_fini()
4363 rdev->ring[idx].mqd_obj = NULL; in cik_cp_compute_fini()
4573 if (rdev->ring[idx].mqd_obj == NULL) { in cik_cp_compute_resume()
4578 NULL, &rdev->ring[idx].mqd_obj); in cik_cp_compute_resume()
4585 r = radeon_bo_reserve(rdev->ring[idx].mqd_obj, false); in cik_cp_compute_resume()
4590 r = radeon_bo_pin(rdev->ring[idx].mqd_obj, RADEON_GEM_DOMAIN_GTT, in cik_cp_compute_resume()
[all …]
Dradeon.h864 struct radeon_bo *mqd_obj; member