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: 115746 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1183087vqx; Tue, 4 Jul 2023 05:28:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGNWSIeIViaUb++QU2e+dT/46ii1YYrzu/3a2QLJFkGxlZwYyuzMXaVdChr5ENVGORU3FHK X-Received: by 2002:a17:90a:b81:b0:262:c291:4b6c with SMTP id 1-20020a17090a0b8100b00262c2914b6cmr14060673pjr.45.1688473726091; Tue, 04 Jul 2023 05:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688473726; cv=none; d=google.com; s=arc-20160816; b=VBjcHhkQdB52B80gT5EZ3J9n661N4oC0qui5NF/W/cgDCTMMpudCUNLMcEEcHdT5In v1/rWD1LK57qZEsTAqWMzxPEVQdax/H/e2MSVwVJZKSV7NHR+XuWuEaTAV7Hu1GCuTRH KBMc7VsKqqGV7DGJ5gQtiNFW+Xg+mkXHxoYyJhviHpeEDfQhgXC/+kgdk5+5udJjIzRY SNm4uUO/SMZJHfUoiMZ+4pawFLuivFpluvrVMyoVp7HEs0tvxql2IISlloYTcoINZ2Ou ckkAdL0Usyupt2LqgDv1TPqKMawvx9Ua6Igg+EjUgIav4l0j9xvOXgcrJRSmlqd5YN6S 5ULg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=uPValZyTZ8WT4pXLvEOIhNkjZRCsSVMvy0kqcxXBZWY=; fh=3HhXBpLhxryLDS9hhG63s0senNPZbSdlaZeCibx2qT8=; b=fA+PwGiYhZylaIrOzaurIjjne8nA+KrKtiqBiBTcJPK34DZCXHEcknJ3dgTv7S8JDw s5XE6YyAXXC+pzjnaZh2Bcp1XSKMFISmV+uAdzyBvBY1Z88J6nUCGrBQgd3Owwmo9SUf RpREQBbpC7uSdFu/G1cHTAkqy3FTE7npbJ1bAONCrHTLLSyl++FEWvRGLGn1t+Qb7Cof z0pfQGG/t88DuyiZ4tS7SiPvk5linsEgYFQX5gk7UViIDXSOQwroqU9R0v+f3nn/xR5n 0SW5eziNqYgzR9x8WwlFyLUvdDdFgIE4sMLFiaPHkqhZn2pII3JeQRVu6G58CKEZDB7d PAdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GbdNYU+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k60-20020a17090a3ec200b002563251c8e7si8683058pjc.128.2023.07.04.05.28.19; Tue, 04 Jul 2023 05:28:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GbdNYU+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231700AbjGDMZU (ORCPT + 99 others); Tue, 4 Jul 2023 08:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbjGDMZC (ORCPT ); Tue, 4 Jul 2023 08:25:02 -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 7481A1BD4 for ; Tue, 4 Jul 2023 05:23:26 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b69f958ef3so89203271fa.1 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=RKZnxfzW66jAEPyOTDpSYQqvPGGlgKlaj8I6t/jsFGh6yD7p8UPdZW7ogThs/O84Ib kTBdPMAB829lTZD+u5J9g8dhLiw5WNmtYKniS0O8aMMeybWq5dkh3roHiSr7v9Te1vw8 soee8oCJ0snuSv53Fk34Dlh2XX6sjur2JrnnXxtVowD7b/Hrjvht8r3/IDNnkEYz+/ad 4a7hRYPY9I0xhAydGfGZQ00Nq2H5Ur949AOEwr/K+1uhs57U1aCCw50/wg/d5jGLOA8v Sso42eikMhorZaZpHoCptfw90sMKue6+SKAqLSwsBjEiIoFuV6vl3EKP9+HUyTfQac2n zgnA== X-Gm-Message-State: ABy/qLYmaCt6HmpHgm4jAl3LeVCK85HgDqo+9gRR8j0MJmhEeI0os+1u C22L1VKQM+OTAfak6lcIsDPmaA== 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= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770493026165476282?= X-GMAIL-MSGID: =?utf-8?q?1770493026165476282?= 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 {