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 */