linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Herve Codina <herve.codina@bootlin.com>
Cc: "Manivannan Sadhasivam" <mani@kernel.org>,
	"Christian Zigotzky" <chzigotzky@xenosoft.de>,
	"Lukas Wunner" <lukas@wunner.de>,
	"Manivannan Sadhasivam" <manivannan.sadhasivam@oss.qualcomm.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	linux-pci@vger.kernel.org, "mad skateman" <madskateman@gmail.com>,
	"R.T.Dickinson" <rtd2@xtra.co.nz>,
	"Christian Zigotzky" <info@xenosoft.de>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	hypexed@yahoo.com.au, "Darren Stevens" <darren@stevens-zone.net>,
	debian-powerpc@lists.debian.org,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [PPC] Boot problems after the pci-v6.18-changes
Date: Thu, 23 Oct 2025 11:59:57 -0500	[thread overview]
Message-ID: <20251023165957.GA1300574@bhelgaas> (raw)
In-Reply-To: <20251023111947.6e960216@bootlin.com>

On Thu, Oct 23, 2025 at 11:19:47AM +0200, Herve Codina wrote:
> On Thu, 23 Oct 2025 14:19:46 +0530
> Manivannan Sadhasivam <mani@kernel.org> wrote:
> > On Thu, Oct 23, 2025 at 09:38:13AM +0200, Herve Codina wrote:
> > > On Wed, 15 Oct 2025 18:20:22 +0530
> > > Manivannan Sadhasivam <mani@kernel.org> wrote:
> > > > On Wed, Oct 15, 2025 at 01:58:11PM +0200, Herve Codina wrote:  
> > > > > On Wed, 15 Oct 2025 13:30:44 +0200
> > > > > Christian Zigotzky <chzigotzky@xenosoft.de> wrote:
> > > > > > > On 15 October 2025 at 10:39 am, Herve Codina <herve.codina@bootlin.com> wrote:
> > > > > > > I also observed issues with the commit f3ac2ff14834
> > > > > > > ("PCI/ASPM: Enable all ClockPM and ASPM states for
> > > > > > > devicetree platforms")      

> > > I did tests and here are the results:
> > > 
> > >   - quirk pci_disable_link_state(dev, PCIE_LINK_STATE_ALL)
> > >     Issue not present
> > > 
> > >   - quirk pci_disable_link_state(dev, PCIE_LINK_STATE_L1_1 | PCIE_LINK_STATE_L1_2)
> > >     Issue present, timings similar to timings already reported
> > >     (hundreds of ms).
> > > 
> > >   - quirk pci_disable_link_state(dev, PCIE_LINK_STATE_L0S);
> > >     Issue present, timings still incorrect but lower
> > >       64 bytes from 192.168.32.100: seq=10 ttl=64 time=16.738 ms
> > >       64 bytes from 192.168.32.100: seq=11 ttl=64 time=39.500 ms
> > >       64 bytes from 192.168.32.100: seq=12 ttl=64 time=62.178 ms
> > >       64 bytes from 192.168.32.100: seq=13 ttl=64 time=84.709 ms
> > >       64 bytes from 192.168.32.100: seq=14 ttl=64 time=107.484 ms
> > 
> > This is weird. Looks like all ASPM states (L0s, L1ss) are
> > contributing to the increased latency, which is more than what
> > should occur. This makes me ignore inspecting the L0s/L1 exit
> > latency fields :/
> > 
> > Bjorn sent out a patch [1] that enables only L0s and L1 by
> > default. But it might not help you. I don't honestly know how you
> > are seeing this much of the latency. This could the due to an
> > issue in the PCI component (host or endpoint), or even the board
> > routing. Identifying which one is causing the issue is going to be
> > tricky as it would require some experimentation.
> 
> I've just tested the patch from Bjorn and I confirm that it doesn't
> fix my issue.

You should be able to control ASPM at runtime via sysfs:

  What:           /sys/bus/pci/devices/.../link/clkpm
		  /sys/bus/pci/devices/.../link/l0s_aspm
		  /sys/bus/pci/devices/.../link/l1_aspm
		  /sys/bus/pci/devices/.../link/l1_1_aspm
		  /sys/bus/pci/devices/.../link/l1_2_aspm
		  /sys/bus/pci/devices/.../link/l1_1_pcipm
		  /sys/bus/pci/devices/.../link/l1_2_pcipm
  Date:           October 2019
  Contact:        Heiner Kallweit <hkallweit1@gmail.com>
  Description:    If ASPM is supported for an endpoint, these files can be
		  used to disable or enable the individual power management
		  states. Write y/1/on to enable, n/0/off to disable.

I assume you're using CONFIG_PCIEASPM_DEFAULT=y, and if you're using
v6.18-rc1 plus the patch at [1], we should be enabling l0s_aspm and
l1_aspm at most.

If the sysfs knobs work correctly, maybe we can isolate the slowdown
to either L0s or L1?

[1] https://lore.kernel.org/linux-pci/20251020221217.1164153-1-helgaas@kernel.org/

  reply	other threads:[~2025-10-23 16:59 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3eedbe78-1fbd-4763-a7f3-ac5665e76a4a@xenosoft.de>
     [not found] ` <15731ad7-83ff-c7ef-e4a1-8b11814572c2@xenosoft.de>
     [not found]   ` <17e37b22-5839-0e3a-0dbf-9c676adb0dec@xenosoft.de>
     [not found]     ` <3b210c92-4be6-ce49-7512-bb194475eeab@xenosoft.de>
2021-11-09 15:10       ` [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates Christian Zigotzky
2021-11-09 16:58         ` Bjorn Helgaas
2021-11-09 22:40           ` Krzysztof Wilczyński
2021-11-09 23:05             ` Arnd Bergmann
2021-11-09 23:18               ` Krzysztof Wilczyński
2021-11-10 16:42                 ` Robert Święcki
2021-11-10  3:52             ` Damien Le Moal
2021-11-10 18:07       ` Christian Zigotzky
2021-11-10 18:41         ` Bjorn Helgaas
2021-11-10 19:09           ` Marc Zyngier
2021-11-11  5:24             ` Christian Zigotzky
2021-11-11  7:13               ` Marc Zyngier
2021-11-11  7:47                 ` Christian Zigotzky
2021-11-11 10:20                   ` Marc Zyngier
2021-11-11 10:44                     ` Christian Zigotzky
2021-11-11 11:24                       ` Marc Zyngier
2021-11-11 11:54                         ` Christian Zigotzky
2021-11-11 22:21                     ` Olof Johansson
2021-11-12 11:49                       ` Segher Boessenkool
2021-11-11 17:39         ` Marc Zyngier
2021-11-12  9:40           ` Christian Zigotzky
2021-11-12 10:11             ` Christian Zigotzky
2021-11-12 11:00               ` Christian Zigotzky
2021-11-12 13:41             ` Marc Zyngier
2021-11-12 14:15               ` Christian Zigotzky
2021-11-12 14:46                 ` Marc Zyngier
2021-11-12 15:01                   ` Christian Zigotzky
2021-11-12 15:05                     ` Christian Zigotzky
2025-10-08 16:35                       ` [PPC] Boot problems after the pci-v6.18-changes Christian Zigotzky
2025-10-08 16:40                         ` John Paul Adrian Glaubitz
2025-10-08 16:47                           ` Christian Zigotzky
2025-10-08 19:51                         ` Bjorn Helgaas
2025-10-09  4:54                           ` Christian Zigotzky
2025-10-09  5:37                             ` Lukas Wunner
2025-10-11  5:12                               ` Christian Zigotzky
2025-10-11  5:25                                 ` Lukas Wunner
2025-10-11 15:11                                   ` Manivannan Sadhasivam
2025-10-11 19:34                                     ` Christian Zigotzky
2025-10-12  7:47                                       ` Christian Zigotzky
2025-10-12  8:26                                         ` Christian Zigotzky
2025-10-13  4:46                                     ` Christian Zigotzky
2025-10-13  5:02                                       ` Christian Zigotzky
2025-10-13  5:23                                         ` Christian Zigotzky
2025-10-13 14:50                                           ` Christian Zigotzky
2025-10-13 15:02                                             ` Christian Zigotzky
2025-10-13 15:38                                               ` Christian Zigotzky
2025-10-13 15:58                                             ` Manivannan Sadhasivam
     [not found]                                               ` <a2ee06b1-28a5-4cb1-9940-b225f9e6d6ee@xenosoft.de>
2025-10-14  4:55                                                 ` Christian Zigotzky
2025-10-15  6:41                                                   ` Manivannan Sadhasivam
2025-10-13 16:01                                         ` Manivannan Sadhasivam
2025-10-15  8:13                                     ` Herve Codina
2025-10-15 11:30                                       ` Christian Zigotzky
2025-10-15 11:58                                         ` Herve Codina
2025-10-15 12:27                                           ` Christian Zigotzky
2025-10-15 12:59                                             ` Herve Codina
     [not found]                                               ` <76026544-3472-4953-910A-376DD42BC6D0@xenosoft.de>
2025-10-15 13:17                                                 ` Christian Zigotzky
2025-10-15 13:34                                                 ` Herve Codina
2025-10-15 16:54                                                   ` Christian Zigotzky
2025-10-15 17:15                                                     ` Christian Zigotzky
2025-10-16  3:28                                                   ` Christian Zigotzky
2025-10-16  7:36                                                     ` Christian Zigotzky
2025-10-16  7:53                                                       ` Manivannan Sadhasivam
2025-10-16 10:44                                                         ` Christian Zigotzky
2025-10-17  5:35                                                           ` Christian Zigotzky
2025-10-15 16:23                                               ` Manivannan Sadhasivam
2025-10-15 13:07                                             ` Christian Zigotzky
2025-10-15 12:50                                           ` Manivannan Sadhasivam
2025-10-23  7:38                                             ` Herve Codina
2025-10-23  8:49                                               ` Manivannan Sadhasivam
2025-10-23  9:19                                                 ` Herve Codina
2025-10-23 16:59                                                   ` Bjorn Helgaas [this message]
2025-10-15 23:40                                       ` Bjorn Helgaas
2025-10-13 21:06                         ` Bjorn Helgaas
2025-10-14 18:51                           ` Bjorn Helgaas
2025-10-30 22:11                           ` Bjorn Helgaas
2025-11-01  5:39                             ` Christian Zigotzky
2025-11-01  7:59                               ` Christian Zigotzky
2025-11-01 17:06                                 ` Manivannan Sadhasivam
2025-11-03 18:28                                   ` Christian Zigotzky
2025-11-05 22:09                                     ` Bjorn Helgaas
2025-11-06  8:48                                       ` Hongxing Zhu
2025-11-06 18:25                                         ` Bjorn Helgaas
2025-11-07  2:26                                           ` Hongxing Zhu
2025-11-07  5:06                                       ` Christian Zigotzky
2025-11-11  5:15                                         ` Christian Zigotzky
2025-11-11 12:20                                           ` Bjorn Helgaas
2025-11-12  3:40                                             ` Christian Zigotzky
2025-11-13  0:44                                               ` Bjorn Helgaas

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=20251023165957.GA1300574@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=chzigotzky@xenosoft.de \
    --cc=darren@stevens-zone.net \
    --cc=debian-powerpc@lists.debian.org \
    --cc=herve.codina@bootlin.com \
    --cc=hypexed@yahoo.com.au \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=info@xenosoft.de \
    --cc=linux-pci@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=lukas@wunner.de \
    --cc=madskateman@gmail.com \
    --cc=mani@kernel.org \
    --cc=manivannan.sadhasivam@oss.qualcomm.com \
    --cc=rtd2@xtra.co.nz \
    --cc=thomas.petazzoni@bootlin.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).