From: Gerd Bayer <gbayer@linux.ibm.com>
To: Bjorn Helgaas <helgaas@kernel.org>,
Hans Zhang <18255117159@163.com>,
linux-next@vger.kernel.org
Cc: lpieralisi@kernel.org, kwilczynski@kernel.org,
bhelgaas@google.com, jingoohan1@gmail.com, mani@kernel.org,
robh@kernel.org, ilpo.jarvinen@linux.intel.com,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
agordeev@linux.ibm.com, borntraeger@linux.ibm.com,
schnelle@linux.ibm.com
Subject: [REGRESSION] next/master: suspect endianness issue in common PCI capability search macro
Date: Thu, 31 Jul 2025 09:32:23 +0200 [thread overview]
Message-ID: <4e10bea3aa91ee721bb40e9388e8f72f930908fe.camel@linux.ibm.com> (raw)
In-Reply-To: <20250716231121.GA2564572@bhelgaas>
On Wed, 2025-07-16 at 18:11 -0500, Bjorn Helgaas wrote:
> On Thu, Jul 17, 2025 at 12:11:56AM +0800, Hans Zhang wrote:
<--- snip --->
> >
> >
> > Hans Zhang (7):
> > PCI: Introduce generic bus config read helper function
> > PCI: Clean up __pci_find_next_cap_ttl() readability
> > PCI: Refactor standard capability search into common macro
> > PCI: Refactor extended capability search into common macro
> > PCI: dwc: Use common PCI host bridge APIs for finding the capabilities
> > PCI: cadence: Use common PCI host bridge APIs for finding the
> > capabilities
> > PCI: cadence: Use cdns_pcie_find_*capability to avoid hardcode
> >
> > drivers/pci/access.c | 15 ++++
> > .../pci/controller/cadence/pcie-cadence-ep.c | 38 ++++----
> > drivers/pci/controller/cadence/pcie-cadence.c | 30 +++++++
> > drivers/pci/controller/cadence/pcie-cadence.h | 18 ++--
> > drivers/pci/controller/dwc/pcie-designware.c | 83 ++++--------------
> > drivers/pci/pci.c | 76 +++-------------
> > drivers/pci/pci.h | 87 +++++++++++++++++++
> > include/uapi/linux/pci_regs.h | 3 +
> > 8 files changed, 196 insertions(+), 154 deletions(-)
> >
> >
> > base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
>
> Applied to pci/capability-search for v6.17, thanks for all this work!
Dear all,
with this series commit 2502a619108b ("PCI: Refactor extended
capability search into PCI_FIND_NEXT_EXT_CAP()")
has landed in linux-next.
This breaks PCI capability search on our s390 test systems - that
showed through mlx5_core's error while binding:
[ 27.158991] mlx5_core a000:00:00.0: mlx5_load:1355:(pid 998): Failed
to alloc IRQs
apparently, due to struct pci_dev not showing that it is MSI-X capable.
With this commit reverted, mlx5_core binds successfully again.
I'm sending this as a heads-up while I'll continue to debug this
further - presumably an endianness issue in the macro
PCI_FIND_NEXT_EXT_CAP.
Thanks,
Gerd
next parent reply other threads:[~2025-07-31 7:32 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250716231121.GA2564572@bhelgaas>
2025-07-31 7:32 ` Gerd Bayer [this message]
2025-07-31 17:38 ` [PATCH] PCI: Fix endianness issues in pci_bus_read_config() Gerd Bayer
2025-07-31 18:39 ` Bjorn Helgaas
2025-07-31 19:01 ` Arnd Bergmann
2025-08-01 8:18 ` Manivannan Sadhasivam
2025-08-01 9:25 ` Hans Zhang
2025-08-01 9:47 ` Manivannan Sadhasivam
2025-08-01 10:06 ` Hans Zhang
2025-08-01 10:54 ` Manivannan Sadhasivam
2025-08-01 11:30 ` Gerd Bayer
2025-08-01 16:54 ` Hans Zhang
2025-08-01 18:08 ` Keith Busch
2025-08-02 15:23 ` Hans Zhang
2025-08-02 15:40 ` Arnd Bergmann
2025-08-04 3:06 ` Hans Zhang
2025-08-04 8:03 ` Arnd Bergmann
2025-08-04 8:25 ` Hans Zhang
2025-08-04 10:09 ` Gerd Bayer
2025-08-12 14:44 ` Hans Zhang
2025-08-13 7:47 ` Niklas Schnelle
2025-08-13 7:50 ` Hans Zhang
2025-08-04 14:33 ` Bjorn Helgaas
2025-08-04 15:04 ` Hans Zhang
2025-08-01 16:47 ` Hans Zhang
2025-07-31 18:53 ` Lukas Wunner
2025-08-01 7:52 ` Geert Uytterhoeven
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=4e10bea3aa91ee721bb40e9388e8f72f930908fe.camel@linux.ibm.com \
--to=gbayer@linux.ibm.com \
--cc=18255117159@163.com \
--cc=agordeev@linux.ibm.com \
--cc=bhelgaas@google.com \
--cc=borntraeger@linux.ibm.com \
--cc=helgaas@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jingoohan1@gmail.com \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=robh@kernel.org \
--cc=schnelle@linux.ibm.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).