public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] x86/tsx: Improve handling of the tsx= kernel parameter
@ 2025-10-22 10:26 Petr Tesarik
  2025-10-22 10:26 ` [PATCH v3 1/2] x86/tsx: Make tsx_ctrl_state static Petr Tesarik
  2025-10-22 10:26 ` [PATCH v3 2/2] x86/tsx: Get the tsx= command line parameter with early_param() Petr Tesarik
  0 siblings, 2 replies; 6+ messages in thread
From: Petr Tesarik @ 2025-10-22 10:26 UTC (permalink / raw)
  To: Pawan Gupta, Thomas Gleixner, Ingo Molnar, Borislav Petkov
  Cc: H. Peter Anvin, Dave Hansen, Nikolay Borisov,
	maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT),
	open list:X86 ARCHITECTURE (32-BIT AND 64-BIT), Petr Tesarik

Parse the tsx= kernel parameter with early_param(), so it is not
reported as unknown.

As a side note, it was not necessary to defer the handling of
tsx=auto. Contrary to Pawan's claim, cpu_set_bug_bits() is called
from setup_arch() via early_cpu_init() and early_identify_cpu() before
parse_early_param(). But it is a nice cleanup, nevertheless, and I
learned something about parsing the command line. Cf. the NAK here:
https://lore.kernel.org/all/20251009185134.fb4evjrk76rwxv37@desk/

Changes from v2:
* compile-time initialization with the configured default
* defer tsx=auto handling to tsx_init()
* add more detail to the commit message

Changes from v1:
* make tsx_ctrl_state local to tsx.c
* use early_param() instead of core_param()

Petr Tesarik (2):
  x86/tsx: Make tsx_ctrl_state static
  x86/tsx: Get the tsx= command line parameter with early_param()

 arch/x86/kernel/cpu/cpu.h |  9 ------
 arch/x86/kernel/cpu/tsx.c | 59 ++++++++++++++++++++++-----------------
 2 files changed, 34 insertions(+), 34 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-23 16:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-22 10:26 [PATCH v3 0/2] x86/tsx: Improve handling of the tsx= kernel parameter Petr Tesarik
2025-10-22 10:26 ` [PATCH v3 1/2] x86/tsx: Make tsx_ctrl_state static Petr Tesarik
2025-10-22 10:26 ` [PATCH v3 2/2] x86/tsx: Get the tsx= command line parameter with early_param() Petr Tesarik
2025-10-22 17:46   ` Pawan Gupta
2025-10-23  6:45     ` Petr Tesarik
2025-10-23 16:05       ` Pawan Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox