Home
last modified time | relevance | path

Searched refs:pdd (Results 1 – 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_flat_memory.c315 static void kfd_init_apertures_vi(struct kfd_process_device *pdd, uint8_t id) in kfd_init_apertures_vi() argument
321 pdd->lds_base = MAKE_LDS_APP_BASE_VI(); in kfd_init_apertures_vi()
322 pdd->lds_limit = MAKE_LDS_APP_LIMIT(pdd->lds_base); in kfd_init_apertures_vi()
324 if (!pdd->dev->use_iommu_v2) { in kfd_init_apertures_vi()
329 pdd->gpuvm_base = SVM_USER_BASE; in kfd_init_apertures_vi()
330 pdd->gpuvm_limit = in kfd_init_apertures_vi()
331 pdd->dev->shared_resources.gpuvm_size - 1; in kfd_init_apertures_vi()
336 pdd->gpuvm_base = MAKE_GPUVM_APP_BASE_VI(id + 1); in kfd_init_apertures_vi()
337 pdd->gpuvm_limit = MAKE_GPUVM_APP_LIMIT(pdd->gpuvm_base, in kfd_init_apertures_vi()
338 pdd->dev->shared_resources.gpuvm_size); in kfd_init_apertures_vi()
[all …]
Dkfd_process.c85 struct kfd_process_device *pdd; member
99 struct kfd_process_device *pdd; in kfd_sdma_activity_worker() local
114 pdd = workarea->pdd; in kfd_sdma_activity_worker()
115 if (!pdd) in kfd_sdma_activity_worker()
117 dqm = pdd->dev->dqm; in kfd_sdma_activity_worker()
118 qpd = &pdd->qpd; in kfd_sdma_activity_worker()
173 workarea->sdma_activity_counter = pdd->sdma_past_activity_counter; in kfd_sdma_activity_worker()
183 mm = get_task_mm(pdd->process->lead_thread); in kfd_sdma_activity_worker()
210 workarea->sdma_activity_counter += pdd->sdma_past_activity_counter; in kfd_sdma_activity_worker()
272 struct kfd_process_device *pdd = NULL; in kfd_get_cu_occupancy() local
[all …]
Dkfd_iommu.c110 int kfd_iommu_bind_process_to_device(struct kfd_process_device *pdd) in kfd_iommu_bind_process_to_device() argument
112 struct kfd_dev *dev = pdd->dev; in kfd_iommu_bind_process_to_device()
113 struct kfd_process *p = pdd->process; in kfd_iommu_bind_process_to_device()
116 if (!dev->use_iommu_v2 || pdd->bound == PDD_BOUND) in kfd_iommu_bind_process_to_device()
119 if (unlikely(pdd->bound == PDD_BOUND_SUSPENDED)) { in kfd_iommu_bind_process_to_device()
126 pdd->bound = PDD_BOUND; in kfd_iommu_bind_process_to_device()
138 struct kfd_process_device *pdd; in kfd_iommu_unbind_process() local
140 list_for_each_entry(pdd, &p->per_device_data, per_device_list) in kfd_iommu_unbind_process()
141 if (pdd->bound == PDD_BOUND) in kfd_iommu_unbind_process()
142 amd_iommu_unbind_pasid(pdd->dev->pdev, p->pasid); in kfd_iommu_unbind_process()
[all …]
Dkfd_chardev.c281 struct kfd_process_device *pdd; in kfd_ioctl_create_queue() local
302 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_create_queue()
303 if (IS_ERR(pdd)) { in kfd_ioctl_create_queue()
493 struct kfd_process_device *pdd; in kfd_ioctl_set_memory_policy() local
512 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_set_memory_policy()
513 if (IS_ERR(pdd)) { in kfd_ioctl_set_memory_policy()
526 &pdd->qpd, in kfd_ioctl_set_memory_policy()
545 struct kfd_process_device *pdd; in kfd_ioctl_set_trap_handler() local
553 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_set_trap_handler()
554 if (IS_ERR(pdd)) { in kfd_ioctl_set_trap_handler()
[all …]
Dkfd_process_queue_manager.c67 void kfd_process_dequeue_from_device(struct kfd_process_device *pdd) in kfd_process_dequeue_from_device() argument
69 struct kfd_dev *dev = pdd->dev; in kfd_process_dequeue_from_device()
71 if (pdd->already_dequeued) in kfd_process_dequeue_from_device()
74 dev->dqm->ops.process_termination(dev->dqm, &pdd->qpd); in kfd_process_dequeue_from_device()
75 pdd->already_dequeued = true; in kfd_process_dequeue_from_device()
83 struct kfd_process_device *pdd; in pqm_set_gws() local
98 pdd = kfd_get_process_device_data(dev, pqm->process); in pqm_set_gws()
99 if (!pdd) { in pqm_set_gws()
105 if (gws && pdd->qpd.num_gws) in pqm_set_gws()
108 if (!gws && pdd->qpd.num_gws == 0) in pqm_set_gws()
[all …]
Dkfd_device_queue_manager_v10.c42 static uint32_t compute_sh_mem_bases_64bit(struct kfd_process_device *pdd) in compute_sh_mem_bases_64bit() argument
44 uint32_t shared_base = pdd->lds_base >> 48; in compute_sh_mem_bases_64bit()
45 uint32_t private_base = pdd->scratch_base >> 48; in compute_sh_mem_bases_64bit()
54 struct kfd_process_device *pdd; in update_qpd_v10() local
56 pdd = qpd_to_pdd(qpd); in update_qpd_v10()
77 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); in update_qpd_v10()
Dkfd_device_queue_manager_v9.c43 static uint32_t compute_sh_mem_bases_64bit(struct kfd_process_device *pdd) in compute_sh_mem_bases_64bit() argument
45 uint32_t shared_base = pdd->lds_base >> 48; in compute_sh_mem_bases_64bit()
46 uint32_t private_base = pdd->scratch_base >> 48; in compute_sh_mem_bases_64bit()
55 struct kfd_process_device *pdd; in update_qpd_v9() local
57 pdd = qpd_to_pdd(qpd); in update_qpd_v9()
73 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); in update_qpd_v9()
Dkfd_doorbell.c130 struct kfd_process_device *pdd; in kfd_doorbell_mmap() local
139 pdd = kfd_get_process_device_data(dev, process); in kfd_doorbell_mmap()
140 if (!pdd) in kfd_doorbell_mmap()
144 address = kfd_get_process_doorbells(pdd); in kfd_doorbell_mmap()
230 struct kfd_process_device *pdd, in kfd_get_doorbell_dw_offset_in_bar() argument
240 pdd->doorbell_index in kfd_get_doorbell_dw_offset_in_bar()
255 phys_addr_t kfd_get_process_doorbells(struct kfd_process_device *pdd) in kfd_get_process_doorbells() argument
257 return pdd->dev->doorbell_base + in kfd_get_process_doorbells()
258 pdd->doorbell_index * kfd_doorbell_process_slice(pdd->dev); in kfd_get_process_doorbells()
Dkfd_device_queue_manager_cik.c119 struct kfd_process_device *pdd; in update_qpd_cik() local
122 pdd = qpd_to_pdd(qpd); in update_qpd_cik()
135 temp = get_sh_mem_bases_32(pdd); in update_qpd_cik()
139 temp = get_sh_mem_bases_nybble_64(pdd); in update_qpd_cik()
153 struct kfd_process_device *pdd; in update_qpd_cik_hawaii() local
156 pdd = qpd_to_pdd(qpd); in update_qpd_cik_hawaii()
171 temp = get_sh_mem_bases_nybble_64(pdd); in update_qpd_cik_hawaii()
Dkfd_device_queue_manager_vi.c156 struct kfd_process_device *pdd; in update_qpd_vi() local
159 pdd = qpd_to_pdd(qpd); in update_qpd_vi()
175 temp = get_sh_mem_bases_32(pdd); in update_qpd_vi()
180 temp = get_sh_mem_bases_nybble_64(pdd); in update_qpd_vi()
197 struct kfd_process_device *pdd; in update_qpd_vi_tonga() local
200 pdd = qpd_to_pdd(qpd); in update_qpd_vi_tonga()
219 temp = get_sh_mem_bases_nybble_64(pdd); in update_qpd_vi_tonga()
Dkfd_device_queue_manager.c531 struct kfd_process_device *pdd = qpd_to_pdd(qpd); in destroy_queue_nocpsch() local
548 pdd->sdma_past_activity_counter += sdma_val; in destroy_queue_nocpsch()
560 struct kfd_process_device *pdd; in update_queue() local
564 pdd = kfd_get_process_device_data(q->device, q->process); in update_queue()
565 if (!pdd) { in update_queue()
611 increment_queue_count(dqm, &pdd->qpd, q); in update_queue()
613 decrement_queue_count(dqm, &pdd->qpd, q); in update_queue()
617 pdd->qpd.mapped_gws_queue = true; in update_queue()
623 pdd->qpd.mapped_gws_queue = false; in update_queue()
653 struct kfd_process_device *pdd; in evict_process_queues_nocpsch() local
[all …]
Dkfd_dbgdev.c275 struct kfd_process_device *pdd; in dbgdev_address_watch_nodiq() local
279 pdd = kfd_get_process_device_data(dbgdev->dev, in dbgdev_address_watch_nodiq()
281 if (!pdd) { in dbgdev_address_watch_nodiq()
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()
324 pdd->dev->kfd2kgd->address_watch_execute( in dbgdev_address_watch_nodiq()
703 struct kfd_process_device *pdd; in dbgdev_wave_control_nodiq() local
708 pdd = kfd_get_process_device_data(dbgdev->dev, wac_info->process); in dbgdev_wave_control_nodiq()
710 if (!pdd) { in dbgdev_wave_control_nodiq()
723 reg_sq_cmd.bits.vm_id = pdd->qpd.vmid; in dbgdev_wave_control_nodiq()
[all …]
Dkfd_device_queue_manager.h228 static inline unsigned int get_sh_mem_bases_32(struct kfd_process_device *pdd) in get_sh_mem_bases_32() argument
230 return (pdd->lds_base >> 16) & 0xFF; in get_sh_mem_bases_32()
234 get_sh_mem_bases_nybble_64(struct kfd_process_device *pdd) in get_sh_mem_bases_nybble_64() argument
236 return (pdd->lds_base >> 60) & 0x0E; in get_sh_mem_bases_nybble_64()
Dkfd_iommu.h35 int kfd_iommu_bind_process_to_device(struct kfd_process_device *pdd);
58 struct kfd_process_device *pdd) in kfd_iommu_bind_process_to_device() argument
Dkfd_priv.h853 int kfd_process_device_init_vm(struct kfd_process_device *pdd,
866 int kfd_process_device_create_obj_handle(struct kfd_process_device *pdd,
870 void kfd_process_device_remove_obj_handle(struct kfd_process_device *pdd,
878 struct kfd_process_device *pdd);
902 struct kfd_process_device *pdd,
904 phys_addr_t kfd_get_process_doorbells(struct kfd_process_device *pdd);
982 void kfd_process_dequeue_from_device(struct kfd_process_device *pdd);
1116 void kfd_flush_tlb(struct kfd_process_device *pdd);
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dwm9705.c77 static int pdd = 8; variable
78 module_param(pdd, int, 0);
79 MODULE_PARM_DESC(pdd, "Set pen detect comparator threshold");
168 dig2 |= (pdd & 0x000f); in wm9705_phy_init()
169 dev_dbg(wm->dev, "setting pdd to Vmid/%d", 1 - (pdd & 0x000f)); in wm9705_phy_init()
/kernel/linux/linux-5.10/drivers/soc/xilinx/
Dzynqmp_pm_domains.c104 struct pm_domain_data *pdd, *tmp; in zynqmp_gpd_power_off() local
118 list_for_each_entry_safe(pdd, tmp, &domain->dev_list, list_node) { in zynqmp_gpd_power_off()
120 may_wakeup = zynqmp_gpd_is_active_wakeup_path(pdd->dev, NULL); in zynqmp_gpd_power_off()
122 dev_dbg(pdd->dev, "device is in wakeup path in %s\n", in zynqmp_gpd_power_off()
/kernel/linux/linux-5.10/drivers/base/power/
Ddomain_governor.c125 struct pm_domain_data *pdd; in __default_power_down_ok() local
160 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in __default_power_down_ok()
169 td = &to_gpd_data(pdd)->td; in __default_power_down_ok()
Ddomain.c244 struct pm_domain_data *pdd; in _genpd_reeval_performance_state() local
256 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in _genpd_reeval_performance_state()
257 pd_data = to_gpd_data(pdd); in _genpd_reeval_performance_state()
535 struct pm_domain_data *pdd; in genpd_power_off() local
558 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in genpd_power_off()
561 stat = dev_pm_qos_flags(pdd->dev, PM_QOS_FLAG_NO_POWER_OFF); in genpd_power_off()
569 if (!pm_runtime_suspended(pdd->dev) || in genpd_power_off()
570 irq_safe_dev_in_no_sleep_domain(pdd->dev, genpd)) in genpd_power_off()
686 struct pm_domain_data *pdd; in genpd_dev_pm_qos_notifier() local
690 pdd = dev->power.subsys_data ? in genpd_dev_pm_qos_notifier()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dpm_domain.h198 static inline struct generic_pm_domain_data *to_gpd_data(struct pm_domain_data *pdd) in to_gpd_data() argument
200 return container_of(pdd, struct generic_pm_domain_data, base); in to_gpd_data()
/kernel/linux/linux-5.10/Documentation/admin-guide/
Ddevices.txt893 48 = /dev/pdd Fourth parallel port IDE disk