Message ID | 20221207062913.3154262-1-bhupesh.sharma@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp17417wrr; Tue, 6 Dec 2022 22:39:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf72QZwjVZaMdU9wxxBqG6wyqrFXINOXdbx9AhoeC3PqFGxU3uYJRHd0Hf6/aS1EoXRl6VvE X-Received: by 2002:aa7:dbc3:0:b0:461:6b61:81ae with SMTP id v3-20020aa7dbc3000000b004616b6181aemr79736049edt.62.1670395150722; Tue, 06 Dec 2022 22:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670395150; cv=none; d=google.com; s=arc-20160816; b=a3ix/WlTSSvBj80YVK79D0NawEhr7uFj5D3Z9m00QH3ZqbsqxMWTBe6kpUwxrfjOBu trRDVRAVhEgsWnbvztmbZl+AjOt8A+eMjICwKOIB5zG7AHGy6XqlsAImedOHOom9qoMz UVaaJnQF2wmFE0oX9fHpgENad8uilYUNsj6O1FPuKT48u7ByYo0a1Pdrd3pUz7ASDant TatTxa2SDiaR/4tbnGTO/kxfLH5XkEvC4i+gfE37OVMCvTiRcC5quTWpulTnjKKW4cCM UTRltXG8g8pI06B/7NQvbHCy8zbeFeYD2mR8CfC6SAKrZHsmd5i18ZhtIWzOIpgdIV/z Drzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=iX94usecQpYHQ7lRzJnclRYWm0+XDQltVTyOpei9CJg=; b=KJ720bkI3tL/zBbqtOPFnjAMo1tn2HHJBETnSrv4tuBy4pu0uiPoTyu9tryT/vw4Rd asVpM0hG8gYazKuer6PTcrm+5G1RpZZaAVoEKYBsjDQ/2PDUbm40nH/i1B616dhg0GHD B7Q5s78QfuuXvaR7c/5HBsC6BGC3RVex9wH5D2KCgSvqsw2BNuev2V5AjHSCQQJdGP/0 vN0Pd2R0rBBj/a93ciir+ol5hOGui6RgRSaypcAqoXzu+juPDxu4zr5IoKu07OTtWJam WARlVzSzUYQAXssHHTQnouRP5EIO/FDxEVD6D2h1R9ePpVg9NvaDcHO2BMl+XpnI6pRq hs7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y0FkDKpJ; 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 dn16-20020a17090794d000b007824b85978asi16670006ejc.81.2022.12.06.22.38.46; Tue, 06 Dec 2022 22:39:10 -0800 (PST) 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=Y0FkDKpJ; 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 S229832AbiLGG3d (ORCPT <rfc822;b08248@gmail.com> + 99 others); Wed, 7 Dec 2022 01:29:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbiLGG3a (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Dec 2022 01:29:30 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1D9759FC5 for <linux-kernel@vger.kernel.org>; Tue, 6 Dec 2022 22:29:28 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id h193so15401923pgc.10 for <linux-kernel@vger.kernel.org>; Tue, 06 Dec 2022 22:29:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iX94usecQpYHQ7lRzJnclRYWm0+XDQltVTyOpei9CJg=; b=Y0FkDKpJXUkz3HYS0zkrzo49g5Zg+1ELoJbVU4tiIQGVJZzQ1htzt/yhca2hBF0yix XKzCK7BNfcrU7GULKSiHY/PnOc1GD4uap7ZK19j5uNUb5ct/vO7Q3oTTuebryS7wBC3y lBSgsymD2u5El6A6D/qsUpsmeKJRh7canyXX0e5Xq9E5MXX5adzyHgrAPS+PvmOlPUZK KeO11Xfk32Uv7aLBnOn5tdscW8+TlW0EBdn/5IcpQEgCCshSVxVYM/JgZmK/opGnTmd2 MMK8dVAz5sWxpmnYg9cqhuuGPLIxI5Kkky5hM83Cyl+37L5nCbYt2uacOsjILGNgDMjG Tfhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iX94usecQpYHQ7lRzJnclRYWm0+XDQltVTyOpei9CJg=; b=IASXD+bb02HPwMlh2tTUYnUhUdj4xZDjg6qcSuZuz2y9ynape+qlA5KKiEBEYStxEB gvvNhZf7pBei45SMpbKIxVJ+gnTI+4Ih/xOMjb36YYqIjnnIB3NEjWlAK8YiWfP3XzGl oQriIv7FoaVXLkE6qj55Koyj63e+UIXvo6Gtpw8DU/0rY57pZU3/qqA+qdxa02vKASRR csabSjkQvhBjEYfv36hLLsnb3H0DVIjHwMVdK8UclBJIsmD7R7sTpn2GPtexPNCC88UN qgcmhqG91R3JQZZTdqyJveXEpDhLuttI8S0CXB5OJqMNzTTeBx+GqlwL0auszwuXTNYO 6yaw== X-Gm-Message-State: ANoB5pkmN1d+IHS7uMPQk5r7ozsJPOOwQgQxAKZOm0Ee5y61hMLqwy+g P/PgY+vqo6KBbcgjNUcbYLM9Vg== X-Received: by 2002:a63:f4b:0:b0:46f:98cf:3bb6 with SMTP id 11-20020a630f4b000000b0046f98cf3bb6mr63190842pgp.332.1670394568155; Tue, 06 Dec 2022 22:29:28 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1c5e:463a:3448:b9c:1bc1:63ac]) by smtp.gmail.com with ESMTPSA id c7-20020a056a00008700b0057726bd7335sm3306243pfj.121.2022.12.06.22.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 22:29:27 -0800 (PST) From: Bhupesh Sharma <bhupesh.sharma@linaro.org> To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, konrad.dybcio@linaro.org, andersson@kernel.org Subject: [PATCH] arm64: dts: qcom: sm8150: Fix iommu sid values for PCIe nodes Date: Wed, 7 Dec 2022 11:59:13 +0530 Message-Id: <20221207062913.3154262-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751536265613736421?= X-GMAIL-MSGID: =?utf-8?q?1751536265613736421?= |
Series |
arm64: dts: qcom: sm8150: Fix iommu sid values for PCIe nodes
|
|
Commit Message
Bhupesh Sharma
Dec. 7, 2022, 6:29 a.m. UTC
Fix the iommu sid values for the PCIe nodes present on
Qualcomm SM8150 SoC dtsi (in sync the with downstream code).
Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes")
Cc: Bjorn Andersson <andersson@kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8150.dtsi | 32 ++++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)
Comments
Hi Bhupesh,
I love your patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.1-rc8 next-20221207]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Bhupesh-Sharma/arm64-dts-qcom-sm8150-Fix-iommu-sid-values-for-PCIe-nodes/20221207-143044
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20221207062913.3154262-1-bhupesh.sharma%40linaro.org
patch subject: [PATCH] arm64: dts: qcom: sm8150: Fix iommu sid values for PCIe nodes
config: arm64-randconfig-r026-20221207
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/8e9bc365874888e1e06f348add387ae3c3415ae6
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Bhupesh-Sharma/arm64-dts-qcom-sm8150-Fix-iommu-sid-values-for-PCIe-nodes/20221207-143044
git checkout 8e9bc365874888e1e06f348add387ae3c3415ae6
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> Error: arch/arm64/boot/dts/qcom/sm8150.dtsi:1816.9-10 syntax error
FATAL ERROR: Unable to parse input tree
On 07/12/2022 07:29, Bhupesh Sharma wrote: > Fix the iommu sid values for the PCIe nodes present on > Qualcomm SM8150 SoC dtsi (in sync the with downstream code). > > Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes") > Cc: Bjorn Andersson <andersson@kernel.org> > Cc: Rob Herring <robh+dt@kernel.org> > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8150.dtsi | 32 ++++++++++++++++++++++++++-- > 1 file changed, 30 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi > index d1b64280ab0b..e88d1617a1ab 100644 > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi > @@ -1810,9 +1810,23 @@ pcie0: pci@1c00000 { > "slave_q2a", > "tbu"; > > - iommus = <&apps_smmu 0x1d80 0x7f>; > + iommus = <&apps_smmu 0x1d80 0xf>; > iommu-map = <0x0 &apps_smmu 0x1d80 0x1>, > <0x100 &apps_smmu 0x1d81 0x1>; Should be a "," here. > + <0x200 &apps_smmu 0x1d82 0x1>, > + <0x300 &apps_smmu 0x1d83 0x1>, > + <0x400 &apps_smmu 0x1d84 0x1>, > + <0x500 &apps_smmu 0x1d85 0x1>, > + <0x600 &apps_smmu 0x1d86 0x1>, > + <0x700 &apps_smmu 0x1d87 0x1>, > + <0x800 &apps_smmu 0x1d88 0x1>, > + <0x900 &apps_smmu 0x1d89 0x1>, > + <0xa00 &apps_smmu 0x1d8a 0x1>, > + <0xb00 &apps_smmu 0x1d8b 0x1>, > + <0xc00 &apps_smmu 0x1d8c 0x1>, > + <0xd00 &apps_smmu 0x1d8d 0x1>, > + <0xe00 &apps_smmu 0x1d8e 0x1>, > + <0xf00 &apps_smmu 0x1d8f 0x1>; > > resets = <&gcc GCC_PCIE_0_BCR>; > reset-names = "pci"; > @@ -1909,9 +1923,23 @@ pcie1: pci@1c08000 { > assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; > assigned-clock-rates = <19200000>; > > - iommus = <&apps_smmu 0x1e00 0x7f>; > + iommus = <&apps_smmu 0x1e00 0xf>; > iommu-map = <0x0 &apps_smmu 0x1e00 0x1>, > <0x100 &apps_smmu 0x1e01 0x1>; And here. Konrad > + <0x200 &apps_smmu 0x1e02 0x1>, > + <0x300 &apps_smmu 0x1e03 0x1>, > + <0x400 &apps_smmu 0x1e04 0x1>, > + <0x500 &apps_smmu 0x1e05 0x1>, > + <0x600 &apps_smmu 0x1e06 0x1>, > + <0x700 &apps_smmu 0x1e07 0x1>, > + <0x800 &apps_smmu 0x1e08 0x1>, > + <0x900 &apps_smmu 0x1e09 0x1>, > + <0xa00 &apps_smmu 0x1e0a 0x1>, > + <0xb00 &apps_smmu 0x1e0b 0x1>, > + <0xc00 &apps_smmu 0x1e0c 0x1>, > + <0xd00 &apps_smmu 0x1e0d 0x1>, > + <0xe00 &apps_smmu 0x1e0e 0x1>, > + <0xf00 &apps_smmu 0x1e0f 0x1>; > > resets = <&gcc GCC_PCIE_1_BCR>; > reset-names = "pci";
On Wed, 7 Dec 2022 at 09:29, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote: > > Fix the iommu sid values for the PCIe nodes present on > Qualcomm SM8150 SoC dtsi (in sync the with downstream code). The commit message describes what you did, not why. Is there any actual issue that you are trying to solve? It makes me wonder because all modern Qualcomm platforms share more or less the same setup. > > Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes") > Cc: Bjorn Andersson <andersson@kernel.org> > Cc: Rob Herring <robh+dt@kernel.org> No need to have regular maintainers in Cc tags. Please use regular git-send-email arguments instead. > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8150.dtsi | 32 ++++++++++++++++++++++++++-- > 1 file changed, 30 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi > index d1b64280ab0b..e88d1617a1ab 100644 > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi > @@ -1810,9 +1810,23 @@ pcie0: pci@1c00000 { > "slave_q2a", > "tbu"; > > - iommus = <&apps_smmu 0x1d80 0x7f>; > + iommus = <&apps_smmu 0x1d80 0xf>; > iommu-map = <0x0 &apps_smmu 0x1d80 0x1>, > <0x100 &apps_smmu 0x1d81 0x1>; it looks like the patch was not even compile-tested. > + <0x200 &apps_smmu 0x1d82 0x1>, > + <0x300 &apps_smmu 0x1d83 0x1>, > + <0x400 &apps_smmu 0x1d84 0x1>, > + <0x500 &apps_smmu 0x1d85 0x1>, > + <0x600 &apps_smmu 0x1d86 0x1>, > + <0x700 &apps_smmu 0x1d87 0x1>, > + <0x800 &apps_smmu 0x1d88 0x1>, > + <0x900 &apps_smmu 0x1d89 0x1>, > + <0xa00 &apps_smmu 0x1d8a 0x1>, > + <0xb00 &apps_smmu 0x1d8b 0x1>, > + <0xc00 &apps_smmu 0x1d8c 0x1>, > + <0xd00 &apps_smmu 0x1d8d 0x1>, > + <0xe00 &apps_smmu 0x1d8e 0x1>, > + <0xf00 &apps_smmu 0x1d8f 0x1>; > > resets = <&gcc GCC_PCIE_0_BCR>; > reset-names = "pci"; > @@ -1909,9 +1923,23 @@ pcie1: pci@1c08000 { > assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; > assigned-clock-rates = <19200000>; > > - iommus = <&apps_smmu 0x1e00 0x7f>; > + iommus = <&apps_smmu 0x1e00 0xf>; > iommu-map = <0x0 &apps_smmu 0x1e00 0x1>, > <0x100 &apps_smmu 0x1e01 0x1>; > + <0x200 &apps_smmu 0x1e02 0x1>, > + <0x300 &apps_smmu 0x1e03 0x1>, > + <0x400 &apps_smmu 0x1e04 0x1>, > + <0x500 &apps_smmu 0x1e05 0x1>, > + <0x600 &apps_smmu 0x1e06 0x1>, > + <0x700 &apps_smmu 0x1e07 0x1>, > + <0x800 &apps_smmu 0x1e08 0x1>, > + <0x900 &apps_smmu 0x1e09 0x1>, > + <0xa00 &apps_smmu 0x1e0a 0x1>, > + <0xb00 &apps_smmu 0x1e0b 0x1>, > + <0xc00 &apps_smmu 0x1e0c 0x1>, > + <0xd00 &apps_smmu 0x1e0d 0x1>, > + <0xe00 &apps_smmu 0x1e0e 0x1>, > + <0xf00 &apps_smmu 0x1e0f 0x1>; > > resets = <&gcc GCC_PCIE_1_BCR>; > reset-names = "pci"; > -- > 2.38.1 >
On Thu, 8 Dec 2022 at 15:25, Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > > > > On 07/12/2022 07:29, Bhupesh Sharma wrote: > > Fix the iommu sid values for the PCIe nodes present on > > Qualcomm SM8150 SoC dtsi (in sync the with downstream code). > > > > Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes") > > Cc: Bjorn Andersson <andersson@kernel.org> > > Cc: Rob Herring <robh+dt@kernel.org> > > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sm8150.dtsi | 32 ++++++++++++++++++++++++++-- > > 1 file changed, 30 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > index d1b64280ab0b..e88d1617a1ab 100644 > > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > @@ -1810,9 +1810,23 @@ pcie0: pci@1c00000 { > > "slave_q2a", > > "tbu"; > > > > - iommus = <&apps_smmu 0x1d80 0x7f>; > > + iommus = <&apps_smmu 0x1d80 0xf>; > > iommu-map = <0x0 &apps_smmu 0x1d80 0x1>, > > <0x100 &apps_smmu 0x1d81 0x1>; > Should be a "," here. > > > > + <0x200 &apps_smmu 0x1d82 0x1>, > > + <0x300 &apps_smmu 0x1d83 0x1>, > > + <0x400 &apps_smmu 0x1d84 0x1>, > > + <0x500 &apps_smmu 0x1d85 0x1>, > > + <0x600 &apps_smmu 0x1d86 0x1>, > > + <0x700 &apps_smmu 0x1d87 0x1>, > > + <0x800 &apps_smmu 0x1d88 0x1>, > > + <0x900 &apps_smmu 0x1d89 0x1>, > > + <0xa00 &apps_smmu 0x1d8a 0x1>, > > + <0xb00 &apps_smmu 0x1d8b 0x1>, > > + <0xc00 &apps_smmu 0x1d8c 0x1>, > > + <0xd00 &apps_smmu 0x1d8d 0x1>, > > + <0xe00 &apps_smmu 0x1d8e 0x1>, > > + <0xf00 &apps_smmu 0x1d8f 0x1>; > > > > resets = <&gcc GCC_PCIE_0_BCR>; > > reset-names = "pci"; > > @@ -1909,9 +1923,23 @@ pcie1: pci@1c08000 { > > assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; > > assigned-clock-rates = <19200000>; > > > > - iommus = <&apps_smmu 0x1e00 0x7f>; > > + iommus = <&apps_smmu 0x1e00 0xf>; > > iommu-map = <0x0 &apps_smmu 0x1e00 0x1>, > > <0x100 &apps_smmu 0x1e01 0x1>; > And here. Oops. Thanks for noticing this. I will send a v2, Konrad. Thanks, Bhupesh > Konrad > > + <0x200 &apps_smmu 0x1e02 0x1>, > > + <0x300 &apps_smmu 0x1e03 0x1>, > > + <0x400 &apps_smmu 0x1e04 0x1>, > > + <0x500 &apps_smmu 0x1e05 0x1>, > > + <0x600 &apps_smmu 0x1e06 0x1>, > > + <0x700 &apps_smmu 0x1e07 0x1>, > > + <0x800 &apps_smmu 0x1e08 0x1>, > > + <0x900 &apps_smmu 0x1e09 0x1>, > > + <0xa00 &apps_smmu 0x1e0a 0x1>, > > + <0xb00 &apps_smmu 0x1e0b 0x1>, > > + <0xc00 &apps_smmu 0x1e0c 0x1>, > > + <0xd00 &apps_smmu 0x1e0d 0x1>, > > + <0xe00 &apps_smmu 0x1e0e 0x1>, > > + <0xf00 &apps_smmu 0x1e0f 0x1>; > > > > resets = <&gcc GCC_PCIE_1_BCR>; > > reset-names = "pci";
On Thu, 8 Dec 2022 at 16:14, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote: > > On Wed, 7 Dec 2022 at 09:29, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote: > > > > Fix the iommu sid values for the PCIe nodes present on > > Qualcomm SM8150 SoC dtsi (in sync the with downstream code). > > The commit message describes what you did, not why. Is there any > actual issue that you are trying to solve? Right, I will add that in v2. We have a customer facing some sid related IOMMU transactional errors on sm8150 based boards. > It makes me wonder because all modern Qualcomm platforms share more or > less the same setup. Please see sdm845.dtsi, which does the same as suggested via this patch for sm8150. Thanks, Bhupesh > > Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes") > > Cc: Bjorn Andersson <andersson@kernel.org> > > Cc: Rob Herring <robh+dt@kernel.org> > > No need to have regular maintainers in Cc tags. Please use regular > git-send-email arguments instead. > > > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sm8150.dtsi | 32 ++++++++++++++++++++++++++-- > > 1 file changed, 30 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > index d1b64280ab0b..e88d1617a1ab 100644 > > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > @@ -1810,9 +1810,23 @@ pcie0: pci@1c00000 { > > "slave_q2a", > > "tbu"; > > > > - iommus = <&apps_smmu 0x1d80 0x7f>; > > + iommus = <&apps_smmu 0x1d80 0xf>; > > iommu-map = <0x0 &apps_smmu 0x1d80 0x1>, > > <0x100 &apps_smmu 0x1d81 0x1>; > > it looks like the patch was not even compile-tested. > > > + <0x200 &apps_smmu 0x1d82 0x1>, > > + <0x300 &apps_smmu 0x1d83 0x1>, > > + <0x400 &apps_smmu 0x1d84 0x1>, > > + <0x500 &apps_smmu 0x1d85 0x1>, > > + <0x600 &apps_smmu 0x1d86 0x1>, > > + <0x700 &apps_smmu 0x1d87 0x1>, > > + <0x800 &apps_smmu 0x1d88 0x1>, > > + <0x900 &apps_smmu 0x1d89 0x1>, > > + <0xa00 &apps_smmu 0x1d8a 0x1>, > > + <0xb00 &apps_smmu 0x1d8b 0x1>, > > + <0xc00 &apps_smmu 0x1d8c 0x1>, > > + <0xd00 &apps_smmu 0x1d8d 0x1>, > > + <0xe00 &apps_smmu 0x1d8e 0x1>, > > + <0xf00 &apps_smmu 0x1d8f 0x1>; > > > > resets = <&gcc GCC_PCIE_0_BCR>; > > reset-names = "pci"; > > @@ -1909,9 +1923,23 @@ pcie1: pci@1c08000 { > > assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; > > assigned-clock-rates = <19200000>; > > > > - iommus = <&apps_smmu 0x1e00 0x7f>; > > + iommus = <&apps_smmu 0x1e00 0xf>; > > iommu-map = <0x0 &apps_smmu 0x1e00 0x1>, > > <0x100 &apps_smmu 0x1e01 0x1>; > > + <0x200 &apps_smmu 0x1e02 0x1>, > > + <0x300 &apps_smmu 0x1e03 0x1>, > > + <0x400 &apps_smmu 0x1e04 0x1>, > > + <0x500 &apps_smmu 0x1e05 0x1>, > > + <0x600 &apps_smmu 0x1e06 0x1>, > > + <0x700 &apps_smmu 0x1e07 0x1>, > > + <0x800 &apps_smmu 0x1e08 0x1>, > > + <0x900 &apps_smmu 0x1e09 0x1>, > > + <0xa00 &apps_smmu 0x1e0a 0x1>, > > + <0xb00 &apps_smmu 0x1e0b 0x1>, > > + <0xc00 &apps_smmu 0x1e0c 0x1>, > > + <0xd00 &apps_smmu 0x1e0d 0x1>, > > + <0xe00 &apps_smmu 0x1e0e 0x1>, > > + <0xf00 &apps_smmu 0x1e0f 0x1>; > > > > resets = <&gcc GCC_PCIE_1_BCR>; > > reset-names = "pci"; > > -- > > 2.38.1 > > > > > -- > With best wishes > Dmitry
On Thu, 8 Dec 2022 at 14:05, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote: > > On Thu, 8 Dec 2022 at 16:14, Dmitry Baryshkov > <dmitry.baryshkov@linaro.org> wrote: > > > > On Wed, 7 Dec 2022 at 09:29, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote: > > > > > > Fix the iommu sid values for the PCIe nodes present on > > > Qualcomm SM8150 SoC dtsi (in sync the with downstream code). > > > > The commit message describes what you did, not why. Is there any > > actual issue that you are trying to solve? > > Right, I will add that in v2. We have a customer facing some sid > related IOMMU transactional errors on sm8150 based boards. > > > It makes me wonder because all modern Qualcomm platforms share more or > > less the same setup. > > Please see sdm845.dtsi, which does the same as suggested via this > patch for sm8150. Should we also apply the same change to other platforms? > > Thanks, > Bhupesh > > > > Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes") > > > Cc: Bjorn Andersson <andersson@kernel.org> > > > Cc: Rob Herring <robh+dt@kernel.org> > > > > No need to have regular maintainers in Cc tags. Please use regular > > git-send-email arguments instead. > > > > > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > > > --- > > > arch/arm64/boot/dts/qcom/sm8150.dtsi | 32 ++++++++++++++++++++++++++-- > > > 1 file changed, 30 insertions(+), 2 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > index d1b64280ab0b..e88d1617a1ab 100644 > > > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > @@ -1810,9 +1810,23 @@ pcie0: pci@1c00000 { > > > "slave_q2a", > > > "tbu"; > > > > > > - iommus = <&apps_smmu 0x1d80 0x7f>; > > > + iommus = <&apps_smmu 0x1d80 0xf>; > > > iommu-map = <0x0 &apps_smmu 0x1d80 0x1>, > > > <0x100 &apps_smmu 0x1d81 0x1>; > > > > it looks like the patch was not even compile-tested. > > > > > + <0x200 &apps_smmu 0x1d82 0x1>, > > > + <0x300 &apps_smmu 0x1d83 0x1>, > > > + <0x400 &apps_smmu 0x1d84 0x1>, > > > + <0x500 &apps_smmu 0x1d85 0x1>, > > > + <0x600 &apps_smmu 0x1d86 0x1>, > > > + <0x700 &apps_smmu 0x1d87 0x1>, > > > + <0x800 &apps_smmu 0x1d88 0x1>, > > > + <0x900 &apps_smmu 0x1d89 0x1>, > > > + <0xa00 &apps_smmu 0x1d8a 0x1>, > > > + <0xb00 &apps_smmu 0x1d8b 0x1>, > > > + <0xc00 &apps_smmu 0x1d8c 0x1>, > > > + <0xd00 &apps_smmu 0x1d8d 0x1>, > > > + <0xe00 &apps_smmu 0x1d8e 0x1>, > > > + <0xf00 &apps_smmu 0x1d8f 0x1>; > > > > > > resets = <&gcc GCC_PCIE_0_BCR>; > > > reset-names = "pci"; > > > @@ -1909,9 +1923,23 @@ pcie1: pci@1c08000 { > > > assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; > > > assigned-clock-rates = <19200000>; > > > > > > - iommus = <&apps_smmu 0x1e00 0x7f>; > > > + iommus = <&apps_smmu 0x1e00 0xf>; > > > iommu-map = <0x0 &apps_smmu 0x1e00 0x1>, > > > <0x100 &apps_smmu 0x1e01 0x1>; > > > + <0x200 &apps_smmu 0x1e02 0x1>, > > > + <0x300 &apps_smmu 0x1e03 0x1>, > > > + <0x400 &apps_smmu 0x1e04 0x1>, > > > + <0x500 &apps_smmu 0x1e05 0x1>, > > > + <0x600 &apps_smmu 0x1e06 0x1>, > > > + <0x700 &apps_smmu 0x1e07 0x1>, > > > + <0x800 &apps_smmu 0x1e08 0x1>, > > > + <0x900 &apps_smmu 0x1e09 0x1>, > > > + <0xa00 &apps_smmu 0x1e0a 0x1>, > > > + <0xb00 &apps_smmu 0x1e0b 0x1>, > > > + <0xc00 &apps_smmu 0x1e0c 0x1>, > > > + <0xd00 &apps_smmu 0x1e0d 0x1>, > > > + <0xe00 &apps_smmu 0x1e0e 0x1>, > > > + <0xf00 &apps_smmu 0x1e0f 0x1>; > > > > > > resets = <&gcc GCC_PCIE_1_BCR>; > > > reset-names = "pci"; > > > -- > > > 2.38.1 > > > > > > > > > -- > > With best wishes > > Dmitry
On Thu, 8 Dec 2022 at 19:43, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote: > > On Thu, 8 Dec 2022 at 14:05, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote: > > > > On Thu, 8 Dec 2022 at 16:14, Dmitry Baryshkov > > <dmitry.baryshkov@linaro.org> wrote: > > > > > > On Wed, 7 Dec 2022 at 09:29, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote: > > > > > > > > Fix the iommu sid values for the PCIe nodes present on > > > > Qualcomm SM8150 SoC dtsi (in sync the with downstream code). > > > > > > The commit message describes what you did, not why. Is there any > > > actual issue that you are trying to solve? > > > > Right, I will add that in v2. We have a customer facing some sid > > related IOMMU transactional errors on sm8150 based boards. > > > > > It makes me wonder because all modern Qualcomm platforms share more or > > > less the same setup. > > > > Please see sdm845.dtsi, which does the same as suggested via this > > patch for sm8150. > > Should we also apply the same change to other platforms? That's a good question. But I have no test data points to say that this should be valid for other platforms as well. Let me check with the folks @ qcom who reported this, (i.e. whether they see this with other qcom platforms as well), but let's not hold back this fix while we wait for more data. Thanks. > > > > Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes") > > > > Cc: Bjorn Andersson <andersson@kernel.org> > > > > Cc: Rob Herring <robh+dt@kernel.org> > > > > > > No need to have regular maintainers in Cc tags. Please use regular > > > git-send-email arguments instead. > > > > > > > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > > > > --- > > > > arch/arm64/boot/dts/qcom/sm8150.dtsi | 32 ++++++++++++++++++++++++++-- > > > > 1 file changed, 30 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > > index d1b64280ab0b..e88d1617a1ab 100644 > > > > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > > @@ -1810,9 +1810,23 @@ pcie0: pci@1c00000 { > > > > "slave_q2a", > > > > "tbu"; > > > > > > > > - iommus = <&apps_smmu 0x1d80 0x7f>; > > > > + iommus = <&apps_smmu 0x1d80 0xf>; > > > > iommu-map = <0x0 &apps_smmu 0x1d80 0x1>, > > > > <0x100 &apps_smmu 0x1d81 0x1>; > > > > > > it looks like the patch was not even compile-tested. > > > > > > > + <0x200 &apps_smmu 0x1d82 0x1>, > > > > + <0x300 &apps_smmu 0x1d83 0x1>, > > > > + <0x400 &apps_smmu 0x1d84 0x1>, > > > > + <0x500 &apps_smmu 0x1d85 0x1>, > > > > + <0x600 &apps_smmu 0x1d86 0x1>, > > > > + <0x700 &apps_smmu 0x1d87 0x1>, > > > > + <0x800 &apps_smmu 0x1d88 0x1>, > > > > + <0x900 &apps_smmu 0x1d89 0x1>, > > > > + <0xa00 &apps_smmu 0x1d8a 0x1>, > > > > + <0xb00 &apps_smmu 0x1d8b 0x1>, > > > > + <0xc00 &apps_smmu 0x1d8c 0x1>, > > > > + <0xd00 &apps_smmu 0x1d8d 0x1>, > > > > + <0xe00 &apps_smmu 0x1d8e 0x1>, > > > > + <0xf00 &apps_smmu 0x1d8f 0x1>; > > > > > > > > resets = <&gcc GCC_PCIE_0_BCR>; > > > > reset-names = "pci"; > > > > @@ -1909,9 +1923,23 @@ pcie1: pci@1c08000 { > > > > assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; > > > > assigned-clock-rates = <19200000>; > > > > > > > > - iommus = <&apps_smmu 0x1e00 0x7f>; > > > > + iommus = <&apps_smmu 0x1e00 0xf>; > > > > iommu-map = <0x0 &apps_smmu 0x1e00 0x1>, > > > > <0x100 &apps_smmu 0x1e01 0x1>; > > > > + <0x200 &apps_smmu 0x1e02 0x1>, > > > > + <0x300 &apps_smmu 0x1e03 0x1>, > > > > + <0x400 &apps_smmu 0x1e04 0x1>, > > > > + <0x500 &apps_smmu 0x1e05 0x1>, > > > > + <0x600 &apps_smmu 0x1e06 0x1>, > > > > + <0x700 &apps_smmu 0x1e07 0x1>, > > > > + <0x800 &apps_smmu 0x1e08 0x1>, > > > > + <0x900 &apps_smmu 0x1e09 0x1>, > > > > + <0xa00 &apps_smmu 0x1e0a 0x1>, > > > > + <0xb00 &apps_smmu 0x1e0b 0x1>, > > > > + <0xc00 &apps_smmu 0x1e0c 0x1>, > > > > + <0xd00 &apps_smmu 0x1e0d 0x1>, > > > > + <0xe00 &apps_smmu 0x1e0e 0x1>, > > > > + <0xf00 &apps_smmu 0x1e0f 0x1>; > > > > > > > > resets = <&gcc GCC_PCIE_1_BCR>; > > > > reset-names = "pci"; > > > > -- > > > > 2.38.1 > > > > > > > > > > > > > -- > > > With best wishes > > > Dmitry > > > > -- > With best wishes > Dmitry
diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index d1b64280ab0b..e88d1617a1ab 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -1810,9 +1810,23 @@ pcie0: pci@1c00000 { "slave_q2a", "tbu"; - iommus = <&apps_smmu 0x1d80 0x7f>; + iommus = <&apps_smmu 0x1d80 0xf>; iommu-map = <0x0 &apps_smmu 0x1d80 0x1>, <0x100 &apps_smmu 0x1d81 0x1>; + <0x200 &apps_smmu 0x1d82 0x1>, + <0x300 &apps_smmu 0x1d83 0x1>, + <0x400 &apps_smmu 0x1d84 0x1>, + <0x500 &apps_smmu 0x1d85 0x1>, + <0x600 &apps_smmu 0x1d86 0x1>, + <0x700 &apps_smmu 0x1d87 0x1>, + <0x800 &apps_smmu 0x1d88 0x1>, + <0x900 &apps_smmu 0x1d89 0x1>, + <0xa00 &apps_smmu 0x1d8a 0x1>, + <0xb00 &apps_smmu 0x1d8b 0x1>, + <0xc00 &apps_smmu 0x1d8c 0x1>, + <0xd00 &apps_smmu 0x1d8d 0x1>, + <0xe00 &apps_smmu 0x1d8e 0x1>, + <0xf00 &apps_smmu 0x1d8f 0x1>; resets = <&gcc GCC_PCIE_0_BCR>; reset-names = "pci"; @@ -1909,9 +1923,23 @@ pcie1: pci@1c08000 { assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; assigned-clock-rates = <19200000>; - iommus = <&apps_smmu 0x1e00 0x7f>; + iommus = <&apps_smmu 0x1e00 0xf>; iommu-map = <0x0 &apps_smmu 0x1e00 0x1>, <0x100 &apps_smmu 0x1e01 0x1>; + <0x200 &apps_smmu 0x1e02 0x1>, + <0x300 &apps_smmu 0x1e03 0x1>, + <0x400 &apps_smmu 0x1e04 0x1>, + <0x500 &apps_smmu 0x1e05 0x1>, + <0x600 &apps_smmu 0x1e06 0x1>, + <0x700 &apps_smmu 0x1e07 0x1>, + <0x800 &apps_smmu 0x1e08 0x1>, + <0x900 &apps_smmu 0x1e09 0x1>, + <0xa00 &apps_smmu 0x1e0a 0x1>, + <0xb00 &apps_smmu 0x1e0b 0x1>, + <0xc00 &apps_smmu 0x1e0c 0x1>, + <0xd00 &apps_smmu 0x1e0d 0x1>, + <0xe00 &apps_smmu 0x1e0e 0x1>, + <0xf00 &apps_smmu 0x1e0f 0x1>; resets = <&gcc GCC_PCIE_1_BCR>; reset-names = "pci";