@@ -876,6 +876,14 @@ static u8 spectre_bhb_loop_affected(void)
876
876
{
877
877
u8 k = 0 ;
878
878
879
+ static const struct midr_range spectre_bhb_k132_list [] = {
880
+ MIDR_ALL_VERSIONS (MIDR_CORTEX_X3 ),
881
+ MIDR_ALL_VERSIONS (MIDR_NEOVERSE_V2 ),
882
+ };
883
+ static const struct midr_range spectre_bhb_k38_list [] = {
884
+ MIDR_ALL_VERSIONS (MIDR_CORTEX_A715 ),
885
+ MIDR_ALL_VERSIONS (MIDR_CORTEX_A720 ),
886
+ };
879
887
static const struct midr_range spectre_bhb_k32_list [] = {
880
888
MIDR_ALL_VERSIONS (MIDR_CORTEX_A78 ),
881
889
MIDR_ALL_VERSIONS (MIDR_CORTEX_A78AE ),
@@ -889,6 +897,7 @@ static u8 spectre_bhb_loop_affected(void)
889
897
};
890
898
static const struct midr_range spectre_bhb_k24_list [] = {
891
899
MIDR_ALL_VERSIONS (MIDR_CORTEX_A76 ),
900
+ MIDR_ALL_VERSIONS (MIDR_CORTEX_A76AE ),
892
901
MIDR_ALL_VERSIONS (MIDR_CORTEX_A77 ),
893
902
MIDR_ALL_VERSIONS (MIDR_NEOVERSE_N1 ),
894
903
MIDR_ALL_VERSIONS (MIDR_QCOM_KRYO_4XX_GOLD ),
@@ -904,7 +913,11 @@ static u8 spectre_bhb_loop_affected(void)
904
913
{},
905
914
};
906
915
907
- if (is_midr_in_range_list (read_cpuid_id (), spectre_bhb_k32_list ))
916
+ if (is_midr_in_range_list (read_cpuid_id (), spectre_bhb_k132_list ))
917
+ k = 132 ;
918
+ else if (is_midr_in_range_list (read_cpuid_id (), spectre_bhb_k38_list ))
919
+ k = 38 ;
920
+ else if (is_midr_in_range_list (read_cpuid_id (), spectre_bhb_k32_list ))
908
921
k = 32 ;
909
922
else if (is_midr_in_range_list (read_cpuid_id (), spectre_bhb_k24_list ))
910
923
k = 24 ;
0 commit comments