Skip to content

Commit e8582e3

Browse files
committed
Merge tag 'v6.1.145' into orange-pi-6.1-rk35xx
This is the 6.1.145 stable release * tag 'v6.1.145' of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux: Linux 6.1.145 x86/CPU/AMD: Properly check the TSA microcode Signed-off-by: Khusika Dhamar Gusti <[email protected]>
2 parents 8b2451f + f2198ea commit e8582e3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 1
4-
SUBLEVEL = 144
4+
SUBLEVEL = 145
55
EXTRAVERSION =
66
NAME = Curry Ramen
77

arch/x86/kernel/cpu/amd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ static bool amd_check_tsa_microcode(void)
561561

562562
p.ext_fam = c->x86 - 0xf;
563563
p.model = c->x86_model;
564+
p.ext_model = c->x86_model >> 4;
564565
p.stepping = c->x86_stepping;
565566

566567
if (c->x86 == 0x19) {
@@ -675,6 +676,8 @@ static void bsp_init_amd(struct cpuinfo_x86 *c)
675676
}
676677

677678
resctrl_cpu_detect(c);
679+
680+
tsa_init(c);
678681
}
679682

680683
static void early_detect_mem_encrypt(struct cpuinfo_x86 *c)
@@ -719,8 +722,6 @@ static void early_detect_mem_encrypt(struct cpuinfo_x86 *c)
719722
goto clear_sev;
720723

721724

722-
tsa_init(c);
723-
724725
return;
725726

726727
clear_all:

0 commit comments

Comments
 (0)