mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iommu/arm-smmu-qcom: Select identity domain for sc8280xp MDSS
@ 2023-01-13  4:11 Bjorn Andersson
  2023-01-13  4:16 ` Konrad Dybcio
  2023-01-19 19:08 ` Will Deacon
  0 siblings, 2 replies; 3+ messages in thread
From: Bjorn Andersson @ 2023-01-13  4:11 UTC (permalink / raw)
  To: Will Deacon, Robin Murphy, Joerg Roedel, Sai Prakash Ranjan
  Cc: Dmitry Baryshkov, Konrad Dybcio, linux-arm-kernel, iommu, linux-kernel

The Qualcomm display driver installs a translation domain once it has
mapped a framebuffer. Use the identity domain for this device on
SC8280XP as well, to avoid faults from EFI FB accessing the framebuffer
while this is being set up.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
---
 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
index 4c53824582d4..cebc10c0492d 100644
--- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
+++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
@@ -250,6 +250,7 @@ static const struct of_device_id qcom_smmu_client_of_match[] __maybe_unused = {
 	{ .compatible = "qcom,sc7280-mdss" },
 	{ .compatible = "qcom,sc7280-mss-pil" },
 	{ .compatible = "qcom,sc8180x-mdss" },
+	{ .compatible = "qcom,sc8280xp-mdss" },
 	{ .compatible = "qcom,sm8250-mdss" },
 	{ .compatible = "qcom,sdm845-mdss" },
 	{ .compatible = "qcom,sdm845-mss-pil" },
-- 
2.37.3


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

* Re: [PATCH] iommu/arm-smmu-qcom: Select identity domain for sc8280xp MDSS
  2023-01-13  4:11 [PATCH] iommu/arm-smmu-qcom: Select identity domain for sc8280xp MDSS Bjorn Andersson
@ 2023-01-13  4:16 ` Konrad Dybcio
  2023-01-19 19:08 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2023-01-13  4:16 UTC (permalink / raw)
  To: Bjorn Andersson, Will Deacon, Robin Murphy, Joerg Roedel,
	Sai Prakash Ranjan
  Cc: Dmitry Baryshkov, linux-arm-kernel, iommu, linux-kernel



On 13.01.2023 05:11, Bjorn Andersson wrote:
> The Qualcomm display driver installs a translation domain once it has
> mapped a framebuffer. Use the identity domain for this device on
> SC8280XP as well, to avoid faults from EFI FB accessing the framebuffer
> while this is being set up.
> 
> Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
> index 4c53824582d4..cebc10c0492d 100644
> --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
> +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
> @@ -250,6 +250,7 @@ static const struct of_device_id qcom_smmu_client_of_match[] __maybe_unused = {
>  	{ .compatible = "qcom,sc7280-mdss" },
>  	{ .compatible = "qcom,sc7280-mss-pil" },
>  	{ .compatible = "qcom,sc8180x-mdss" },
> +	{ .compatible = "qcom,sc8280xp-mdss" },
>  	{ .compatible = "qcom,sm8250-mdss" },
>  	{ .compatible = "qcom,sdm845-mdss" },
>  	{ .compatible = "qcom,sdm845-mss-pil" },

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

* Re: [PATCH] iommu/arm-smmu-qcom: Select identity domain for sc8280xp MDSS
  2023-01-13  4:11 [PATCH] iommu/arm-smmu-qcom: Select identity domain for sc8280xp MDSS Bjorn Andersson
  2023-01-13  4:16 ` Konrad Dybcio
@ 2023-01-19 19:08 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2023-01-19 19:08 UTC (permalink / raw)
  To: Sai Prakash Ranjan, Robin Murphy, Bjorn Andersson, Joerg Roedel
  Cc: catalin.marinas, kernel-team, Will Deacon, Dmitry Baryshkov,
	Konrad Dybcio, iommu, linux-kernel, linux-arm-kernel

On Thu, 12 Jan 2023 20:11:04 -0800, Bjorn Andersson wrote:
> The Qualcomm display driver installs a translation domain once it has
> mapped a framebuffer. Use the identity domain for this device on
> SC8280XP as well, to avoid faults from EFI FB accessing the framebuffer
> while this is being set up.
> 
> 

Applied to will (for-joerg/arm-smmu/updates), thanks!

[1/1] iommu/arm-smmu-qcom: Select identity domain for sc8280xp MDSS
      https://git.kernel.org/will/c/1d6316e50572

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:[~2023-01-19 19:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13  4:11 [PATCH] iommu/arm-smmu-qcom: Select identity domain for sc8280xp MDSS Bjorn Andersson
2023-01-13  4:16 ` Konrad Dybcio
2023-01-19 19:08 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®