x86/apic: Decrapification and static calls
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest60 patches 11 repliesIn review
- v258 patches 21 repliesApplied
- v158 patches 31 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/60 | x86/cpu: Make identify_boot_cpu() staticarch/ arch/ | +1 | 0 replies | |
| 2/60 | x86/cpu: Remove unused physid_*() nonsensearch/ | +0 | 0 replies | |
| 3/60 | x86/apic: Rename disable_apicarch/ arch/ arch/ +4 more | +20 | 0 replies | |
| 4/60 | x86/apic/ioapic: Rename skip_ioapic_setuparch/ arch/ arch/ +2 more | +18 | 0 replies | |
| 5/60 | x86/apic: Remove pointless x86_bios_cpu_apicidarch/ arch/ arch/ +4 more | +4 | 0 replies | |
| 6/60 | x86/apic: Get rid of hard_smp_processor_id()arch/ arch/ arch/ +7 more | +17 | 0 replies | |
| 7/60 | x86/apic: Remove unused max_physical_apicidarch/ | +0 | 0 replies | |
| 8/60 | x86/apic: Nuke unused apic::inquire_remote_apic()arch/ arch/ arch/ +8 more | +0 | 0 replies | |
| 9/60 | x86/apic: Get rid of boot_cpu_physical_apicid madnessarch/ arch/ arch/ | +34 | 0 replies | |
| 10/60 | x86/apic: Register boot CPU APIC earlyarch/ | +50 | 0 replies | |
| 11/60 | x86/apic: Remove the pointless APIC version checkarch/ arch/ arch/ +4 more | +13 | 0 replies | |
| 12/60 | x86/of: Fix the APIC address registrationarch/ | +5 | 2 replies | |
| 13/60 | x86/apic: Make some APIC init functions boolarch/ arch/ arch/ | +22 | 0 replies | |
| 14/60 | x86/apic: Split register_apic_address()arch/ | +14 | 0 replies | |
| 15/60 | x86/apic: Sanitize APIC address setuparch/ arch/ arch/ | +12 | 0 replies | |
| 16/60 | x86/xen/pv: Pretend that it found SMP configurationarch/ | +2 | 0 replies | |
| 17/60 | x86/apic: Sanitize num_processors handlingarch/ arch/ | +6 | 0 replies | |
| 18/60 | x86/apic: Nuke another processor checkarch/ | +0 | 0 replies | |
| 19/60 | x86/apic: Remove check_phys_apicid_present()arch/ arch/ arch/ +8 more | +0 | 0 replies | |
| 20/60 | x86/apic: Get rid of apic_physarch/ | +10 | 0 replies | |
| 21/60 | x86/apic/32: Sanitize logical APIC ID handlingarch/ arch/ arch/ +2 more | +2 | 0 replies | |
| 22/60 | x86/apic/32: Remove x86_cpu_to_logical_apicidarch/ arch/ arch/ +1 more | +9 | 0 replies | |
| 23/60 | x86/apic/ipi: Code cleanuparch/ | +7 | 0 replies | |
| 24/60 | x86/apic: Mop up early_per_cpu() abusearch/ | +1 | 0 replies | |
| 25/60 | x86/apic/32: Remove pointless default_acpi_madt_oem_check()arch/ arch/ arch/ | +3 | 0 replies | |
| 26/60 | x86/apic/32: Decrapify the def_bigsmp mechanismarch/ arch/ arch/ +4 more | +41 | 2 replies | |
| 27/60 | x86/apic/32: Remove bigsmp_cpu_present_to_apicid()arch/ | +1 | 0 replies | |
| 28/60 | x86/apic: Nuke empty init_apic_ldr() callbacksarch/ arch/ arch/ +9 more | +24 | 0 replies | |
| 29/60 | x86/apic: Nuke apic::apicid_to_cpu_present()arch/ arch/ arch/ +8 more | +5 | 0 replies | |
| 30/60 | x86/ioapic/32: Decrapify phys_id_present_map operationarch/ | +1 | 0 replies | |
| 31/60 | x86/apic: Mop up *setup_apic_routing()arch/ arch/ arch/ +11 more | +13 | 0 replies | |
| 32/60 | x86/apic: Mop up apic::apic_id_registered()arch/ arch/ arch/ +10 more | +12 | 0 replies | |
| 33/60 | x86/apic/ipi: Tidy up the code and fixup commentsarch/ arch/ | +32 | 0 replies | |
| 34/60 | x86/apic: Consolidate wait_icr_idle() implementationsarch/ arch/ arch/ +4 more | +9 | 0 replies | |
| 35/60 | x86/apic: Allow apic::wait_icr_idle() to be NULLarch/ arch/ arch/ +4 more | +2 | 0 replies | |
| 36/60 | x86/apic: Allow apic::safe_wait_icr_idle() to be NULLarch/ arch/ arch/ +4 more | +1 | 0 replies | |
| 37/60 | x86/apic: Move safe wait_icr_idle() next to apic_mem_wait_icr_idle()arch/ arch/ arch/ +4 more | +22 | 0 replies | |
| 38/60 | x86/apic/uv: Get rid of wrapper callbacksarch/ | +1 | 0 replies | |
| 39/60 | x86/apic/x2apic: Share all common IPI functionsarch/ arch/ arch/ +1 more | +28 | 0 replies | |
| 40/60 | x86/apic/64: Uncopypaste probingarch/ | +11 | 0 replies | |
| 41/60 | x86/apic: Wrap APIC ID validation into an inlinearch/ arch/ arch/ +2 more | +11 | 0 replies | |
| 42/60 | x86/apic: Add max_apic_id memberarch/ arch/ arch/ +7 more | +14 | 0 replies | |
| 43/60 | x86/apic: Simplify X2APIC ID validationarch/ | +2 | 0 replies | |
| 44/60 | x86/apic: Prepare x2APIC for using apic::max_apic_idarch/ arch/ arch/ +2 more | +14 | 0 replies | |
| 45/60 | x86/apic: Sanitize APID ID range validationarch/ arch/ arch/ +9 more | +1 | 3 replies | |
| 46/60 | x86/apic: Remove pointless NULL initializationsarch/ arch/ arch/ +3 more | +0 | 0 replies | |
| 47/60 | x86/apic/noop: Tidy up the codearch/ | +8 | 0 replies | |
| 48/60 | x86/apic: Remove pointless arguments from [native_]eoi_write()arch/ arch/ arch/ +10 more | +38 | 0 replies | |
| 49/60 | x86/apic: Nuke ack_APIC_irq()arch/ arch/ arch/ +11 more | +29 | 0 replies | |
| 50/60 | x86/apic: Wrap apic->native_eoi() into a helperarch/ arch/ | +7 | 0 replies | |
| 51/60 | x86/apic: Provide common init infrastructurearch/ arch/ arch/ +6 more | +59 | 1 reply | |
| 52/60 | x86/xen/apic: Use standard apic driver mechanism for Xen PVarch/ arch/ | +1 | 0 replies | |
| 53/60 | x86/apic: Provide apic_update_callback()arch/ arch/ arch/ | +68 | 0 replies | |
| 54/60 | x86/apic: Replace acpi_wake_cpu_handler_update() and apic_set_eoi_cb()arch/ arch/ arch/ +3 more | +5 | 0 replies | |
| 55/60 | x86/apic: Convert other overrides to apic_update_callback()arch/ arch/ arch/ | +15 | 0 replies | |
| 56/60 | x86/xen/apic: Mark apic __ro_after_initarch/ | +13 | 0 replies | |
| 57/60 | x86/apic: Mark all hotpath APIC callback wrappers __always_inlinearch/ | +9 | 0 replies | |
| 58/60 | x86/apic: Wrap IPI calls into helper functionsarch/ arch/ arch/ +10 more | +53 | 0 replies | |
| 59/60 | x86/apic: Provide static call infrastructure for APIC callbacksarch/ arch/ | +74 | 0 replies | |
| 60/60 | x86/apic: Turn on static callsarch/ | +13 | 0 replies |
Reviews trailers per patch
58 of 60 patches have a Reviewed-by or Acked-by.
| Patch | Peter Zijlstra (Intel) | Wei Liu | Juergen Gross | Sohil Mehta | Michael Kelley |
|---|---|---|---|---|---|
| Series | T-b | T-b | T-b | ||
| 1/60 | A-b | ||||
| 2/60 | A-b | ||||
| 3/60 | A-b | ||||
| 4/60 | A-b | ||||
| 5/60 | A-b | ||||
| 6/60 | A-b | ||||
| 7/60 | A-b | ||||
| 8/60 | A-b | ||||
| 9/60 | A-b | ||||
| 10/60 | A-b | ||||
| 11/60 | A-b | ||||
| 12/60 | A-b | ||||
| 13/60 | A-b | ||||
| 14/60 | A-b | ||||
| 15/60 | A-b | ||||
| 16/60 | |||||
| 17/60 | A-b | ||||
| 18/60 | A-b | ||||
| 19/60 | A-b | ||||
| 20/60 | A-b | ||||
| 21/60 | A-b | ||||
| 22/60 | A-b | ||||
| 23/60 | A-b | ||||
| 24/60 | A-b | ||||
| 25/60 | A-b | ||||
| 26/60 | A-b | ||||
| 27/60 | A-b | ||||
| 28/60 | A-b | ||||
| 29/60 | A-b | ||||
| 30/60 | A-b | ||||
| 31/60 | A-b | ||||
| 32/60 | A-b | ||||
| 33/60 | A-b | ||||
| 34/60 | A-b | ||||
| 35/60 | A-b | ||||
| 36/60 | A-b | ||||
| 37/60 | A-b | ||||
| 38/60 | A-b | ||||
| 39/60 | A-b | ||||
| 40/60 | A-b | ||||
| 41/60 | A-b | ||||
| 42/60 | A-b | ||||
| 43/60 | A-b | ||||
| 44/60 | A-b | ||||
| 45/60 | A-b | ||||
| 46/60 | A-b | ||||
| 47/60 | A-b | ||||
| 48/60 | A-b | R-b | |||
| 49/60 | A-b | R-b | |||
| 50/60 | A-b | ||||
| 51/60 | A-b | ||||
| 52/60 | |||||
| 53/60 | A-b | ||||
| 54/60 | A-b | R-b | |||
| 55/60 | A-b | ||||
| 56/60 | A-b | ||||
| 57/60 | A-b | ||||
| 58/60 | A-b | ||||
| 59/60 | A-b | ||||
| 60/60 | A-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 5 reviewers.
Cover letter [patch V3 00/60] x86/apic: Decrapification and static calls
Hi!
This is the follow up to:
https://lore.kernel.org/lkml/[email protected]
which addresses the XEN PV fallout decoded by Juergen.
TLDR: This cleans up accrued and partially unused gunk in order to convert the APIC callbacks to static calls.
The changes vs. V2:
- Unbreak XEN/PV - Juergen
Resulting delta patch below.
- Rebased to 6.5-rc4 in preparation for the CPUID overhaul on top, which has some collisions due to the recent mitigation muck.
The series is also available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git apic-static-call-v3
Thanks,
tglx
---
arch/x86/xen/apic.c +1 -12
@@ -155,20 +155,9 @@ static struct apic xen_pv_apic __ro_after_init = { .icr_read = xen_apic_icr_read, .icr_write = xen_apic_icr_write, }; - -static void __init xen_apic_check (void ) -{ -apic_install_driver (&xen_pv_apic); -} +apic_driver (xen_pv_apic);void __init xen_init_apic (void ) { x86_apic_ops.io_apic_read = xen_io_apic_read; -/* On PV guests the APIC CPUID bit is disabled so none of the -* routines end up executing. */ -if (!xen_initial_domain ()) -apic_install_driver (&xen_pv_apic); - - x86_platform.apic_post_init = xen_apic_check; } -apic_driver (xen_pv_apic);
arch/x86/xen/enlighten_pv.c +1 -3
@@ -1326,7 +1326,7 @@ asmlinkage __visible void __init xen_start_kernel(struct start_info *si) x86_init.resources.memory_setup = xen_memory_setup; x86_init.irqs.intr_mode_select = x86_init_noop; - x86_init.irqs.intr_mode_init = x86_init_noop; + x86_init.irqs.intr_mode_init = x86_64_probe_apic; x86_init.oem.arch_setup = xen_arch_setup; x86_init.oem.banner = xen_banner; x86_init.hyper.init_platform = xen_pv_init_platform;
@@ -1366,12 +1366,10 @@ asmlinkage __visible void __init xen_start_kernel(struct start_info *si)xen_init_capabilities (); -#ifdef CONFIG_X86_LOCAL_APIC /* * set up the basic apic ops. */ xen_init_apic (); -#endif machine_ops = xen_machine_ops;
arch/x86/xen/smp_pv.c +2 -1
@@ -182,7 +182,8 @@ static void __init _get_smp_config(unsigned int early)if (subtract)set_nr_cpu_ids (nr_cpu_ids - subtract);#endif - +/* Pretend to be a proper enumerated system */ + smp_found_config =1 ; }static void __init xen_pv_smp_prepare_boot_cpu (void )