Home
last modified time | relevance | path

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

/Linux-v5.15/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.c86 struct kfd_process_device *pdd; member
100 struct kfd_process_device *pdd; in kfd_sdma_activity_worker() local
113 pdd = workarea->pdd; in kfd_sdma_activity_worker()
114 if (!pdd) in kfd_sdma_activity_worker()
116 dqm = pdd->dev->dqm; in kfd_sdma_activity_worker()
117 qpd = &pdd->qpd; in kfd_sdma_activity_worker()
172 workarea->sdma_activity_counter = pdd->sdma_past_activity_counter; in kfd_sdma_activity_worker()
182 mm = get_task_mm(pdd->process->lead_thread); in kfd_sdma_activity_worker()
209 workarea->sdma_activity_counter += pdd->sdma_past_activity_counter; in kfd_sdma_activity_worker()
271 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()
150 struct kfd_process_device *pdd; in iommu_pasid_shutdown_callback() local
179 pdd = kfd_get_process_device_data(dev, p); in iommu_pasid_shutdown_callback()
180 if (pdd) in iommu_pasid_shutdown_callback()
184 kfd_process_dequeue_from_device(pdd); in iommu_pasid_shutdown_callback()
[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_chardev.c282 struct kfd_process_device *pdd; in kfd_ioctl_create_queue() local
303 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_create_queue()
304 if (IS_ERR(pdd)) { in kfd_ioctl_create_queue()
494 struct kfd_process_device *pdd; in kfd_ioctl_set_memory_policy() local
513 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_set_memory_policy()
514 if (IS_ERR(pdd)) { in kfd_ioctl_set_memory_policy()
527 &pdd->qpd, in kfd_ioctl_set_memory_policy()
546 struct kfd_process_device *pdd; in kfd_ioctl_set_trap_handler() local
554 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_set_trap_handler()
555 if (IS_ERR(pdd)) { in kfd_ioctl_set_trap_handler()
[all …]
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()
69 if (!pdd->process->xnack_enabled) in update_qpd_v9()
82 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); in update_qpd_v9()
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_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.c535 struct kfd_process_device *pdd = qpd_to_pdd(qpd); in destroy_queue_nocpsch() local
552 pdd->sdma_past_activity_counter += sdma_val; in destroy_queue_nocpsch()
564 struct kfd_process_device *pdd; in update_queue() local
568 pdd = kfd_get_process_device_data(q->device, q->process); in update_queue()
569 if (!pdd) { in update_queue()
624 pdd->qpd.mapped_gws_queue = true; in update_queue()
630 pdd->qpd.mapped_gws_queue = false; in update_queue()
660 struct kfd_process_device *pdd; in evict_process_queues_nocpsch() local
667 pdd = qpd_to_pdd(qpd); in evict_process_queues_nocpsch()
669 pdd->process->pasid); in evict_process_queues_nocpsch()
[all …]
Dkfd_svm.c188 struct kfd_process_device *pdd; in svm_range_dma_map() local
192 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_dma_map()
193 if (!pdd) { in svm_range_dma_map()
197 adev = (struct amdgpu_device *)pdd->dev->kgd; in svm_range_dma_map()
228 struct kfd_process_device *pdd; in svm_range_free_dma_mappings() local
241 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_free_dma_mappings()
242 if (!pdd) { in svm_range_free_dma_mappings()
246 dev = &pdd->dev->pdev->dev; in svm_range_free_dma_mappings()
560 struct kfd_process_device *pdd; in svm_range_get_adev_by_id() local
571 pdd = kfd_process_device_from_gpuidx(p, gpu_idx); in svm_range_get_adev_by_id()
[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.h223 static inline unsigned int get_sh_mem_bases_32(struct kfd_process_device *pdd) in get_sh_mem_bases_32() argument
225 return (pdd->lds_base >> 16) & 0xFF; in get_sh_mem_bases_32()
229 get_sh_mem_bases_nybble_64(struct kfd_process_device *pdd) in get_sh_mem_bases_nybble_64() argument
231 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_migrate.c381 struct kfd_process_device *pdd; in svm_migrate_vma_to_vram() local
433 pdd = svm_range_get_pdd_by_adev(prange, adev); in svm_migrate_vma_to_vram()
434 if (pdd) in svm_migrate_vma_to_vram()
435 WRITE_ONCE(pdd->page_in, pdd->page_in + migrate.cpages); in svm_migrate_vma_to_vram()
607 struct kfd_process_device *pdd; in svm_migrate_vma_to_ram() local
658 pdd = svm_range_get_pdd_by_adev(prange, adev); in svm_migrate_vma_to_ram()
659 if (pdd) in svm_migrate_vma_to_ram()
660 WRITE_ONCE(pdd->page_out, in svm_migrate_vma_to_ram()
661 pdd->page_out + migrate.cpages); in svm_migrate_vma_to_ram()
Dkfd_priv.h896 int kfd_process_device_init_vm(struct kfd_process_device *pdd,
911 int kfd_process_device_create_obj_handle(struct kfd_process_device *pdd,
915 void kfd_process_device_remove_obj_handle(struct kfd_process_device *pdd,
939 struct kfd_process_device *pdd,
941 phys_addr_t kfd_get_process_doorbells(struct kfd_process_device *pdd);
1023 void kfd_process_dequeue_from_device(struct kfd_process_device *pdd);
1160 void kfd_flush_tlb(struct kfd_process_device *pdd, enum TLB_FLUSH_TYPE type);
/Linux-v5.15/drivers/base/power/
Ddomain_governor.c124 struct pm_domain_data *pdd; in update_domain_next_wakeup() local
138 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in update_domain_next_wakeup()
139 next_wakeup = to_gpd_data(pdd)->next_wakeup; in update_domain_next_wakeup()
174 struct pm_domain_data *pdd; in __default_power_down_ok() local
209 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in __default_power_down_ok()
218 td = &to_gpd_data(pdd)->td; in __default_power_down_ok()
Ddomain.c259 struct pm_domain_data *pdd; in _genpd_reeval_performance_state() local
271 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in _genpd_reeval_performance_state()
272 pd_data = to_gpd_data(pdd); in _genpd_reeval_performance_state()
616 struct pm_domain_data *pdd; in genpd_power_off() local
639 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in genpd_power_off()
642 stat = dev_pm_qos_flags(pdd->dev, PM_QOS_FLAG_NO_POWER_OFF); in genpd_power_off()
650 if (!pm_runtime_suspended(pdd->dev) || in genpd_power_off()
651 irq_safe_dev_in_no_sleep_domain(pdd->dev, genpd)) in genpd_power_off()
767 struct pm_domain_data *pdd; in genpd_dev_pm_qos_notifier() local
771 pdd = dev->power.subsys_data ? in genpd_dev_pm_qos_notifier()
[all …]
/Linux-v5.15/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()
/Linux-v5.15/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()
/Linux-v5.15/include/linux/
Dpm_domain.h208 static inline struct generic_pm_domain_data *to_gpd_data(struct pm_domain_data *pdd) in to_gpd_data() argument
210 return container_of(pdd, struct generic_pm_domain_data, base); in to_gpd_data()
/Linux-v5.15/Documentation/admin-guide/
Ddevices.txt883 48 = /dev/pdd Fourth parallel port IDE disk