Skip to content

Commit a3dcea2

Browse files
Suzuki K Poulosewildea01
authored andcommitted
arm64: capabilities: Merge duplicate entries for Qualcomm erratum 1003
Remove duplicate entries for Qualcomm erratum 1003. Since the entries are not purely based on generic MIDR checks, use the multi_cap_entry type to merge the entries. Cc: Christopher Covington <[email protected]> Cc: Will Deacon <[email protected]> Reviewed-by: Vladimir Murzin <[email protected]> Tested-by: Vladimir Murzin <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent f58cdf7 commit a3dcea2

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

arch/arm64/kernel/cpu_errata.c

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,19 @@ static const struct midr_range cavium_erratum_30115_cpus[] = {
592592
};
593593
#endif
594594

595+
#ifdef CONFIG_QCOM_FALKOR_ERRATUM_1003
596+
static const struct arm64_cpu_capabilities qcom_erratum_1003_list[] = {
597+
{
598+
ERRATA_MIDR_REV(MIDR_QCOM_FALKOR_V1, 0, 0),
599+
},
600+
{
601+
.midr_range.model = MIDR_QCOM_KRYO,
602+
.matches = is_kryo_midr,
603+
},
604+
{},
605+
};
606+
#endif
607+
595608
#ifdef CONFIG_ARM64_WORKAROUND_CLEAN_CACHE
596609
static const struct midr_range workaround_clean_cache[] = {
597610
#if defined(CONFIG_ARM64_ERRATUM_826319) || \
@@ -685,16 +698,10 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
685698
},
686699
#ifdef CONFIG_QCOM_FALKOR_ERRATUM_1003
687700
{
688-
.desc = "Qualcomm Technologies Falkor erratum 1003",
701+
.desc = "Qualcomm Technologies Falkor/Kryo erratum 1003",
689702
.capability = ARM64_WORKAROUND_QCOM_FALKOR_E1003,
690-
ERRATA_MIDR_REV(MIDR_QCOM_FALKOR_V1, 0, 0),
691-
},
692-
{
693-
.desc = "Qualcomm Technologies Kryo erratum 1003",
694-
.capability = ARM64_WORKAROUND_QCOM_FALKOR_E1003,
695-
.type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
696-
.midr_range.model = MIDR_QCOM_KRYO,
697-
.matches = is_kryo_midr,
703+
.matches = multi_entry_cap_matches,
704+
.match_list = qcom_erratum_1003_list,
698705
},
699706
#endif
700707
#ifdef CONFIG_QCOM_FALKOR_ERRATUM_1009

0 commit comments

Comments
 (0)