Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp699545rwj; Fri, 23 Dec 2022 07:04:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXvhQbcVV/qPQjkwi00X3RWvjtP5SYxeCYcZqQGR1oxzwE7lc4exUGIYoyNfpYYRukK2Ga3S X-Received: by 2002:a17:906:5dd2:b0:7c1:7010:f413 with SMTP id p18-20020a1709065dd200b007c17010f413mr12143837ejv.19.1671807876289; Fri, 23 Dec 2022 07:04:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671807876; cv=none; d=google.com; s=arc-20160816; b=z+OW+SULgWpnQMbNtKlBLTYSZrEDeccvceiVwXBWSSRWS31f5jwu9JCxebjh6Wfte9 Hq477phxfGfzAiDYKnfmMCrXZtE4llKEZ2pX0QpoIAamnd0bh+7uyW8aRIcBcsCJmc59 XBaNiooqaN7gueBAGA2PFPzmHCz3kLsEfq2Yyb4IyuRqB4VuRp2pE3rLu/8O7Fba4KaR SbvxID+Rvjzeth6aWwzAf9ylHmywYd5bbvQ46FEKrYkFsxNe+VwOeKBd+sEeV06laF8b zAOEzcooZi6OkZf1h4wff7Zv1rH31jd6UtPo1xz2Xep16p1SGPhTRQ8va0buNTh/ZjjS f6RA== 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=p4c7xeEqpZFltAtynpIOAI0IKcOIz2iKznrCv3M1zGs=; b=l0ycmBQxThzx9MMj/BEmN5SCvBqcRQHubhhIrktU2yp7dn3Hpwfd6G/GtklGgqtgjJ 1oElrJUhe95TWW1MjdDGlXIz5d5B65mSeJu9K2zVwAuGOFr/PX8qHuy9SSdgxQ8gAoMg 86UD4qzJI5j4+K9gd/xiY2/+wHzG5GWclW2geClQbnJ8qOGYszLNCVTaeUptMX6XPKl5 Tfo1119G4RNjStjIZGu/iO/CWouFe3jRM62SIH1NBhItk2D0KVyHPCN+2s/QoOe3Luge f2yHUm0uxEUI+eSYI71QMMYoW6674nkuqpuX1CUsWqBH36aPBAozVU0ECi8vrwhqAkIj lg4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qjYXQuHB; 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 js3-20020a17090797c300b007bd112b2764si2805073ejc.381.2022.12.23.07.04.20; Fri, 23 Dec 2022 07:04:36 -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=qjYXQuHB; 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 S236422AbiLWOwk (ORCPT + 65 others); Fri, 23 Dec 2022 09:52:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230469AbiLWOwi (ORCPT ); Fri, 23 Dec 2022 09:52:38 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 865EC12A9E for ; Fri, 23 Dec 2022 06:52:37 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id w20so5133190ply.12 for ; Fri, 23 Dec 2022 06:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=p4c7xeEqpZFltAtynpIOAI0IKcOIz2iKznrCv3M1zGs=; b=qjYXQuHB9RGkuu3DlFhIcPMc97bB/cL5IGsGEG64Cqi/hdbrIWqiJ5xkynxwxjGWkI XR1FF7e4OsW0R+BLrkRKgmncZJImyMzkZwp+2I5RqxqO+A7z/rXkdcL5TdRptLL9m3Z/ QaN+AMQOCKf6V3a2MXMDZvYRH6kKvuEvwWtJFfpGBq2aIAHS5NC+Sv6jF1CnD4auFnJ6 7MZWAtfHSIMgCk/zbrvZNVN/AY6ogLx78bOHbM0RO57PB2a2Uh9M0m7sLMJ+tMKLuCHS uAphnpXs8MwcsLQ/haIGwqhMwBghrVdcs3LBfQO9UWL/BGqqcxe87A5r0aPNV6bDmWh+ JIQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=p4c7xeEqpZFltAtynpIOAI0IKcOIz2iKznrCv3M1zGs=; b=pFeItfR/FFojiQokOTt2/XeFdt5GSlWYff0G6dfiV4xPcIsyjOznokze7lQ3PMBvNb f2jBMjyFTi2VMaBCCIFT4BLUUE0e4SevDpTuIESIi5ZGUazs00EN8g9/1d8/ONBeNEQH /tOePYyMmcTQlz3BBhHpvJTRt0u1wjuGXc4L4AX+OhVIS2a0UTCw0BR5sklEvHkPNNHH m240LXFOVF1WV11lyCNK6jYg51yhJ3PB7Z6zzBOVTDPeJeIb8NvX9J66r/o0oVIvY15S fPNjWoQ8WmFlDSXA/lBEOtkmULNogEpgCuMe0rizO41X6RGP/PZm6nQY/COKs52hnw2O NFyA== X-Gm-Message-State: AFqh2krnyS5nTUigyXEDH/TSzU+fdTgusgbbehpTlp7WjuYqChopGcxh mbW0KDqaEhFgOz/yl7Ypk57mTCG1sF94Pbg= X-Received: by 2002:a05:6a21:168c:b0:a4:2a7d:59a5 with SMTP id np12-20020a056a21168c00b000a42a7d59a5mr30259905pzb.59.1671807157028; Fri, 23 Dec 2022 06:52:37 -0800 (PST) Received: from thinkpad ([27.111.75.82]) by smtp.gmail.com with ESMTPSA id p30-20020a635b1e000000b0043a0de69c94sm2406393pgb.14.2022.12.23.06.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 06:52:36 -0800 (PST) Date: Fri, 23 Dec 2022 20:22:26 +0530 From: Manivannan Sadhasivam To: Rob Herring Cc: 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 v2 2/3] dt-bindings: PCI: qcom: Document msi-map and msi-map-mask properties Message-ID: <20221223145226.GB4587@thinkpad> References: <20221222133123.50676-1-manivannan.sadhasivam@linaro.org> <20221222133123.50676-3-manivannan.sadhasivam@linaro.org> <20221222190141.GA1908434-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221222190141.GA1908434-robh@kernel.org> 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=unavailable 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 Thu, Dec 22, 2022 at 01:01:41PM -0600, Rob Herring wrote: > On Thu, Dec 22, 2022 at 07:01:22PM +0530, Manivannan Sadhasivam wrote: > > The Qcom PCIe controller is capable of using either internal MSI controller > > or the external GIC-ITS for receiving the MSIs from endpoint devices. > > Currently, the binding only documents the internal MSI implementation. > > > > Let's document the GIC-ITS imeplementation by making use of msi-map and > > msi-map-mask properties. Only one of the implementation should be used > > at a time. > > Isn't that up to the OS to decide? Some versions may not support MSIs. > Yes, OS may choose either of them but the controller supports both and only one implementation can be used at a time. AFAIK, all of the SoCs supported in upstream support both MSI and legacy interrupts. > What about legacy interrupts? Don't you need to keep the interrupt > properties for them? > We have "interrupt-map-mask" and "interrupt-map" properties for legacy interrupts. Thanks, Mani > > Signed-off-by: Manivannan Sadhasivam > > --- > > Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 12 +++++++++--- > > 1 file changed, 9 insertions(+), 3 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > index 02450fb26bb9..10fec6a7abfc 100644 > > --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > @@ -104,14 +104,20 @@ required: > > - compatible > > - reg > > - reg-names > > - - interrupts > > - - interrupt-names > > - - "#interrupt-cells" > > - interrupt-map-mask > > - interrupt-map > > - clocks > > - clock-names > > > > +oneOf: > > + - required: > > + - interrupts > > + - interrupt-names > > + - "#interrupt-cells" > > + - required: > > + - msi-map > > + - msi-map-mask > > + > > allOf: > > - $ref: /schemas/pci/pci-bus.yaml# > > - if: > > -- > > 2.25.1 > > > > -- மணிவண்ணன் சதாசிவம்