From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F019BC5AC67 for ; Tue, 11 Aug 2026 06:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bxQ/JVN7kCxCQB3HdoijyIyqrXUmPIZpcFd1H63BlNI=; b=mMXBvH92JF6TkkYqVlnKyJdOQb lNrhtXHAeiMcY09Em1/Qa1dCe1zgX1hWrpFhFhm0tuullvRyHtcWwKPGzcwEeRqlIS5YrAI2yV3Pf cB+OGjPbznumdDdSR3mSlQyen0VPu7KzlhUR5ByDU2+pStQtk2gFKgSma8j/EYlZIgA+DJ4jnP17P 3m3Crg9tbySNEbJTeeyRUNdddqSXc6a3BUDYyocEB6VWqMz5dO6W0XRgYRVkbEXSilnucwYc7WWa5 upluER9zcZUp31s6TJ49B/R/YWZdK+gkayG43UvtKQAp49OyueOgKmKSE6EGN8t1fdEWAFOv5I92+ 0Uxs/ZXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wtg7j-0000000DR5r-2fJn; Tue, 11 Aug 2026 06:38:07 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wtg7f-0000000DR4p-1HnS for linux-arm-kernel@lists.infradead.org; Tue, 11 Aug 2026 06:38:06 +0000 Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id E5A431FD34; Tue, 11 Aug 2026 08:37:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1786430278; bh=bxQ/JVN7kCxCQB3HdoijyIyqrXUmPIZpcFd1H63BlNI=; h=From:To:Subject; b=L6AUW32FPrvIWnJ7D/WMO9AtzxEho4sGdj88qzGzFFjbjNO+jq4JwpO09+GDKkTrc aEm2zGMnTaKsdDteXL9b6lRC7bLL/kaduvJYH8XHaWS71DnrxzWmnXXk5Y047nT2aA rS+lZ9DbEECJdOfX8f5UBH2Ox1bpzfbj8UedIv97SzItyuM82Ra6JlbNOf4MHQ3dG2 IuVzDx7kLBLQbCzbsCb2iyhEsAtiIQFjBkf/r2KeN7lU5g/E9r+3xfKHpzKM480RPj gFeShsQmLB0gaC8gYnpBckHhvQNtl/kkINzrjxLmFOOhOMS2/4Sw2WgXusxWe/bym1 edIWB8GeZDjcA== Date: Tue, 11 Aug 2026 08:37:52 +0200 From: Francesco Dolcini To: "Hongxing Zhu (OSS)" Cc: Leonardo Costa , Bjorn Helgaas , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" , Frank Li , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "leonardo.costa@toradex.com" , "devicetree@vger.kernel.org" , "imx@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "regressions@lists.linux.dev" , Sherry Sun , Manivannan Sadhasivam , Hongxing Zhu , "linux-pci@vger.kernel.org" Subject: Re: [REGRESSION] mainline/master: Apalis iMX6 no longer boots Message-ID: <20260811063752.GA7332@francesco-nb> References: <20260629143439.361560-1-leoreis.costa@gmail.com> <20260715234736.GA288957@bhelgaas> <3hxiy6aaiagt5zunntpidaeqc4or4wrebf7mu7asvyyibqmvo2@xhvasdqp64rw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260810_233804_408452_D3C0F776 X-CRM114-Status: GOOD ( 27.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Aug 11, 2026 at 12:47:18AM +0000, Hongxing Zhu (OSS) wrote: > > -----Original Message----- > > From: Leonardo Costa > > Sent: Tuesday, August 11, 2026 2:26 AM > > To: Hongxing Zhu (OSS) > > Cc: Bjorn Helgaas ; robh@kernel.org; > > krzk+dt@kernel.org; conor+dt@kernel.org; Frank Li ; > > s.hauer@pengutronix.de; kernel@pengutronix.de; festevam@gmail.com; > > leonardo.costa@toradex.com; devicetree@vger.kernel.org; > > imx@lists.linux.dev; linux-arm-kernel@lists.infradead.org; linux- > > kernel@vger.kernel.org; regressions@lists.linux.dev; Sherry Sun > > ; Manivannan Sadhasivam ; > > Hongxing Zhu ; linux-pci@vger.kernel.org > > Subject: Re: [REGRESSION] mainline/master: Apalis iMX6 no longer boots > > > > On Thu, Jul 16, 2026 at 02:09:19PM -0300, Leonardo Costa wrote: > > > On Thu, Jul 16, 2026 at 02:15:42AM +0000, Hongxing Zhu (OSS) wrote: > > > > Hi Leonardo, > > > > > > > > Would you be able to test this patch on your affected boards? Your > > > > testing would help expedite the merge process and ensure the fix > > > > resolves the boot issue you're experiencing. > > > > > > > > Best Regards > > > > Richard Zhu > > > > > > Hi Richard, > > > > > > Sorry for taking long to respond, I was caught up with something. I > > > tested the patch and it solved the issue. I sent a Tested-by tag there. > > > Thanks for looking into this! > > > > > > Best Regards > > > Leonardo > > > > Hi Richard, > > > > That patch might have introduced/exposed a second regression where PCI > > devices are not linked properly during the initialization. Sorry for not catching > > this before, as I didn't have any device connected during the previous test. > Hi Leonardo: > Sorry to hear about that. > I did test commit 7678e81498e2 with one Intel NIC (82574L) connected, and I've > double-checked today based on v7.2-rc7. The PCIe link can be set up properly > on the i.MX6Q Sabresd board in my testing. > > Here are the logs: > root@imx6qpdlsolox:~# lspci > 00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) > 01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection > root@imx6qpdlsolox:~# uname -a > Linux imx6qpdlsolox 7.2.0-rc7 #30 SMP Tue Aug 11 00:21:26 UTC 2026 armv7l GNU/Linux > root@imx6qpdlsolox:~# dmesg | grep pci > [ 0.256138] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges: > [ 0.256307] imx6q-pcie 1ffc000.pcie: IO 0x0001f80000..0x0001f8ffff -> 0x0000000000 > [ 0.256339] imx6q-pcie 1ffc000.pcie: MEM 0x0001000000..0x0001efffff -> 0x0001000000 > [ 0.256434] imx6q-pcie 1ffc000.pcie: config reg[1] 0x01f00000 == cpu 0x01f00000 > [ 0.458388] imx6q-pcie 1ffc000.pcie: iATU: unroll F, 4 ob, 4 ib, align 64K, limit 4G > [ 0.458492] imx6q-pcie 1ffc000.pcie: Link: Only Gen1 is enabled > [ 0.555294] imx6q-pcie 1ffc000.pcie: PCIe Gen.1 x1 link up > [ 0.555783] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 > ... > > The following endpoint devices also yielded the same results. > root@imx6qpdlsolox:~# lspci > 00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) > 01:00.0 Network controller: Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) (rev 01) > root@imx6qpdlsolox:~# uname -a > Linux imx6qpdlsolox 7.2.0-rc7 #30 SMP Tue Aug 11 00:21:26 UTC 2026 armv7l GNU/Linux > ... > > root@imx6qpdlsolox:~# lspci > 00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) > 01:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04) > root@imx6qpdlsolox:~# uname -a > Linux imx6qpdlsolox 7.2.0-rc7 #30 SMP Tue Aug 11 00:21:26 UTC 2026 armv7l GNU/Linux > > Could you provide more details of your hardware setup (board, connected > devices, PERST# present or not)? > This may help us identify if there's a specific scenario that triggers the > regression you're experiencing. It's an apalis imx6, as reported already in this email thread. The DT is in Linux, you can check arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts every details about PERST# and more. This is the device connected: 00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) 01:00.0 SATA controller: ASMedia Technology Inc. ASM1061/ASM1062 Serial ATA Controller (rev 02) 01:00.0 SATA controller: ASMedia Technology Inc. ASM1061/ASM1062 Serial ATA Controller (rev 02) (prog-if 01 [AHCI 1.0]) Subsystem: ASMedia Technology Inc. ASM1061/ASM1062 Serial ATA Controller Flags: bus master, fast devsel, latency 0, IRQ 308 I/O ports at 1020 [size=8] I/O ports at 1030 [size=4] I/O ports at 1028 [size=8] I/O ports at 1034 [size=4] I/O ports at 1000 [size=32] Memory at 01100000 (32-bit, non-prefetchable) [size=512] Expansion ROM at 01200000 [virtual] [disabled] [size=64K] Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [78] Power Management version 3 Capabilities: [80] Express Legacy Endpoint, IntMsgNum 0 Capabilities: [100] Virtual Channel Kernel driver in use: ahci Kernel modules: ahci These are some working logs from a 6.6.151 kernel [ 0.233058] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges: [ 0.233112] imx6q-pcie 1ffc000.pcie: IO 0x0001f80000..0x0001f8ffff -> 0x0000000000 [ 0.233144] imx6q-pcie 1ffc000.pcie: MEM 0x0001000000..0x0001efffff -> 0x0001000000 [ 0.465779] imx6q-pcie 1ffc000.pcie: iATU: unroll F, 4 ob, 4 ib, align 64K, limit 4G [ 0.564230] imx6q-pcie 1ffc000.pcie: PCIe Gen.1 x1 link up [ 0.564249] imx6q-pcie 1ffc000.pcie: Link: Only Gen1 is enabled [ 0.564259] imx6q-pcie 1ffc000.pcie: Link up, Gen1 [ 0.564272] imx6q-pcie 1ffc000.pcie: PCIe Gen.1 x1 link up [ 0.564778] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 [ 0.564795] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.564809] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 0.564821] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] [ 0.564864] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 [ 0.564886] pci 0000:00:00.0: BAR 0 [mem 0x00000000-0x000fffff] [ 0.564905] pci 0000:00:00.0: ROM [mem 0x00000000-0x0000ffff pref] [ 0.564917] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 0.564931] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff] [ 0.564943] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff] [ 0.564957] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff pref] [ 0.565405] pci 0000:00:00.0: Limiting cfg_size to 512 [ 0.565455] pci 0000:00:00.0: supports D1 [ 0.565465] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold [ 0.574310] pci 0000:01:00.0: [1b21:0612] type 00 class 0x010601 [ 0.574458] pci 0000:01:00.0: BAR 0 [io 0x0000-0x0007] [ 0.574541] pci 0000:01:00.0: BAR 1 [io 0x0000-0x0003] [ 0.574616] pci 0000:01:00.0: BAR 2 [io 0x0000-0x0007] [ 0.574774] pci 0000:01:00.0: BAR 3 [io 0x0000-0x0003] [ 0.574854] pci 0000:01:00.0: BAR 4 [io 0x0000-0x001f] [ 0.574925] pci 0000:01:00.0: BAR 5 [mem 0x00000000-0x000001ff] [ 0.575001] pci 0000:01:00.0: ROM [mem 0x00000000-0x0000ffff pref] [ 0.575765] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link) [ 0.576808] pci 0000:00:00.0: BAR 0 [mem 0x01000000-0x010fffff]: assigned [ 0.576860] pci 0000:00:00.0: bridge window [mem 0x01100000-0x011fffff]: assigned [ 0.576895] pci 0000:00:00.0: bridge window [mem 0x01200000-0x012fffff pref]: assigned [ 0.576928] pci 0000:00:00.0: ROM [mem 0x01300000-0x0130ffff pref]: assigned [ 0.576958] pci 0000:00:00.0: bridge window [io 0x1000-0x1fff]: assigned [ 0.577000] pci 0000:01:00.0: ROM [mem 0x01200000-0x0120ffff pref]: assigned [ 0.577033] pci 0000:01:00.0: BAR 5 [mem 0x01100000-0x011001ff]: assigned [ 0.577087] pci 0000:01:00.0: BAR 4 [io 0x1000-0x101f]: assigned [ 0.577212] pci 0000:01:00.0: BAR 0 [io 0x1020-0x1027]: assigned [ 0.577273] pci 0000:01:00.0: BAR 2 [io 0x1028-0x102f]: assigned [ 0.577326] pci 0000:01:00.0: BAR 1 [io 0x1030-0x1033]: assigned [ 0.577377] pci 0000:01:00.0: BAR 3 [io 0x1034-0x1037]: assigned [ 0.577429] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 0.577460] pci 0000:00:00.0: bridge window [io 0x1000-0x1fff] [ 0.577491] pci 0000:00:00.0: bridge window [mem 0x01100000-0x011fffff] [ 0.577520] pci 0000:00:00.0: bridge window [mem 0x01200000-0x012fffff pref] [ 0.579109] pcieport 0000:00:00.0: PME: Signaling with IRQ 291 [ 0.580323] pcieport 0000:00:00.0: AER: enabled with IRQ 291