Home
last modified time | relevance | path

Searched refs:mec (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gfx_v10_3.c44 static void lock_srbm(struct amdgpu_device *adev, uint32_t mec, uint32_t pipe, in lock_srbm() argument
48 nv_grbm_select(adev, mec, pipe, queue, vmid); in lock_srbm()
60 uint32_t mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in acquire_queue() local
61 uint32_t pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in acquire_queue()
63 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
69 unsigned int bit = pipe_id * adev->gfx.mec.num_queue_per_pipe + in get_queue_mask()
112 uint32_t mec; in init_interrupts_v10_3() local
115 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in init_interrupts_v10_3()
116 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in init_interrupts_v10_3()
118 lock_srbm(adev, mec, pipe, 0, 0); in init_interrupts_v10_3()
[all …]
Damdgpu_amdkfd_gfx_v11.c42 static void lock_srbm(struct amdgpu_device *adev, uint32_t mec, uint32_t pipe, in lock_srbm() argument
46 soc21_grbm_select(adev, mec, pipe, queue, vmid); in lock_srbm()
58 uint32_t mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in acquire_queue() local
59 uint32_t pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in acquire_queue()
61 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
67 unsigned int bit = pipe_id * adev->gfx.mec.num_queue_per_pipe + in get_queue_mask()
108 uint32_t mec; in init_interrupts_v11() local
111 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in init_interrupts_v11()
112 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in init_interrupts_v11()
114 lock_srbm(adev, mec, pipe, 0, 0); in init_interrupts_v11()
[all …]
Damdgpu_amdkfd_gfx_v8.c42 static void lock_srbm(struct amdgpu_device *adev, uint32_t mec, uint32_t pipe, in lock_srbm() argument
45 uint32_t value = PIPEID(pipe) | MEID(mec) | VMID(vmid) | QUEUEID(queue); in lock_srbm()
60 uint32_t mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in acquire_queue() local
61 uint32_t pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in acquire_queue()
63 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
115 uint32_t mec; in kgd_init_interrupts() local
118 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in kgd_init_interrupts()
119 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in kgd_init_interrupts()
121 lock_srbm(adev, mec, pipe, 0, 0); in kgd_init_interrupts()
170 uint32_t value, mec, pipe; in kgd_hqd_load() local
[all …]
Damdgpu_gfx.c42 int amdgpu_gfx_mec_queue_to_bit(struct amdgpu_device *adev, int mec, in amdgpu_gfx_mec_queue_to_bit() argument
47 bit += mec * adev->gfx.mec.num_pipe_per_mec in amdgpu_gfx_mec_queue_to_bit()
48 * adev->gfx.mec.num_queue_per_pipe; in amdgpu_gfx_mec_queue_to_bit()
49 bit += pipe * adev->gfx.mec.num_queue_per_pipe; in amdgpu_gfx_mec_queue_to_bit()
56 int *mec, int *pipe, int *queue) in amdgpu_queue_mask_bit_to_mec_queue() argument
58 *queue = bit % adev->gfx.mec.num_queue_per_pipe; in amdgpu_queue_mask_bit_to_mec_queue()
59 *pipe = (bit / adev->gfx.mec.num_queue_per_pipe) in amdgpu_queue_mask_bit_to_mec_queue()
60 % adev->gfx.mec.num_pipe_per_mec; in amdgpu_queue_mask_bit_to_mec_queue()
61 *mec = (bit / adev->gfx.mec.num_queue_per_pipe) in amdgpu_queue_mask_bit_to_mec_queue()
62 / adev->gfx.mec.num_pipe_per_mec; in amdgpu_queue_mask_bit_to_mec_queue()
[all …]
Damdgpu_amdkfd_gfx_v9.c50 static void kgd_gfx_v9_lock_srbm(struct amdgpu_device *adev, uint32_t mec, uint32_t pipe, in kgd_gfx_v9_lock_srbm() argument
54 soc15_grbm_select(adev, mec, pipe, queue, vmid, GET_INST(GC, inst)); in kgd_gfx_v9_lock_srbm()
66 uint32_t mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in kgd_gfx_v9_acquire_queue() local
67 uint32_t pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in kgd_gfx_v9_acquire_queue()
69 kgd_gfx_v9_lock_srbm(adev, mec, pipe, queue_id, 0, inst); in kgd_gfx_v9_acquire_queue()
75 unsigned int bit = pipe_id * adev->gfx.mec.num_queue_per_pipe + in kgd_gfx_v9_get_queue_mask()
163 uint32_t mec; in kgd_gfx_v9_init_interrupts() local
166 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in kgd_gfx_v9_init_interrupts()
167 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in kgd_gfx_v9_init_interrupts()
169 kgd_gfx_v9_lock_srbm(adev, mec, pipe, 0, 0, inst); in kgd_gfx_v9_init_interrupts()
[all …]
Damdgpu_amdkfd_gfx_v7.c48 static void lock_srbm(struct amdgpu_device *adev, uint32_t mec, uint32_t pipe, in lock_srbm() argument
51 uint32_t value = PIPEID(pipe) | MEID(mec) | VMID(vmid) | QUEUEID(queue); in lock_srbm()
66 uint32_t mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in acquire_queue() local
67 uint32_t pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in acquire_queue()
69 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
120 uint32_t mec; in kgd_init_interrupts() local
123 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in kgd_init_interrupts()
124 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in kgd_init_interrupts()
126 lock_srbm(adev, mec, pipe, 0, 0); in kgd_init_interrupts()
Damdgpu_amdkfd_gfx_v10.c44 static void lock_srbm(struct amdgpu_device *adev, uint32_t mec, uint32_t pipe, in lock_srbm() argument
48 nv_grbm_select(adev, mec, pipe, queue, vmid); in lock_srbm()
60 uint32_t mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in acquire_queue() local
61 uint32_t pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in acquire_queue()
63 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
69 unsigned int bit = pipe_id * adev->gfx.mec.num_queue_per_pipe + in get_queue_mask()
143 uint32_t mec; in kgd_init_interrupts() local
146 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in kgd_init_interrupts()
147 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in kgd_init_interrupts()
149 lock_srbm(adev, mec, pipe, 0, 0); in kgd_init_interrupts()
[all …]
Dgfx_v11_0.c714 amdgpu_bo_free_kernel(&adev->gfx.mec.hpd_eop_obj, NULL, NULL); in gfx_v11_0_mec_fini()
715 amdgpu_bo_free_kernel(&adev->gfx.mec.mec_fw_obj, NULL, NULL); in gfx_v11_0_mec_fini()
716 amdgpu_bo_free_kernel(&adev->gfx.mec.mec_fw_data_obj, NULL, NULL); in gfx_v11_0_mec_fini()
741 &adev->gfx.mec.hpd_eop_obj, in gfx_v11_0_mec_init()
742 &adev->gfx.mec.hpd_eop_gpu_addr, in gfx_v11_0_mec_init()
752 amdgpu_bo_kunmap(adev->gfx.mec.hpd_eop_obj); in gfx_v11_0_mec_init()
753 amdgpu_bo_unreserve(adev->gfx.mec.hpd_eop_obj); in gfx_v11_0_mec_init()
933 int mec, int pipe, int queue) in gfx_v11_0_compute_ring_init() argument
943 ring->me = mec + 1; in gfx_v11_0_compute_ring_init()
950 ring->eop_gpu_addr = adev->gfx.mec.hpd_eop_gpu_addr in gfx_v11_0_compute_ring_init()
[all …]
Damdgpu_gfx.h354 struct amdgpu_mec mec; member
500 int amdgpu_gfx_mec_queue_to_bit(struct amdgpu_device *adev, int mec,
503 int *mec, int *pipe, int *queue);
505 int mec, int pipe, int queue);
Dgfx_v9_4_3.c446 amdgpu_bo_free_kernel(&adev->gfx.mec.hpd_eop_obj, NULL, NULL); in gfx_v9_4_3_mec_fini()
447 amdgpu_bo_free_kernel(&adev->gfx.mec.mec_fw_obj, NULL, NULL); in gfx_v9_4_3_mec_fini()
474 &adev->gfx.mec.hpd_eop_obj, in gfx_v9_4_3_mec_init()
475 &adev->gfx.mec.hpd_eop_gpu_addr, in gfx_v9_4_3_mec_init()
493 amdgpu_bo_kunmap(adev->gfx.mec.hpd_eop_obj); in gfx_v9_4_3_mec_init()
494 amdgpu_bo_unreserve(adev->gfx.mec.hpd_eop_obj); in gfx_v9_4_3_mec_init()
506 &adev->gfx.mec.mec_fw_obj, in gfx_v9_4_3_mec_init()
507 &adev->gfx.mec.mec_fw_gpu_addr, in gfx_v9_4_3_mec_init()
517 amdgpu_bo_kunmap(adev->gfx.mec.mec_fw_obj); in gfx_v9_4_3_mec_init()
518 amdgpu_bo_unreserve(adev->gfx.mec.mec_fw_obj); in gfx_v9_4_3_mec_init()
[all …]
Dgfx_v7_0.c2721 amdgpu_bo_free_kernel(&adev->gfx.mec.hpd_eop_obj, NULL, NULL); in gfx_v7_0_mec_fini()
2736 mec_hpd_size = adev->gfx.mec.num_mec * adev->gfx.mec.num_pipe_per_mec in gfx_v7_0_mec_init()
2742 &adev->gfx.mec.hpd_eop_obj, in gfx_v7_0_mec_init()
2743 &adev->gfx.mec.hpd_eop_gpu_addr, in gfx_v7_0_mec_init()
2754 amdgpu_bo_kunmap(adev->gfx.mec.hpd_eop_obj); in gfx_v7_0_mec_init()
2755 amdgpu_bo_unreserve(adev->gfx.mec.hpd_eop_obj); in gfx_v7_0_mec_init()
2799 int mec, int pipe) in gfx_v7_0_compute_pipe_init() argument
2803 size_t eop_offset = (mec * adev->gfx.mec.num_pipe_per_mec + pipe) in gfx_v7_0_compute_pipe_init()
2807 eop_gpu_addr = adev->gfx.mec.hpd_eop_gpu_addr + eop_offset; in gfx_v7_0_compute_pipe_init()
2809 cik_srbm_select(adev, mec + 1, pipe, 0, 0); in gfx_v7_0_compute_pipe_init()
[all …]
Damdgpu_amdkfd.c152 .num_pipe_per_mec = adev->gfx.mec.num_pipe_per_mec, in amdgpu_amdkfd_device_init()
153 .num_queue_per_pipe = adev->gfx.mec.num_queue_per_pipe, in amdgpu_amdkfd_device_init()
173 * adev->gfx.mec.num_pipe_per_mec in amdgpu_amdkfd_device_init()
174 * adev->gfx.mec.num_queue_per_pipe; in amdgpu_amdkfd_device_init()
Dgfx_v9_0.c1677 amdgpu_bo_free_kernel(&adev->gfx.mec.hpd_eop_obj, NULL, NULL); in gfx_v9_0_mec_fini()
1678 amdgpu_bo_free_kernel(&adev->gfx.mec.mec_fw_obj, NULL, NULL); in gfx_v9_0_mec_fini()
1701 &adev->gfx.mec.hpd_eop_obj, in gfx_v9_0_mec_init()
1702 &adev->gfx.mec.hpd_eop_gpu_addr, in gfx_v9_0_mec_init()
1712 amdgpu_bo_kunmap(adev->gfx.mec.hpd_eop_obj); in gfx_v9_0_mec_init()
1713 amdgpu_bo_unreserve(adev->gfx.mec.hpd_eop_obj); in gfx_v9_0_mec_init()
1725 &adev->gfx.mec.mec_fw_obj, in gfx_v9_0_mec_init()
1726 &adev->gfx.mec.mec_fw_gpu_addr, in gfx_v9_0_mec_init()
1736 amdgpu_bo_kunmap(adev->gfx.mec.mec_fw_obj); in gfx_v9_0_mec_init()
1737 amdgpu_bo_unreserve(adev->gfx.mec.mec_fw_obj); in gfx_v9_0_mec_init()
[all …]
Dgfx_v10_0.c4176 amdgpu_bo_free_kernel(&adev->gfx.mec.hpd_eop_obj, NULL, NULL); in gfx_v10_0_mec_fini()
4177 amdgpu_bo_free_kernel(&adev->gfx.mec.mec_fw_obj, NULL, NULL); in gfx_v10_0_mec_fini()
4207 &adev->gfx.mec.hpd_eop_obj, in gfx_v10_0_mec_init()
4208 &adev->gfx.mec.hpd_eop_gpu_addr, in gfx_v10_0_mec_init()
4218 amdgpu_bo_kunmap(adev->gfx.mec.hpd_eop_obj); in gfx_v10_0_mec_init()
4219 amdgpu_bo_unreserve(adev->gfx.mec.hpd_eop_obj); in gfx_v10_0_mec_init()
4231 &adev->gfx.mec.mec_fw_obj, in gfx_v10_0_mec_init()
4232 &adev->gfx.mec.mec_fw_gpu_addr, in gfx_v10_0_mec_init()
4242 amdgpu_bo_kunmap(adev->gfx.mec.mec_fw_obj); in gfx_v10_0_mec_init()
4243 amdgpu_bo_unreserve(adev->gfx.mec.mec_fw_obj); in gfx_v10_0_mec_init()
[all …]
Dgfx_v8_0.c1298 amdgpu_bo_free_kernel(&adev->gfx.mec.hpd_eop_obj, NULL, NULL); in gfx_v8_0_mec_fini()
1317 &adev->gfx.mec.hpd_eop_obj, in gfx_v8_0_mec_init()
1318 &adev->gfx.mec.hpd_eop_gpu_addr, in gfx_v8_0_mec_init()
1327 amdgpu_bo_kunmap(adev->gfx.mec.hpd_eop_obj); in gfx_v8_0_mec_init()
1328 amdgpu_bo_unreserve(adev->gfx.mec.hpd_eop_obj); in gfx_v8_0_mec_init()
1861 int mec, int pipe, int queue) in gfx_v8_0_compute_ring_init() argument
1871 ring->me = mec + 1; in gfx_v8_0_compute_ring_init()
1878 ring->eop_gpu_addr = adev->gfx.mec.hpd_eop_gpu_addr in gfx_v8_0_compute_ring_init()
1883 + ((ring->me - 1) * adev->gfx.mec.num_pipe_per_mec) in gfx_v8_0_compute_ring_init()
1915 adev->gfx.mec.num_mec = 2; in gfx_v8_0_sw_init()
[all …]
/linux-6.6.21/Documentation/translations/zh_CN/process/
Dmagic-number.rst36 <mailto:mec@shout.net>
/linux-6.6.21/Documentation/translations/zh_TW/process/
Dmagic-number.rst39 <mailto:mec@shout.net>
/linux-6.6.21/drivers/gpu/drm/radeon/
Dcik.c4362 if (rdev->mec.hpd_eop_obj) { in cik_mec_fini()
4363 r = radeon_bo_reserve(rdev->mec.hpd_eop_obj, false); in cik_mec_fini()
4366 radeon_bo_unpin(rdev->mec.hpd_eop_obj); in cik_mec_fini()
4367 radeon_bo_unreserve(rdev->mec.hpd_eop_obj); in cik_mec_fini()
4369 radeon_bo_unref(&rdev->mec.hpd_eop_obj); in cik_mec_fini()
4370 rdev->mec.hpd_eop_obj = NULL; in cik_mec_fini()
4386 rdev->mec.num_mec = 2; in cik_mec_init()
4388 rdev->mec.num_mec = 1; in cik_mec_init()
4389 rdev->mec.num_pipe = 4; in cik_mec_init()
4390 rdev->mec.num_queue = rdev->mec.num_mec * rdev->mec.num_pipe * 8; in cik_mec_init()
[all …]
Dradeon.h2407 struct radeon_mec mec; member
/linux-6.6.21/Documentation/translations/it_IT/process/
Dmagic-number.rst46 <mailto:mec@shout.net>
/linux-6.6.21/Documentation/process/
Dmagic-number.rst41 <mailto:mec@shout.net>
/linux-6.6.21/Documentation/translations/sp_SP/process/
Dmagic-number.rst47 <mailto:mec@shout.net>
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_device_queue_manager.c78 static bool is_pipe_enabled(struct device_queue_manager *dqm, int mec, int pipe) in is_pipe_enabled() argument
81 int pipe_offset = (mec * dqm->dev->kfd->shared_resources.num_pipe_per_mec in is_pipe_enabled()
1564 int i, mec; in set_sched_resources() local
1571 mec = (i / dqm->dev->kfd->shared_resources.num_queue_per_pipe) in set_sched_resources()
1578 if (mec > 0) in set_sched_resources()
Dkfd_priv.h587 uint32_t mec; member
/linux-6.6.21/Documentation/userspace-api/ioctl/
Dioctl-number.rst8 <mec@shout.net>
33 patch to Linus Torvalds. Or you can e-mail me at <mec@shout.net> and

12