| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | vpe_v6_1.c | 64 static uint32_t vpe_v6_1_get_reg_offset(struct amdgpu_vpe *vpe, uint32_t inst, uint32_t offset) in vpe_v6_1_get_reg_offset() argument 68 base = vpe->ring.adev->reg_offset[VPE_HWIP][inst][0]; in vpe_v6_1_get_reg_offset() 73 static void vpe_v6_1_halt(struct amdgpu_vpe *vpe, bool halt) in vpe_v6_1_halt() argument 75 struct amdgpu_device *adev = vpe->ring.adev; in vpe_v6_1_halt() 78 for (i = 0; i < vpe->num_instances; i++) { in vpe_v6_1_halt() 79 f32_cntl = RREG32(vpe_get_reg_offset(vpe, i, regVPEC_F32_CNTL)); in vpe_v6_1_halt() 82 WREG32(vpe_get_reg_offset(vpe, i, regVPEC_F32_CNTL), f32_cntl); in vpe_v6_1_halt() 86 static int vpe_v6_1_irq_init(struct amdgpu_vpe *vpe) in vpe_v6_1_irq_init() argument 88 struct amdgpu_device *adev = container_of(vpe, struct amdgpu_device, vpe); in vpe_v6_1_irq_init() 93 &adev->vpe.trap_irq); in vpe_v6_1_irq_init() [all …]
|
| H A D | amdgpu_vpe.c | 121 int amdgpu_vpe_configure_dpm(struct amdgpu_vpe *vpe) in amdgpu_vpe_configure_dpm() argument 123 struct amdgpu_device *adev = vpe->ring.adev; in amdgpu_vpe_configure_dpm() 135 dpm_ctl = RREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_enable)); in amdgpu_vpe_configure_dpm() 137 WREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_enable), dpm_ctl); in amdgpu_vpe_configure_dpm() 199 WREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_pratio), pratio_ctl); /* PRatio */ in amdgpu_vpe_configure_dpm() 200 … WREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_request_interval), 24000); /* 1ms, unit=1/24MHz */ in amdgpu_vpe_configure_dpm() 201 WREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_decision_threshold), 1200000); /* 50ms */ in amdgpu_vpe_configure_dpm() 202 WREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_busy_clamp_threshold), 1200000);/* 50ms */ in amdgpu_vpe_configure_dpm() 203 WREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_idle_clamp_threshold), 1200000);/* 50ms */ in amdgpu_vpe_configure_dpm() 213 dpm_ctl = RREG32(vpe_get_reg_offset(vpe, 0, vpe->regs.dpm_enable)); in amdgpu_vpe_configure_dpm() [all …]
|
| H A D | vpe_v6_1.h | 27 void vpe_v6_1_set_funcs(struct amdgpu_vpe *vpe);
|
| H A D | amdgpu_dev_coredump.c | 188 adev->vpe.feature_version, adev->vpe.fw_version); in amdgpu_devcoredump_fw_info()
|
| H A D | umsch_mm_v4_0.c | 282 adev->vpe.collaborate_mode ? 0x3 : 0x0; in umsch_mm_v4_0_set_hw_resources() 358 add_queue.collaboration_mode = adev->vpe.collaborate_mode ? 1 : 0; in umsch_mm_v4_0_add_queue()
|
| H A D | amdgpu_kms.c | 365 fw_info->ver = adev->vpe.fw_version; in amdgpu_firmware_info() 366 fw_info->feature = adev->vpe.feature_version; in amdgpu_firmware_info() 535 if (adev->vpe.ring.sched.ready && in amdgpu_hw_ip_info() 536 !adev->vpe.ring.no_user_submission) in amdgpu_hw_ip_info()
|
| H A D | amdgpu_discovery.c | 1474 if (adev->vpe.num_instances < AMDGPU_MAX_VPE_INSTANCES) in amdgpu_discovery_reg_base_init() 1475 adev->vpe.num_instances++; in amdgpu_discovery_reg_base_init() 1478 adev->vpe.num_instances + 1, in amdgpu_discovery_reg_base_init()
|
| H A D | amdgpu.h | 1137 struct amdgpu_vpe vpe; member
|
| /linux/drivers/irqchip/ |
| H A D | irq-gic-v4.c | 119 static int its_alloc_vcpu_sgis(struct its_vpe *vpe, int idx) in its_alloc_vcpu_sgis() argument 131 vpe->fwnode = irq_domain_alloc_named_id_fwnode(name, idx); in its_alloc_vcpu_sgis() 132 if (!vpe->fwnode) in its_alloc_vcpu_sgis() 138 vpe->sgi_domain = irq_domain_create_linear(vpe->fwnode, 16, in its_alloc_vcpu_sgis() 139 sgi_domain_ops, vpe); in its_alloc_vcpu_sgis() 140 if (!vpe->sgi_domain) in its_alloc_vcpu_sgis() 143 sgi_base = irq_domain_alloc_irqs(vpe->sgi_domain, 16, NUMA_NO_NODE, vpe); in its_alloc_vcpu_sgis() 150 if (vpe->sgi_domain) in its_alloc_vcpu_sgis() 151 irq_domain_remove(vpe->sgi_domain); in its_alloc_vcpu_sgis() 152 if (vpe->fwnode) in its_alloc_vcpu_sgis() [all …]
|
| H A D | irq-gic-v3-its.c | 359 static int vpe_to_cpuid_lock(struct its_vpe *vpe, unsigned long *flags) in vpe_to_cpuid_lock() argument 361 raw_spin_lock_irqsave(&vpe->vpe_lock, *flags); in vpe_to_cpuid_lock() 362 return vpe->col_idx; in vpe_to_cpuid_lock() 365 static void vpe_to_cpuid_unlock(struct its_vpe *vpe, unsigned long flags) in vpe_to_cpuid_unlock() argument 367 raw_spin_unlock_irqrestore(&vpe->vpe_lock, flags); in vpe_to_cpuid_unlock() 374 struct its_vpe *vpe = NULL; in irq_to_cpuid_lock() local 378 vpe = irq_data_get_irq_chip_data(d); in irq_to_cpuid_lock() 382 vpe = map->vpe; in irq_to_cpuid_lock() 385 if (vpe) { in irq_to_cpuid_lock() 386 cpu = vpe_to_cpuid_lock(vpe, flags); in irq_to_cpuid_lock() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | vpe-mt.c | 26 int vpe_run(struct vpe *v) in vpe_run() 180 struct vpe *v; in vpe_alloc() 195 int vpe_start(void *vpe, unsigned long start) in vpe_start() argument 197 struct vpe *v = vpe; in vpe_start() 205 int vpe_stop(void *vpe) in vpe_stop() argument 207 struct vpe *v = vpe; in vpe_stop() 226 int vpe_free(void *vpe) in vpe_free() argument 228 struct vpe *v = vpe; in vpe_free() 263 struct vpe *vpe = get_vpe(aprp_cpu_index()); in store_kill() local 266 list_for_each_entry(notifier, &vpe->notify, list) in store_kill() [all …]
|
| H A D | vpe.c | 54 struct vpe *get_vpe(int minor) in get_vpe() 56 struct vpe *res, *v; in get_vpe() 93 struct vpe *alloc_vpe(int minor) in alloc_vpe() 95 struct vpe *v; in alloc_vpe() 97 v = kzalloc(sizeof(struct vpe), GFP_KERNEL); in alloc_vpe() 134 void release_vpe(struct vpe *v) in release_vpe() 550 static int find_vpe_symbols(struct vpe *v, Elf_Shdr *sechdrs, in find_vpe_symbols() 576 static int vpe_elfload(struct vpe *v) in vpe_elfload() 754 struct vpe *v; in vpe_open() 799 struct vpe *v; in vpe_release() [all …]
|
| H A D | Makefile | 65 obj-$(CONFIG_MIPS_VPE_LOADER) += vpe.o 66 obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o
|
| H A D | rtlx.c | 68 void rtlx_starting(int vpe) in rtlx_starting() argument 81 void rtlx_stopping(int vpe) in rtlx_stopping() argument
|
| H A D | cpu-probe.c | 2039 void cpu_set_vpe_id(struct cpuinfo_mips *cpuinfo, unsigned int vpe) in cpu_set_vpe_id() argument 2042 WARN_ON(vpe > (MIPS_GLOBALNUMBER_VP >> MIPS_GLOBALNUMBER_VP_SHF)); in cpu_set_vpe_id() 2045 WARN_ON(vpe && !IS_ENABLED(CONFIG_MIPS_MT_SMP) && in cpu_set_vpe_id() 2049 cpuinfo->globalnumber |= vpe << MIPS_GLOBALNUMBER_VP_SHF; in cpu_set_vpe_id()
|
| /linux/arch/arm64/kvm/vgic/ |
| H A D | vgic-v4.c | 108 static void vgic_v4_sync_sgi_config(struct its_vpe *vpe, struct vgic_irq *irq) in vgic_v4_sync_sgi_config() argument 110 vpe->sgi_config[irq->intid].enabled = irq->enabled; in vgic_v4_sync_sgi_config() 111 vpe->sgi_config[irq->intid].group = irq->group; in vgic_v4_sync_sgi_config() 112 vpe->sgi_config[irq->intid].priority = irq->priority; in vgic_v4_sync_sgi_config() 117 struct its_vpe *vpe = &vcpu->arch.vgic_cpu.vgic_v3.its_vpe; in vgic_v4_enable_vsgis() local 137 irq->host_irq = irq_find_mapping(vpe->sgi_domain, i); in vgic_v4_enable_vsgis() 140 vgic_v4_sync_sgi_config(vpe, irq); in vgic_v4_enable_vsgis() 218 struct its_vpe *vpe = &irq->target_vcpu->arch.vgic_cpu.vgic_v3.its_vpe; in vgic_v4_get_vlpi_state() local 223 va = page_address(vpe->vpt_page); in vgic_v4_get_vlpi_state() 360 struct its_vpe *vpe = &vcpu->arch.vgic_cpu.vgic_v3.its_vpe; in vgic_v4_put() local [all …]
|
| H A D | vgic-its.c | 328 if (map.vpe) in update_affinity() 329 atomic_dec(&map.vpe->vlpi_count); in update_affinity() 331 map.vpe = &vcpu->arch.vgic_cpu.vgic_v3.its_vpe; in update_affinity() 332 atomic_inc(&map.vpe->vlpi_count); in update_affinity()
|
| /linux/include/linux/irqchip/ |
| H A D | arm-gic-v4.h | 106 struct its_vpe *vpe; member 143 int its_make_vpe_resident(struct its_vpe *vpe, bool g0en, bool g1en); 144 int its_make_vpe_non_resident(struct its_vpe *vpe, bool db); 145 int its_commit_vpe(struct its_vpe *vpe); 146 int its_invall_vpe(struct its_vpe *vpe);
|
| /linux/drivers/media/platform/ti/vpe/ |
| H A D | Makefile | 2 obj-$(CONFIG_VIDEO_TI_VPE) += ti-vpe.o 7 ti-vpe-y := vpe.o
|
| /linux/arch/mips/include/asm/ |
| H A D | rtlx.h | 30 void rtlx_starting(int vpe); 31 void rtlx_stopping(int vpe);
|
| H A D | smp-cps.h | 36 extern void mips_cps_boot_vpes(struct core_boot_config *cfg, unsigned vpe);
|
| /linux/drivers/media/platform/ti/ |
| H A D | Makefile | 4 obj-y += vpe/
|