Skip to content

tip queue 2015-06-25 (rdtsc cleanup)

Borislav Petkov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19x86/tsc: Inline native_read_tsc() and remove __native_read_tsc()arch/x86/entry/vdso/vclock_gettime.c arch/x86/include/asm/msr.h arch/x86/include/asm/pvclock.h +4 more+9 -170 replies
2/19x86/msr, kvm: Remove vget_cycles()arch/x86/include/asm/tsc.h arch/x86/kvm/x86.c+1 -140 replies
3/19x86/kernel/paravirt: Remove read_tsc() and read_tscp() paravirt hooksarch/x86/include/asm/msr.h arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_types.h +3 more+8 -510 replies
4/19x86/tsc: Replace rdtscll() with native_read_tsc()arch/x86/boot/compressed/aslr.c arch/x86/include/asm/msr.h arch/x86/include/asm/tsc.h +11 more+22 -280 replies
5/19x86/tsc: Remove the rdtscp() and rdtscpll() macrosarch/x86/include/asm/msr.h+0 -90 replies
6/19x86/tsc: Use the full 64-bit TSC in delay_tsc()arch/x86/lib/delay.c+4 -40 replies
7/19x86/cpu/amd: Use the full 64-bit TSC to detect the 2.6.2 bugarch/x86/kernel/cpu/amd.c+3 -30 replies
8/19drivers/net/hamradio/baycom_epp: Replace rdtscl() with native_read_tsc()drivers/net/hamradio/baycom_epp.c+1 -10 replies
9/19staging/lirc_serial: Remove TSC-based timingdrivers/staging/media/lirc/lirc_serial.c+4 -590 replies
10/19input/joystick/analog: Switch from rdtscl() to native_read_tsc()drivers/input/joystick/analog.c+2 -20 replies
11/19drivers/input/gameport: Replace rdtscl() with native_read_tsc()drivers/input/gameport/gameport.c+2 -20 replies
12/19x86/asm: Remove rdtscl()arch/x86/include/asm/msr.h+0 -30 replies
13/19x86: Rename native_read_tsc() to rdtsc()arch/x86/boot/compressed/aslr.c arch/x86/entry/vdso/vclock_gettime.c arch/x86/include/asm/msr.h +21 more+58 -490 replies
14/19x86: Add rdtsc_ordered() and use it in trivial call sitesarch/x86/entry/vdso/vclock_gettime.c arch/x86/include/asm/msr.h arch/x86/kernel/trace_clock.c +2 more+34 -400 replies
15/19x86/tsc_sync: Use rdtsc_ordered() in check_tsc_warp() and drop extra barriersarch/x86/kernel/tsc_sync.c+6 -80 replies
16/19x86/tsc: Use rdtsc_ordered() in read_tsc() instead of get_cycles()arch/x86/kernel/tsc.c+1 -10 replies
17/19x86/kvm/tsc: Drop extra barrier and use rdtsc_ordered() in kvmclockarch/x86/include/asm/pvclock.h+1 -90 replies
18/19x86/asm: Remove rdtsc_barrier()arch/x86/include/asm/barrier.h arch/x86/um/asm/barrier.h+0 -240 replies
19/19x86/asm: Save an instruction in DECLARE_ARGS usersarch/x86/include/asm/msr.h+3 -40 replies

Reviews trailers per patch

4 of 19 patches have a Reviewed-by or Acked-by.

PatchPaolo BonziniDmitry TorokhovThomas SailerWalter Harms
1/19
2/19A-b
3/19
4/19
5/19
6/19
7/19
8/19A-b A-b
9/19
10/19A-b
11/19A-b
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/19] tip queue 2015-06-25 (rdtsc cleanup)

From: Borislav Petkov <[email protected]>

Hi,

here's the RDTSC cleanup series from Andy + one from George. I've collected and tested them ontop of 407a2c720556.

Later pm+acpi pull request will introduce a stray native_read_tsc(), see
https://lkml.kernel.org/r/[email protected]

Andy Lutomirski (18):
x86/tsc: Inline native_read_tsc() and remove __native_read_tsc() x86/msr, kvm: Remove vget_cycles()
x86/kernel/paravirt: Remove read_tsc() and read_tscp() paravirt hooks x86/tsc: Replace rdtscll() with native_read_tsc()
x86/tsc: Remove the rdtscp() and rdtscpll() macros x86/tsc: Use the full 64-bit TSC in delay_tsc() x86/cpu/amd: Use the full 64-bit TSC to detect the 2.6.2 bug drivers/net/hamradio/baycom_epp: Replace rdtscl() with
native_read_tsc()
staging/lirc_serial: Remove TSC-based timing input/joystick/analog: Switch from rdtscl() to native_read_tsc() drivers/input/gameport: Replace rdtscl() with native_read_tsc() x86/asm: Remove rdtscl()
x86: Rename native_read_tsc() to rdtsc()
x86: Add rdtsc_ordered() and use it in trivial call sites x86/tsc_sync: Use rdtsc_ordered() in check_tsc_warp() and drop extra
barriers
x86/tsc: Use rdtsc_ordered() in read_tsc() instead of get_cycles() x86/kvm/tsc: Drop extra barrier and use rdtsc_ordered() in kvmclock x86/asm: Remove rdtsc_barrier()

George Spelvin (1):
x86/asm: Save an instruction in DECLARE_ARGS users

 arch/x86/boot/compressed/aslr.c                    |  2 +-
 arch/x86/entry/vdso/vclock_gettime.c               | 16 +-----
 arch/x86/include/asm/barrier.h                     | 11 ----
 arch/x86/include/asm/msr.h                         | 61 +++++++++++++--------
 arch/x86/include/asm/paravirt.h                    | 34 ------------
 arch/x86/include/asm/paravirt_types.h              |  2 -
 arch/x86/include/asm/pvclock.h                     | 10 +---
 arch/x86/include/asm/stackprotector.h              |  2 +-
 arch/x86/include/asm/tsc.h                         | 18 +------
 arch/x86/kernel/apb_timer.c                        |  8 +--
 arch/x86/kernel/apic/apic.c                        |  8 +--
 arch/x86/kernel/cpu/amd.c                          |  6 +--
 arch/x86/kernel/cpu/mcheck/mce.c                   |  4 +-
 arch/x86/kernel/espfix_64.c                        |  2 +-
 arch/x86/kernel/hpet.c                             |  4 +-
 arch/x86/kernel/paravirt.c                         |  2 -
 arch/x86/kernel/paravirt_patch_32.c                |  2 -
 arch/x86/kernel/trace_clock.c                      |  7 +--
 arch/x86/kernel/tsc.c                              | 12 ++---
 arch/x86/kernel/tsc_sync.c                         | 14 +++--
 arch/x86/kvm/lapic.c                               |  4 +-
 arch/x86/kvm/svm.c                                 |  4 +-
 arch/x86/kvm/vmx.c                                 |  4 +-
 arch/x86/kvm/x86.c                                 | 26 +++------
 arch/x86/lib/delay.c                               | 13 ++---
 arch/x86/um/asm/barrier.h                          | 13 -----
 arch/x86/xen/enlighten.c                           |  3 --
 drivers/input/gameport/gameport.c                  |  4 +-
 drivers/input/joystick/analog.c                    |  4 +-
 drivers/net/hamradio/baycom_epp.c                  |  2 +-
 drivers/staging/media/lirc/lirc_serial.c           | 63 ++--------------------
 drivers/thermal/intel_powerclamp.c                 |  4 +-
 .../power/cpupower/debug/kernel/cpufreq-test_tsc.c |  4 +-
 33 files changed, 102 insertions(+), 271 deletions(-)
Signature · 1 line
2.3.5