From patchwork Tue Jul 4 12:23:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 698995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEAC9C0015E for ; Tue, 4 Jul 2023 12:25:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231882AbjGDMZP (ORCPT ); Tue, 4 Jul 2023 08:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbjGDMYf (ORCPT ); Tue, 4 Jul 2023 08:24:35 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D166E1BCD for ; Tue, 4 Jul 2023 05:23:24 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b6a16254a4so82811221fa.0 for ; Tue, 04 Jul 2023 05:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688473403; x=1691065403; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BfZetCTb7qe7Kln5fO24A0lyGB1o99Go22cdh/m51mI=; b=EWHnEA4c8uuC1fr46CXolQALOCRN68WA20PAqWLsKKtk9oe3/gW2wGv9E6otaU5dBD oOhpeQTAQ0/DuJUvyVhr+oO17vaRcmjVsmlC943z57EegfqS3jkGJypE9+YV+x+DGeQd tqM9u+vOpS1Lel5xY7YjDHHqlFjX8jC0CShO5bQjkC7uv6rDiVNVbEgLhDkmqbWgfBLp NZ9L7nRo7L+bB85kF/EBjWOmHG7MZhFSiBQrwBFGEF8rwo7kOCSXq2fw61CJbvF0DiSb UxBJalUbMhf26o9CcpJBRSO8h3dLS5HvnJMaxNXMUFl1sBrtCh01vs6/1AOyiq8f//Ei e0bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688473403; x=1691065403; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BfZetCTb7qe7Kln5fO24A0lyGB1o99Go22cdh/m51mI=; b=Raw7CXs44IjxXGRei2C2SDepYqDEGQtDjOcYznhvY8KVdd0ZboNpMARUPeZLM+FPqn lHiEhUJsERzYKIg1IAE8PAGqvVq6e2pm1Smqg6AW9Niq31LHE0eoTxO2PQ6VUyuobtur XteLCQEs5Z0QvI3nB5Yduq0CthYSytz8+TW+GTSXU/+booCuBm57ufcPmJ3i7MrRQyKe ia3eBH4fhPBIdi3wTc0Bnt7lKH8g+qgcFzHRFje+irXrB1fFC9S60vdGDlCPHjXIksU/ eCByy3OjQyhwxr33KFhzIf53kzTj/Sy45EafxFyJHQbR2qC6izEtRP3YiqJH/rKWxgkN ZKVA== X-Gm-Message-State: ABy/qLZoj8L2rfvDXy7e9+GlHAjoevPa0BkeDp6XR8AyMV4XtLK9LXAv kVTOsTvLyiPohPZwE3cr57Qf+g== X-Google-Smtp-Source: APBJJlHQFoYtY1ofS4Y3l6PYo9Tv8feS5VF5rVSPfgGH1Wtqm6pEb8or7GWii4bcd9pG8QgxNYmk1g== X-Received: by 2002:a2e:3611:0:b0:2b6:fa8d:ff91 with SMTP id d17-20020a2e3611000000b002b6fa8dff91mr762817lja.3.1688473403097; Tue, 04 Jul 2023 05:23:23 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id y16-20020a2e9790000000b002b6d465583csm2851817lji.126.2023.07.04.05.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 05:23:22 -0700 (PDT) From: Konrad Dybcio Date: Tue, 04 Jul 2023 14:23:17 +0200 Subject: [PATCH 1/2] arm64: dts: qcom: sm8250: Mark PCIe hosts as DMA coherent MIME-Version: 1.0 Message-Id: <20230704-topic-8250_pcie_dmac-v1-1-799603a980b0@linaro.org> References: <20230704-topic-8250_pcie_dmac-v1-0-799603a980b0@linaro.org> In-Reply-To: <20230704-topic-8250_pcie_dmac-v1-0-799603a980b0@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Dmitry Baryshkov , Jonathan Marek Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688473400; l=1039; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=/trrPqlOGVYGD4KobXwWL7iAusm8QIT3+NP76Mg5xnE=; b=bC54OwHZByqZwcz9qOumBMtmQW7JnNGGGIhkwtwVRQumSxGz3BtQgwkgw8FarJdJTPzBlyT+v 1fN+x3Qh2l6DNhIhdRMg61U3+ODuEdrrhaqcZ2WZzJ14uixsHAecPTE X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PCIe hosts on SM8250 are cache-coherent. Mark them as such. Fixes: e53bdfc00977 ("arm64: dts: qcom: sm8250: Add PCIe support") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 1efa07f2caff..1af0eed9eef5 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1905,6 +1905,7 @@ pcie0: pci@1c00000 { pinctrl-names = "default"; pinctrl-0 = <&pcie0_default_state>; + dma-coherent; status = "disabled"; }; @@ -2011,6 +2012,7 @@ pcie1: pci@1c08000 { pinctrl-names = "default"; pinctrl-0 = <&pcie1_default_state>; + dma-coherent; status = "disabled"; }; @@ -2119,6 +2121,7 @@ pcie2: pci@1c10000 { pinctrl-names = "default"; pinctrl-0 = <&pcie2_default_state>; + dma-coherent; status = "disabled"; }; From patchwork Tue Jul 4 12:23:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 699737 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82C63EB64D9 for ; Tue, 4 Jul 2023 12:25:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231680AbjGDMZR (ORCPT ); Tue, 4 Jul 2023 08:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231281AbjGDMZB (ORCPT ); Tue, 4 Jul 2023 08:25:01 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73EB21BD3 for ; Tue, 4 Jul 2023 05:23:26 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b5c231c23aso89373171fa.0 for ; Tue, 04 Jul 2023 05:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688473405; x=1691065405; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=uPValZyTZ8WT4pXLvEOIhNkjZRCsSVMvy0kqcxXBZWY=; b=GbdNYU+53uc+CKJ45SjHdFYvihr23ISMMItqnnGph2QrBQp/yUMObVlUB5z18Fww6W V3fldaqEl6L+CEcp8/o4l5MeC26PsbGQXiTDGgZp3Ptioa6a9IES2HzueIOT7VyOTN61 bjquV6U0C5dzQJvTdxRdYqxI34m0L0zIo5Tiei5DBfaiYD23RrrjWjomMgQS9bdPis6V cdi8Xj60xM914Rj+lfjdlREdLmdWQ5IpQcBKnJzq9xBHTLacA6ImPgMFeD/Z/Bz5DM0N mXLOunrwwhKfvcGwfdSVKQH4J07PeT/P/5SZDXhbQJk0o2Glnwd5l11l0jV0a4F8Ey0Y lLCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688473405; x=1691065405; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uPValZyTZ8WT4pXLvEOIhNkjZRCsSVMvy0kqcxXBZWY=; b=HPB1R3AKZYM/BaRfvfhJUp1DFT+IdYeLJ7ElRF2YhjRZxw7S2F4HA50QKoP+S0Mjx3 PgHK0FrxeCwLZYIOo1zLFmTj2+NaBgWCQDxSEd9qobR+SHOgNv1IWzuCnRbUTQzz/T5h PPQ9CMyTpDpGEQ72ALLj3MT9DYksxXPwuS5a19I51YPbC1hbal0oPWScGpLHNUdujk4s bLBqSewU1hbHabZNDwixBmy+15teV/TDDBFoiL+kC6VuRr96AOzrmRBaX1EjbwZIxhKA TKOsi3pnj5Ce4eHK8OgOOyeMSoLK/ni/jjLPdkBI77EcxjkvW/WU5MZJxkKU0Qf50D9q F5Tg== X-Gm-Message-State: ABy/qLYxz6g321VjmoxI3PYRMjI4ozOyxIjQ8bKNPQaNWwIqFNtFQWAz e1M8U8WrObH8uVQ7EISHv69EZQ== X-Google-Smtp-Source: APBJJlGhow9mucQnVPsfHwcdatGIOezpi0wujhzokvFVMFGT/fK19zshJEpL7q0k7GTqRVHtWMA6Kw== X-Received: by 2002:a2e:7011:0:b0:2b6:e958:d03 with SMTP id l17-20020a2e7011000000b002b6e9580d03mr4190511ljc.30.1688473404846; Tue, 04 Jul 2023 05:23:24 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id y16-20020a2e9790000000b002b6d465583csm2851817lji.126.2023.07.04.05.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 05:23:24 -0700 (PDT) From: Konrad Dybcio Date: Tue, 04 Jul 2023 14:23:18 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: sm8250: Mark SMMUs as DMA coherent MIME-Version: 1.0 Message-Id: <20230704-topic-8250_pcie_dmac-v1-2-799603a980b0@linaro.org> References: <20230704-topic-8250_pcie_dmac-v1-0-799603a980b0@linaro.org> In-Reply-To: <20230704-topic-8250_pcie_dmac-v1-0-799603a980b0@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Dmitry Baryshkov , Jonathan Marek Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688473400; l=1012; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=VBShug28IBIFJfOo9caAInSc6q5XHytMqyraNym9TJs=; b=3Q7TSlPOV0jaUPz/ndqxXhZeVAyVR+DygeEGccfP5sWFJmt2hzoRB/YMfoX+lmk8Wcf//cyYm xvYJbE9aEYbC3Kc97Jj+kSOPYiwCaXBnFbflUPm9IZbP5VT0a1NVThO X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The SMMUs on SM8250 are cache-coherent. Mark them as such. Fixes: a89441fcd09d ("arm64: dts: qcom: sm8250: add apps_smmu node") Fixes: 04a3605b184e ("arm64: dts: qcom: add sm8250 GPU nodes") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 1af0eed9eef5..ccc38c205de3 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2729,6 +2729,7 @@ adreno_smmu: iommu@3da0000 { clock-names = "ahb", "bus", "iface"; power-domains = <&gpucc GPU_CX_GDSC>; + dma-coherent; }; slpi: remoteproc@5c00000 { @@ -5399,6 +5400,7 @@ apps_smmu: iommu@15000000 { , , ; + dma-coherent; }; adsp: remoteproc@17300000 {