Message ID | 20230306153222.157667-17-manivannan.sadhasivam@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1921957wrd; Mon, 6 Mar 2023 08:02:34 -0800 (PST) X-Google-Smtp-Source: AK7set+KVTodRX1M9TYrnEVrUGGoPKNdEC572G6OfdY/nZZ0Z2TPK1ffSgS4556hnTcQ9lABUTqG X-Received: by 2002:a17:90b:380d:b0:234:bf0:86b9 with SMTP id mq13-20020a17090b380d00b002340bf086b9mr11951490pjb.25.1678118554356; Mon, 06 Mar 2023 08:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678118554; cv=none; d=google.com; s=arc-20160816; b=H8Iq6Xs6vScwfTHEYTCXlHmpXinoEjIRGHeZeGggpfUifkQ23GO7JkpV2hdgVZARqj F/Sj5KmxMzIodAJjCW2w6VfAW6h0f2cvEsPRQBEfbpNu6z4p5LPbfENmlSm4UJ6Hpmz4 hpEWfgOJXnaKNE1LJW5Gm+Dm1qfhP2z+ZmmVHGuqHShMVLmDmB7X5j3fwJHu2A0KzLC8 Cvy/7RpbLDox3ckE+GRiP1No+K9LSM/tUymskIK9Mwa3CSfsZHkY7BQtNkifwM3qnEv/ YYXzkqq+7dh36f7HemER+/OGdMWdD1M6Gm1Rr3FT5hPiogJ0UkzQwaesfMe6LBsJBuQZ XrPA== 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=tvJuD70O+H+sPQNrNpV5HwBBDKIiVR9W0oL4sqQ+c8g=; b=YYRxZoYuLDHR93yZKwBKykE5vliNsFwJO485jWuCgXvymDHYodeOKCoPwLi4glYBja zJfpq0p2Y5czzNlKxA22UI517crXmRCByvU370C1vEqYrNR2pnrJb3iai5KKaC9Kqu3o xyqdMPybEbcJeJW9uHJriHi7P9ebMosSFRKE7YY3bXoUWMT9yybNoS6Gdmr72ddfqXg5 1LtDsZIJMA2eoHlEcXSfKnS2UmbQloHHxlDxJHEMaFAF/flBhMrT3cKR/TleaAVoBWac 9ABQqmxqMNG36vHFmq66ykJH6/R0jo+64Lv1D7pm9fFvc+lGYPDkYDTbzyouI6sOJygk df+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hgfdfPgx; 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 i20-20020a17090acf9400b0022645e2a88csi9958642pju.56.2023.03.06.08.02.20; Mon, 06 Mar 2023 08:02:34 -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=hgfdfPgx; 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 S231191AbjCFPfQ (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 6 Mar 2023 10:35:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbjCFPeW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Mar 2023 10:34:22 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC5E32A981 for <linux-kernel@vger.kernel.org>; Mon, 6 Mar 2023 07:33:51 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id u3-20020a17090a450300b00239db6d7d47so9142247pjg.4 for <linux-kernel@vger.kernel.org>; Mon, 06 Mar 2023 07:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678116827; 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=tvJuD70O+H+sPQNrNpV5HwBBDKIiVR9W0oL4sqQ+c8g=; b=hgfdfPgxkzcoWcZ/R+cq9xjZ3F6NPOCBDoWdMpYZLOFAF1F9eqXSUFis9etAEsA3P6 cqSXs+FE5vKO0+/xzpXvA/wRUetLvClJrh5V+Tl4rErDmC2KNHRM9vkKxOrbo8AwOEr4 8lVLoF9Z52QSqqL223eR/O+B/ejROiWY20j6lvtnqOyuakBrwe5jsaajtIx2zOLz3Xml hSF2JFuNbrU2CY2Ov9qYh9elL48M5cw/I8KT6xKqfYCIPulaWBpxUNrikv7NF2tSQpHw DMBbL5HPbURUYsUwQ4jAlq09YtLArS6G42UOQ6WcbbHdZ1U/01up84YfHWZSMjEG1Lg4 Urbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678116827; 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=tvJuD70O+H+sPQNrNpV5HwBBDKIiVR9W0oL4sqQ+c8g=; b=aoz+hkpQq4+VEaQhfijRI2Vlm6KlEFe0/i7lXEqCEf4GTrKfHluEjVuNaROQbFB0R5 l9kIRbuCtIyhiyr1aO9YT8Qf3PeQuh6lLzzRSN/PR7LDZmJ4U+w+6HxJIpqaqmy9wALS IZHkpHHd+pU7ph7aicnK9MoJ0FO4Dyqpe9VLkuwHXpsX/nHYTH/7xA5xor3LAAnTnXHQ 4ti5gQ26g7pd0z7+gQ2pqrxJOEXz7jYm7iVpfumvMxkdncT/jbDX42xFbJhtxy35KUv2 94SIt8nmGIHjiMyE+hx5OUzUXmEjW6c2mMWz9/UZsHY2Lxd6pUIyy7T3iTdgjNtqDaiR RIVQ== X-Gm-Message-State: AO0yUKVnhiCeAWjZgC1GrYm4m8zTrMHsiNBW7Gq2tUY9Wej/rmXDd3Vh xrwDpF6nettTIEJZxqPQJzp+ X-Received: by 2002:a17:902:d4c5:b0:199:30a6:376c with SMTP id o5-20020a170902d4c500b0019930a6376cmr12206287plg.68.1678116827601; Mon, 06 Mar 2023 07:33:47 -0800 (PST) Received: from localhost.localdomain ([59.97.52.140]) by smtp.gmail.com with ESMTPSA id kl4-20020a170903074400b0019a7c890c61sm6837430plb.252.2023.03.06.07.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 07:33:47 -0800 (PST) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: andersson@kernel.org, lpieralisi@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, robh@kernel.org Cc: konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Subject: [PATCH 16/19] arm64: dts: qcom: sdm845: Add "mhi" region to the PCIe nodes Date: Mon, 6 Mar 2023 21:02:19 +0530 Message-Id: <20230306153222.157667-17-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230306153222.157667-1-manivannan.sadhasivam@linaro.org> References: <20230306153222.157667-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759634841482295696?= X-GMAIL-MSGID: =?utf-8?q?1759634841482295696?= |
Series |
Qcom PCIe cleanups and improvements
|
|
Commit Message
Manivannan Sadhasivam
March 6, 2023, 3:32 p.m. UTC
The "mhi" region contains the debug registers that could be used to monitor
the PCIe link transitions.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
arch/arm64/boot/dts/qcom/sdm845.dtsi | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Comments
On 06/03/2023 16:32, Manivannan Sadhasivam wrote: > The "mhi" region contains the debug registers that could be used to monitor > the PCIe link transitions. > > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 479859bd8ab3..0104e77dd8d5 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -2280,10 +2280,11 @@ opp-4 { > pcie0: pci@1c00000 { > compatible = "qcom,pcie-sdm845"; > reg = <0 0x01c00000 0 0x2000>, > + <0 0x01c07000 0 0x1000>, > <0 0x60000000 0 0xf1d>, > <0 0x60000f20 0 0xa8>, > <0 0x60100000 0 0x100000>; > - reg-names = "parf", "dbi", "elbi", "config"; > + reg-names = "parf", "mhi", "dbi", "elbi", "config"; Indexes are fixed, thus this breaks other users of DTS. Best regards, Krzysztof
On Tue, Mar 07, 2023 at 09:20:23AM +0100, Krzysztof Kozlowski wrote: > On 06/03/2023 16:32, Manivannan Sadhasivam wrote: > > The "mhi" region contains the debug registers that could be used to monitor > > the PCIe link transitions. > > > > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > index 479859bd8ab3..0104e77dd8d5 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > @@ -2280,10 +2280,11 @@ opp-4 { > > pcie0: pci@1c00000 { > > compatible = "qcom,pcie-sdm845"; > > reg = <0 0x01c00000 0 0x2000>, > > + <0 0x01c07000 0 0x1000>, > > <0 0x60000000 0 0xf1d>, > > <0 0x60000f20 0 0xa8>, > > <0 0x60100000 0 0x100000>; > > - reg-names = "parf", "dbi", "elbi", "config"; > > + reg-names = "parf", "mhi", "dbi", "elbi", "config"; > > Indexes are fixed, thus this breaks other users of DTS. > Are you suggesting to move the "mhi" to the end and do not care about sorting? Thanks, Mani > Best regards, > Krzysztof >
On 08/03/2023 09:31, Manivannan Sadhasivam wrote: > On Tue, Mar 07, 2023 at 09:20:23AM +0100, Krzysztof Kozlowski wrote: >> On 06/03/2023 16:32, Manivannan Sadhasivam wrote: >>> The "mhi" region contains the debug registers that could be used to monitor >>> the PCIe link transitions. >>> >>> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> >>> --- >>> arch/arm64/boot/dts/qcom/sdm845.dtsi | 6 ++++-- >>> 1 file changed, 4 insertions(+), 2 deletions(-) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi >>> index 479859bd8ab3..0104e77dd8d5 100644 >>> --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi >>> @@ -2280,10 +2280,11 @@ opp-4 { >>> pcie0: pci@1c00000 { >>> compatible = "qcom,pcie-sdm845"; >>> reg = <0 0x01c00000 0 0x2000>, >>> + <0 0x01c07000 0 0x1000>, >>> <0 0x60000000 0 0xf1d>, >>> <0 0x60000f20 0 0xa8>, >>> <0 0x60100000 0 0x100000>; >>> - reg-names = "parf", "dbi", "elbi", "config"; >>> + reg-names = "parf", "mhi", "dbi", "elbi", "config"; >> >> Indexes are fixed, thus this breaks other users of DTS. >> > > Are you suggesting to move the "mhi" to the end and do not care about sorting? Yes, any new entry must be added at the end. What sorting do you mean? Entries are not sorted. Best regards, Krzysztof
diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 479859bd8ab3..0104e77dd8d5 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2280,10 +2280,11 @@ opp-4 { pcie0: pci@1c00000 { compatible = "qcom,pcie-sdm845"; reg = <0 0x01c00000 0 0x2000>, + <0 0x01c07000 0 0x1000>, <0 0x60000000 0 0xf1d>, <0 0x60000f20 0 0xa8>, <0 0x60100000 0 0x100000>; - reg-names = "parf", "dbi", "elbi", "config"; + reg-names = "parf", "mhi", "dbi", "elbi", "config"; device_type = "pci"; linux,pci-domain = <0>; bus-range = <0x00 0xff>; @@ -2385,10 +2386,11 @@ pcie0_lane: phy@1c06200 { pcie1: pci@1c08000 { compatible = "qcom,pcie-sdm845"; reg = <0 0x01c08000 0 0x2000>, + <0 0x01c0c000 0 0x1000>, <0 0x40000000 0 0xf1d>, <0 0x40000f20 0 0xa8>, <0 0x40100000 0 0x100000>; - reg-names = "parf", "dbi", "elbi", "config"; + reg-names = "parf", "mhi", "dbi", "elbi", "config"; device_type = "pci"; linux,pci-domain = <1>; bus-range = <0x00 0xff>;