Re: [PATCH v3 00/11] Add a percpu subsection for cache hot data

From: Uros Bizjak
Date: Mon Mar 03 2025 - 14:53:43 EST


On Mon, Mar 3, 2025 at 5:53 PM Brian Gerst <brgerst@xxxxxxxxx> wrote:
>
> Add a new percpu subsection for data that is frequently accessed and
> exclusive to each processor. This replaces the pcpu_hot struct on x86,
> and is available to all architectures and the core kernel.
>
> ffffffff834f5000 D __per_cpu_hot_start
> ffffffff834f5000 D hardirq_stack_ptr
> ffffffff834f5008 D __ref_stack_chk_guard
> ffffffff834f5008 D __stack_chk_guard
> ffffffff834f5010 D const_cpu_current_top_of_stack
> ffffffff834f5010 D cpu_current_top_of_stack
> ffffffff834f5018 D const_current_task
> ffffffff834f5018 D current_task
> ffffffff834f5020 D __x86_call_depth
> ffffffff834f5028 D this_cpu_off
> ffffffff834f5030 D __preempt_count
> ffffffff834f5034 D cpu_number
> ffffffff834f5038 D __softirq_pending
> ffffffff834f503a D hardirq_stack_inuse
> ffffffff834f503b D __per_cpu_hot_pad
> ffffffff834f5040 D __per_cpu_hot_end
>
> This applies to the tip/x86/asm branch.
>
> Changes in v3:
> - Fix typo of CACHE_HOT_DATA()
> - Move hardirq_stack_inuse to irq_64.c
> - Add __per_cpu_hot_pad to show the end of the actual data
>
> Brian Gerst (11):
> percpu: Introduce percpu hot section
> x86/percpu: Move pcpu_hot to percpu hot section
> x86/preempt: Move preempt count to percpu hot section
> x86/smp: Move cpu number to percpu hot section
> x86/retbleed: Move call depth to percpu hot section
> x86/softirq: Move softirq_pending to percpu hot section
> x86/irq: Move irq stacks to percpu hot section
> x86/percpu: Move top_of_stack to percpu hot section
> x86/percpu: Move current_task to percpu hot section
> x86/stackprotector: Move __stack_chk_guard to percpu hot section
> x86/smp: Move this_cpu_off to percpu hot section

For the series:

Acked-by: Uros Bizjak <ubizjak@xxxxxxxxx>

Uros.