]> xenbits.xensource.com Git - xen.git/commitdiff
x86/amd: Misc setup for Fam1Ah processors
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 Dec 2024 14:15:22 +0000 (14:15 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 6 Jan 2025 18:01:32 +0000 (18:01 +0000)
Fam1Ah is similar to Fam19h in these regards.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/cpu/microcode/amd.c
xen/arch/x86/cpu/vpmu_amd.c

index 876317fad05994dd742aed3887edeb1b1cd4b539..420198406def7ce88c482c74e108626135a376ad 100644 (file)
@@ -1417,6 +1417,7 @@ static void amd_cpuidle_init(struct acpi_processor_power *power)
 
     switch ( c->x86 )
     {
+    case 0x1a:
     case 0x19:
     case 0x18:
         if ( boot_cpu_data.x86_vendor != X86_VENDOR_HYGON )
index ba7668a94670370778cde20b5d793b71efcc7996..210736f5804ab5fda99b29637382af5f6075d727 100644 (file)
@@ -114,6 +114,7 @@ static bool verify_patch_size(uint32_t patch_size)
 #define F16H_MPB_MAX_SIZE 3458
 #define F17H_MPB_MAX_SIZE 3200
 #define F19H_MPB_MAX_SIZE 5568
+#define F1AH_MPB_MAX_SIZE 15296
 
     switch ( boot_cpu_data.x86 )
     {
@@ -132,6 +133,9 @@ static bool verify_patch_size(uint32_t patch_size)
     case 0x19:
         max_size = F19H_MPB_MAX_SIZE;
         break;
+    case 0x1a:
+        max_size = F1AH_MPB_MAX_SIZE;
+        break;
     default:
         max_size = F1XH_MPB_MAX_SIZE;
         break;
index a082450e923a6fbd077cdace322717195627ae16..a6117dfebf2a904bd94a6dbaeb25b40404b11de1 100644 (file)
@@ -568,6 +568,7 @@ const struct arch_vpmu_ops *__init amd_vpmu_init(void)
     case 0x15:
     case 0x17:
     case 0x19:
+    case 0x1a:
         num_counters = F15H_NUM_COUNTERS;
         counters = AMD_F15H_COUNTERS;
         ctrls = AMD_F15H_CTRLS;