mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 15:13:02 +00:00
hv_exc: Handle SYS_IMP_APL_CYC_OVRD in the fast path
m1n1 now uses this for SMP, and due to wfi FIQ leakage from the HV timer this gets spammed thousands of times per second. Handle it in the HV directly. Fixes: #107 Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
37b2fdda7c
commit
c3ba77ce16
2 changed files with 4 additions and 1 deletions
|
@ -546,7 +546,6 @@ class HV(Reloadable):
|
|||
}
|
||||
ro = {
|
||||
ACC_CFG_EL1,
|
||||
CYC_OVRD_EL1,
|
||||
ACC_OVRD_EL1,
|
||||
}
|
||||
value = 0
|
||||
|
|
|
@ -166,6 +166,10 @@ static bool hv_handle_msr(u64 *regs, u64 iss)
|
|||
SYSREG_PASS(SYS_IMP_APL_PMC7)
|
||||
SYSREG_PASS(SYS_IMP_APL_PMC8)
|
||||
SYSREG_PASS(SYS_IMP_APL_PMC9)
|
||||
/* Handle this one here because m1n1/Linux (will) use it for explicit cpuidle.
|
||||
* We can pass it through; going into deep sleep doesn't break the HV since we
|
||||
* don't do any wfis that assume otherwise in m1n1. */
|
||||
SYSREG_PASS(SYS_IMP_APL_CYC_OVRD)
|
||||
/* IPI handling */
|
||||
SYSREG_PASS(SYS_IMP_APL_IPI_RR_LOCAL_EL1)
|
||||
SYSREG_PASS(SYS_IMP_APL_IPI_RR_GLOBAL_EL1)
|
||||
|
|
Loading…
Reference in a new issue