Message ID | 20230123131931.263024-1-manivannan.sadhasivam@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1604667wrn; Mon, 23 Jan 2023 05:21:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXu8AIbuKXqCuOPo1Il8ixNPZ7d7yZ1NOj1zh4H9R/c1Ym5aqfA1idOCulD9khnRw4zj4M8L X-Received: by 2002:aa7:9570:0:b0:58d:967b:8408 with SMTP id x16-20020aa79570000000b0058d967b8408mr23130512pfq.22.1674480093414; Mon, 23 Jan 2023 05:21:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674480093; cv=none; d=google.com; s=arc-20160816; b=I2MGi/tcEdPz/+/vekDXyr/b0a/AyhTmUxpMN/8thkzii9P32K6VtsKeL3atWerI71 cs0pGXdAcGrwj5ZALtw4ggaboLB3rGCTfoBZ5LVV+xCrnz5hWpMAJRK1kbilAbR9yDxR AC33PWmtU/8BPVEQp6bjHPNVUQspOXbtsrJgOqvTgxWGRIt6e5Luj5Y3A12Ty0uEDMt4 AY4vUgXhyDn8S/Q73mgMpa9RJQtLtZgPfR1IPIyin+idOD4rlbIrTJ1LGjibaKzubPmG SnJU6R0gA8XoWMSBsTBiuXN/oSZMZGrWengOEKIfoDn2EZXiOyDW1QSfgvOvr3q/itcb iqNg== 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=vf7HzZ2FzkJA9LCsnYBUI4BkmATEeS0RRCfbvDc3nIY=; b=OEktW6iEjDvga9xUVeMQa9BuhBODY2ttgpYcAsBMkxt8qz3nRBPSgbVNGHeMOpWCWd fFz/h6Djv/EF+pzWaQLm89X4ZJwpzMKMW3Y82zoDVjNTE9pHKd434DJUiog/vwj0475w MoPJBx6Lpllh5Bz2F5gZGET7QGe49Oez1DuyJPUNrW2Kr3UYm+W8T2cTBdvlz9XlYuAn HSTWOXb0Wmhr1cPExXevlP8XXDsQdsLz7POYj0+GfGlXoyCatNHE+p75UtoF4n5WniKH SSJg32SCkpYfaVFrQHNiJg43j9a5yRVTpVlmt6vi7JX2K8TbVt2JYqYNvxz5DsdqfML8 4h6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hp0RYxiU; 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 q17-20020a056a00151100b0058dc3db12fasi22954915pfu.351.2023.01.23.05.21.21; Mon, 23 Jan 2023 05:21:33 -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=Hp0RYxiU; 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 S231652AbjAWNTs (ORCPT <rfc822;forouhar.linux@gmail.com> + 99 others); Mon, 23 Jan 2023 08:19:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbjAWNTr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Jan 2023 08:19:47 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42D1C13DFC for <linux-kernel@vger.kernel.org>; Mon, 23 Jan 2023 05:19:46 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id z31so5631508pfw.4 for <linux-kernel@vger.kernel.org>; Mon, 23 Jan 2023 05:19:46 -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=vf7HzZ2FzkJA9LCsnYBUI4BkmATEeS0RRCfbvDc3nIY=; b=Hp0RYxiU9r6fKa4c9nXygqj5qT8I3r2Z5/IE/RMPEZb59UGqle4JKAuU+bD6Ab9P2/ sz+3Mw9p3ZjnSTBAdCVrNfyI3LQ/2hAbo23McNNiCiJPQjILquC25IUCFCddi6e27LsW cyuGLDyufrMzu1Pio0MqG3tReKCmZ0hfEL3AZe3LcnRhabOwP7SKKTuEIxc3McbaqnaP /67XuYyLh2p0tAak8lTLKR4cXDXxEvRXcEQ5zpuaK9teJE23vye1O0l6idOn/h2CXByo 9YlCHx6sfbrslO9s2v9xSlDcidjCsKqMaIm6zKQgvl37g4CijAnUms0CHSK2j+0pbJaF CwXQ== 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=vf7HzZ2FzkJA9LCsnYBUI4BkmATEeS0RRCfbvDc3nIY=; b=Z/EQuqbsv44sXmFfYDEMfjydCGNc8V1IqzTK7i/9rkizmf9881ukoLz9vnFtLiF8TG fkuWBr8BjJGnSsy/mPF0W/ptE6q3Dro/4a4HNaW3JkjvoASt9AIqdZ3pnLfj2v8tEoUf qXTVJiKAZ8/0wreUxIBuM/3SHVBP9J3ZQFDxGNQiofZrP/Uk7I447Q5OYmlPeQHmBSsr IKvm+mUpTPQtYNun/sKDRUCSlSqLE8R1HnjGTgu/gfanL9D4o/nVoyDHHabQtOGcCOlG SjZn563Smc4gGYTYWuPJNL04aezJ76rSMCYpdEObWXSNrjlSq3MOCy5RTaGAJA+2DUph MenA== X-Gm-Message-State: AFqh2kodfw5pLYxdl/P22rRjJHPZoNGfh/GAwxIQsPKL1kZhPljqhAlN Vz/UwifEMYTNlzvawxg+/2Zn X-Received: by 2002:aa7:982b:0:b0:58b:4ae0:c761 with SMTP id q11-20020aa7982b000000b0058b4ae0c761mr24838899pfl.34.1674479985718; Mon, 23 Jan 2023 05:19:45 -0800 (PST) Received: from localhost.localdomain ([117.193.209.165]) by smtp.gmail.com with ESMTPSA id q20-20020aa79834000000b0058134d2df41sm30818783pfl.146.2023.01.23.05.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 05:19:44 -0800 (PST) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: andersson@kernel.org, will@kernel.org, joro@8bytes.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, dmitry.baryshkov@linaro.org, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Subject: [PATCH 0/3] Fix SMMU on SDX55 and SDX65 Date: Mon, 23 Jan 2023 18:49:28 +0530 Message-Id: <20230123131931.263024-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.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?1755819638523537196?= X-GMAIL-MSGID: =?utf-8?q?1755819638523537196?= |
Series | Fix SMMU on SDX55 and SDX65 | |
Message
Manivannan Sadhasivam
Jan. 23, 2023, 1:19 p.m. UTC
Hi, Both SDX55 and SDX65 SoCs are using the Qcom version of the ARM SMMU-500 IP. Even though the SoC specfic compatibles were being used in devicetree, the compatibles were not added to the arm-smmu-qcom driver. So they end up using the generic ARM SMMU-500 driver instead. Spotting this discrepancy, the recent arm,smmu bindings change moved these SoCs under the non-qcom implementation of the SMMU. This series fixes the binding by moving the compatibles under qcom impl. and also adding the "qcom,smmu-500" fallback compatible to the devicetree so that the qcom implementation can be used without adding SoC specific entries to the driver. Thanks, Mani Manivannan Sadhasivam (3): dt-bindings: arm-smmu: Fix binding for SDX55 and SDX65 ARM: dts: qcom: sdx55: Add Qcom SMMU-500 as the fallback for IOMMU node ARM: dts: qcom: sdx65: Add Qcom SMMU-500 as the fallback for IOMMU node Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 10 ++-------- arch/arm/boot/dts/qcom-sdx55.dtsi | 2 +- arch/arm/boot/dts/qcom-sdx65.dtsi | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-)
Comments
On 23.01.2023 14:19, Manivannan Sadhasivam wrote: > SDX65 uses the Qcom version of the SMMU-500 IP. So use "qcom,smmu-500" > compatible as the fallback to the SoC specific compatible. > > Cc: <stable@vger.kernel.org> # 5.19 > Fixes: 98187f7b74bf ("ARM: dts: qcom: sdx65: Enable ARM SMMU") > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > arch/arm/boot/dts/qcom-sdx65.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/qcom-sdx65.dtsi b/arch/arm/boot/dts/qcom-sdx65.dtsi > index b073e0c63df4..408c4b87d44b 100644 > --- a/arch/arm/boot/dts/qcom-sdx65.dtsi > +++ b/arch/arm/boot/dts/qcom-sdx65.dtsi > @@ -455,7 +455,7 @@ pil-reloc@94c { > }; > > apps_smmu: iommu@15000000 { > - compatible = "qcom,sdx65-smmu-500", "arm,mmu-500"; > + compatible = "qcom,sdx65-smmu-500", "qcom,smmu-500", "arm,mmu-500"; > reg = <0x15000000 0x40000>; > #iommu-cells = <2>; > #global-interrupts = <1>;
On Mon, 23 Jan 2023 18:49:28 +0530, Manivannan Sadhasivam wrote: > Both SDX55 and SDX65 SoCs are using the Qcom version of the ARM SMMU-500 > IP. Even though the SoC specfic compatibles were being used in devicetree, > the compatibles were not added to the arm-smmu-qcom driver. So they end up > using the generic ARM SMMU-500 driver instead. > > Spotting this discrepancy, the recent arm,smmu bindings change moved these > SoCs under the non-qcom implementation of the SMMU. > > [...] Applied bindings change to will (for-joerg/arm-smmu/bindings), thanks! [1/3] dt-bindings: arm-smmu: Fix binding for SDX55 and SDX65 https://git.kernel.org/will/c/eb9181a3ae60 Cheers,
On Mon, 23 Jan 2023 18:49:28 +0530, Manivannan Sadhasivam wrote: > Both SDX55 and SDX65 SoCs are using the Qcom version of the ARM SMMU-500 > IP. Even though the SoC specfic compatibles were being used in devicetree, > the compatibles were not added to the arm-smmu-qcom driver. So they end up > using the generic ARM SMMU-500 driver instead. > > Spotting this discrepancy, the recent arm,smmu bindings change moved these > SoCs under the non-qcom implementation of the SMMU. > > [...] Applied, thanks! [2/3] ARM: dts: qcom: sdx55: Add Qcom SMMU-500 as the fallback for IOMMU node commit: af4ab377543853b690cc85b4c46cf976ab560dc2 [3/3] ARM: dts: qcom: sdx65: Add Qcom SMMU-500 as the fallback for IOMMU node commit: 157178a7912e00a0aa0371dc9041952c1a21d112 Best regards,