File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -763,6 +763,16 @@ static void init_amd_bd(struct cpuinfo_x86 *c)
763
763
}
764
764
}
765
765
766
+ static void init_amd_zn (struct cpuinfo_x86 * c )
767
+ {
768
+ /*
769
+ * Fix erratum 1076: CPB feature bit not being set in CPUID. It affects
770
+ * all up to and including B1.
771
+ */
772
+ if (c -> x86_model <= 1 && c -> x86_mask <= 1 )
773
+ set_cpu_cap (c , X86_FEATURE_CPB );
774
+ }
775
+
766
776
static void init_amd (struct cpuinfo_x86 * c )
767
777
{
768
778
early_init_amd (c );
@@ -791,6 +801,7 @@ static void init_amd(struct cpuinfo_x86 *c)
791
801
case 0x10 : init_amd_gh (c ); break ;
792
802
case 0x12 : init_amd_ln (c ); break ;
793
803
case 0x15 : init_amd_bd (c ); break ;
804
+ case 0x17 : init_amd_zn (c ); break ;
794
805
}
795
806
796
807
/* Enable workaround for FXSAVE leak */
You can’t perform that action at this time.
0 commit comments