diff mbox series

[4/4] arm64: cpu_errata: Apply Erratum 845719 to KRYO2XX Silver

Message ID 20201104232218.198800-5-konrad.dybcio@somainline.org (mailing list archive)
State New, archived
Headers show
Series Add KRYO2XX Errata / mitigations data | expand

Commit Message

Konrad Dybcio Nov. 4, 2020, 11:22 p.m. UTC
QCOM KRYO2XX Silver cores are Cortex-A53 based and are
susceptible to the 845719 erratum. Add them to the lookup
list to apply the erratum.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
 arch/arm64/kernel/cpu_errata.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Marc Zyngier Nov. 5, 2020, 9:29 a.m. UTC | #1
On 2020-11-04 23:22, Konrad Dybcio wrote:
> QCOM KRYO2XX Silver cores are Cortex-A53 based and are
> susceptible to the 845719 erratum. Add them to the lookup
> list to apply the erratum.
> 
> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
> ---
>  arch/arm64/kernel/cpu_errata.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/kernel/cpu_errata.c 
> b/arch/arm64/kernel/cpu_errata.c
> index 61314fd70f13..cafaf0da05b7 100644
> --- a/arch/arm64/kernel/cpu_errata.c
> +++ b/arch/arm64/kernel/cpu_errata.c
> @@ -299,6 +299,8 @@ static const struct midr_range 
> erratum_845719_list[] = {
>  	MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 4),
>  	/* Brahma-B53 r0p[0] */
>  	MIDR_REV(MIDR_BRAHMA_B53, 0, 0),
> +	/* Kryo2XX Silver rAp4 */
> +	MIDR_REV(MIDR_QCOM_KRYO_2XX_SILVER, 0xa, 0x4),

Is this the only affected version? If this is actually an A53, how do 
the
revisions map between Kryo and Cortex cores?

         M.
Konrad Dybcio Nov. 5, 2020, 11:24 a.m. UTC | #2
> Is this the only affected version? If this is actually an A53, how do the

> revisions map between Kryo and Cortex cores?


Hi,

sadly, I do not have access to such information. Only this specific revision has been marked as affected in the BSP kernel.


Konrad
Sai Prakash Ranjan Nov. 9, 2020, 9:36 a.m. UTC | #3
Hi Marc,

On 2020-11-05 14:59, Marc Zyngier wrote:
> On 2020-11-04 23:22, Konrad Dybcio wrote:
>> QCOM KRYO2XX Silver cores are Cortex-A53 based and are
>> susceptible to the 845719 erratum. Add them to the lookup
>> list to apply the erratum.
>> 
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
>> ---
>>  arch/arm64/kernel/cpu_errata.c | 2 ++
>>  1 file changed, 2 insertions(+)
>> 
>> diff --git a/arch/arm64/kernel/cpu_errata.c 
>> b/arch/arm64/kernel/cpu_errata.c
>> index 61314fd70f13..cafaf0da05b7 100644
>> --- a/arch/arm64/kernel/cpu_errata.c
>> +++ b/arch/arm64/kernel/cpu_errata.c
>> @@ -299,6 +299,8 @@ static const struct midr_range 
>> erratum_845719_list[] = {
>>  	MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 4),
>>  	/* Brahma-B53 r0p[0] */
>>  	MIDR_REV(MIDR_BRAHMA_B53, 0, 0),
>> +	/* Kryo2XX Silver rAp4 */
>> +	MIDR_REV(MIDR_QCOM_KRYO_2XX_SILVER, 0xa, 0x4),
> 
> Is this the only affected version? If this is actually an A53, how do 
> the
> revisions map between Kryo and Cortex cores?
> 

 From what I see from the docs, this is the only version used
in MSM8998(silver cores are based on Cortex A53) and it maps
to r0p4. @Konrad, can you include (rap4 => r0p4) in comment.

Thanks,
Sai
Konrad Dybcio Nov. 9, 2020, 7:28 p.m. UTC | #4
> From what I see from the docs, this is the only version used
> in MSM8998(silver cores are based on Cortex A53) and it maps
> to r0p4. @Konrad, can you include (rap4 => r0p4) in comment.


Hi,

Thanks for looking into it. Could you perhaps check if it's also the case on sdm630/636/660?

Konrad
Sai Prakash Ranjan Nov. 10, 2020, 5:56 a.m. UTC | #5
Hi,

On 2020-11-10 00:58, Konrad Dybcio wrote:
>> From what I see from the docs, this is the only version used
>> in MSM8998(silver cores are based on Cortex A53) and it maps
>> to r0p4. @Konrad, can you include (rap4 => r0p4) in comment.
> 
> 
> Hi,
> 
> Thanks for looking into it. Could you perhaps check if it's also the
> case on sdm630/636/660?
> 

Yes I checked with CPU team now and its the same.

Thanks,
Sai
diff mbox series

Patch

diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
index 61314fd70f13..cafaf0da05b7 100644
--- a/arch/arm64/kernel/cpu_errata.c
+++ b/arch/arm64/kernel/cpu_errata.c
@@ -299,6 +299,8 @@  static const struct midr_range erratum_845719_list[] = {
 	MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 4),
 	/* Brahma-B53 r0p[0] */
 	MIDR_REV(MIDR_BRAHMA_B53, 0, 0),
+	/* Kryo2XX Silver rAp4 */
+	MIDR_REV(MIDR_QCOM_KRYO_2XX_SILVER, 0xa, 0x4),
 	{},
 };
 #endif