Home
last modified time | relevance | path

Searched full:vpa (Results 1 – 25 of 38) sorted by relevance

12

/openbmc/qemu/target/ppc/
H A Dtrace-events14 kvm_failed_vpa_addr_get(const char *msg) "Unable to get VPA address from KVM: %s"
17 kvm_failed_vpa_addr_set(const char *msg) "Unable to set VPA address to KVM: %s"
20 kvm_failed_null_vpa_addr_set(const char *msg) "Unable to set VPA address to KVM: %s"
21 kvm_failed_put_vpa(void) "Warning: Unable to set VPA information to KVM"
22 kvm_failed_get_vpa(void) "Warning: Unable to get VPA information from KVM"
/openbmc/linux/arch/powerpc/include/asm/
H A Dplpar_wrappers.h58 unsigned long vpa) in vpa_call() argument
62 return plpar_hcall_norets(H_REGISTER_VPA, flags, cpu, vpa); in vpa_call()
70 static inline long register_vpa(unsigned long cpu, unsigned long vpa) in register_vpa() argument
72 return vpa_call(H_VPA_REG_VPA, cpu, vpa); in register_vpa()
80 static inline long register_slb_shadow(unsigned long cpu, unsigned long vpa) in register_slb_shadow() argument
82 return vpa_call(H_VPA_REG_SLB, cpu, vpa); in register_slb_shadow()
90 static inline long register_dtl(unsigned long cpu, unsigned long vpa) in register_dtl() argument
92 return vpa_call(H_VPA_REG_DTL, cpu, vpa); in register_dtl()
H A Dlppaca.h36 * Pre-v4.14 KVM hypervisors reject the VPA if its size field is smaller than
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Ddtl.c69 struct lppaca *vpa = local_paca->lppaca_ptr; in consume_dtle() local
78 if (index + N_DISPATCH_LOG < be64_to_cpu(vpa->dtl_idx)) in consume_dtle()
380 struct lppaca *vpa = local_paca->lppaca_ptr; in scan_dispatch_log() local
388 if (i == be64_to_cpu(vpa->dtl_idx)) in scan_dispatch_log()
390 while (i < be64_to_cpu(vpa->dtl_idx)) { in scan_dispatch_log()
395 if (i + N_DISPATCH_LOG < be64_to_cpu(vpa->dtl_idx)) { in scan_dispatch_log()
397 i = be64_to_cpu(vpa->dtl_idx) - N_DISPATCH_LOG; in scan_dispatch_log()
H A Dcmm.c92 const unsigned long vpa = page_to_phys(page); in plpar_page_set_loaned() local
101 rc = plpar_hcall_norets(H_PAGE_INIT, H_PAGE_SET_LOANED, vpa + i, 0); in plpar_page_set_loaned()
105 vpa + i - cmo_page_sz, 0); in plpar_page_set_loaned()
112 const unsigned long vpa = page_to_phys(page); in plpar_page_set_active() local
121 rc = plpar_hcall_norets(H_PAGE_INIT, H_PAGE_SET_ACTIVE, vpa + i, 0); in plpar_page_set_active()
125 vpa + i - cmo_page_sz, 0); in plpar_page_set_active()
H A Dlpar.c366 struct lppaca *vpa = local_paca->lppaca_ptr; in process_dtl_buffer() local
379 if (i == be64_to_cpu(vpa->dtl_idx)) in process_dtl_buffer()
382 while (i < be64_to_cpu(vpa->dtl_idx)) { in process_dtl_buffer()
385 if (i + N_DISPATCH_LOG < be64_to_cpu(vpa->dtl_idx)) { in process_dtl_buffer()
389 be64_to_cpu(vpa->dtl_idx) - N_DISPATCH_LOG - i); in process_dtl_buffer()
390 i = be64_to_cpu(vpa->dtl_idx) - N_DISPATCH_LOG; in process_dtl_buffer()
666 * VPA steal time counters are reported at TB frequency. Hence do a in pseries_paravirt_steal_clock()
683 * The spec says it "may be problematic" if CPU x registers the VPA of in vpa_init()
698 pr_err("WARNING: VPA registration for cpu %d (hw %d) of area " in vpa_init()
1993 /* debugfs file interface for vpa data */
[all …]
H A Dkexec.c51 pr_err("WARNING: VPA deregistration for cpu %d " in pseries_kexec_cpu_down()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_perf.c41 lp = vcpu->arch.vpa.pinned_addr; in switch_pmu_to_guest()
83 * Load guest. If the VPA said the PMCs are not in use but the guest in switch_pmu_to_guest()
124 lp = vcpu->arch.vpa.pinned_addr; in switch_pmu_to_host()
171 * This is used to grab the guest's VPA pmcregs_in_use value in switch_pmu_to_host()
172 * and reflect it into the host's VPA in the case of a nested in switch_pmu_to_host()
H A Dbook3s_hv.c490 static void init_vpa(struct kvm_vcpu *vcpu, struct lppaca *vpa) in init_vpa() argument
492 vpa->__old_status |= LPPACA_OLD_SHARED_PROC; in init_vpa()
493 vpa->yield_count = cpu_to_be32(1); in init_vpa()
530 unsigned long vcpuid, unsigned long vpa) in do_h_register_vpa() argument
548 if ((vpa & (L1_CACHE_BYTES - 1)) || !vpa) in do_h_register_vpa()
552 va = kvmppc_pin_guest_page(kvm, vpa, &nb); in do_h_register_vpa()
559 kvmppc_unpin_guest_page(kvm, va, vpa, false); in do_h_register_vpa()
565 vpa = 0; in do_h_register_vpa()
574 case H_VPA_REG_VPA: /* register VPA */ in do_h_register_vpa()
584 vpap = &tvcpu->arch.vpa; in do_h_register_vpa()
[all …]
H A Dbook3s_64_mmu_hv.c1115 void kvmppc_harvest_vpa_dirty(struct kvmppc_vpa *vpa, in kvmppc_harvest_vpa_dirty() argument
1121 if (!vpa->dirty || !vpa->pinned_addr) in kvmppc_harvest_vpa_dirty()
1123 gfn = vpa->gpa >> PAGE_SHIFT; in kvmppc_harvest_vpa_dirty()
1128 vpa->dirty = false; in kvmppc_harvest_vpa_dirty()
/openbmc/qemu/hw/ppc/
H A Dspapr_hcall.c319 static target_ulong register_vpa(PowerPCCPU *cpu, target_ulong vpa) in register_vpa() argument
327 if (vpa == 0) { in register_vpa()
328 hcall_dprintf("Can't cope with registering a VPA at logical 0\n"); in register_vpa()
332 if (vpa % env->dcache_line_size) { in register_vpa()
337 size = lduw_be_phys(cs->as, vpa + 0x4); in register_vpa()
343 /* VPA is not allowed to cross a page boundary */ in register_vpa()
344 if ((vpa / 4096) != ((vpa + size - 1) / 4096)) { in register_vpa()
348 spapr_cpu->vpa_addr = vpa; in register_vpa()
357 static target_ulong deregister_vpa(PowerPCCPU *cpu, target_ulong vpa) in deregister_vpa() argument
452 target_ulong vpa = args[2]; in h_register_vpa() local
[all …]
H A Dspapr_cpu_core.c130 .name = "spapr_cpu/vpa/slb_shadow",
149 .name = "spapr_cpu/vpa/dtl",
168 .name = "spapr_cpu/vpa",
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Dmediatek,mt6332-regulator.yaml61 mt6332_vpa_reg: buck-vpa {
62 regulator-name = "vpa";
H A Dmediatek,mt6357-regulator.yaml107 mt6357_vpa_reg: buck-vpa {
108 regulator-name = "vpa";
H A Dmt6323-regulator.txt42 regulator-name = "vpa";
H A Dmt6358-regulator.txt48 regulator-name = "vpa";
H A Dmt6359-regulator.yaml153 regulator-name = "vpa";
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt6357.dtsi54 mt6357_vpa_reg: buck-vpa {
55 regulator-name = "vpa";
H A Dmt6359.dtsi67 regulator-name = "vpa";
/openbmc/linux/drivers/regulator/
H A Dmt6357-regulator.c350 MT6357_BUCK("buck-vpa", VPA, 500000, 3650000, 50000,
H A Dmt6332-regulator.c307 MT6332_BUCK("buck-vpa", VPA, 500000, 3400000, 50000, buck_pa_volt_range,
H A Dmt6358-regulator.c505 MT6358_BUCK("buck_vpa", VPA, 500000, 3650000, 50000,
583 MT6366_BUCK("buck_vpa", VPA, 500000, 3650000, 50000,
H A Dmt6359-regulator.c517 MT6359_BUCK("buck_vpa", VPA, 500000, 3650000, 50000,
753 MT6359_BUCK("buck_vpa", VPA, 500000, 3650000, 50000,
/openbmc/linux/arch/arm/boot/dts/mediatek/
H A Dmt6323.dtsi46 regulator-name = "vpa";
/openbmc/linux/arch/powerpc/kernel/
H A Dasm-offsets.c433 OFFSET(VCPU_VPA, kvm_vcpu, arch.vpa.pinned_addr); in main()
434 OFFSET(VCPU_VPA_DIRTY, kvm_vcpu, arch.vpa.dirty); in main()

12