From patchwork Wed Jan 11 12:30:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 41958 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3293812wrt; Wed, 11 Jan 2023 04:38:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXtwDjCODyEt0F9e9wFg56IVBdIOmFFUHmN/pfdj80iKEvI00TIMVs2Jx3JSMWhkhuPOZGzn X-Received: by 2002:a17:907:8d03:b0:7c0:d522:decb with SMTP id tc3-20020a1709078d0300b007c0d522decbmr65489412ejc.76.1673440684082; Wed, 11 Jan 2023 04:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673440684; cv=none; d=google.com; s=arc-20160816; b=LAPBMUGFe+u8ecgJxXdfnzLG3dYfTldMibACVu8/+Ck9HYjisD9uobw5VT72tKJI2j EW/IvmY+S7OaVUC+WQF5akDNzIb44JV9fDZP8wBCmXtozFXi1QWhPEt9BrS3AorZSjpa alGkCrppkZHYcBiPybWBqf+huOvnU68w+stAsbhzdD8i4nikfW1x6lRrNepE+sYEQLhM s2JjJeDZN1V3UBja9Sj9loS4LD8o+vAQTMif4AXPYEQLRSBiceoLR8GS0iusALppFcNY AJT2xQHRc1tYaB8Z4Yf8xaCHzCqk7JhLzszljXT6bSMsc8y3KfrrjTWwhSc5WzN9MAkV UPFg== 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=zABXTqnOS+sR0VK+tpmly/TmJdJD8fpPZyXdF/Osuvk=; b=L6T0/jeGpAAtx4ikvRJRy84bkedcWloVo64pe4P3dJt9dIKl7KFePso3a8N0XEtwe8 NZpdxbVYqt/i9kSYq8+x72XgLzFwh70rc9f1nzGkgvG43DHCK8tYTLPYFwwSUSzmZgcF bYM16umItF4pNJOPJm3pNPo1nn3P1m+OIdCDPft+qoeX2b3+R7VU6naZpx3XVa4GVOqG r2TRadjKJEIAFsBaQH+n38IffcSNQeP2Vx37CitMqX9MBIpETu2v6KEWC8Sbt07p6+Ih MjilU9zc+jVJz7XyB7zRdjB05+XwVOaE/ClxQi7ryzw8ueKtduI4qjTf12AE0nwiBQnz dOrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZpVtu/tC"; 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 d36-20020a056402402400b0045c3f6adb7csi13887625eda.215.2023.01.11.04.37.40; Wed, 11 Jan 2023 04:38:04 -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="ZpVtu/tC"; 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 S229636AbjAKMa1 (ORCPT + 99 others); Wed, 11 Jan 2023 07:30:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbjAKMaY (ORCPT ); Wed, 11 Jan 2023 07:30:24 -0500 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC1062012 for ; Wed, 11 Jan 2023 04:30:20 -0800 (PST) Received: by mail-pg1-x52a.google.com with SMTP id q9so10422088pgq.5 for ; Wed, 11 Jan 2023 04:30:20 -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=zABXTqnOS+sR0VK+tpmly/TmJdJD8fpPZyXdF/Osuvk=; b=ZpVtu/tC+7kESiiDpzePypwP/SBHfWV1Q1lpfMXwgwfHUHxxOIpgU6N4lpj9p4Vsfa QT9RcdK8fosGAKDoNV2xikqckVNwHSKqpJSt2tA70diYHYlyLBjjacnWmxDnFBUOju7g 7nXCyuxkiI0Gz3OlJUA/SWBo4hdMAVBo5TNNWCOmRbPANq+jnQ2YILIYxX4WWVBzuzwt qwKTu/uQ88wYL7O3Ux6PjfF70p/5qNbHmvjJOMLFjPw1tnf3FCk2SBfwMTOe/vu6P2N9 k/ZMLSgOfephCGiu3HL/rG4S+Al7DAYP4PI/5KAAcHobyVD76szr9sm6i/u5jaOhtLvH /9dQ== 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=zABXTqnOS+sR0VK+tpmly/TmJdJD8fpPZyXdF/Osuvk=; b=hayOS7xtiqBlf8vx1cHp4tvlaPepO90U/uqOkzzhmyx77lszFugA66UTYzEtAGvR0Z esgQ42HNmU9L3Awben03yz9Q/QfeOIDqI0lyc7vyQc6bybTq6RRa3IzVuHeanhBsIxRC i859sDNTP//Gz4yqdjSxmschAXRGO1kA8r8X3Y3DODG0XLbdczM7w1DWIsky3a3o10In D19qGNlwHLzRkG9jPx37hSXvDZ5dvYQy7TsqkctPjVugvOLB7Zqm9inhWZ4kZGfQQCdq L1+n19wwsNfFF9syejKPJoH8WIwvZlmQbNkMhUkIULS1aBSu5iN21nrdR5Vn2iX3H/XJ sQKQ== X-Gm-Message-State: AFqh2kquGmK5mbX2fJ1CFA6lbyuPJ/JIJJAbssrMZRKphBE1L+dB1JPP JO2oFz0dncB3iOivse4rUYWs X-Received: by 2002:a05:6a00:a1d:b0:581:73c4:f0bb with SMTP id p29-20020a056a000a1d00b0058173c4f0bbmr65449291pfh.2.1673440220454; Wed, 11 Jan 2023 04:30:20 -0800 (PST) Received: from localhost.localdomain ([117.217.177.1]) by smtp.gmail.com with ESMTPSA id c15-20020aa7952f000000b005747b59fc54sm8719594pfp.172.2023.01.11.04.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 04:30:19 -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 , Rob Herring Subject: [PATCH 1/2] dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller Date: Wed, 11 Jan 2023 18:00:03 +0530 Message-Id: <20230111123004.21048-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754729738781090684?= X-GMAIL-MSGID: =?utf-8?q?1754729738781090684?= The binding should specify both MSI implementations and the OS/driver should choose the one based on the platform requirements. Fixes: 2b0d557419cd ("dt-bindings: PCI: qcom: Allow both GIC-ITS and internal MSI controller") Suggested-by: Rob Herring Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- 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 01208450e05c..e106bdf93f09 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -119,7 +119,7 @@ required: - clocks - clock-names -oneOf: +anyOf: - required: - interrupts - interrupt-names From patchwork Wed Jan 11 12:30:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 41959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3293839wrt; Wed, 11 Jan 2023 04:38:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXsgb1JsSxpBtxLdPU5tchEGqjW513GfGyx9C5t+wXvz6jlg2AcHU5oyPkxjdQn53Lk1ZxE/ X-Received: by 2002:a05:6402:2a02:b0:470:44eb:9e58 with SMTP id ey2-20020a0564022a0200b0047044eb9e58mr65043023edb.30.1673440687019; Wed, 11 Jan 2023 04:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673440686; cv=none; d=google.com; s=arc-20160816; b=HxUJ4oF+DkAflBPGER7/zWLWkR/5K0faUo5+19V5pTnuWJ+PzmBV2wQmE7V7eR0VuC zf/mLyeBmfv4fjyVjbeoMCGXk+js1KawXMN5OE6xGgZnIhWSCgpRdHIrIu2VjmRNjuc0 YYCTETqFYGzh0xT+JmuqFquR/F3DYOIJKs9uqd8YULBif+QTeap2Y+5q8NSodoKmXD/t hEeiF0HMEWAfBQBQRKL4+o2yOlqkmWnKWwSgiYnLR8vsTdpziEH4Qws33V9jRzlKTFNS zSFv33xwVDMXWwlcK/9uFYuq1lM+Zpy2wAynRTfBZ941XeRJZAoX2dPc+rPUvwR8IlFA Fx2w== 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=jUBhq6gDwIZT95NIs8306ERf1NfWP566N/5jgccgjik=; b=zxNJ5lyWbTIyeKOjiPxygOak2lbdmYgsxoVrW+G/NLWQr1K1qski1wOsh4kH0gnRty aJuIAjR+r373eQ06HHhSQwzsk7KmOb1ZcrfvDxNs1npYkDEcxOENkTXPfn7HfrkdVeJD ysfT0aGl8PTBy0h1BUlqSicSungu78tAlIM7YKTgwBw5dAWvLmZsOj8+vhUR37IOntnW LMJ+A3L7HGthG97QfxQyJNxRsPSREph1t3SueZaI/LJD65JMa+2GxifbYV9GHrB9xSgY yeMTu3xt4vQc+dDIq0sSjPPXKgpWelHaIsINeILYxpb7k9dxl8LRaPvM+J4BJaO+rKaz K4vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gpkiR1z4; 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 bd8-20020a056402206800b0047aaa487720si13385624edb.275.2023.01.11.04.37.43; Wed, 11 Jan 2023 04:38:06 -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=gpkiR1z4; 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 S232011AbjAKMaq (ORCPT + 99 others); Wed, 11 Jan 2023 07:30:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232942AbjAKMa2 (ORCPT ); Wed, 11 Jan 2023 07:30:28 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD4553887 for ; Wed, 11 Jan 2023 04:30:26 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id s3so8760644pfd.12 for ; Wed, 11 Jan 2023 04:30:26 -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=jUBhq6gDwIZT95NIs8306ERf1NfWP566N/5jgccgjik=; b=gpkiR1z4I+KOuHdaHilhRu5VCtC51kivd5GKp//dSEGu5DwZiH4SAFcM7NzqrIh1JF Z/ArtivzRkvhOVxaXS1VSZ8HBpMjHz/KQF0EWbFUCwYhAGaxy1jgByeZUWH7TfwFXAyd FOMJ+ImDvD5Vv+a4mrvm1jvtv+gjptCASHJpOZ5G1oQmb945slLCChIZBc4v/pPmBvIe uG6yC/nKHZ0C6N0/HecAf+fxgjk2UejEH1lqcTGXJVvEsTE8Mura07pRZVJdvMl7wX6E yJEUp8pA6o5KXZ0fSE7nB1e12AaH+AjpC6XUHpZ1bOc4qIZ8Pa5xy4VKNlosnV3n6uxJ jjww== 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=jUBhq6gDwIZT95NIs8306ERf1NfWP566N/5jgccgjik=; b=tIMCO0537YgyefPvBknTCyb4pVRgzfKQV92i+098kLuhmF0ojDHBNTPOgfKSC4Sype hOX7UfsbCuuY8NlZe7vGR3+2MLcc/Ffi9aiCz2K8Yemx+0Rs6Ntm2NSBWrrc6ra5wer7 9xof4CN5OprgRYQ6VQVwbJjg3l8fsXNfP2gHnMyT6fP6fjETyEuUDrB04Kin7Wb2ORs5 xNLF00V3+ntsvdfLc/Ww0jLermD1RuW3aJZCTgMoN5BpeRL8vnL136Uo2nuYlrbaZUEd FopYrbX9gzThECi9b+qa8S48kCZATL0M0iuYwy5b9vnXJZnbltm/PnF5x8LnqJe5kbmA 7taw== X-Gm-Message-State: AFqh2kqpbJzUXMbKTzjS/SQifWlHq1YUtpGvCoTSHHxuEH2Nl1eKRFps Sv5bqxWcS6zGOARukyipb9Xn X-Received: by 2002:a62:6001:0:b0:582:33b4:4c57 with SMTP id u1-20020a626001000000b0058233b44c57mr2062856pfb.33.1673440226258; Wed, 11 Jan 2023 04:30:26 -0800 (PST) Received: from localhost.localdomain ([117.217.177.1]) by smtp.gmail.com with ESMTPSA id c15-20020aa7952f000000b005747b59fc54sm8719594pfp.172.2023.01.11.04.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 04:30:25 -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 , Rob Herring Subject: [PATCH 2/2] arm64: dts: qcom: sm8450: Allow both GIC-ITS and internal MSI controller Date: Wed, 11 Jan 2023 18:00:04 +0530 Message-Id: <20230111123004.21048-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230111123004.21048-1-manivannan.sadhasivam@linaro.org> References: <20230111123004.21048-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754729741771408457?= X-GMAIL-MSGID: =?utf-8?q?1754729741771408457?= The devicetree should specify both MSI implementations and the OS/driver should choose the one based on the platform requirements. Currently, Linux DWC driver will choose GIC-ITS over the internal MSI controller. Fixes: a11bbf6adef4 ("arm64: dts: qcom: sm8450: Use GIC-ITS for PCIe0 and PCIe1") Suggested-by: Rob Herring Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index c4dd5838fac6..442b7be10858 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1740,6 +1740,9 @@ pcie0: pci@1c00000 { msi-map = <0x0 &gic_its 0x5981 0x1>, <0x100 &gic_its 0x5980 0x1>; msi-map-mask = <0xff00>; + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; 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 */ @@ -1853,6 +1856,9 @@ pcie1: pci@1c08000 { msi-map = <0x0 &gic_its 0x5a01 0x1>, <0x100 &gic_its 0x5a00 0x1>; msi-map-mask = <0xff00>; + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; 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 */