From patchwork Mon Jan 2 10:58:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 38087 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4109235wrt; Mon, 2 Jan 2023 03:01:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXuk2+h79Ejrs/ZJHxMSkcplo3jDltuqX9Qgucbt6LFgQTcZQIQc1d3NMTgO5djVdyTAPBKO X-Received: by 2002:a17:906:298f:b0:7c0:fa2c:fc9b with SMTP id x15-20020a170906298f00b007c0fa2cfc9bmr36338373eje.55.1672657301723; Mon, 02 Jan 2023 03:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672657301; cv=none; d=google.com; s=arc-20160816; b=UkyD+/Wu4T0X1xbr3eAREpRUNGGgiywTHb93ElxRyfldMCoYHv73XSXRBfNbagXgQv 0sa5VDYnI87juEZ+YE+q+bGYV4WMqvYmIUL+m96JU6P3aN2zTmo61zJ/XMNfb9RXoFaU LQiSZdU9dvack38J6raeh6SNZqNTUnW1wHtpb4+y2UqreNPjmHkEqQZvIIwrAOKuxOUm yFldxA2Q5PfCpc3AiFfmeh0grKD9EhH2jqC6TENAYBo+w1K3vNrsWzgxs60EhGIlxTPL YMgjiJ0wT2ScWIxYcRPZS1LE93blSdvE4osLnIJlQQi8KcnAGJtKpDeQcFL8GlIWXe2p SgAA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h+NfyMbTjd80e1uWjdhdQS0ED524lbDIb/XPCdOdzno=; b=eFetTGjyN1BWektUnSTMOwgd4V3j+oTww7xy4/c0nLAWtuQklN/e3QfAPv9Q97xj10 ClIi4c37NFL+8dPEdTs49Ylpu+cJPthW3oKDrVnpnegz+pwXFOyIbv/NMdQTbDspRetR zmFTa+pWizveoq6pJxH6SJf2kr0zTFaAKD0fcReVJifEDpR3vaG/ZuxtDjTEYDOtwUi0 1qq0VHazrZOzFIOcutLFBS88rFcTpwoCoS/dIo4wlROweWNPbvbQVwg02Be/tT11j9E5 uqpioLugzVAMN1DaVW7R2btysc9sLTrKO8ykWlSvwzWyhR/DV5aLrkdIEAMC5uzgxYUN 8cnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eWuc491C; 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 ww11-20020a170907084b00b0084cbde35b15si4762485ejb.851.2023.01.02.03.01.18; Mon, 02 Jan 2023 03:01:41 -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=eWuc491C; 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 S229912AbjABK7H (ORCPT + 99 others); Mon, 2 Jan 2023 05:59:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232599AbjABK7A (ORCPT ); Mon, 2 Jan 2023 05:59:00 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6817CB98 for ; Mon, 2 Jan 2023 02:58:59 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id 78so18115281pgb.8 for ; Mon, 02 Jan 2023 02:58:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h+NfyMbTjd80e1uWjdhdQS0ED524lbDIb/XPCdOdzno=; b=eWuc491Ck7BlEf4iPGRjz+zCMTpY5mpcycfqiisKOa/K+clU5RnvnGHQPKH+SgGAmD AG54mHT/VcMTMuJ/l1iTzsyzwS4/fGqDUUvFOba6gzsqtKCw8fFTrWvswD8LkAo6uLs+ 2Ycw0ErO2uRbCSgxHSDy4kAmc8/1Wj+1hppDvEu4kKLbYZEbP2wBQ6b6IVpS8O4spKYN KpCMzXLw0C42j42UMVAqpem72TpWfNjMwR5wWWqV0rjHTKFykEIoJYuZ5EffjWbwWxK1 RyebhLz2gjjk+VT/sxyDoViV3/CN3FIZ4wTsgJXbgUXshL5W1mz7VdbZH938RfzvgR5E jfXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h+NfyMbTjd80e1uWjdhdQS0ED524lbDIb/XPCdOdzno=; b=JFuuHAPCVrtc4ReksC53+voHvm7EA5XQTa7f4GZiUTe0xamXic4dqbszimQnuNL+Oh 1Rn9sDiExauL4u/Bbnn7EVSunJrlp9R4xxTykviGcyDEGpJe4jc8JYRrN3MYOwQ7Mrw7 Nctd6BGR04XPoKkAbDppXADTHumEW2nM6h4ju7XpvLZ4jiUMrFnm/2Ifz64e8UmXqTJg hWQccWqZDA0vL6MsnY2W4ekNmzynxRykMhBIgMbAsKC7gmos9oP9dkquoQeh/QSkl4pu VS9CMckAeffyI5bMBdrGKxD57k9v/YWlY2PeaOEzxsdKpNS5LWBSgESLJYYO484DTZlW VVww== X-Gm-Message-State: AFqh2kpZzP2kCDL2ZsPAzRrxcaZeOinZfJSe4/SQ4muNMixQft3+5D53 cxWiPZzC6TyC/YiOUENpSAIP X-Received: by 2002:a62:148f:0:b0:582:46a4:87f6 with SMTP id 137-20020a62148f000000b0058246a487f6mr6019088pfu.22.1672657138930; Mon, 02 Jan 2023 02:58:58 -0800 (PST) Received: from localhost.localdomain ([220.158.158.187]) by smtp.gmail.com with ESMTPSA id k26-20020aa79d1a000000b0058130f1eca1sm12756773pfp.182.2023.01.02.02.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 02:58:58 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: 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, lpieralisi@kernel.org, Manivannan Sadhasivam , Krzysztof Kozlowski Subject: [PATCH v3 1/3] dt-bindings: PCI: qcom: Update maintainers Date: Mon, 2 Jan 2023 16:28:19 +0530 Message-Id: <20230102105821.28243-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230102105821.28243-1-manivannan.sadhasivam@linaro.org> References: <20230102105821.28243-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1753908302920477130?= X-GMAIL-MSGID: =?utf-8?q?1753908302920477130?= Stanimir has left mm-sol and already expressed his wish to not continue maintaining the PCIe RC driver. So his entry can be removed. Adding myself as the co-maintainer since I took over the PCIe RC driver maintainership from Stanimir. Acked-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam Acked-by: Bjorn Andersson --- Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index a5859bb3dc28..a3639920fcbb 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -8,7 +8,7 @@ title: Qualcomm PCI express root complex maintainers: - Bjorn Andersson - - Stanimir Varbanov + - Manivannan Sadhasivam description: | Qualcomm PCIe root complex controller is based on the Synopsys DesignWare From patchwork Mon Jan 2 10:58:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 38089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4109493wrt; Mon, 2 Jan 2023 03:02:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXv6hsDb4DmUmkCLoizRY947A61ACAX9KmFq7vQxQSpXzRHef/7gaAsYvPtQVAvz0oFKR+qS X-Received: by 2002:a17:906:d216:b0:7ae:ccf3:7be5 with SMTP id w22-20020a170906d21600b007aeccf37be5mr45393411ejz.32.1672657340846; Mon, 02 Jan 2023 03:02:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672657340; cv=none; d=google.com; s=arc-20160816; b=l/SY+GwwSg2rlBMt9BAQAcL5FQi4Sqvir1yq8G85iIIrTl9Cksk00Yxeh3w+hEMktO MJ2oWA1LGPuzYONGz2CiWeri8yRIh5OhJ9TS+XU6kHLnVh+UOjBpOJ+3nnZw4VCjAYLd CXVqoOtgzEN4G1gqa36LAH5EfFCzbE7cWhM644qadV8AuqU1X2JgfCUHq8uug6l8UTcG fgUjcv+o5ZlFP6jrLETd5KCUhGUWxbOaBiPiommKGqHUyU1t6zvywru0/xscPrVD4yUP Jqkv4kvgOu2vzmvll8TAj3omZm29TySFgU1i5VijyGl7DXGJycTmv7UmX7R9xUzQLF9x 0+6w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aPXQEziYyJgrkEttV4nV18ITm8GK1OMkVvR6V9u1w4Q=; b=ns7CZcrKtGxRLEATvZrDKVtpjYztjAsjHkvthAJnFhmNpV0t6nGc96VfF7E6a1lqQs PPlc3dtN4S7qhFiwsQ+njFVnMZIVreZGbqvAbiTUtuDK6AkP72FEJf/prFsMeOl3q1JB RtfOb/aY+w9KtLWobFOJlDRaczfPwelL4pAAuGTsjHX7vJek5xWLLvPhmWTHdtdaoVWE RY8oZCcKko5ArWQN5GhrC/2nXcAKUkwlmZr9nUDuYzJFY7yLVSH4RipmhPUzAVnNS2SX HMaVq80+WJmm7bVfLeT5mYraNxQkxXVqmUyL1uh0KQXvKioEyZg36pSWPYoePTIw2mVs 9Ong== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kyyra2mE; 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 xh12-20020a170906da8c00b00787b9cd2fe3si23823493ejb.844.2023.01.02.03.01.57; Mon, 02 Jan 2023 03:02:20 -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=kyyra2mE; 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 S232682AbjABK7M (ORCPT + 99 others); Mon, 2 Jan 2023 05:59:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232699AbjABK7D (ORCPT ); Mon, 2 Jan 2023 05:59:03 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD52B1D for ; Mon, 2 Jan 2023 02:59:03 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id 36so18110376pgp.10 for ; Mon, 02 Jan 2023 02:59:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aPXQEziYyJgrkEttV4nV18ITm8GK1OMkVvR6V9u1w4Q=; b=kyyra2mEwzPYdU41a+cqvpIT1rAI6Jd+vrzM5Iu3EcnOOxMvQIEUj7SGwoPPFXm+Z1 JVd/rDduPc/JrFPj8nAEfxfmtd19JACSy4I7bSxDfHl+Gnxhsw0RDdcnGMNActIQoQSx g7sCtQ481cZMXFXcU2ibbLbplX17YHpBgnGiLphmDm5Dz0rlo2Kp8jLWvS+lhqY0XQJW Ca4fkuXfWPxFZCwbjQLuQ1Yh9E0n4JTLsjSMkaVpqBv3Dugo3BCE2BRNjmCztpLvuTMY RAExRyqaHB+sneSvHASZgF1Tzw8WJ77AMl6gv7gFHqurvWjj760Ik8f1Ihb2/lx1yx6x Er5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aPXQEziYyJgrkEttV4nV18ITm8GK1OMkVvR6V9u1w4Q=; b=LYHC2DzcBhPi8mdsjomvPk+IV0fxAVXL7vq67KvH1CFyvGSLyAklFdUmMccDK8gBxv FRM6asiugTVgcsXh3sFtEShC6MyqjyPApTWklV5IwHVn/mWWlLiPcTZNP7UbcHgEVTg6 +Y4/RY1xxczfsQhK9KqSQaMFezMQaeUA7G0sxvmCHnhT7zt3uwoJuUW1HCA6IUvQgCJx HlJv1ReBWRx0sNBVSa+X3cM1yqKzf0W/nolWokEQSfyHOAwVgqBCCdqzshRdWYOkvsJ9 ryti8cyTeAc5NoxXellvlnFnBuWom1DnS6IrCEIFI48qTPWZvmVuB4Sp+9mdwTYxcMLE awmw== X-Gm-Message-State: AFqh2kr8ssoI14L51HXPYVU6qymFVDJgvyvS1RnJvFps10rcwvzg4VIj 02EvTCRwpCOGjkVPPG0WpC+2 X-Received: by 2002:a62:18d1:0:b0:580:ea08:527a with SMTP id 200-20020a6218d1000000b00580ea08527amr31750436pfy.30.1672657142973; Mon, 02 Jan 2023 02:59:02 -0800 (PST) Received: from localhost.localdomain ([220.158.158.187]) by smtp.gmail.com with ESMTPSA id k26-20020aa79d1a000000b0058130f1eca1sm12756773pfp.182.2023.01.02.02.58.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 02:59:02 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: 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, lpieralisi@kernel.org, Manivannan Sadhasivam Subject: [PATCH v3 2/3] dt-bindings: PCI: qcom: Document msi-map and msi-map-mask properties Date: Mon, 2 Jan 2023 16:28:20 +0530 Message-Id: <20230102105821.28243-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230102105821.28243-1-manivannan.sadhasivam@linaro.org> References: <20230102105821.28243-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1753908343670659258?= X-GMAIL-MSGID: =?utf-8?q?1753908343670659258?= The Qcom PCIe controller is capable of using either internal MSI controller or the external GIC-ITS for signaling MSIs sent by 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. 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 a3639920fcbb..01208450e05c 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -114,14 +114,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: From patchwork Mon Jan 2 10:58:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 38088 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4109399wrt; Mon, 2 Jan 2023 03:02:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXvrp/DEjL8jBQ5ZrfIpskKfAvlurQTNzdoory5Lijod+BoDPoJAUNvAog0x59/8n/VuNkSp X-Received: by 2002:a17:907:8744:b0:7c1:277:cb05 with SMTP id qo4-20020a170907874400b007c10277cb05mr46301667ejc.6.1672657327497; Mon, 02 Jan 2023 03:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672657327; cv=none; d=google.com; s=arc-20160816; b=RrVny2DL0niQiy/11EymVM0T1NWe5ebfmxb+Ifktqw1pjy+6J57e5Il2i8zwgmipZg y9yrXc90xONEj7SJ5gUD9M2soz4bYYCqyGafINQmbYF3IMKEFZJqYskWl/owJsGHADp1 xnFsBOCC+czKQTen929I7Sx6gi+2zu5Gu071FdL7U/z8D8Ew4ka4jv0kU2KYp3+XZbX/ FGk7jpdxkbc3HZXAjaMI43at2LRLgkL5uw6tKxsP5m8lzDuQVjfOoOIayNhY7o6ZrqW2 u/shb/Ikc96MCYXDtYxaPftqwvaP1ro1/uwsgiA3A6Ui9uhxMlr2cersmYruAZffAxJB VT8w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gKYbhDNGtqupbPRUKCCINaSoc+lb4pCR63iH2vtYHr8=; b=H702fKWq04ylQgbgjl1JQBcSbPGC8m7y6rF788I5EGG15PFHobmx0CRlOwdnp85Wyh HOcgV5Xrt9ovMh1ggdgKYhDSX2Z2HP4Gjc2RLctufQrB8znuL9m/0eC8dtBFO/JVLE3u Thev+rOkA1vAbB27Sa39hcH2hPgjKXyMIn5ZlxDXe/f1fqfAJOYA9vEVcsJQh4yCZmM3 3UXOTAr8QuCaZ/3FhDWQhexRmg3u2SEXxytCWM2C8eI1VQFzUBgfii3HnPEloSoygcBo IM6yonl18haOnh8+Y5NbNI0cmS5j7fBVv2RhFPZ+ApfaU+hkYR2mSfOL++0xZ8ZX7fgt Cd+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qwt4rqH5; 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 dd18-20020a1709069b9200b00711da52c6e4si26416354ejc.309.2023.01.02.03.01.43; Mon, 02 Jan 2023 03:02:07 -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=Qwt4rqH5; 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 S232572AbjABK7Q (ORCPT + 99 others); Mon, 2 Jan 2023 05:59:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232705AbjABK7I (ORCPT ); Mon, 2 Jan 2023 05:59:08 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A3E7C71 for ; Mon, 2 Jan 2023 02:59:07 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id e21so8869971pfl.1 for ; Mon, 02 Jan 2023 02:59:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gKYbhDNGtqupbPRUKCCINaSoc+lb4pCR63iH2vtYHr8=; b=Qwt4rqH5AdvU0i3hJHzjsqhvUAZrYDolSqESxZJAMmrw+VIYKJC+RbPA4QQl1QQoT2 jX5Eg9ekFa2WhQ7JoZ5BadUYSAblL31m5AIqWYV65kuDyMxS6xiasCLgCs0pZ77wH3t/ BPg4cZTrKllvZ/Yk0k7J+zDcomYD4LdfsJN6og8iuNJ9O4R6L/Gz3gw46YxYVI94T6iA NNe1X2eOgBBdUF9Wf9hsey3bkjrV2pRICXhXhUKXjiIAZ7tzKzT7wimTyFk4/y+MZsTu AEQBp6EIXB2bt/iAZbYmnEXSBfFbd2QykcIeD+DO9PsN17IjE7XyUYK2ApKxvADUkUpy KBWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gKYbhDNGtqupbPRUKCCINaSoc+lb4pCR63iH2vtYHr8=; b=JWQP5ZibgXE3TWGvs1s+Lg0P/pR/bB1W9LiAxE3QruPdPUusNqVte4FgtqfQfVfSr1 NiT/DP5dZMfNQpS99SXWes5t0YxM4Gapn302TmYNkTuyc68dcksmuELPB3kMPqJBDQP1 ViQTcyfm1hGfqFVR8IegFqRMcA6zpnnRJeTXqJQVwxYABVAD4EqX+gWHthMPO3y3bQRv 5g0zWD3jzkQ32eR7MOIgP0ND1glMqtKM/mdJL7Z94SPTc0UGbunB/1pPgbi9uzZ0/NOB d1U7sEiHSk+y3MNzvK3B3m12Ln7VdrTYkY/a8q/g6/9sM0dgdxm1AXCD8RbF51A/uvjt NiGg== X-Gm-Message-State: AFqh2kpHtBc7ZAMMmGzW848rXMzsQmnwm61fIXYuQQ6xvrqpgvShypwP 8kVkQ4Wqei2GCgdeB5B1cJTQ X-Received: by 2002:aa7:8215:0:b0:580:9151:afe5 with SMTP id k21-20020aa78215000000b005809151afe5mr33795493pfi.22.1672657147061; Mon, 02 Jan 2023 02:59:07 -0800 (PST) Received: from localhost.localdomain ([220.158.158.187]) by smtp.gmail.com with ESMTPSA id k26-20020aa79d1a000000b0058130f1eca1sm12756773pfp.182.2023.01.02.02.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 02:59:06 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: 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, lpieralisi@kernel.org, Manivannan Sadhasivam Subject: [PATCH v3 3/3] arm64: dts: qcom: sm8450: Use GIC-ITS for PCIe0 and PCIe1 Date: Mon, 2 Jan 2023 16:28:21 +0530 Message-Id: <20230102105821.28243-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230102105821.28243-1-manivannan.sadhasivam@linaro.org> References: <20230102105821.28243-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1753908329946685139?= X-GMAIL-MSGID: =?utf-8?q?1753908329946685139?= Both PCIe0 and PCIe1 controllers are capable of signalling the MSIs received from endpoint devices to the CPU using GIC-ITS MSI controller. Add support for it. Currently, BDF (0:0.0) and BDF (1:0.0) are enabled and with the msi-map-mask of 0xff00, all the 32 devices under these two busses can share the same Device ID. The GIC-ITS MSI implementation provides an advantage over internal MSI implementation using Locality-specific Peripheral Interrupts (LPI) that would allow MSIs to be targeted for each CPU core. It should be noted that the MSIs for BDF (1:0.0) only works with Device ID of 0x5980 and 0x5a00. Hence, the IDs are swapped. Signed-off-by: Manivannan Sadhasivam Tested-by: Konrad Dybcio # Xperia 1 IV (WCN6855) --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 570475040d95..c4dd5838fac6 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1733,9 +1733,13 @@ pcie0: pci@1c00000 { ranges = <0x01000000 0x0 0x60200000 0 0x60200000 0x0 0x100000>, <0x02000000 0x0 0x60300000 0 0x60300000 0x0 0x3d00000>; - interrupts = ; - interrupt-names = "msi"; - #interrupt-cells = <1>; + /* + * MSIs for BDF (1:0.0) only works with Device ID 0x5980. + * Hence, the IDs are swapped. + */ + msi-map = <0x0 &gic_its 0x5981 0x1>, + <0x100 &gic_its 0x5980 0x1>; + msi-map-mask = <0xff00>; interrupt-map-mask = <0 0 0 0x7>; interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ <0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ @@ -1842,9 +1846,13 @@ pcie1: pci@1c08000 { ranges = <0x01000000 0x0 0x40200000 0 0x40200000 0x0 0x100000>, <0x02000000 0x0 0x40300000 0 0x40300000 0x0 0x1fd00000>; - interrupts = ; - interrupt-names = "msi"; - #interrupt-cells = <1>; + /* + * MSIs for BDF (1:0.0) only works with Device ID 0x5a00. + * Hence, the IDs are swapped. + */ + msi-map = <0x0 &gic_its 0x5a01 0x1>, + <0x100 &gic_its 0x5a00 0x1>; + msi-map-mask = <0xff00>; interrupt-map-mask = <0 0 0 0x7>; interrupt-map = <0 0 0 1 &intc 0 0 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ <0 0 0 2 &intc 0 0 0 435 IRQ_TYPE_LEVEL_HIGH>, /* int_b */