From patchwork Wed Dec 7 06:29:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 30654 Return-Path: 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 + 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 ); 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 ; Tue, 6 Dec 2022 22:29:28 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id h193so15401923pgc.10 for ; 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 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 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: 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?= 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 Cc: Rob Herring Signed-off-by: Bhupesh Sharma --- 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>; + <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";