From: Herve Codina <herve.codina@bootlin.com>
To: Manivannan Sadhasivam <mani@kernel.org>,
Bjorn Helgaas <helgaas@kernel.org>
Cc: "Lukas Wunner" <lukas@wunner.de>,
"Christian Zigotzky" <chzigotzky@xenosoft.de>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@oss.qualcomm.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"linux-pci@vger.kernel.org" <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"
<debian-powerpc@lists.debian.org>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [PPC] Boot problems after the pci-v6.18-changes
Date: Wed, 15 Oct 2025 10:13:04 +0200 [thread overview]
Message-ID: <20251015101304.3ec03e6b@bootlin.com> (raw)
In-Reply-To: <iv63quznjowwaib5pispl47gibevmmbbhl67ow2abl6s7lziuw@23koanb5uy22>
Hi All,
On Sat, 11 Oct 2025 08:11:42 -0700
Manivannan Sadhasivam <mani@kernel.org> wrote:
> On Sat, Oct 11, 2025 at 07:25:26AM +0200, Lukas Wunner wrote:
> > [cc += Mani]
> >
> > On Sat, Oct 11, 2025 at 07:12:49AM +0200, Christian Zigotzky wrote:
> > > On 09 October 2025 at 07:37 am, Lukas Wunner wrote:
> > > > On Thu, Oct 09, 2025 at 06:54:58AM +0200, Christian Zigotzky wrote:
> > > > > On 08 October 2025 at 09:51 pm, Bjorn Helgaas wrote:
> > > > > > On Wed, Oct 08, 2025 at 06:35:42PM +0200, Christian Zigotzky wrote:
> > > > > > > Our PPC boards [1] have boot problems since the pci-v6.18-changes. [2]
> > > > > > >
> > > > > > > Without the pci-v6.18-changes, the PPC boards boot without any problems.
> > > > > > >
> > > > > > > Boot log with error messages:
> > > > > > > https://github.com/user-attachments/files/22782016/Kernel_6.18_with_PCI_changes.log
> > > > > > >
> > > > > > > Further information: https://github.com/chzigotzky/kernels/issues/17
> > > > > > Do you happen to have a similar log from a recent working kernel,
> > > > > > e.g., v6.17, that we could compare with?
> > > > > Thanks for your answer. Here is a similar log from the kernel 6.17.0:
> > > > > https://github.com/user-attachments/files/22789946/Kernel_6.17.0_Cyrus_Plus_board_P5040.log
> > > > These lines are added in v6.18:
> > > >
> > > > pci 0000:01:00.0: ASPM: DT platform, enabling L0s-up L0s-dw L1 ASPM-L1.1 ASPM-L1.2 PCI-PM-L1.1 PCI-PM-L1.2
> > > > pci 0000:01:00.0: ASPM: DT platform, enabling ClockPM
> > > > pci 0001:01:00.0: ASPM: DT platform, enabling L0s-up L0s-dw L1 ASPM-L1.1 ASPM-L1.2 PCI-PM-L1.1 PCI-PM-L1.2
> > > > pci 0001:01:00.0: ASPM: DT platform, enabling ClockPM
> > > > pci 0001:03:00.0: ASPM: DT platform, enabling L0s-up L0s-dw L1 ASPM-L1.1 ASPM-L1.2 PCI-PM-L1.1 PCI-PM-L1.2
> > > > pci 0001:03:00.0: ASPM: DT platform, enabling ClockPM
> > > >
> > > > Possible candidate:
> > > >
> > > > f3ac2ff14834 ("PCI/ASPM: Enable all ClockPM and ASPM states for devicetree platforms")
> > >
> > > After reverting the commit f3ac2ff14834, the kernel boots without any
> > > problems.
> > >
> > > f3ac2ff14834 ("PCI/ASPM: Enable all ClockPM and ASPM states for devicetree
> > > platforms") is the bad commit.
> >
> > Hi Mani, your commit f3ac2ff14834 is causing a regression on certain
> > powerpc machines. Any ideas?
> >
>
> Hi Lukas,
>
> Thanks for looping me in. The referenced commit forcefully enables ASPM on all
> DT platforms as we decided to bite the bullet finally.
>
> Looks like the device (0000:01:00.0) doesn't play nice with ASPM even though it
> advertises ASPM capability.
>
> Christian, could you please test the below change and see if it fixes the issue?
>
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index 214ed060ca1b..e006b0560b39 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -2525,6 +2525,15 @@ static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev)
> */
> DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ASMEDIA, 0x1080, quirk_disable_aspm_l0s_l1);
>
> +
> +static void quirk_disable_aspm_all(struct pci_dev *dev)
> +{
> + pci_info(dev, "Disabling ASPM\n");
> + pci_disable_link_state(dev, PCIE_LINK_STATE_ALL);
> +}
> +
> +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x6738, quirk_disable_aspm_all);
> +
> /*
> * Some Pericom PCIe-to-PCI bridges in reverse mode need the PCIe Retrain
> * Link bit cleared after starting the link retrain process to allow this
>
>
> Going forward, we should be quirking the devices if they behave erratically.
>
> - Mani
>
I also observed issues with the commit f3ac2ff14834 ("PCI/ASPM: Enable all
ClockPM and ASPM states for devicetree platforms")
My system is an ARM board (Marvel Armada 3720 DDB)
https://elixir.bootlin.com/linux/v6.17.1/source/arch/arm64/boot/dts/marvell/armada-3720-db.dts
I use an LAN966x PCI board
https://elixir.bootlin.com/linux/v6.17.1/source/drivers/misc/lan966x_pci.c
Usually, when I did a ping using the PCI board, I have more or less the
following timings:
# ping 192.168.32.100
PING 192.168.32.100 (192.168.32.100): 56 data bytes
64 bytes from 192.168.32.100: seq=0 ttl=64 time=3.328 ms
64 bytes from 192.168.32.100: seq=1 ttl=64 time=2.636 ms
64 bytes from 192.168.32.100: seq=2 ttl=64 time=2.928 ms
64 bytes from 192.168.32.100: seq=3 ttl=64 time=2.649 ms
But with a vanilla v6.18-rc1 kernel, those timings become awful:
# ping 192.168.32.100
PING 192.168.32.100 (192.168.32.100): 56 data bytes
64 bytes from 192.168.32.100: seq=0 ttl=64 time=656.634 ms
64 bytes from 192.168.32.100: seq=1 ttl=64 time=551.812 ms
64 bytes from 192.168.32.100: seq=2 ttl=64 time=702.966 ms
64 bytes from 192.168.32.100: seq=3 ttl=64 time=725.904 ms
Reverting commit f3ac2ff14834 ("PCI/ASPM: Enable all ClockPM and ASPM states
for devicetree platforms") fixes my timing issues.
Also tried the quirk proposed in this discussion (quirk_disable_aspm_all)
an the quirk also fixes the timing issue.
I used the same PCI board on an x86 system and no timing issues were
observed.
I am not sure the quirk_disable_aspm_all quirk is the solution. Indeed,
the issue could be at the PCIe controller level and not the PCIe device.
What should be the best solution ?
Is something missing on device-tree based systems to have the commit
f3ac2ff14834 applied without regressions ?
Best regards,
Hervé
next prev parent reply other threads:[~2025-10-15 8:13 UTC|newest]
Thread overview: 200+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-30 11:59 Radeon NI: GIT kernel with the nislands_smc commit doesn't boot on a Freescale P5040 board and P.A.Semi Nemo board Christian Zigotzky
2021-04-30 11:59 ` Christian Zigotzky
2021-04-30 15:26 ` Deucher, Alexander
2021-04-30 15:26 ` Deucher, Alexander
2021-04-30 15:26 ` Deucher, Alexander
2021-04-30 15:56 ` Gustavo A. R. Silva
2021-04-30 15:56 ` Gustavo A. R. Silva
2021-04-30 15:56 ` Gustavo A. R. Silva
2021-05-03 22:25 ` [FSL P50x0] Xorg always restarts again and again after the the PowerPC updates 5.13-1 Christian Zigotzky
2021-05-04 4:56 ` Christophe Leroy
2021-05-04 7:21 ` Christian Zigotzky
2021-05-04 7:47 ` Christophe Leroy
2021-05-04 8:29 ` Christian Zigotzky
2021-05-04 8:58 ` Christophe Leroy
2021-05-04 9:09 ` Christian Zigotzky
2021-05-04 9:11 ` Christophe Leroy
2021-05-04 9:46 ` Christian Zigotzky
2021-05-04 9:49 ` Christophe Leroy
2021-05-04 10:07 ` Christian Zigotzky
2021-05-04 11:02 ` Christian Zigotzky
2021-05-04 13:48 ` Christian Zigotzky
2021-05-04 14:48 ` Christophe Leroy
2021-05-04 14:52 ` Christian Zigotzky
2021-05-04 14:41 ` Christophe Leroy
2021-05-04 14:59 ` Christian Zigotzky
2021-05-04 15:17 ` Christophe Leroy
2021-05-05 12:43 ` Christian Zigotzky
2021-05-06 6:12 ` Christophe Leroy
2021-05-06 7:56 ` Christian Zigotzky
2021-05-06 8:09 ` Christophe Leroy
2021-05-06 13:58 ` Christian Zigotzky
2021-05-08 16:39 ` Christian Zigotzky
2021-05-09 12:27 ` Christian Zigotzky
2021-05-09 17:43 ` Christophe Leroy
2021-05-09 21:46 ` Christian Zigotzky
2021-05-09 17:36 ` Christophe Leroy
2021-05-13 6:47 ` Christian Zigotzky
2021-05-13 10:01 ` Christophe Leroy
2021-05-13 15:19 ` Christian Zigotzky
2021-05-13 15:51 ` Christophe Leroy
2021-05-13 16:35 ` Christian Zigotzky
2021-05-13 17:00 ` Christophe Leroy
2021-05-13 20:20 ` Christian Zigotzky
2021-05-13 22:58 ` Nicholas Piggin
2021-05-14 0:19 ` Christian Zigotzky
2021-05-04 14:44 ` Christophe Leroy
2021-05-06 23:55 ` Radeon NI: GIT kernel with the nislands_smc commit doesn't boot on a Freescale P5040 board and P.A.Semi Nemo board Gustavo A. R. Silva
2021-05-06 23:55 ` Gustavo A. R. Silva
2021-05-07 6:43 ` Christian Zigotzky
2021-05-07 6:43 ` Christian Zigotzky
2021-05-08 11:33 ` Christian Zigotzky
2021-05-08 11:33 ` Christian Zigotzky
2021-05-09 23:04 ` Gustavo A. R. Silva
2021-05-09 23:04 ` Gustavo A. R. Silva
2023-11-02 14:45 ` Fbdev issue after the drm updates 'drm-next-2023-10-31-1' Christian Zigotzky
2023-11-07 8:36 ` Christian Zigotzky
2023-11-12 14:23 ` Christian Zigotzky
2023-11-13 12:48 ` Geert Uytterhoeven
2023-11-13 12:48 ` Geert Uytterhoeven
2023-11-13 13:12 ` Christian Zigotzky
2023-11-13 13:12 ` Christian Zigotzky
2023-11-14 9:45 ` Christian Zigotzky
2023-11-14 9:45 ` Christian Zigotzky
2023-11-15 8:33 ` Geert Uytterhoeven
2023-11-15 8:33 ` Geert Uytterhoeven
2023-11-15 8:33 ` Geert Uytterhoeven
2023-11-15 9:22 ` Gerd Hoffmann
2023-11-15 9:22 ` Gerd Hoffmann
2023-11-15 9:22 ` Gerd Hoffmann
2023-11-16 13:13 ` Geert Uytterhoeven
2023-11-16 13:13 ` Geert Uytterhoeven
2023-11-16 13:13 ` Geert Uytterhoeven
2021-11-04 10:45 ` [VirtIO GPU] Xorg doesn't start with the DRM updates 'drm-next-2021-11-03' in a virtual e5500 QEMU KVM-HV machine on a Freescale P5040 board Christian Zigotzky
2021-11-04 21:42 ` [PATCH] drm/virtio: Fix NULL dereference error in virtio_gpu_poll Vivek Kasireddy
2021-11-05 18:05 ` Christian Zigotzky
2021-11-05 18:05 ` Christian Zigotzky
2021-11-08 12:56 ` Gerd Hoffmann
2021-11-08 14:48 ` [FSL P50x0] Cyrus+ board doesn't boot with the PowerPC updates 5.16-1 Christian Zigotzky
2021-11-09 14:45 ` [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates Christian Zigotzky
2021-11-09 15:10 ` Christian Zigotzky
2021-11-09 15:10 ` Christian Zigotzky
2021-11-09 16:58 ` Bjorn Helgaas
2021-11-09 16:58 ` Bjorn Helgaas
2021-11-09 22:40 ` Krzysztof Wilczyński
2021-11-09 22:40 ` Krzysztof Wilczyński
2021-11-09 23:05 ` Arnd Bergmann
2021-11-09 23:05 ` Arnd Bergmann
2021-11-09 23:18 ` Krzysztof Wilczyński
2021-11-09 23:18 ` Krzysztof Wilczyński
2021-11-10 16:42 ` Robert Święcki
2021-11-10 16:42 ` Robert Święcki
2021-11-10 3:52 ` Damien Le Moal
2021-11-10 3:52 ` Damien Le Moal
2021-11-10 18:07 ` Christian Zigotzky
2021-11-10 18:07 ` Christian Zigotzky
2021-11-10 18:41 ` Bjorn Helgaas
2021-11-10 18:41 ` Bjorn Helgaas
2021-11-10 19:09 ` Marc Zyngier
2021-11-10 19:09 ` Marc Zyngier
2021-11-11 5:24 ` Christian Zigotzky
2021-11-11 5:24 ` Christian Zigotzky
2021-11-11 7:13 ` Marc Zyngier
2021-11-11 7:13 ` Marc Zyngier
2021-11-11 7:47 ` Christian Zigotzky
2021-11-11 7:47 ` Christian Zigotzky
2021-11-11 10:20 ` Marc Zyngier
2021-11-11 10:20 ` Marc Zyngier
2021-11-11 10:44 ` Christian Zigotzky
2021-11-11 10:44 ` Christian Zigotzky
2021-11-11 11:24 ` Marc Zyngier
2021-11-11 11:24 ` Marc Zyngier
2021-11-11 11:54 ` Christian Zigotzky
2021-11-11 11:54 ` Christian Zigotzky
2021-11-11 22:21 ` Olof Johansson
2021-11-11 22:21 ` Olof Johansson
2021-11-12 11:49 ` Segher Boessenkool
2021-11-12 11:49 ` Segher Boessenkool
2021-11-11 17:39 ` Marc Zyngier
2021-11-11 17:39 ` Marc Zyngier
2021-11-12 9:40 ` Christian Zigotzky
2021-11-12 9:40 ` Christian Zigotzky
2021-11-12 10:11 ` Christian Zigotzky
2021-11-12 10:11 ` Christian Zigotzky
2021-11-12 11:00 ` Christian Zigotzky
2021-11-12 11:00 ` Christian Zigotzky
2021-11-12 13:41 ` Marc Zyngier
2021-11-12 13:41 ` Marc Zyngier
2021-11-12 14:15 ` Christian Zigotzky
2021-11-12 14:15 ` Christian Zigotzky
2021-11-12 14:46 ` Marc Zyngier
2021-11-12 14:46 ` Marc Zyngier
2021-11-12 15:01 ` Christian Zigotzky
2021-11-12 15:01 ` Christian Zigotzky
2021-11-12 15:05 ` 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
2025-10-14 4:48 ` Christian Zigotzky
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 [this message]
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
2025-10-15 13:14 ` Christian Zigotzky
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
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:50 ` 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
2021-11-12 16:14 ` [irqchip: irq/irqchip-fixes] of/irq: Don't ignore interrupt-controller when interrupt-map failed irqchip-bot for Marc Zyngier
2021-11-09 16:13 ` [FSL P50x0] Cyrus+ board doesn't boot with the PowerPC updates 5.16-1 Christophe Leroy
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=20251015101304.3ec03e6b@bootlin.com \
--to=herve.codina@bootlin.com \
--cc=chzigotzky@xenosoft.de \
--cc=darren@stevens-zone.net \
--cc=debian-powerpc@lists.debian.org \
--cc=helgaas@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.