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: 13066680 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 C77FEC352A1 for ; Wed, 7 Dec 2022 06:29:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbiLGG3k (ORCPT ); Wed, 7 Dec 2022 01:29:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbiLGG3a (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 3991759FCE for ; Tue, 6 Dec 2022 22:29:29 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id r18so15387262pgr.12 for ; Tue, 06 Dec 2022 22:29:29 -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=159qSx8+BbrOsPZoX7D1C6W+VmqezTSmcHOkbyGXyWWkickNoAD96iptOMzn25tKdU 7l/HKToSbzijeCYCMp444H4LQBFWjAvpUoG9mVMnqahr4hzbhJbiV73WwB3+S4Ha/4Gl zwZmwMRIR45Q01xi671+XyLErGh65ay3eFlRz9ze/VGo2ZSz+4WtQjZZ41UyqdEyQDvl HW7ow83+1vJNHKj6uyNPg4h1vDEI1CiX6ozXxyw5uzjM6QLrHRO2wu/Lt1+tLf+sMa+q SffLdKajNkINg6YSSiIu6Fk8y8M+elFrAbnUjIK25GeVQjd5NgXdadGSQmCSCa8t9SLZ KCrA== X-Gm-Message-State: ANoB5plMQqIYjhS6YDGbv9Rny9lDc29jXJH9WxWYWBrZssxeN3qKU9M5 +LPTaDFO9amgZMoE+EH0OxqZLR3mt49fEQCUTBQ= X-Google-Smtp-Source: AA0mqf6YkiqYUX4054aYIkAqpK1uekX0DRjKBdtSEfqUjlPpngKw3ZXu9AGoJDmTJ3kNSyK3iHlK9A== 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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";