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: 700585 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 CE0E7EB64DA for ; Tue, 4 Jul 2023 12:25:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231886AbjGDMZP (ORCPT ); Tue, 4 Jul 2023 08:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231923AbjGDMYe (ORCPT ); Tue, 4 Jul 2023 08:24:34 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C81A910C8 for ; Tue, 4 Jul 2023 05:23:24 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b6f9edac8dso6852081fa.3 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=Xzgni8SzRjBc6ax33OLVxBEH6tEAuSUy2Z9mkD4wtiTpFZsm6nu7W74giHhBkBIoHM m7Zch6fu0/fQ0FU6Yf0eZNy+jPkwyT79gUHunrgUbMX5L2DxK7Y03W7/PIFBdOzfG73m /UCWGfUcXNQyjosiDfzFCHCV1sBaRJzPpY53ihsJlm7yU0geVShrSNpAYaBbNpN3KkX7 cg5jNnZw/CLOfiuPt5+AvrfC4dXS4yW3OmNwhxc1vJZYN/JJGMDCkIoSy8QzoaQKBlvf VeehIUhSAuB55xkAwwA9G4GoZ70xDafMTwje3uD/9k/LgNmVcIF15Y50dzJykixJC3d5 QCkg== X-Gm-Message-State: ABy/qLbqHmqjP8WF+GaKQnPl+TuUCCeSHvdD3mHQX4+fFhemzHcSmA2G CLT47n2IevpDevkA3+XQNVtnFw== 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: devicetree@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"; };