linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Enable haltpoll for arm64
@ 2023-08-09 11:39 Mihai Carabas
  2023-08-09 11:39 ` [PATCH 1/7] cpuidle-haltpoll: Make boot_option_idle_override check X86 specific Mihai Carabas
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Mihai Carabas @ 2023-08-09 11:39 UTC (permalink / raw)
  Cc: Mihai Carabas, Catalin Marinas, Will Deacon, Thomas Gleixner,
	Ingo Molnar, Borislav Petkov, Dave Hansen, x86, H. Peter Anvin,
	Paolo Bonzini, Wanpeng Li, Vitaly Kuznetsov, Rafael J. Wysocki,
	Daniel Lezcano, Andrew Morton, Kees Cook, Peter Zijlstra,
	Petr Mladek, Ard Biesheuvel, Sami Tolvanen, Nicholas Piggin,
	Juerg Haefliger, Mickaël Salaün, Joao Martins,
	Arnd Bergmann, Ankur Arora, linux-kernel, linux-arm-kernel, kvm,
	linux-pm

This patchset enables the usage of haltpoll governer on arm64. This is
specifically interesting for KVM guests.

Here are some benchmarks without/with haltpoll for a KVM guest:

a) without haltpoll:
perf bench sched pipe
# Running 'sched/pipe' benchmark:
# Executed 1000000 pipe operations between two processes

     Total time: 8.410 [sec]

       8.410882 usecs/op
         118893 ops/sec

b) with haltpoll:
perf bench sched pipe
# Running 'sched/pipe' benchmark:
# Executed 1000000 pipe operations between two processes
     Total time: 5.183 [sec]
       5.183491 usecs/op
         192920 ops/sec

Joao Martins (7):
  cpuidle-haltpoll: Make boot_option_idle_override check X86 specific
  x86: Move ARCH_HAS_CPU_RELAX to arch
  x86/kvm: Move haltpoll_want() to be arch defined
  governors/haltpoll: Drop kvm_para_available() check
  arm64: Select ARCH_HAS_CPU_RELAX
  arm64: Define TIF_POLLING_NRFLAG
  cpuidle-haltpoll: ARM64 support

 arch/Kconfig                            | 3 +++
 arch/arm64/Kconfig                      | 1 +
 arch/arm64/include/asm/thread_info.h    | 6 ++++++
 arch/x86/Kconfig                        | 1 +
 arch/x86/include/asm/cpuidle_haltpoll.h | 1 +
 arch/x86/kernel/kvm.c                   | 6 ++++++
 drivers/cpuidle/Kconfig                 | 4 ++--
 drivers/cpuidle/cpuidle-haltpoll.c      | 6 ++++--
 drivers/cpuidle/governors/haltpoll.c    | 5 +----
 include/linux/cpuidle_haltpoll.h        | 5 +++++
 10 files changed, 30 insertions(+), 8 deletions(-)

-- 
1.8.3.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-08-29 14:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 11:39 [PATCH] Enable haltpoll for arm64 Mihai Carabas
2023-08-09 11:39 ` [PATCH 1/7] cpuidle-haltpoll: Make boot_option_idle_override check X86 specific Mihai Carabas
2023-08-10 19:22   ` Rafael J. Wysocki
2023-08-09 11:39 ` [PATCH 2/7] x86: Move ARCH_HAS_CPU_RELAX to arch Mihai Carabas
2023-08-09 11:39 ` [PATCH 3/7] x86/kvm: Move haltpoll_want() to be arch defined Mihai Carabas
2023-08-09 11:39 ` [PATCH 4/7] governors/haltpoll: Drop kvm_para_available() check Mihai Carabas
2023-08-10 19:25   ` Rafael J. Wysocki
2023-08-09 11:39 ` [PATCH 5/7] arm64: Select ARCH_HAS_CPU_RELAX Mihai Carabas
2023-08-09 13:49   ` Peter Zijlstra
2023-08-29 14:49     ` Russell King (Oracle)
2023-08-09 11:39 ` [PATCH 6/7] arm64: Define TIF_POLLING_NRFLAG Mihai Carabas
2023-08-09 11:39 ` [PATCH 7/7] cpuidle-haltpoll: ARM64 support Mihai Carabas
2023-08-09 13:48 ` [PATCH] Enable haltpoll for arm64 Peter Zijlstra
2023-08-29 14:31   ` Mihai Carabas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).