From patchwork Wed Aug 30 12:48:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 718660 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 BDB11C83F18 for ; Wed, 30 Aug 2023 18:32:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235752AbjH3ScX (ORCPT ); Wed, 30 Aug 2023 14:32:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244253AbjH3Ms4 (ORCPT ); Wed, 30 Aug 2023 08:48:56 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6377FCD6 for ; Wed, 30 Aug 2023 05:48:53 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2bd0d19a304so52068681fa.1 for ; Wed, 30 Aug 2023 05:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693399731; x=1694004531; darn=vger.kernel.org; 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=DWiI/MO+dRLYiRlM6yuPgVrkrfGEHgAGx/JBsoZ6UJs=; b=AezHbQYgNOg5drXaw+6li3c7HTddL90Txak7dtzLkq42wLRpy0ENsMEKulCd8S1KU4 BYD5NSalBF/wXXZWc+kFktTKdbJlMgqUKV+JaGRgn06ldmpBihOhbuvTlTHl6a1vYvPh wj4MAauNnzgHttjRPvLPsNJTf1AH6JtEzZppuVR/d1M6+CSPb3UHQSO2+CDuGeOdNLMJ xtFt/ya81Aa95URhqRAxYeTTlJnGDeUyf4oNTCnY8SuRJI1CLNWm52UuvlmTcNReQoO+ q6XoQTmixw24fKw1vM70IlBCQIFNHn6YclUiyHPvSLhb1onnlvsobe/pG6lpD+2N+viv bepQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693399731; x=1694004531; 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=DWiI/MO+dRLYiRlM6yuPgVrkrfGEHgAGx/JBsoZ6UJs=; b=ZxwKTl+KLZJlJadwkGIxA9ilB2/LYmao7mgFEBIbKCdngBsdSL9QSg5yZNbX+Clf/8 KP+6pqFb5xtKv3gNt6Dge9iJyJ4JNMZUzH+AWlc1gsXyZXCc8fUzHPgAYwfdFAI7ZlRD TCz1jqTno8fxifunQHarhcGBDnD1OTy6pH1vrJ+sRc/AtimR86+ivVsRc4mdGehbNFbr PKcaniXg5uxMmYulFm2Z1LdM/rxYT8hmT+53zNEZzAXdw09TGNWL1eTcqpv5CZh7555V IVqV6lgcI8rnpueeHZhkKPIWwotUDRhStkTnau91tjRyF9GErpa3XnfkUeT6xWmr4Pd5 FG/Q== X-Gm-Message-State: AOJu0YyVdUXsy9PAs8UbGnhCIQOYeAqTDFcYYT4701g1ARuD6NXNGDzq SjPr4P84gQOZeQ8Eyg6aRz/exA== X-Google-Smtp-Source: AGHT+IGB6EjRvwDNWJL79VaWPpWpa//96gMp6keseMR2AQZCJmTBMEHBAohqGiuZ/tfwSe7ymS3Eng== X-Received: by 2002:a2e:9ed3:0:b0:2bc:f756:341 with SMTP id h19-20020a2e9ed3000000b002bcf7560341mr1735083ljk.35.1693399731713; Wed, 30 Aug 2023 05:48:51 -0700 (PDT) Received: from [192.168.1.101] (abyl195.neoplus.adsl.tpnet.pl. [83.9.31.195]) by smtp.gmail.com with ESMTPSA id y23-20020a2e7d17000000b002b94b355527sm2602662ljc.32.2023.08.30.05.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 05:48:51 -0700 (PDT) From: Konrad Dybcio Date: Wed, 30 Aug 2023 14:48:43 +0200 Subject: [PATCH 4/7] arm64: dts: qcom: sm8550: Mark QUPs and GPI dma-coherent MIME-Version: 1.0 Message-Id: <20230830-topic-8550_dmac2-v1-4-49bb25239fb1@linaro.org> References: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> In-Reply-To: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Neil Armstrong , Sai Prakash Ranjan , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693399725; l=1550; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=KpP1uTJWmiR9lXNPKL0Q4ECVHINhEgm+GZ5ZKetVnSM=; b=+dD2d2XMnFSAp9IluhmgTkJG4at8z79Ut86xE2lm9psXhU19uVuohOEECjdUPhFsFNgj2V/cY 3ys4iS9J/wyBllOhvAgptcW3SEJmrfB+je1ZLzPBHAIDsQFkB1eiWyO 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 These peripherals are DMA-coherent on 8550. Mark them as such. Interestingly enough, the I2C master hubs are not. Fixes: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index c21ba6afa752..d1911b2f0bf3 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -809,6 +809,7 @@ gpi_dma2: dma-controller@800000 { dma-channels = <12>; dma-channel-mask = <0x3e>; iommus = <&apps_smmu 0x436 0>; + dma-coherent; status = "disabled"; }; @@ -820,6 +821,7 @@ qupv3_id_1: geniqup@8c0000 { clocks = <&gcc GCC_QUPV3_WRAP_2_M_AHB_CLK>, <&gcc GCC_QUPV3_WRAP_2_S_AHB_CLK>; iommus = <&apps_smmu 0x423 0>; + dma-coherent; #address-cells = <2>; #size-cells = <2>; status = "disabled"; @@ -1305,6 +1307,7 @@ gpi_dma1: dma-controller@a00000 { dma-channels = <12>; dma-channel-mask = <0x1e>; iommus = <&apps_smmu 0xb6 0>; + dma-coherent; status = "disabled"; }; @@ -1318,6 +1321,7 @@ qupv3_id_0: geniqup@ac0000 { iommus = <&apps_smmu 0xa3 0>; interconnects = <&clk_virt MASTER_QUP_CORE_1 0 &clk_virt SLAVE_QUP_CORE_1 0>; interconnect-names = "qup-core"; + dma-coherent; #address-cells = <2>; #size-cells = <2>; status = "disabled";