/Linux-v5.10/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_device_queue_manager_vi.c | 30 struct qcm_process_device *qpd, 36 struct qcm_process_device *qpd, 42 struct qcm_process_device *qpd); 44 struct qcm_process_device *qpd); 46 struct qcm_process_device *qpd); 49 struct qcm_process_device *qpd); 98 struct qcm_process_device *qpd, in set_cache_memory_policy_vi() argument 115 qpd->sh_mem_config = (qpd->sh_mem_config & in set_cache_memory_policy_vi() 127 struct qcm_process_device *qpd, in set_cache_memory_policy_vi_tonga() argument 144 qpd->sh_mem_config = in set_cache_memory_policy_vi_tonga() [all …]
|
D | kfd_device_queue_manager_cik.c | 30 struct qcm_process_device *qpd, 36 struct qcm_process_device *qpd); 38 struct qcm_process_device *qpd); 40 struct qcm_process_device *qpd); 43 struct qcm_process_device *qpd); 91 struct qcm_process_device *qpd, in set_cache_memory_policy_cik() argument 108 qpd->sh_mem_config = (qpd->sh_mem_config & PTR32) in set_cache_memory_policy_cik() 117 struct qcm_process_device *qpd) in update_qpd_cik() argument 122 pdd = qpd_to_pdd(qpd); in update_qpd_cik() 125 if (qpd->sh_mem_config == 0) { in update_qpd_cik() [all …]
|
D | kfd_device_queue_manager.c | 130 struct qcm_process_device *qpd) in program_sh_mem_settings() argument 133 dqm->dev->kgd, qpd->vmid, in program_sh_mem_settings() 134 qpd->sh_mem_config, in program_sh_mem_settings() 135 qpd->sh_mem_ape1_base, in program_sh_mem_settings() 136 qpd->sh_mem_ape1_limit, in program_sh_mem_settings() 137 qpd->sh_mem_bases); in program_sh_mem_settings() 156 static int allocate_doorbell(struct qcm_process_device *qpd, struct queue *q) in allocate_doorbell() argument 158 struct kfd_dev *dev = qpd->dqm->dev; in allocate_doorbell() 183 found = find_first_zero_bit(qpd->doorbell_bitmap, in allocate_doorbell() 189 set_bit(found, qpd->doorbell_bitmap); in allocate_doorbell() [all …]
|
D | kfd_device_queue_manager_v10.c | 30 struct qcm_process_device *qpd); 32 struct qcm_process_device *qpd); 52 struct qcm_process_device *qpd) in update_qpd_v10() argument 56 pdd = qpd_to_pdd(qpd); in update_qpd_v10() 59 if (qpd->sh_mem_config == 0) { in update_qpd_v10() 60 qpd->sh_mem_config = in update_qpd_v10() 69 qpd->sh_mem_config |= in update_qpd_v10() 73 qpd->sh_mem_ape1_limit = 0; in update_qpd_v10() 74 qpd->sh_mem_ape1_base = 0; in update_qpd_v10() 77 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); in update_qpd_v10() [all …]
|
D | kfd_device_queue_manager_v9.c | 31 struct qcm_process_device *qpd); 33 struct qcm_process_device *qpd); 53 struct qcm_process_device *qpd) in update_qpd_v9() argument 57 pdd = qpd_to_pdd(qpd); in update_qpd_v9() 60 if (qpd->sh_mem_config == 0) { in update_qpd_v9() 61 qpd->sh_mem_config = in update_qpd_v9() 66 qpd->sh_mem_config |= in update_qpd_v9() 69 qpd->sh_mem_ape1_limit = 0; in update_qpd_v9() 70 qpd->sh_mem_ape1_base = 0; in update_qpd_v9() 73 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); in update_qpd_v9() [all …]
|
D | kfd_device_queue_manager.h | 38 struct qcm_process_device *qpd; member 89 struct qcm_process_device *qpd); 92 struct qcm_process_device *qpd, 99 struct qcm_process_device *qpd); 102 struct qcm_process_device *qpd); 111 struct qcm_process_device *qpd); 115 struct qcm_process_device *qpd); 118 struct qcm_process_device *qpd, 125 struct qcm_process_device *qpd, 130 struct qcm_process_device *qpd); [all …]
|
D | kfd_process.c | 103 struct qcm_process_device *qpd; in kfd_sdma_activity_worker() local 118 qpd = &pdd->qpd; in kfd_sdma_activity_worker() 119 if (!dqm || !qpd) in kfd_sdma_activity_worker() 150 list_for_each_entry(q, &qpd->queues_list, list) { in kfd_sdma_activity_worker() 212 list_for_each_entry(q, &qpd->queues_list, list) { in kfd_sdma_activity_worker() 281 if (pdd->qpd.queue_count == 0) { in kfd_get_cu_occupancy() 726 struct qcm_process_device *qpd = &pdd->qpd; in kfd_process_device_reserve_ib_mem() local 734 if (qpd->ib_kaddr || !qpd->ib_base) in kfd_process_device_reserve_ib_mem() 738 ret = kfd_process_alloc_gpuvm(pdd, qpd->ib_base, PAGE_SIZE, flags, in kfd_process_device_reserve_ib_mem() 743 qpd->ib_kaddr = kaddr; in kfd_process_device_reserve_ib_mem() [all …]
|
D | kfd_packet_manager_v9.c | 31 uint32_t *buffer, struct qcm_process_device *qpd) in pm_map_process_v9() argument 34 uint64_t vm_page_table_base_addr = qpd->page_table_base; in pm_map_process_v9() 41 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9() 43 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v9() 44 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9() 45 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9() 46 packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0; in pm_map_process_v9() 47 packet->bitfields14.num_oac = qpd->num_oac; in pm_map_process_v9() 49 packet->bitfields14.num_queues = (qpd->is_debug) ? 0 : qpd->queue_count; in pm_map_process_v9() 51 packet->sh_mem_config = qpd->sh_mem_config; in pm_map_process_v9() [all …]
|
D | kfd_packet_manager_vi.c | 42 struct qcm_process_device *qpd) in pm_map_process_vi() argument 52 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_vi() 54 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_vi() 55 packet->bitfields3.page_table_base = qpd->page_table_base; in pm_map_process_vi() 56 packet->bitfields10.gds_size = qpd->gds_size; in pm_map_process_vi() 57 packet->bitfields10.num_gws = qpd->num_gws; in pm_map_process_vi() 58 packet->bitfields10.num_oac = qpd->num_oac; in pm_map_process_vi() 59 packet->bitfields10.num_queues = (qpd->is_debug) ? 0 : qpd->queue_count; in pm_map_process_vi() 61 packet->sh_mem_config = qpd->sh_mem_config; in pm_map_process_vi() 62 packet->sh_mem_bases = qpd->sh_mem_bases; in pm_map_process_vi() [all …]
|
D | kfd_process_queue_manager.c | 74 dev->dqm->ops.process_termination(dev->dqm, &pdd->qpd); in kfd_process_dequeue_from_device() 105 if (gws && pdd->qpd.num_gws) in pqm_set_gws() 108 if (!gws && pdd->qpd.num_gws == 0) in pqm_set_gws() 121 pdd->qpd.num_gws = gws ? amdgpu_amdkfd_get_num_gws(dev->kgd) : 0; in pqm_set_gws() 221 if ((pdd->qpd.is_debug) || (type == KFD_QUEUE_TYPE_DIQ)) in pqm_create_queue() 224 if (pdd->qpd.queue_count >= max_queues) in pqm_create_queue() 231 if (list_empty(&pdd->qpd.queues_list) && in pqm_create_queue() 232 list_empty(&pdd->qpd.priv_queue_list)) in pqm_create_queue() 233 dev->dqm->ops.register_process(dev->dqm, &pdd->qpd); in pqm_create_queue() 255 retval = dev->dqm->ops.create_queue(dev->dqm, q, &pdd->qpd); in pqm_create_queue() [all …]
|
D | kfd_packet_manager.c | 129 struct qcm_process_device *qpd; in pm_create_runlist_ib() local 149 qpd = cur->qpd; in pm_create_runlist_ib() 157 retval = pm->pmf->map_process(pm, &rl_buffer[rl_wptr], qpd); in pm_create_runlist_ib() 165 list_for_each_entry(kq, &qpd->priv_queue_list, list) { in pm_create_runlist_ib() 170 kq->queue->queue, qpd->is_debug); in pm_create_runlist_ib() 175 qpd->is_debug); in pm_create_runlist_ib() 184 list_for_each_entry(q, &qpd->queues_list, list) { in pm_create_runlist_ib() 189 q->queue, qpd->is_debug); in pm_create_runlist_ib() 194 qpd->is_debug); in pm_create_runlist_ib()
|
D | kfd_flat_memory.c | 432 pdd->qpd.cwsr_base = SVM_CWSR_BASE; in kfd_init_apertures() 433 pdd->qpd.ib_base = SVM_IB_BASE; in kfd_init_apertures()
|
D | kfd_dbgdev.c | 303 &cntl, i, pdd->qpd.vmid); in dbgdev_address_watch_nodiq() 307 pr_debug("\t\t%20s %08x\n", "vmid is :", pdd->qpd.vmid); in dbgdev_address_watch_nodiq() 723 reg_sq_cmd.bits.vm_id = pdd->qpd.vmid; in dbgdev_wave_control_nodiq() 732 pr_debug("\t\t vmid is: %u\n", pdd->qpd.vmid); in dbgdev_wave_control_nodiq()
|
D | kfd_priv.h | 663 struct qcm_process_device qpd; member 735 #define qpd_to_pdd(x) container_of(x, struct kfd_process_device, qpd) 1033 struct qcm_process_device *qpd);
|
D | kfd_chardev.c | 526 &pdd->qpd, in kfd_ioctl_set_memory_policy() 560 &pdd->qpd, in kfd_ioctl_set_trap_handler() 1147 pdd->qpd.sh_hidden_private_base = args->va_addr; in kfd_ioctl_set_scratch_backing_va() 1152 pdd->qpd.vmid != 0 && dev->kfd2kgd->set_scratch_backing_va) in kfd_ioctl_set_scratch_backing_va() 1154 dev->kgd, args->va_addr, pdd->qpd.vmid); in kfd_ioctl_set_scratch_backing_va()
|
/Linux-v5.10/drivers/infiniband/hw/cxgb4/ |
D | device.c | 246 struct c4iw_debugfs_data *qpd) in dump_qp() argument 253 space = qpd->bufsize - qpd->pos - 1; in dump_qp() 267 cc = snprintf(qpd->buf + qpd->pos, space, in dump_qp() 288 cc = snprintf(qpd->buf + qpd->pos, space, in dump_qp() 304 cc = snprintf(qpd->buf + qpd->pos, space, in dump_qp() 310 qpd->pos += cc; in dump_qp() 316 struct c4iw_debugfs_data *qpd = file->private_data; in qp_release() local 317 if (!qpd) { in qp_release() 321 vfree(qpd->buf); in qp_release() 322 kfree(qpd); in qp_release() [all …]
|