Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp828250rwl; Wed, 12 Apr 2023 04:50:46 -0700 (PDT) X-Google-Smtp-Source: AKy350bnB3ks2loOBXGkUrTsuoXPbNGCCvQAP/Bnp+yqwp+KXFg4x/tJoamkbSTvv1WTzKtxK8b5 X-Received: by 2002:a17:90b:1c8f:b0:246:b450:cafe with SMTP id oo15-20020a17090b1c8f00b00246b450cafemr8994383pjb.30.1681300246415; Wed, 12 Apr 2023 04:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681300246; cv=none; d=google.com; s=arc-20160816; b=ACMyTELSu2f11WnpZnOeBguiKteJGjhpTXbROhU4EUrGVC4uzY8OBJcygvkw5jauMD jnan5MYalr70OhJKKE44gHJ6Ewx/S9YBF91F2KnW00D6UHbVem6V9dSodILIt5eCcj/e VYxzl6Xoge5kFI0fsH3M9jsnmh+UycKcAlfqTPvITEG+2Xyjpz4A8CTm1OX6K7yvjgwi SAlL1IY2ZgBshC+4J+djjnzQVcMzA7pEe3TsPGrlDck8hZjl1XLyduAXSCWgA7AyaWoz OJxFeoLtzlLyixyCcOpRz0oQrFKiWc6FeMFIb3THf+J4/k8aaBzSIT3HvAgp+lE+GhwM nokA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RguhCsxW3m1Xnak065S9tzxK4IAulmFgd1kMo/z7Tf4=; b=aI5cHqE2npHOP32g8KYgkVUl/W06NL0syPpdRfLIvTB8UFYj9aIuilLJdRtHpYBDd8 CYLAWXyonReLb27shJmnKCGsaWavMUu0EC3cS2X4C4vbi089vz5+PVh6Lfk2npiTaukz u5YaYkI3X0MOAn6Ef0qzTII1YdjnoAWDwEaC9nZw7jer3HokCMizm5HCvLn6ypmmSc5b U8qFlwgItRjTbmtCv61iRTLoHD7aVuExjr9g3XDPONbxvON7bxabhUiq/cXCskLSnH52 8T8qGoZHDke38lDrE1TPR6zA0h8M1gWTPQbNy0u9kzvvuogC/vKwLywdi8lEqB7GEk8n u9Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FBumTRAf; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a17090311c400b0019ca3bea310si17574369plh.303.2023.04.12.04.50.34; Wed, 12 Apr 2023 04:50:46 -0700 (PDT) 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=FBumTRAf; 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 S231490AbjDLLjx (ORCPT + 99 others); Wed, 12 Apr 2023 07:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbjDLLjF (ORCPT ); Wed, 12 Apr 2023 07:39:05 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C18637DA4 for ; Wed, 12 Apr 2023 04:38:44 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-1842df7cb53so13430292fac.10 for ; Wed, 12 Apr 2023 04:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681299520; x=1683891520; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=RguhCsxW3m1Xnak065S9tzxK4IAulmFgd1kMo/z7Tf4=; b=FBumTRAfmOxkmK4lQ/pgZ1ippBnXvybIUgq6ph14f9RLB9heW5zB+RI8c/NYI5Sf4y 8RcdwKvA+GjiTKiUO09Hw9mX3JGTUVcZPmiEwlTVCd79ymYOyk5mpVrXcxr8iEKXXYwL oXPHiDbK/yqSozpr/Qp5oeTXy2lus6jRN4sRsbbGeMTsCZXd8S6iMAYYHra6vq289NYT BXw6WwV6nkuQ/CM8WVxFGuc9rCBL+Zbg1rK0Qn4g9ulAKXOZMC/RtJbqjsKBNHR8UIr4 OWBr4/z30iOEc+508v8hDzOJKn6/icYp6E1xCATlurhnhR+Fo1PxU2JrBkf3U3PZvcLl yE3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681299520; x=1683891520; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RguhCsxW3m1Xnak065S9tzxK4IAulmFgd1kMo/z7Tf4=; b=ijDxFtXwCJoTDMZfJEK7L1U7UZwIS0Ila8E/crBquUZbgGdT71++LU8M1DmOO2FT4C 4h/cgoMWIDyk66z2Y4RqoG6h1YPR9aXnljjgXLocrl8FvGSrIiKCRkpaepv2OljGahSE 09PLsYdmoqln9W93CBZ6egIcSxEYIvho47wV9kr97qAY2Xx2PF4ltgxnlOio8kl0cY9B Dc0rV/fkX6RnMwKm8M+XKK6zjCqQdC8BmlFcPO03lSuIbnIdXYtmQHYa1toelrQrnx2M SRfpZuhRQYrYC6cF0ceLMMR8owt7O5LrDXVv30amkbFbRyqNs8X1MNkbxW3X0yn2q3Cz x4Ew== X-Gm-Message-State: AAQBX9ckQm8KCGbTI8CDcPQ3fJnf3BmkrUaO9ibc/IeJ8Dq/MENXcZGA AUgum4nZ0SJwsuXLctNx5mBCgue38N5OWmQK6Q== X-Received: by 2002:a05:6a20:3a9a:b0:e3:8710:6846 with SMTP id d26-20020a056a203a9a00b000e387106846mr5768238pzh.10.1681298965894; Wed, 12 Apr 2023 04:29:25 -0700 (PDT) Received: from thinkpad ([117.217.185.192]) by smtp.gmail.com with ESMTPSA id v5-20020a62a505000000b00625e14d3a15sm11421561pfm.166.2023.04.12.04.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 04:29:25 -0700 (PDT) Date: Wed, 12 Apr 2023 16:59:18 +0530 From: Manivannan Sadhasivam To: Lorenzo Pieralisi Cc: Rob Herring , andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, bhelgaas@google.com, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "dt-bindings: PCI: qcom: Add iommu-map properties" Message-ID: <20230412112918.GB9463@thinkpad> References: <20230411121533.22454-1-manivannan.sadhasivam@linaro.org> <20230411174742.GA3428751-robh@kernel.org> <20230411184231.GA59982@thinkpad> <20230412101112.GA9463@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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,URIBL_BLOCKED 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 On Wed, Apr 12, 2023 at 12:46:33PM +0200, Lorenzo Pieralisi wrote: > On Wed, Apr 12, 2023 at 03:41:12PM +0530, Manivannan Sadhasivam wrote: > > On Wed, Apr 12, 2023 at 10:15:53AM +0200, Lorenzo Pieralisi wrote: > > > On Wed, Apr 12, 2023 at 12:12:31AM +0530, Manivannan Sadhasivam wrote: > > > > On Tue, Apr 11, 2023 at 12:47:42PM -0500, Rob Herring wrote: > > > > > On Tue, Apr 11, 2023 at 05:45:33PM +0530, Manivannan Sadhasivam wrote: > > > > > > This reverts commit 6ebfa40b63ae65eac20834ef4f45355fc5ef6899. > > > > > > > > > > > > "iommu-map" property is already documented in commit > > > > > > > > > > Need the commit hash here. > > > > > > > > > > > ("dt-bindings: PCI: qcom: Add SM8550 compatible") along with the "iommus" > > > > > > property. > > > > > > > > > > Shouldn't there be a patch removing "iommus" as discussed? > > > > > > > > > > > > > Yeah, that was my intention after the dts patches were merged. And since the > > > > dts patches are in linux-next now, I could finally send the patch. > > > > > > I don't understand what's the plan here. By the way, instead of merging > > > this revert I just dropped the commit that this patch is reverting from > > > the controller/qcom branch, please have a look to check if everything is > > > what you expect it to be there. > > > > > > > This is fine. The plan is to remove the "iommus" property from Qcom PCI binding > > since we have removed the usage of that property from devicetree [1]. Initially > > the iommu properties were not documented at all in the binding. But commit, > > "dt-bindings: PCI: qcom: Add SM8550 compatible" added them to the binding to > > satisfy dtbs check. But in parallel, the patch removing "iommus" property from > > dts got merged to qcom tree. > > > > So now we have 2 options here: > > > > 1. Amend the commit "dt-bindings: PCI: qcom: Add SM8550 compatible" to remove > > the "iommus" property. > > > > 2. I will submit a separate patch removing that property. > > > > Lorenzo, let me know what works for you. Sorry for the mess! Confusion happened > > due to patches getting applied without sync. > > You can inline a diff here for (1), I will amend the commit. > Here you go: diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index a1318a4ecadf..1548a7114732 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -60,9 +60,6 @@ properties: minItems: 1 maxItems: 8 - iommus: - maxItems: 1 - iommu-map: maxItems: 2 - Mani > Thanks, > Lorenzo > > > - Mani > > > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6340b391e15094575911ab0d96bfff09deadafba > > > > > Lorenzo > > > > > > > - Mani > > > > > > > > > > > > > > > > So let's revert the commit that just added "iommu-map" to avoid > > > > > > duplication. > > > > > > > > > > > > Signed-off-by: Manivannan Sadhasivam > > > > > > --- > > > > > > Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 2 -- > > > > > > 1 file changed, 2 deletions(-) > > > > > > > > > > > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > > > > > index 5d236bac99b6..a1318a4ecadf 100644 > > > > > > --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > > > > > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > > > > > @@ -78,8 +78,6 @@ properties: > > > > > > > > > > > > dma-coherent: true > > > > > > > > > > > > - iommu-map: true > > > > > > - > > > > > > interconnects: > > > > > > maxItems: 2 > > > > > > > > > > > > -- > > > > > > 2.25.1 > > > > > > > > > > > > > > -- > > > > மணிவண்ணன் சதாசிவம் > > > > -- > > மணிவண்ணன் சதாசிவம் -- மணிவண்ணன் சதாசிவம்