aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorMichael Kelley <mikelley@microsoft.com>2019-11-13 01:11:49 +0000
committerThomas Gleixner <tglx@linutronix.de>2019-11-15 10:33:49 +0100
commit4df4cb9e99f83b70d54bc0e25081ac23cceafcbc (patch)
tree62c128948aeafc89b8488a8e24228b6014ad404c /tools/perf/scripts/python/netdev-times.py
parentMerge branch 'linus' into x86/hyperv (diff)
downloadlinux-4df4cb9e99f83b70d54bc0e25081ac23cceafcbc.tar.gz
linux-4df4cb9e99f83b70d54bc0e25081ac23cceafcbc.zip
x86/hyperv: Initialize clockevents earlier in CPU onlining
Hyper-V has historically initialized stimer-based clockevents late in the process of onlining a CPU because clockevents depend on stimer interrupts. In the original Hyper-V design, stimer interrupts generate a VMbus message, so the VMbus machinery must be running first, and VMbus can't be initialized until relatively late. On x86/64, LAPIC timer based clockevents are used during early initialization before VMbus and stimer-based clockevents are ready, and again during CPU offlining after the stimer clockevents have been shut down. Unfortunately, this design creates problems when offlining CPUs for hibernation or other purposes. stimer-based clockevents are shut down relatively early in the offlining process, so clockevents_unbind_device() must be used to fallback to the LAPIC-based clockevents for the remainder of the offlining process. Furthermore, the late initialization and early shutdown of stimer-based clockevents doesn't work well on ARM64 since there is no other timer like the LAPIC to fallback to. So CPU onlining and offlining doesn't work properly. Fix this by recognizing that stimer Direct Mode is the normal path for newer versions of Hyper-V on x86/64, and the only path on other architectures. With stimer Direct Mode, stimer interrupts don't require any VMbus machinery. stimer clockevents can be initialized and shut down consistent with how it is done for other clockevent devices. While the old VMbus-based stimer interrupts must still be supported for backward compatibility on x86, that mode of operation can be treated as legacy. So add a new Hyper-V stimer entry in the CPU hotplug state list, and use that new state when in Direct Mode. Update the Hyper-V clocksource driver to allocate and initialize stimer clockevents earlier during boot. Update Hyper-V initialization and the VMbus driver to use this new design. As a result, the LAPIC timer is no longer used during boot or CPU onlining/offlining and clockevents_unbind_device() is not called. But retain the old design as a legacy implementation for older versions of Hyper-V that don't support Direct Mode. Signed-off-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Dexuan Cui <decui@microsoft.com> Reviewed-by: Dexuan Cui <decui@microsoft.com> Link: https://lkml.kernel.org/r/1573607467-9456-1-git-send-email-mikelley@microsoft.com
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
an class='insertions'>+28 2024-10-09net: netconsole: fix wrong warningBreno Leitao1-1/+7 2024-10-09net: dsa: refuse cross-chip mirroring operationsVladimir Oltean1-3/+8 2024-10-09net: fec: don't save PTP state if PTP is unsupportedWei Fang1-2/+4 2024-10-09net: ibm: emac: mal: add dcr_unmap to _removeRosen Penev1-0/+2 2024-10-09net: ftgmac100: fixed not check status from fixed phyJacky Chou1-1/+6 2024-10-09selftests: netfilter: conntrack_vrf.sh: add fib test caseFlorian Westphal1-0/+33 2024-10-09netfilter: fib: check correct rtable in vrf setupsFlorian Westphal2-5/+4 2024-10-09netfilter: xtables: avoid NFPROTO_UNSPEC where neededFlorian Westphal16-165/+422 2024-10-09net: hns3/hns: Update the maintainer for the HNS3/HNS ethernet driverJijie Shao1-2/+2 2024-10-09sctp: ensure sk_state is set to CLOSED if hashing fails in sctp_listen_startXin Long1-5/+13 2024-10-09net: amd: mvme147: Fix probe banner messageDaniel Palmer1-4/+3 2024-10-09net: phy: realtek: Fix MMD access on RTL8126A-integrated PHYHeiner Kallweit1-1/+23 2024-10-09net: ti: icssg-prueth: Fix race condition for VLAN table accessMD Danish Anwar3-0/+5 2024-10-08net: ibm: emac: mal: fix wrong gotoRosen Penev1-1/+1 2024-10-08net/sched: accept TCA_STAB only for root qdiscEric Dumazet2-2/+6 2024-10-08e1000e: change I219 (19) devices to ADPVitaly Lifshits2-4/+4 2024-10-08igb: Do not bring the device up after non-fatal errorMohamed Khalfella1-0/+4 2024-10-08i40e: Fix macvlan leak by synchronizing access to mac_filter_hashAleksandr Loktionov2-0/+3 2024-10-08ice: Fix increasing MSI-X on VFMarcin Szycik3-5/+9 2024-10-08ice: Flush FDB entries before resetWojciech Drewek3-22/+8 2024-10-08ice: Fix netif_is_ice() in Safe ModeMarcin Szycik1-1/+2 2024-10-08ice: Fix entering Safe ModeMarcin Szycik1-3/+1 2024-10-08selftests: make kselftest-clean remove libynl outputsGreg Thelen1-0/+4