Skip to content

x86/entry: Rework leftovers (was part V)

Thomas Gleixner lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/entry branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v9 Latest39 patches 53 repliesApplied

Patches in v9 Applied

#Subject and filesSizeRepliesApplied
1/39nmi, tracing: Make hardware latency tracing noinstr safeinclude/linux/hardirq.h+6 -20 replies
2/39rcu: Abstract out rcu_irq_enter_check_tick() from rcu_nmi_enter()include/linux/hardirq.h kernel/rcu/tree.c+71 -204 replies
3/39rcu: Provide rcu_irq_exit_check_preempt()include/linux/rcutiny.h include/linux/rcutree.h kernel/rcu/tree.c+25 -00 replies
4/39x86/entry: Provide idtentry_entry/exit_cond_rcu()arch/x86/entry/common.c arch/x86/include/asm/idtentry.h+77 -213 replies
5/39x86/entry: Provide idtentry_enter/exit_user()arch/x86/entry/common.c arch/x86/include/asm/idtentry.h+34 -00 replies
6/39x86/idtentry: Switch to conditional RCU handlingarch/x86/include/asm/idtentry.h arch/x86/kernel/cpu/mce/core.c arch/x86/kernel/traps.c+13 -110 replies
7/39x86/entry: Cleanup idtentry_enter/exit() leftoversarch/x86/entry/common.c arch/x86/include/asm/idtentry.h+30 -490 replies
8/39genirq: Provide irq_enter/exit_rcu()include/linux/hardirq.h kernel/softirq.c+38 -100 replies
9/39genirq: Provide __irq_enter/exit_raw()include/linux/hardirq.h+20 -00 replies
10/39x86/entry: Provide helpers for execute on irqstackarch/x86/entry/entry_64.S arch/x86/include/asm/irq_stack.h+92 -016 replies
11/39x86/entry/64: Move do_softirq_own_stack() to Carch/x86/entry/entry_64.S arch/x86/kernel/irq_64.c+6 -130 replies
12/39x86/entry: Split out idtentry_exit_cond_resched()arch/x86/entry/common.c+15 -150 replies
13/39x86/entry: Switch XEN/PV hypercall entry to IDTENTRYarch/x86/entry/common.c arch/x86/entry/entry_32.S arch/x86/entry/entry_64.S +8 more+115 -750 replies
13/39x86/entry: Switch XEN/PV hypercall entry to IDTENTRYarch/x86/entry/common.c arch/x86/entry/entry_32.S arch/x86/entry/entry_64.S +8 more+116 -751 reply
14/39x86/entry/64: Simplify idtentry_bodyarch/x86/entry/entry_64.S+0 -20 replies
15/39x86/entry: Switch page fault exception to IDTENTRY_RAWarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h +6 more+63 -920 replies
16/39x86/entry: Remove the transition leftoversarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h+8 -270 replies
17/39x86/entry: Change exit path of xen_failsafe_callbackarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S+2 -20 replies
18/39x86/entry/64: Remove error_exitarch/x86/entry/entry_64.S+0 -90 replies
19/39x86/entry/32: Remove common_exceptionarch/x86/entry/entry_32.S+0 -210 replies
20/39x86/irq: Use generic irq_regs implementationarch/x86/include/asm/irq_regs.h arch/x86/kernel/irq.c+0 -353 replies
21/39x86/irq: Convey vector as argument and not in ptregsarch/x86/entry/calling.h arch/x86/entry/entry_32.S arch/x86/entry/entry_64.S +8 more+99 -788 replies
22/39x86/irq: Rework handle_irq() for 64bitarch/x86/include/asm/irq.h arch/x86/kernel/irq.c arch/x86/kernel/irq_32.c+12 -30 replies
23/39x86/entry: Add IRQENTRY_IRQ macroarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h+76 -00 replies
24/39x86/entry: Use idtentry for interruptsarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/hw_irq.h +5 more+28 -990 replies
25/39x86/entry: Provide IDTENTRY_SYSVECarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h+91 -00 replies
26/39x86/entry: Convert APIC interrupts to IDTENTRY_SYSVECarch/x86/entry/entry_64.S arch/x86/include/asm/entry_arch.h arch/x86/include/asm/hw_irq.h +6 more+19 -440 replies
27/39x86/entry: Convert SMP system vectors to IDTENTRY_SYSVECarch/x86/entry/entry_64.S arch/x86/include/asm/entry_arch.h arch/x86/include/asm/hw_irq.h +5 more+21 -370 replies
28/39x86/entry: Convert various system vectorsarch/x86/entry/entry_64.S arch/x86/include/asm/apic.h arch/x86/include/asm/entry_arch.h +11 more+48 -1020 replies
29/39x86/entry: Convert KVM vectors to IDTENTRY_SYSVEC*arch/x86/entry/entry_64.S arch/x86/include/asm/entry_arch.h arch/x86/include/asm/hw_irq.h +4 more+15 -420 replies
30/39x86/entry: Convert various hypervisor vectors to IDTENTRY_SYSVECarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/hyperv/hv_init.c +6 more+27 -986 replies
31/39x86/entry: Convert XEN hypercall vector to IDTENTRY_SYSVECarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h +3 more+18 -210 replies
32/39x86/entry: Convert reschedule interrupt to IDTENTRY_SYSVEC_SIMPLEarch/x86/entry/entry_64.S arch/x86/include/asm/entry_arch.h arch/x86/include/asm/hw_irq.h +6 more+7 -630 replies
33/39x86/entry: Remove the apic/BUILD interrupt leftoversarch/x86/entry/calling.h arch/x86/entry/entry_32.S arch/x86/entry/entry_64.S +2 more+4 -1960 replies
34/39x86/entry/64: Remove IRQ stack switching ASMarch/x86/entry/entry_64.S+0 -960 replies
35/39x86/entry: Make enter_from_user_mode() staticarch/x86/entry/common.c+1 -10 replies
36/39x86/entry/32: Remove redundant irq disable codearch/x86/entry/entry_32.S+0 -760 replies
37/39x86/entry/64: Remove TRACE_IRQS_*_DEBUGarch/x86/entry/entry_64.S+3 -450 replies
38/39x86/entry: Move paranoid irq tracing out of ASM codearch/x86/entry/entry_64.S arch/x86/kernel/cpu/mce/core.c arch/x86/kernel/nmi.c +1 more+17 -130 replies
39/39x86/entry: Remove the TRACE_IRQS cruftarch/x86/entry/entry_64.S arch/x86/entry/thunk_64.S arch/x86/include/asm/irqflags.h+1 -310 replies

Reviews trailers per patch

26 of 40 patches have a Reviewed-by or Acked-by.

PatchAndy LutomirskiPaolo BonziniSteven Rostedt (VMware)Juergen GrossWei LiuBoqun Feng
1/39
2/39
3/39
4/39
5/39
6/39
7/39
8/39R-b
9/39R-b
10/39
11/39
12/39
13/39A-b T-b
13/39A-b T-b
14/39A-b
15/39A-b
16/39A-b
17/39A-b
18/39A-b
19/39A-b
20/39
21/39Originally-by A-b
22/39
23/39A-b
24/39A-b
25/39A-b
26/39A-b
27/39A-b
28/39A-b
29/39A-b A-b
30/39A-b R-b T-b
31/39A-b
32/39
33/39A-b
34/39A-b
35/39A-b
36/39A-b
37/39A-b R-b
38/39
39/39A-b

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

Read the v9 thread

Cover letter [patch V9 00/39] x86/entry: Rework leftovers (was part V)

Folks!

This is V9 of the rework series. V7 and V8 were never posted but I used the version numbers for tags while fixing up 0day complaints. The last posted version was V6 which can be found here:

https://lore.kernel.org/r/[email protected]

The V9 leftover series is based on:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/entry

That branch contains the merged part 1-4 of the original 5 part series.

V9 has the following changes vs. V6:

- Rebase on tip x86/entry

- Simplified the hardware latency detector changes by moving the invocation to the right place in nmi_enter/exit() and annotate it.

- Reworked the conditional RCU handling so it is now used unconditionally everywhere. That simplified the idtentry_enter/exit code significantly and also allowed to simplify the XEN hypercall voluntary preemption handling.

- Moved the run on irq stack logic into an inline to avoid having the same conditionals all over the place and fixed up the relevant places.

- Picked up Acked-by and Reviewed-by tags where appropriate.

The full series is available from:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git entry-v9-the-rest

If we agree on the RCU changes, then these will be applied into the core/rcu branch first so Paul can pick them up to avoid the next conflict horrors.

Thanks,

tglx