linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: kpti: Add KRYO{3,4}XX silver CPU cores to kpti safelist
@ 2020-06-24 12:34 Sai Prakash Ranjan
  2020-06-24 13:54 ` Doug Anderson
  2020-06-24 13:54 ` [PATCH] arm64: kpti: Add KRYO{3, 4}XX " Will Deacon
  0 siblings, 2 replies; 3+ messages in thread
From: Sai Prakash Ranjan @ 2020-06-24 12:34 UTC (permalink / raw)
  To: Will Deacon, Catalin Marinas, Marc Zyngier, Mark Rutland,
	Suzuki K Poulose, Douglas Anderson
  Cc: linux-kernel, linux-arm-kernel, linux-arm-msm, Stephen Boyd,
	Jeffrey Hugo, Sai Prakash Ranjan

QCOM KRYO{3,4}XX silver/LITTLE CPU cores are based on Cortex-A55
and are meltdown safe, hence add them to kpti_safe_list[].

Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
---
 arch/arm64/kernel/cpufeature.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 4ae41670c2e6..9f63053a63a9 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1290,6 +1290,8 @@ static bool unmap_kernel_at_el0(const struct arm64_cpu_capabilities *entry,
 		MIDR_ALL_VERSIONS(MIDR_CORTEX_A73),
 		MIDR_ALL_VERSIONS(MIDR_HISI_TSV110),
 		MIDR_ALL_VERSIONS(MIDR_NVIDIA_CARMEL),
+		MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_3XX_SILVER),
+		MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_4XX_SILVER),
 		{ /* sentinel */ }
 	};
 	char const *str = "kpti command line option";

base-commit: cfafde3c949cae39483639c03c5da5fd91bb234e
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: kpti: Add KRYO{3,4}XX silver CPU cores to kpti safelist
  2020-06-24 12:34 [PATCH] arm64: kpti: Add KRYO{3,4}XX silver CPU cores to kpti safelist Sai Prakash Ranjan
@ 2020-06-24 13:54 ` Doug Anderson
  2020-06-24 13:54 ` [PATCH] arm64: kpti: Add KRYO{3, 4}XX " Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Doug Anderson @ 2020-06-24 13:54 UTC (permalink / raw)
  To: Sai Prakash Ranjan
  Cc: Will Deacon, Catalin Marinas, Marc Zyngier, Mark Rutland,
	Suzuki K Poulose, LKML, Linux ARM, linux-arm-msm, Stephen Boyd,
	Jeffrey Hugo

Hi,

On Wed, Jun 24, 2020 at 5:34 AM Sai Prakash Ranjan
<saiprakash.ranjan@codeaurora.org> wrote:
>
> QCOM KRYO{3,4}XX silver/LITTLE CPU cores are based on Cortex-A55
> and are meltdown safe, hence add them to kpti_safe_list[].
>
> Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
> ---
>  arch/arm64/kernel/cpufeature.c | 2 ++
>  1 file changed, 2 insertions(+)

Reported-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: kpti: Add KRYO{3, 4}XX silver CPU cores to kpti safelist
  2020-06-24 12:34 [PATCH] arm64: kpti: Add KRYO{3,4}XX silver CPU cores to kpti safelist Sai Prakash Ranjan
  2020-06-24 13:54 ` Doug Anderson
@ 2020-06-24 13:54 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2020-06-24 13:54 UTC (permalink / raw)
  To: Catalin Marinas, Mark Rutland, Douglas Anderson,
	Sai Prakash Ranjan, Marc Zyngier, Suzuki K Poulose
  Cc: kernel-team, Will Deacon, linux-arm-msm, linux-arm-kernel,
	linux-kernel, Jeffrey Hugo, Stephen Boyd

On Wed, 24 Jun 2020 18:04:06 +0530, Sai Prakash Ranjan wrote:
> QCOM KRYO{3,4}XX silver/LITTLE CPU cores are based on Cortex-A55
> and are meltdown safe, hence add them to kpti_safe_list[].

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: kpti: Add KRYO{3, 4}XX silver CPU cores to kpti safelist
      https://git.kernel.org/arm64/c/f4617be35b4b

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-24 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 12:34 [PATCH] arm64: kpti: Add KRYO{3,4}XX silver CPU cores to kpti safelist Sai Prakash Ranjan
2020-06-24 13:54 ` Doug Anderson
2020-06-24 13:54 ` [PATCH] arm64: kpti: Add KRYO{3, 4}XX " Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).