Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9636408rwp; Thu, 20 Jul 2023 07:43:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlG0w2hZb4+Z5rl52UlVqTY1K1722XmhhzQPRDPlhSxlZ3bJ0VFSqCFNZ6VB3dSzV7GUksxh X-Received: by 2002:a05:6870:970a:b0:1b0:5fc0:e2b5 with SMTP id n10-20020a056870970a00b001b05fc0e2b5mr2101720oaq.53.1689864197329; Thu, 20 Jul 2023 07:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689864197; cv=none; d=google.com; s=arc-20160816; b=rV3/z3LBgxdPcTk9YQKL9SuDPHy2uMgZYASY1hRMCMzfv81H+3+NLfFLMuEz4/GNF9 jso9qjw9e5vPJjMl0UgWyWaMNQYsGmZvs06TFW7FWgLvmvDLzjuBzz6AmPrErrOfYTVU 3eAYXz+uZ1tPnb+fP37VIknkkkHHPPEuLSNt4HmQWKrJ4te4npv8sQcsPkDich5FxJ2u ChTqc2Qrkt+eNZa1u2h358DCm83cBlCLLjDVHWB6YSJqaApUYEqf+vV3t6o3onA7qjBh BXmipgjJni+xsbQcHdZOxAhsn8GIZN1LLg/tFePopqJ/o9zjjZ7FWsQGh/du9qjA4/cP uEtg== 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=jnAoymWT965DZ8S4BFUQ0MsUUf+LRW1bKg9JTTI3DTE=; fh=YP9hNAmTNdLZTw7k4VuSdeUPx646XHdE/f5uYU5qoZU=; b=uAteiOaGtthrjtZa8DLZcyYYMghMjpiPPb7mC7oEIeHx6LASGJ99FKKQWAyzKK7gF+ EpsK/O9hyhmygsj+zV3NTscRJ4QUatZofSz/WwdZ9wXLZ5VXTkGITl4MTsxJz8k7vIJd LNJgDR1PmOHcA/xPa2r2nCemmDaotzJP5HQRmXLJjBFf2QhgHZs7DklBrH4BLkDRVn89 vfCuWkL/DGKVEGRva3C4awfYWQA3Yp3HmCjgu7SstWqGTMD85QMTUeH9yvBSB60ei8aO Or1I/NhqfuV6Fq2bYeybRjiPvI3jncv9XO1zyhx85v9INvy/iLeJ72Q/JTlweEiCrHss CF7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=haWaSmUP; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l66-20020a633e45000000b0055b037b55ecsi1002844pga.147.2023.07.20.07.42.55; Thu, 20 Jul 2023 07:43:17 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=haWaSmUP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232160AbjGTOUy (ORCPT + 99 others); Thu, 20 Jul 2023 10:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbjGTOUx (ORCPT ); Thu, 20 Jul 2023 10:20:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1CA01B6; Thu, 20 Jul 2023 07:20:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45E7561B11; Thu, 20 Jul 2023 14:20:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4977CC433C7; Thu, 20 Jul 2023 14:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689862851; bh=8czobt6b2nGsykSx6kshr/iFGD0uIXglebqw3BxMl0U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=haWaSmUPYpKqdiouAbxDguEGIvEqUHnC7vPIYIcwQKsBSwxUFcGAF9sMZEiY/ojZb ibHhJv/G2EP7b5dMf4Xc8dpD0Zd6sewpWtA3/2FlqHFbZN0FucgSIRtbBqqhPHha3R BEj33Xqr0v+q1bkMoJhKaHtXWnGONgMWpydDPGGMs5cyQ2T0dAFMScwWKEK/PjDCeJ m2kgl8BBopE0SZQF0BCMAW6ho9gCmcfPK5LwrB6U34xZDvrudvzk8uPrPLQiiILxfp 8Npe/NoYCP8yC4By7mKrIZqN5LTADOn7+vfPsT1o5OvcrA62bpbNbSZIZLEDlH6Qpr Ft+7xwlWglzzw== Date: Thu, 20 Jul 2023 19:50:34 +0530 From: Manivannan Sadhasivam To: Frank Li Cc: Manivannan Sadhasivam , helgaas@kernel.org, imx@lists.linux.dev, bhelgaas@google.com, devicetree@vger.kernel.org, gustavo.pimentel@synopsys.com, kw@linux.com, leoyang.li@nxp.com, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lorenzo.pieralisi@arm.com, minghuan.lian@nxp.com, mingkai.hu@nxp.com, robh+dt@kernel.org, roy.zang@nxp.com, shawnguo@kernel.org, zhiqiang.hou@nxp.com Subject: Re: [PATCH v3 1/2] PCI: dwc: Implement general suspend/resume functionality for L2/L3 transitions Message-ID: <20230720142034.GA48270@thinkpad> References: <20230419164118.596300-1-Frank.Li@nxp.com> <20230717164526.GC35455@thinkpad> <20230718100400.GB4771@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Jul 19, 2023 at 03:16:48PM -0400, Frank Li wrote: > On Tue, Jul 18, 2023 at 03:34:00PM +0530, Manivannan Sadhasivam wrote: > > On Mon, Jul 17, 2023 at 02:36:19PM -0400, Frank Li wrote: > > > > Fine then. But can we check for PM_LINKST_IN_L2 SII System Information Interface > > (SII) instead of LTSSM state? > > > where define PM_LINKST_IN_L2? I just find one at > > drivers/pci/controller/dwc/pcie-qcom.c:#define PARF_DEBUG_CNT_PM_LINKST_IN_L2 0xc04 > Yes, this register is not exposed by the DWC core itself but the vendors may expose such as Qcom as you pointed out. If it is not available on all platforms, then feel free to ignore my advice. - Mani > Frank > -- மணிவண்ணன் சதாசிவம்