linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Victor Ding <victording@google.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
	Adrian Hunter <adrian.hunter@intel.com>
Cc: Ben Chuang <ben.chuang@genesyslogic.com.tw>,
	Bjorn Helgaas <helgaas@kernel.org>,
	linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
	linux-mmc@vger.kernel.org, Victor Ding <victording@google.com>,
	Alex Levin <levinale@google.com>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Kai-Heng Feng <kai.heng.feng@canonical.com>,
	"Saheed O. Bolarinwa" <refactormyself@gmail.com>,
	Sean Paul <seanpaul@chromium.org>,
	Sukumar Ghorai <sukumar.ghorai@intel.com>,
	Yicong Yang <yangyicong@hisilicon.com>
Subject: [PATCH 0/2] Disable ASPM on GL9750 during a suspension
Date: Tue, 12 Jan 2021 04:02:03 +0000	[thread overview]
Message-ID: <20210112040205.4117303-1-victording@google.com> (raw)


GL9750 SD Host Controller has a 3100us PortTPowerOnTime; however, it
enters L1.2 after only ~4us inactivity per PCIe trace. During a
suspend/resume process, PCI access operations are frequently longer than
4us apart. Therefore, the device frequently enters and leaves L1.2 during
this process, causing longer than desirable suspend/resume time. The total
time cost due to this L1.2 exit latency could add up to ~200ms.

Considering that PCI access operations are fairly close to each other
(though sometimes > 4us), the actual time the device could stay in L1.2 is
negligible. Therefore, the little power-saving benefit from ASPM during
suspend/resume does not overweight the performance degradation caused by
long L1.2 exit latency.

Therefore, I am proposing to disable ASPM during a suspend/resume process.


Victor Ding (2):
  PCI/ASPM: Disable ASPM until its LTR and L1ss state is restored
  mmc: sdhci-pci-gli: Disable ASPM during a suspension

 drivers/mmc/host/sdhci-pci-core.c |  2 +-
 drivers/mmc/host/sdhci-pci-gli.c  | 46 +++++++++++++++++++++++++++++--
 drivers/mmc/host/sdhci-pci.h      |  1 +
 drivers/pci/pci.c                 | 11 ++++++++
 drivers/pci/pci.h                 |  2 ++
 drivers/pci/pcie/aspm.c           |  2 +-
 6 files changed, 60 insertions(+), 4 deletions(-)

-- 
2.30.0.284.gd98b1dd5eaa7-goog


             reply	other threads:[~2021-01-12  4:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-12  4:02 Victor Ding [this message]
2021-01-12  4:02 ` [PATCH 1/2] PCI/ASPM: Disable ASPM until its LTR and L1ss state is restored Victor Ding
2021-01-12 22:32   ` Bjorn Helgaas
2021-01-13  2:16     ` Victor Ding
2021-01-13 20:54       ` Bjorn Helgaas
2021-01-14  9:13         ` Victor Ding
2021-01-12  4:02 ` [PATCH 2/2] mmc: sdhci-pci-gli: Disable ASPM during a suspension Victor Ding
2021-01-12 22:38   ` Bjorn Helgaas
2021-01-13  2:16     ` Victor Ding
2021-01-13 21:48       ` Bjorn Helgaas
2021-01-14  9:13         ` Victor Ding

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210112040205.4117303-1-victording@google.com \
    --to=victording@google.com \
    --cc=adrian.hunter@intel.com \
    --cc=ben.chuang@genesyslogic.com.tw \
    --cc=bhelgaas@google.com \
    --cc=helgaas@kernel.org \
    --cc=kai.heng.feng@canonical.com \
    --cc=levinale@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=refactormyself@gmail.com \
    --cc=seanpaul@chromium.org \
    --cc=sukumar.ghorai@intel.com \
    --cc=ulf.hansson@linaro.org \
    --cc=yangyicong@hisilicon.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).