* [PATCH v3 1/2] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD
2024-12-19 21:11 [PATCH v3 0/2] arm64: cputype: Add info about some Qualcomm Kryo cores Douglas Anderson
@ 2024-12-19 21:11 ` Douglas Anderson
2025-02-07 22:58 ` Trilok Soni
2024-12-19 21:11 ` [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores Douglas Anderson
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Douglas Anderson @ 2024-12-19 21:11 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Mark Rutland
Cc: Trilok Soni, Jeffrey Hugo, Roxana Bradescu, bjorn.andersson,
Julius Werner, linux-arm-kernel, linux-arm-msm, Douglas Anderson,
Dmitry Baryshkov, Anshuman Khandual, Besar Wicaksono,
D Scott Phillips, Easwar Hariharan, Oliver Upton, linux-kernel
Add a definition for the Qualcomm Kryo 300-series Gold cores.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
(no changes since v1)
arch/arm64/include/asm/cputype.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
index 488f8e751349..c8058f91a5bd 100644
--- a/arch/arm64/include/asm/cputype.h
+++ b/arch/arm64/include/asm/cputype.h
@@ -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)
--
2.47.1.613.gc27f4b7a9f-goog
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v3 1/2] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD
2024-12-19 21:11 ` [PATCH v3 1/2] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD Douglas Anderson
@ 2025-02-07 22:58 ` Trilok Soni
0 siblings, 0 replies; 8+ messages in thread
From: Trilok Soni @ 2025-02-07 22:58 UTC (permalink / raw)
To: Douglas Anderson, Catalin Marinas, Will Deacon, Mark Rutland
Cc: Jeffrey Hugo, Roxana Bradescu, bjorn.andersson, Julius Werner,
linux-arm-kernel, linux-arm-msm, Dmitry Baryshkov,
Anshuman Khandual, Besar Wicaksono, D Scott Phillips,
Easwar Hariharan, Oliver Upton, linux-kernel
On 12/19/2024 1:11 PM, Douglas Anderson wrote:
> Add a definition for the Qualcomm Kryo 300-series Gold cores.
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
>
> (no changes since v1)
>
> arch/arm64/include/asm/cputype.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
> index 488f8e751349..c8058f91a5bd 100644
> --- a/arch/arm64/include/asm/cputype.h
> +++ b/arch/arm64/include/asm/cputype.h
> @@ -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)
Acked-by: Trilok Soni <quic_tsoni@quicinc.com>
--
---Trilok Soni
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
2024-12-19 21:11 [PATCH v3 0/2] arm64: cputype: Add info about some Qualcomm Kryo cores Douglas Anderson
2024-12-19 21:11 ` [PATCH v3 1/2] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD Douglas Anderson
@ 2024-12-19 21:11 ` Douglas Anderson
2024-12-19 22:00 ` Dmitry Baryshkov
2025-02-07 22:59 ` Trilok Soni
2025-01-07 15:19 ` [PATCH v3 0/2] arm64: cputype: Add info about some Qualcomm Kryo cores Will Deacon
2025-03-10 18:32 ` Catalin Marinas
3 siblings, 2 replies; 8+ messages in thread
From: Douglas Anderson @ 2024-12-19 21:11 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Mark Rutland
Cc: Trilok Soni, Jeffrey Hugo, Roxana Bradescu, bjorn.andersson,
Julius Werner, linux-arm-kernel, linux-arm-msm, Douglas Anderson,
Anshuman Khandual, Besar Wicaksono, D Scott Phillips,
Easwar Hariharan, Oliver Upton, linux-kernel
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 <jwerner@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
Changes in v3:
- New
arch/arm64/include/asm/cputype.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
index c8058f91a5bd..8782d4721f81 100644
--- a/arch/arm64/include/asm/cputype.h
+++ b/arch/arm64/include/asm/cputype.h
@@ -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)
--
2.47.1.613.gc27f4b7a9f-goog
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
2024-12-19 21:11 ` [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores Douglas Anderson
@ 2024-12-19 22:00 ` Dmitry Baryshkov
2025-02-07 22:59 ` Trilok Soni
1 sibling, 0 replies; 8+ messages in thread
From: Dmitry Baryshkov @ 2024-12-19 22:00 UTC (permalink / raw)
To: Douglas Anderson
Cc: Catalin Marinas, Will Deacon, Mark Rutland, Trilok Soni,
Jeffrey Hugo, Roxana Bradescu, bjorn.andersson, Julius Werner,
linux-arm-kernel, linux-arm-msm, Anshuman Khandual,
Besar Wicaksono, D Scott Phillips, Easwar Hariharan,
Oliver Upton, linux-kernel
On Thu, Dec 19, 2024 at 01:11:10PM -0800, Douglas Anderson wrote:
> 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 <jwerner@chromium.org>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores
2024-12-19 21:11 ` [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores Douglas Anderson
2024-12-19 22:00 ` Dmitry Baryshkov
@ 2025-02-07 22:59 ` Trilok Soni
1 sibling, 0 replies; 8+ messages in thread
From: Trilok Soni @ 2025-02-07 22:59 UTC (permalink / raw)
To: Douglas Anderson, Catalin Marinas, Will Deacon, Mark Rutland
Cc: Jeffrey Hugo, Roxana Bradescu, bjorn.andersson, Julius Werner,
linux-arm-kernel, linux-arm-msm, Anshuman Khandual,
Besar Wicaksono, D Scott Phillips, Easwar Hariharan,
Oliver Upton, linux-kernel
On 12/19/2024 1:11 PM, Douglas Anderson wrote:
> 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 <jwerner@chromium.org>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
>
> Changes in v3:
> - New
>
> arch/arm64/include/asm/cputype.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
> index c8058f91a5bd..8782d4721f81 100644
> --- a/arch/arm64/include/asm/cputype.h
> +++ b/arch/arm64/include/asm/cputype.h
> @@ -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)
Acked-by: Trilok Soni <quic_tsoni@quicinc.com>
--
---Trilok Soni
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/2] arm64: cputype: Add info about some Qualcomm Kryo cores
2024-12-19 21:11 [PATCH v3 0/2] arm64: cputype: Add info about some Qualcomm Kryo cores Douglas Anderson
2024-12-19 21:11 ` [PATCH v3 1/2] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD Douglas Anderson
2024-12-19 21:11 ` [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores Douglas Anderson
@ 2025-01-07 15:19 ` Will Deacon
2025-03-10 18:32 ` Catalin Marinas
3 siblings, 0 replies; 8+ messages in thread
From: Will Deacon @ 2025-01-07 15:19 UTC (permalink / raw)
To: Douglas Anderson
Cc: Catalin Marinas, Mark Rutland, Trilok Soni, Jeffrey Hugo,
Roxana Bradescu, bjorn.andersson, Julius Werner,
linux-arm-kernel, linux-arm-msm, Anshuman Khandual,
Besar Wicaksono, D Scott Phillips, Easwar Hariharan,
Oliver Upton, linux-kernel
On Thu, Dec 19, 2024 at 01:11:08PM -0800, Douglas Anderson wrote:
>
> 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/20241209174430.2904353-1-dianders@chromium.org/
> v2: https://lore.kernel.org/r/20241214005248.198803-1-dianders@chromium.org
>
> 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(+)
Can somebody from Qualcomm please provide an Ack on these patches?
Thanks,
Will
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/2] arm64: cputype: Add info about some Qualcomm Kryo cores
2024-12-19 21:11 [PATCH v3 0/2] arm64: cputype: Add info about some Qualcomm Kryo cores Douglas Anderson
` (2 preceding siblings ...)
2025-01-07 15:19 ` [PATCH v3 0/2] arm64: cputype: Add info about some Qualcomm Kryo cores Will Deacon
@ 2025-03-10 18:32 ` Catalin Marinas
3 siblings, 0 replies; 8+ messages in thread
From: Catalin Marinas @ 2025-03-10 18:32 UTC (permalink / raw)
To: Will Deacon, Mark Rutland, Douglas Anderson
Cc: Trilok Soni, Jeffrey Hugo, Roxana Bradescu, bjorn.andersson,
Julius Werner, linux-arm-kernel, linux-arm-msm,
Anshuman Khandual, Besar Wicaksono, D Scott Phillips,
Easwar Hariharan, Oliver Upton, linux-kernel
On Thu, 19 Dec 2024 13:11:08 -0800, Douglas Anderson wrote:
> 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
--
Catalin
^ permalink raw reply [flat|nested] 8+ messages in thread