/arch/powerpc/kvm/ |
D | book3s_xive_template.c | 16 u8 cppr; in GLUE() local 38 cppr = ack & 0xff; in GLUE() 39 if (cppr < 8) in GLUE() 40 xc->pending |= 1 << cppr; in GLUE() 44 if (cppr >= xc->hw_cppr) in GLUE() 46 smp_processor_id(), cppr, xc->hw_cppr); in GLUE() 54 xc->hw_cppr = cppr; in GLUE() 131 if (prio >= xc->cppr || prio > 7) { in GLUE() 132 if (xc->mfrr < xc->cppr) { in GLUE() 216 if (prio >= xc->mfrr && xc->mfrr < xc->cppr) { in GLUE() [all …]
|
D | book3s_hv_rm_xics.c | 189 new.out_ee = (new.xisr && (new.pending_pri < new.cppr)); in icp_rm_try_update() 258 success = new_state.cppr > priority && in icp_rm_try_to_deliver() 455 new_state.cppr = new_cppr; in icp_rm_down_cppr() 513 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); in xics_rm_h_xirr() 516 new_state.cppr = new_state.pending_pri; in xics_rm_h_xirr() 585 if (mfrr < new_state.cppr) { in xics_rm_h_ipi() 615 int xics_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) in xics_rm_h_cppr() argument 632 if (cppr > icp->state.cppr) { in xics_rm_h_cppr() 633 icp_rm_down_cppr(xics, icp, cppr); in xics_rm_h_cppr() 635 } else if (cppr == icp->state.cppr) in xics_rm_h_cppr() [all …]
|
D | book3s_xics.c | 279 new.out_ee = (new.xisr && (new.pending_pri < new.cppr)); in icp_try_update() 288 old.cppr, old.mfrr, old.pending_pri, old.xisr, in icp_try_update() 291 new.cppr, new.mfrr, new.pending_pri, new.xisr, in icp_try_update() 351 success = new_state.cppr > priority && in icp_try_to_deliver() 552 new_state.cppr = new_cppr; in icp_down_cppr() 605 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); in kvmppc_h_xirr() 608 new_state.cppr = new_state.pending_pri; in kvmppc_h_xirr() 678 if (mfrr < new_state.cppr) { in kvmppc_h_ipi() 716 kvmppc_set_gpr(vcpu, 4, ((u32)state.cppr << 24) | state.xisr); in kvmppc_h_ipoll() 721 static noinline void kvmppc_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) in kvmppc_h_cppr() argument [all …]
|
D | book3s_xics.h | 56 u8 cppr; member 148 extern int xics_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr);
|
D | book3s_xive.h | 167 uint8_t cppr; /* guest CPPR */ member 275 extern int xive_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr); 282 extern int (*__xive_vm_h_cppr)(struct kvm_vcpu *vcpu, unsigned long cppr);
|
D | book3s_hv_builtin.c | 43 int (*__xive_vm_h_cppr)(struct kvm_vcpu *vcpu, unsigned long cppr); 631 int kvmppc_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) in kvmppc_rm_h_cppr() argument 637 return xive_rm_h_cppr(vcpu, cppr); in kvmppc_rm_h_cppr() 640 return __xive_vm_h_cppr(vcpu, cppr); in kvmppc_rm_h_cppr() 642 return xics_rm_h_cppr(vcpu, cppr); in kvmppc_rm_h_cppr()
|
D | book3s_xive.c | 832 return (u64)xc->cppr << KVM_REG_PPC_ICP_CPPR_SHIFT | in kvmppc_xive_get_icp() 841 u8 cppr, mfrr; in kvmppc_xive_set_icp() local 848 cppr = icpval >> KVM_REG_PPC_ICP_CPPR_SHIFT; in kvmppc_xive_set_icp() 854 xc->server_num, cppr, mfrr, xisr); in kvmppc_xive_set_icp() 865 vcpu->arch.xive_saved_state.cppr = cppr; in kvmppc_xive_set_icp() 866 xc->hw_cppr = xc->cppr = cppr; in kvmppc_xive_set_icp() 875 if (mfrr < cppr) in kvmppc_xive_set_icp() 2112 xc->server_num, xc->cppr, xc->hw_cppr, in xive_debug_show()
|
D | book3s_xive_native.c | 1164 vcpu->arch.xive_saved_state.cppr, in kvmppc_xive_native_get_vp() 1231 vcpu->arch.xive_saved_state.cppr, in xive_native_debug_show()
|
D | book3s_hv.c | 3772 vcpu->arch.xive_saved_state.cppr; in xive_interrupt_pending()
|
/arch/powerpc/sysdev/xics/ |
D | icp-hv.c | 20 static inline unsigned int icp_hv_get_xirr(unsigned char cppr) in icp_hv_get_xirr() argument 26 rc = plpar_hcall(H_XIRR, retbuf, cppr); in icp_hv_get_xirr() 31 __func__, cppr, rc); in icp_hv_get_xirr() 127 static void icp_hv_set_cpu_priority(unsigned char cppr) in icp_hv_set_cpu_priority() argument 129 xics_set_base_cppr(cppr); in icp_hv_set_cpu_priority() 130 icp_hv_set_cppr(cppr); in icp_hv_set_cpu_priority()
|
D | icp-opal.c | 88 static void icp_opal_set_cpu_priority(unsigned char cppr) in icp_opal_set_cpu_priority() argument 97 if (cppr >= DEFAULT_PRIORITY) in icp_opal_set_cpu_priority() 98 cppr = LOWEST_PRIORITY; in icp_opal_set_cpu_priority() 100 xics_set_base_cppr(cppr); in icp_opal_set_cpu_priority() 101 opal_int_set_cppr(cppr); in icp_opal_set_cpu_priority()
|
D | icp-native.c | 79 static void icp_native_set_cpu_priority(unsigned char cppr) in icp_native_set_cpu_priority() argument 81 xics_set_base_cppr(cppr); in icp_native_set_cpu_priority() 82 icp_native_set_cppr(cppr); in icp_native_set_cpu_priority()
|
/arch/powerpc/sysdev/xive/ |
D | spapr.c | 583 u8 nsr, cppr; in xive_spapr_update_pending() local 602 cppr = ack & 0xff; in xive_spapr_update_pending() 606 if (cppr == 0xff) in xive_spapr_update_pending() 609 xc->pending_prio |= 1 << cppr; in xive_spapr_update_pending() 615 if (cppr >= xc->cppr) in xive_spapr_update_pending() 617 smp_processor_id(), cppr, xc->cppr); in xive_spapr_update_pending() 620 xc->cppr = cppr; in xive_spapr_update_pending()
|
D | native.c | 343 u8 he, cppr; in xive_native_update_pending() local 356 cppr = ack & 0xff; in xive_native_update_pending() 362 if (cppr == 0xff) in xive_native_update_pending() 365 xc->pending_prio |= 1 << cppr; in xive_native_update_pending() 371 if (cppr >= xc->cppr) in xive_native_update_pending() 373 smp_processor_id(), cppr, xc->cppr); in xive_native_update_pending() 376 xc->cppr = cppr; in xive_native_update_pending()
|
D | xive-internal.h | 36 u8 cppr; member
|
D | common.c | 182 if (prio != xc->cppr) { in xive_scan_interrupts() 184 xc->cppr = prio; in xive_scan_interrupts() 244 xmon_printf("pp=%02x CPPR=%02x ", xc->pending_prio, xc->cppr); in xmon_xive_do_dump() 1373 xc->cppr = 0xff; in xive_setup_cpu() 1466 xc->cppr = 0; in xive_smp_disable_cpu() 1473 xc->cppr = 0xff; in xive_smp_disable_cpu() 1496 xc->cppr = 0; in xive_teardown_cpu()
|
/arch/powerpc/include/asm/ |
D | xics.h | 131 static inline void xics_set_base_cppr(unsigned char cppr) in xics_set_base_cppr() argument 140 os_cppr->stack[0] = cppr; in xics_set_base_cppr()
|
D | kvm_host.h | 504 u8 cppr; member
|
D | opal.h | 237 int64_t opal_int_set_cppr(uint8_t cppr);
|
D | kvm_ppc.h | 792 int kvmppc_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr);
|