]> git.ipfire.org Git - thirdparty/linux.git/commit
x86_64: Show CR4.PSE on auxiliaries like on BSP
authorHugh Dickins <hughd@google.com>
Tue, 15 Aug 2023 02:53:18 +0000 (19:53 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 24 Sep 2023 11:23:54 +0000 (13:23 +0200)
commitf4c5ca9850124fb5715eff06cffb1beed837500c
tree0d079d11aea91931c1d982630720adc32d876884
parentc53cbc54ccffcd1f436f29456d8a8c9addb29c2b
x86_64: Show CR4.PSE on auxiliaries like on BSP

Set CR4.PSE in secondary_startup_64: the Intel SDM is clear that it does
not matter whether it's 0 or 1 when 4-level-pts are enabled, but it's
distracting to find CR4 different on BSP and auxiliaries - on x86_64,
BSP alone got to add the PSE bit, in probe_page_size_mask().

Peter Zijlstra adds:

   "I think the point is that PSE bit is completely without
    meaning in long mode.

    But yes, having the same CR4 bits set across BSP and APs is
    definitely sane."

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/103ad03a-8c93-c3e2-4226-f79af4d9a074@google.com
arch/x86/kernel/head_64.S