arm64: cputype: Add info about some Qualcomm Kryo cores
Subsystems (2)
v3 cover arm64: cputype: Add info about some Qualcomm Kryo cores
This series breaks off of my series that reworked Spectre BHB mitigations. Originally I needed Qualcomm Kryo IDs because I was adding "guesses" about their Spectre BHB mitigations. Now that the Spectre BHB series no longer has guesses I don't need them there, but these two patches still seem worth it to land on their own.
I've still called this series "v3" because the first patch was part of the v1 and v2 of the previous series.
Link to prev versions:
v1: https://lore.kernel.org/r/[email protected]/
v2: https://lore.kernel.org/r/[email protected]
Changes in v3:
- arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
Douglas Anderson (2):
arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD
arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
arch/arm64/include/asm/cputype.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Signature · 1 line
2.47.1.613.gc27f4b7a9f-goog
PATCH v3 1/2 arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD
Add a definition for the Qualcomm Kryo 300-series Gold cores.
---
(no changes since v1)
arch/arm64/include/asm/cputype.h | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/include/asm/cputype.h +2 -0
@@ -119,6 +119,7 @@#define QCOM_CPU_PART_KRYO 0x200#define QCOM_CPU_PART_KRYO_2XX_GOLD 0x800#define QCOM_CPU_PART_KRYO_2XX_SILVER 0x801 +#define QCOM_CPU_PART_KRYO_3XX_GOLD 0x802#define QCOM_CPU_PART_KRYO_3XX_SILVER 0x803#define QCOM_CPU_PART_KRYO_4XX_GOLD 0x804#define QCOM_CPU_PART_KRYO_4XX_SILVER 0x805
@@ -195,6 +196,7 @@#define MIDR_QCOM_KRYO MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO)#define MIDR_QCOM_KRYO_2XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_2XX_GOLD)#define MIDR_QCOM_KRYO_2XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_2XX_SILVER) +#define MIDR_QCOM_KRYO_3XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_GOLD)#define MIDR_QCOM_KRYO_3XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_SILVER)#define MIDR_QCOM_KRYO_4XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_GOLD)#define MIDR_QCOM_KRYO_4XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_SILVER)
Signature · 1 line
2.47.1.613.gc27f4b7a9f-goog
Re: [PATCH v3 1/2] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD
Quoted 24 lines · Douglas Anderson
Add a definition for the Qualcomm Kryo 300-series Gold cores.
Reviewed-by Dmitry Baryshkov <[email protected]>Signed-off-by Douglas Anderson <[email protected]>---
(no changes since v1)
arch/arm64/include/asm/cputype.h | 2 ++ 1 file changed, 2 insertions(+)arch/arm64/include/asm/cputype.h +1
-0@@ -119,6 +119,7 @@#define QCOM_CPU_PART_KRYO 0x200#define QCOM_CPU_PART_KRYO_2XX_GOLD 0x800#define QCOM_CPU_PART_KRYO_2XX_SILVER 0x801 +#define QCOM_CPU_PART_KRYO_3XX_GOLD 0x802#define QCOM_CPU_PART_KRYO_3XX_SILVER 0x803#define QCOM_CPU_PART_KRYO_4XX_GOLD 0x804#define QCOM_CPU_PART_KRYO_4XX_SILVER 0x805
arch/arm64/include/asm/cputype.h line 202
Quoted 7 lines
arch/arm64/include/asm/cputype.h +1
-0@@ -195,6 +196,7 @@#define MIDR_QCOM_KRYO MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO)#define MIDR_QCOM_KRYO_2XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_2XX_GOLD)#define MIDR_QCOM_KRYO_2XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_2XX_SILVER) +#define MIDR_QCOM_KRYO_3XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_GOLD)#define MIDR_QCOM_KRYO_3XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_SILVER)#define MIDR_QCOM_KRYO_4XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_GOLD)#define MIDR_QCOM_KRYO_4XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_SILVER)
Signature · 1 line
---Trilok Soni
PATCH v3 2/2 arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
In reply to Douglas AndersonAs tested on one example of a Qualcomm Kryo 5XX CPU [1] and one example of a Qualcomm Kryo 6XX CPU [2], we don't need any extra MIDR definitions for the cores in those processors. Add comments to make it clear that these IDs weren't forgotten and just aren't needed.
[1] https://lore.kernel.org/r/l5rqbbxn6hktlcxooolkvi5n3arkht6zzhrvdjf6kis322nsup@5hsrak4cgteq/
[2] https://lore.kernel.org/r/tx7vtur7yea6ruefrkpkccqptahgmxnsrudwdz5uzcfxnng25b@afrr5bmdk2xa/
---
Changes in v3:
- New
arch/arm64/include/asm/cputype.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/include/asm/cputype.h +10 -0
@@ -200,6 +200,16 @@#define MIDR_QCOM_KRYO_3XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_SILVER)#define MIDR_QCOM_KRYO_4XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_GOLD)#define MIDR_QCOM_KRYO_4XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_SILVER) + +/* +* NOTES: +* - Qualcomm Kryo 5XX Prime / Gold ID themselves as MIDR_CORTEX_A77 +* - Qualcomm Kryo 5XX Silver IDs itself as MIDR_QCOM_KRYO_4XX_SILVER +* - Qualcomm Kryo 6XX Prime IDs itself as MIDR_CORTEX_X1 +* - Qualcomm Kryo 6XX Gold IDs itself as ARM_CPU_PART_CORTEX_A78 +* - Qualcomm Kryo 6XX Silver IDs itself as MIDR_CORTEX_A55 +*/ +#define MIDR_NVIDIA_DENVER MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_DENVER)#define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL)#define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX)
Signature · 1 line
2.47.1.613.gc27f4b7a9f-goog
Re: [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
Quoted 5 lines · Douglas Anderson
As tested on one example of a Qualcomm Kryo 5XX CPU [1] and one example of a Qualcomm Kryo 6XX CPU [2], we don't need any extra MIDR definitions for the cores in those processors. Add comments to make it clear that these IDs weren't forgotten and just aren't needed.
Quoted 7 lines
[1] https://lore.kernel.org/r/l5rqbbxn6hktlcxooolkvi5n3arkht6zzhrvdjf6kis322nsup@5hsrak4cgteq/
[2] https://lore.kernel.org/r/tx7vtur7yea6ruefrkpkccqptahgmxnsrudwdz5uzcfxnng25b@afrr5bmdk2xa/Suggested-by Julius Werner <[email protected]>Signed-off-by Douglas Anderson <[email protected]>---
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
In reply to Douglas AndersonQuoted 30 lines · Douglas Anderson
As tested on one example of a Qualcomm Kryo 5XX CPU [1] and one example of a Qualcomm Kryo 6XX CPU [2], we don't need any extra MIDR definitions for the cores in those processors. Add comments to make it clear that these IDs weren't forgotten and just aren't needed.
[1] https://lore.kernel.org/r/l5rqbbxn6hktlcxooolkvi5n3arkht6zzhrvdjf6kis322nsup@5hsrak4cgteq/
[2] https://lore.kernel.org/r/tx7vtur7yea6ruefrkpkccqptahgmxnsrudwdz5uzcfxnng25b@afrr5bmdk2xa/Suggested-by Julius Werner <[email protected]>Signed-off-by Douglas Anderson <[email protected]>---
Changes in v3:
- Newarch/arm64/include/asm/cputype.h | 10 ++++++++++ 1 file changed, 10 insertions(+)arch/arm64/include/asm/cputype.h +3
-0@@ -200,6 +200,16 @@#define MIDR_QCOM_KRYO_3XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_SILVER)#define MIDR_QCOM_KRYO_4XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_GOLD)#define MIDR_QCOM_KRYO_4XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_SILVER) + +/* +* NOTES:
arch/arm64/include/asm/cputype.h line 215
Quoted 10 lines
arch/arm64/include/asm/cputype.h +7
-0+* - Qualcomm Kryo 5XX Prime / Gold ID themselves as MIDR_CORTEX_A77 +* - Qualcomm Kryo 5XX Silver IDs itself as MIDR_QCOM_KRYO_4XX_SILVER +* - Qualcomm Kryo 6XX Prime IDs itself as MIDR_CORTEX_X1 +* - Qualcomm Kryo 6XX Gold IDs itself as ARM_CPU_PART_CORTEX_A78 +* - Qualcomm Kryo 6XX Silver IDs itself as MIDR_CORTEX_A55 +*/ +#define MIDR_NVIDIA_DENVER MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_DENVER)#define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL)#define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX)
Signature · 1 line
---Trilok Soni
Will Deacon
maintainerQuoted 17 lines · Douglas Anderson
This series breaks off of my series that reworked Spectre BHB mitigations. Originally I needed Qualcomm Kryo IDs because I was adding "guesses" about their Spectre BHB mitigations. Now that the Spectre BHB series no longer has guesses I don't need them there, but these two patches still seem worth it to land on their own.
I've still called this series "v3" because the first patch was part of the v1 and v2 of the previous series.
Link to prev versions:
v1: https://lore.kernel.org/r/[email protected]/
v2: https://lore.kernel.org/r/[email protected]Changes in v3:
- arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
Quoted 6 lines
Douglas Anderson (2):
arm64: cputype: AddQCOM_CPU_PART_KRYO_3XX_GOLD
arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX coresarch/arm64/include/asm/cputype.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Can somebody from Qualcomm please provide an Ack on these patches?
Thanks,
Will
Quoted 10 lines · Douglas Anderson
This series breaks off of my series that reworked Spectre BHB mitigations. Originally I needed Qualcomm Kryo IDs because I was adding "guesses" about their Spectre BHB mitigations. Now that the Spectre BHB series no longer has guesses I don't need them there, but these two patches still seem worth it to land on their own.
I've still called this series "v3" because the first patch was part of the v1 and v2 of the previous series.
[...]
Applied to arm64 (for-next/cputype-kryo), thanks!
[1/2] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD
https://git.kernel.org/arm64/c/401c3333bb23 [2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores https://git.kernel.org/arm64/c/53a52a0ec768
Signature · 1 line
Catalin