mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 13:18:46 +07:00
01b0f0eae0
When offlining a CPU, powerpc/64s does not flush TLBs, rather it just
leaves the CPU set in mm_cpumasks, so it continues to receive TLBIEs
to manage its TLBs.
However the exit_flush_lazy_tlbs() function expects that after
returning, all CPUs (except self) have flushed TLBs for that mm, in
which case TLBIEL can be used for this flush. This breaks for offline
CPUs because they don't get the IPI to flush their TLB. This can lead
to stale translations.
Fix this by clearing the CPU from mm_cpumasks, then flushing all TLBs
before going offline.
These offlined CPU bits stuck in the cpumask also prevents the cpumask
from being trimmed back to local mode, which means continual broadcast
IPIs or TLBIEs are needed for TLB flushing. This patch prevents that
situation too.
A cast of many were involved in working this out, but in particular
Milton, Aneesh, Paul made key discoveries.
Fixes:
|
||
---|---|---|
.. | ||
hash_4k.c | ||
hash_64k.c | ||
hash_hugepage.c | ||
hash_hugetlbpage.c | ||
hash_native.c | ||
hash_pgtable.c | ||
hash_tlb.c | ||
hash_utils.c | ||
internal.h | ||
iommu_api.c | ||
Makefile | ||
mmu_context.c | ||
pgtable.c | ||
pkeys.c | ||
radix_hugetlbpage.c | ||
radix_pgtable.c | ||
radix_tlb.c | ||
slb.c | ||
subpage_prot.c |