Skip to content

x86/fpu: Fix FPU context sizing boot regression, introduce dynamic task_struct

Ingo Molnar lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/fpu, fork: Dynamically allocate 'struct fpu'arch/x86/include/asm/fpu/types.h arch/x86/include/asm/processor.h arch/x86/kernel/fpu/init.c +4 more+104 -433 replies
2/2x86/fpu, sched: Introduce CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT and use it on x86arch/Kconfig arch/x86/Kconfig arch/x86/kernel/fpu/init.c +4 more+27 -181 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] x86/fpu: Fix FPU context sizing boot regression, introduce dynamic task_struct

This series builds on top of Dave Hansen's initial patch that introduced dynamic task_struct sizing.

The second patch improves the dynamic allocation to not impact non-x86 architectures, and to make it a bit faster on x86.

( I kept the structure layout build checks in x86 code for the time being,
because some of the cross-builds failed with the generic check and I didn't want to introduce a bigger cross section for any failures. And it's not like we'll apply generic sched.h changes without testing x86. )

Thanks,

Ingo

==========================>

Dave Hansen (1):
x86/fpu, fork: Dynamically allocate 'struct fpu'

Ingo Molnar (1):
x86/fpu, sched: Introduce CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT and
use it on x86

 arch/Kconfig                     |  4 ++++
 arch/x86/Kconfig                 |  1 +
 arch/x86/include/asm/fpu/types.h | 72 ++++++++++++++++++++++++++++++++----------------------------
 arch/x86/include/asm/processor.h | 10 ++++++---
 arch/x86/kernel/fpu/init.c       | 40 +++++++++++++++++++++++++++++++++
 arch/x86/kernel/process.c        |  2 +-
 fs/proc/kcore.c                  |  4 ++--
 include/linux/sched.h            | 16 ++++++++++++--
 kernel/fork.c                    |  7 +++++-
 9 files changed, 113 insertions(+), 43 deletions(-)
Signature · 1 line
2.1.4