/linux-6.12.1/arch/powerpc/sysdev/xics/ |
D | icp-hv.c | 21 static inline unsigned int icp_hv_get_xirr(unsigned char cppr) in icp_hv_get_xirr() argument 27 rc = plpar_hcall(H_XIRR, retbuf, cppr); in icp_hv_get_xirr() 32 __func__, cppr, rc); in icp_hv_get_xirr() 128 static void icp_hv_set_cpu_priority(unsigned char cppr) in icp_hv_set_cpu_priority() argument 130 xics_set_base_cppr(cppr); in icp_hv_set_cpu_priority() 131 icp_hv_set_cppr(cppr); in icp_hv_set_cpu_priority()
|
D | icp-opal.c | 89 static void icp_opal_set_cpu_priority(unsigned char cppr) in icp_opal_set_cpu_priority() argument 98 if (cppr >= DEFAULT_PRIORITY) in icp_opal_set_cpu_priority() 99 cppr = LOWEST_PRIORITY; in icp_opal_set_cpu_priority() 101 xics_set_base_cppr(cppr); in icp_opal_set_cpu_priority() 102 opal_int_set_cppr(cppr); in icp_opal_set_cpu_priority()
|
D | icp-native.c | 80 static void icp_native_set_cpu_priority(unsigned char cppr) in icp_native_set_cpu_priority() argument 82 xics_set_base_cppr(cppr); in icp_native_set_cpu_priority() 83 icp_native_set_cppr(cppr); in icp_native_set_cpu_priority()
|
/linux-6.12.1/arch/powerpc/kvm/ |
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_hv_rm_xics.c | 182 new.out_ee = (new.xisr && (new.pending_pri < new.cppr)); in icp_rm_try_update() 251 success = new_state.cppr > priority && in icp_rm_try_to_deliver() 448 new_state.cppr = new_cppr; in icp_rm_down_cppr() 511 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); in xics_rm_h_xirr() 514 new_state.cppr = new_state.pending_pri; in xics_rm_h_xirr() 583 if (mfrr < new_state.cppr) { in xics_rm_h_ipi() 613 int xics_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) in xics_rm_h_cppr() argument 630 if (cppr > icp->state.cppr) { in xics_rm_h_cppr() 631 icp_rm_down_cppr(xics, icp, cppr); in xics_rm_h_cppr() 633 } else if (cppr == icp->state.cppr) in xics_rm_h_cppr() [all …]
|
D | book3s_xive.c | 41 u8 cppr; in xive_vm_ack_pending() local 63 cppr = ack & 0xff; in xive_vm_ack_pending() 64 if (cppr < 8) in xive_vm_ack_pending() 65 xc->pending |= 1 << cppr; in xive_vm_ack_pending() 68 if (cppr >= xc->hw_cppr) in xive_vm_ack_pending() 70 smp_processor_id(), cppr, xc->hw_cppr); in xive_vm_ack_pending() 77 xc->hw_cppr = cppr; in xive_vm_ack_pending() 152 if (prio >= xc->cppr || prio > 7) { in xive_vm_scan_interrupts() 153 if (xc->mfrr < xc->cppr) { in xive_vm_scan_interrupts() 234 if (prio >= xc->mfrr && xc->mfrr < xc->cppr) { in xive_vm_scan_interrupts() [all …]
|
D | book3s_xics.h | 56 u8 cppr; member 149 extern int xics_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr);
|
D | book3s_xive.h | 173 uint8_t cppr; /* guest CPPR */ member
|
D | book3s_xive_native.c | 1165 vcpu->arch.xive_saved_state.cppr, in kvmppc_xive_native_get_vp() 1233 vcpu->arch.xive_saved_state.cppr, in xive_native_debug_show()
|
D | book3s_hv.c | 4507 vcpu->arch.xive_saved_state.cppr; in xive_interrupt_pending()
|
/linux-6.12.1/arch/powerpc/sysdev/xive/ |
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 | spapr.c | 605 u8 nsr, cppr; in xive_spapr_update_pending() local 624 cppr = ack & 0xff; in xive_spapr_update_pending() 628 if (cppr == 0xff) in xive_spapr_update_pending() 631 xc->pending_prio |= 1 << cppr; in xive_spapr_update_pending() 637 if (cppr >= xc->cppr) in xive_spapr_update_pending() 639 smp_processor_id(), cppr, xc->cppr); in xive_spapr_update_pending() 642 xc->cppr = cppr; in xive_spapr_update_pending()
|
D | common.c | 204 if (prio != xc->cppr) { in xive_scan_interrupts() 206 xc->cppr = prio; in xive_scan_interrupts() 276 xmon_printf("pp=%02x CPPR=%02x ", xc->pending_prio, xc->cppr); in xmon_xive_do_dump() 1521 xc->cppr = 0xff; in xive_setup_cpu() 1613 xc->cppr = 0; in xive_smp_disable_cpu() 1620 xc->cppr = 0xff; in xive_smp_disable_cpu() 1643 xc->cppr = 0; in xive_teardown_cpu() 1735 seq_printf(m, "pp=%02x CPPR=%02x ", xc->pending_prio, xc->cppr); in xive_debug_show_ipi()
|
D | xive-internal.h | 36 u8 cppr; member
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | xics.h | 136 static inline void xics_set_base_cppr(unsigned char cppr) in xics_set_base_cppr() argument 145 os_cppr->stack[0] = cppr; in xics_set_base_cppr()
|
D | kvm_host.h | 500 u8 cppr; member
|
D | opal.h | 231 int64_t opal_int_set_cppr(uint8_t cppr);
|