linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Harvey <tharvey@gateworks.com>
To: Hongxing Zhu <hongxing.zhu@nxp.com>
Cc: Bjorn Helgaas <helgaas@kernel.org>,
	Lucas Stach <l.stach@pengutronix.de>,
	 "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: legacy PCI device behind a bridge not getting a valid IRQ on imx host controller
Date: Fri, 30 Aug 2024 09:03:09 -0700	[thread overview]
Message-ID: <CAJ+vNU2e9__ftVct0zY56HGTkUyF_QEpEDN6_n5uCXCnQwo6Ng@mail.gmail.com> (raw)
In-Reply-To: <AS8PR04MB86760487CB68BC5AA90634AD8C972@AS8PR04MB8676.eurprd04.prod.outlook.com>

On Thu, Aug 29, 2024 at 6:50 PM Hongxing Zhu <hongxing.zhu@nxp.com> wrote:
>
> > -----Original Message-----
> > From: Bjorn Helgaas <helgaas@kernel.org>
> > Sent: 2024年8月30日 5:23
> > To: tharvey@gateworks.com; Hongxing Zhu <hongxing.zhu@nxp.com>; Lucas
> > Stach <l.stach@pengutronix.de>
> > Cc: linux-pci@vger.kernel.org
> > Subject: Re: legacy PCI device behind a bridge not getting a valid IRQ on imx
> > host controller
> >
> > [+cc Richard, Lucas, maintainers of IMX6 PCI]
> >
> > On Wed, Aug 28, 2024 at 02:40:33PM -0700, Tim Harvey wrote:
> > > Greetings,
> > >
> > > I have a user that is using an IMX8MM SoC (dwc controller) with a
> > > miniPCIe card that has a PEX8112 PCI-to-PCIe bridge to a legacy PCI
> > > device and the device is not getting a valid interrupt.
> >
> > Does pci-imx6.c support INTx at all?
> >
> i.MX PCIe RC supports INTx.
> Add pci=nomsi into kernel command line, can verify it when one endpoint
>  device is connected.
> Based i.MX8MM EVK board and on NVME, MSI or INTx are enabled.
> logs of MSI:
> root@imx8_all:~# lspci
> 00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01)
> 01:00.0 Non-Volatile memory controller: Device 1e49:0021 (rev 01)
> root@imx8_all:~# cat /proc/interrupts | grep MSI
> 221:          0          0          0          0   PCI-MSI   0 Edge      PCIe PME
> 222:         14          0          0          0   PCI-MSI 524288 Edge      nvme0q0
> 223:        382          0          0          0   PCI-MSI 524289 Edge      nvme0q1
> 224:        115          0          0          0   PCI-MSI 524290 Edge      nvme0q2
> 225:        521          0          0          0   PCI-MSI 524291 Edge      nvme0q3
> 226:         53          0          0          0   PCI-MSI 524292 Edge      nvme0q4
>

Richard,

off topic but I've seen in the IMX8MMRM a claim that it supports MSI-X
but I have not seen this to be the case as you are showing above with
an nvme that would clearly use MSI-X if available.

Does the IMX8MM hardware support MSI-X?

Best Regards,

Tim

  reply	other threads:[~2024-08-30 16:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-28 21:40 legacy PCI device behind a bridge not getting a valid IRQ on imx host controller Tim Harvey
2024-08-29 21:22 ` Bjorn Helgaas
2024-08-29 21:43   ` Frank Li
2024-08-29 22:00     ` Bjorn Helgaas
2024-08-29 22:21       ` Tim Harvey
2024-08-30 15:52         ` Frank Li
2024-08-30 16:11           ` Tim Harvey
2024-08-30 15:49       ` Frank Li
2024-08-30 16:06         ` Manivannan Sadhasivam
2024-08-30 16:15         ` Bjorn Helgaas
2024-08-30  1:50   ` Hongxing Zhu
2024-08-30 16:03     ` Tim Harvey [this message]
2024-08-30 16:14       ` Frank Li
2024-09-06 19:37         ` Tim Harvey
2024-09-06 19:58           ` Bjorn Helgaas
2024-09-10 16:50             ` Tim Harvey
2024-09-10 23:04               ` Bjorn Helgaas
2024-09-12 23:28                 ` Tim Harvey
2024-09-23 17:56                   ` Tim Harvey
2024-09-26 22:30                     ` 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=CAJ+vNU2e9__ftVct0zY56HGTkUyF_QEpEDN6_n5uCXCnQwo6Ng@mail.gmail.com \
    --to=tharvey@gateworks.com \
    --cc=helgaas@kernel.org \
    --cc=hongxing.zhu@nxp.com \
    --cc=l.stach@pengutronix.de \
    --cc=linux-pci@vger.kernel.org \
    /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).