mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
Miscellaneous x86 fixes:
- Improve Qemu MCE-injection behavior by only using
AMD SMCA MSRs if the feature bit is set.
- Fix the relative path of gettimeofday.c inclusion
in vclock_gettime.c
- Fix a boot crash on UV clusters when a socket is
marked as 'deconfigured' which are mapped to the
SOCK_EMPTY (0xffff [short -1]) node ID by the UV firmware,
while Linux APIs expect NUMA_NO_NODE (0xffffffff [int -1]).
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-----BEGIN PGP SIGNATURE-----
iQJFBAABCgAvFiEEBpT5eoXrXCwVQwEKEnMQ0APhK1gFAmm/qYwRHG1pbmdvQGtl
cm5lbC5vcmcACgkQEnMQ0APhK1imUBAAmL2xQCgOZCeLPWFZ28S5EiKf5xvyC9R4
uIm/WncXYQDJZN0JaTABdjmLiaBQnlyULpmqN47Xuiy8avMO532S92yreFpWR2OB
5TEE/v9+wcbSQOJBELhch3XNzUu7cNPQ+HbOuhot4rpK/MlyJ8rHaHLYVSVhRBYG
ynM3iTDvD6ENtyAOGT1Afkxg/sqMOZG8jdwrN1z8BH3AMU8BJ6OgfguqKuEi99Vp
Lz31a3bR0LcRPZ4ECKH0ModcKgjkqcgnVccOYCDtq8XReciGQo1Zg0diiV6VRn2a
hAqoSvdd9e1XUGoU8dEi0KwR5YXYJh3uOmjSH56rbceXr5XxPcKRJ4mOOX0GX+KC
KZl5KdwJo4veHodxWTYFe+67hi84BwKoB4gM36nRhDmzLS/XHoI4RUOjZVXSPVzJ
dwBBZDKd9tP6aaFruSa+v5sH7EbVartwLuEkQx6SDydS/4htGbESKTxgdqr63gUZ
jwmFRVaPo3FUWkOhS9GExt6XewhBVaJ9/cHZkcpW0vrm9RBlFoyTX9YLfkF4x9O1
h3wxXsULyZuYn5/tunIFfDsLpcmgsz85NXnW+0A1URAAWFNRYfVIKxaO7tUUF2OA
asnOe0NrztvKoZfKzCi7s14HVCPT34aEp3Vf2Am/QRMy5JYLhS3xAwApiZ/hrZ4R
Kb+4dVfh12Q=
=uIqH
-----END PGP SIGNATURE-----
Merge tag 'x86-urgent-2026-03-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar:
- Improve Qemu MCE-injection behavior by only using AMD SMCA MSRs if
the feature bit is set
- Fix the relative path of gettimeofday.c inclusion in vclock_gettime.c
- Fix a boot crash on UV clusters when a socket is marked as
'deconfigured' which are mapped to the SOCK_EMPTY node ID by
the UV firmware, while Linux APIs expect NUMA_NO_NODE.
The difference being (0xffff [unsigned short ~0]) vs [int -1]
* tag 'x86-urgent-2026-03-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/platform/uv: Handle deconfigured sockets
x86/entry/vdso: Fix path of included gettimeofday.c
x86/mce/amd: Check SMCA feature bit before accessing SMCA MSRs
This commit is contained in:
commit
8d8bd2a5aa
|
|
@ -13,7 +13,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <vdso/gettime.h>
|
||||
|
||||
#include "../../../../lib/vdso/gettimeofday.c"
|
||||
#include "lib/vdso/gettimeofday.c"
|
||||
|
||||
int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1708,8 +1708,22 @@ static void __init uv_system_init_hub(void)
|
|||
struct uv_hub_info_s *new_hub;
|
||||
|
||||
/* Allocate & fill new per hub info list */
|
||||
new_hub = (bid == 0) ? &uv_hub_info_node0
|
||||
: kzalloc_node(bytes, GFP_KERNEL, uv_blade_to_node(bid));
|
||||
if (bid == 0) {
|
||||
new_hub = &uv_hub_info_node0;
|
||||
} else {
|
||||
int nid;
|
||||
|
||||
/*
|
||||
* Deconfigured sockets are mapped to SOCK_EMPTY. Use
|
||||
* NUMA_NO_NODE to allocate on a valid node.
|
||||
*/
|
||||
nid = uv_blade_to_node(bid);
|
||||
if (nid == SOCK_EMPTY)
|
||||
nid = NUMA_NO_NODE;
|
||||
|
||||
new_hub = kzalloc_node(bytes, GFP_KERNEL, nid);
|
||||
}
|
||||
|
||||
if (WARN_ON_ONCE(!new_hub)) {
|
||||
/* do not kfree() bid 0, which is statically allocated */
|
||||
while (--bid > 0)
|
||||
|
|
|
|||
|
|
@ -875,13 +875,18 @@ void amd_clear_bank(struct mce *m)
|
|||
{
|
||||
amd_reset_thr_limit(m->bank);
|
||||
|
||||
/* Clear MCA_DESTAT for all deferred errors even those logged in MCA_STATUS. */
|
||||
if (m->status & MCI_STATUS_DEFERRED)
|
||||
mce_wrmsrq(MSR_AMD64_SMCA_MCx_DESTAT(m->bank), 0);
|
||||
if (mce_flags.smca) {
|
||||
/*
|
||||
* Clear MCA_DESTAT for all deferred errors even those
|
||||
* logged in MCA_STATUS.
|
||||
*/
|
||||
if (m->status & MCI_STATUS_DEFERRED)
|
||||
mce_wrmsrq(MSR_AMD64_SMCA_MCx_DESTAT(m->bank), 0);
|
||||
|
||||
/* Don't clear MCA_STATUS if MCA_DESTAT was used exclusively. */
|
||||
if (m->kflags & MCE_CHECK_DFR_REGS)
|
||||
return;
|
||||
/* Don't clear MCA_STATUS if MCA_DESTAT was used exclusively. */
|
||||
if (m->kflags & MCE_CHECK_DFR_REGS)
|
||||
return;
|
||||
}
|
||||
|
||||
mce_wrmsrq(mca_msr_reg(m->bank, MCA_STATUS), 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user