Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Keith Busch <kbusch@kernel.org>
Cc: "Nam Cao" <namcao@linutronix.de>,
	"Nirmal Patel" <nirmal.patel@linux.intel.com>,
	"Jonathan Derrick" <jonathan.derrick@linux.dev>,
	"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
	"Krzysztof Wilczy´nski" <kwilczynski@kernel.org>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Ammar Faizi" <ammarfaizi2@gnuweeb.org>
Subject: Re: [PATCH] PCI: vmd: Remove MSI-X check on child devices
Date: Tue, 12 Aug 2025 11:30:15 -0500	[thread overview]
Message-ID: <20250812163015.GA194338@bhelgaas> (raw)
In-Reply-To: <aJtUjnuWr1S31jhX@kbusch-mbp>

On Tue, Aug 12, 2025 at 08:49:50AM -0600, Keith Busch wrote:
> On Tue, Aug 12, 2025 at 08:27:15AM +0200, Nam Cao wrote:
> > On Mon, Aug 11, 2025 at 05:46:59PM -0500, Bjorn Helgaas wrote:
> > > On Mon, Aug 11, 2025 at 07:39:35AM +0200, Nam Cao wrote:
> > > > Commit d7d8ab87e3e7 ("PCI: vmd: Switch to msi_create_parent_irq_domain()")
> > > > added a WARN_ON sanity check that child devices support MSI-X, because VMD
> > > > document says [1]:
> > > > 
> > > >     "Intel VMD only supports MSIx Interrupts from child devices and
> > > >     therefore the BIOS must enable PCIe Hot Plug and MSIx interrups [sic]."
> > > 
> > > Can VMD tell the difference between an incoming MSI MWr transaction
> > > and an MSI-X MWr?
> > > 
> > > I wonder if "MSIx" was meant to mean "VMD only supports MSI or MSI-X
> > > interrupts, not INTx interrupts, from child devices"?
> > 
> > I don't know, sorry. I am hoping that the VMD maintainers can help us here.
> 
> The doc you linked is riddled with errors. The original vmd commit
> message is more accurate: VMD domains support child devices with MSI and
> MSI-x interrupts. The VMD device can't even tell the difference which
> one the device is using. It just manipulates messages sent to the usual
> APIC address 0xfeeXXXXX.

Thanks, Keith!  I updated the commit log like this:

  d7d8ab87e3e7 ("PCI: vmd: Switch to msi_create_parent_irq_domain()") added a
  WARN_ON sanity check that child devices support MSI-X, because VMD document
  says [1]:

    Intel VMD only supports MSIx Interrupts from child devices and therefore
    the BIOS must enable PCIe Hot Plug and MSIx interrups [sic].

  However, the VMD device can't even tell the difference between a child
  device using MSI and one using MSI-X.  Per 185a383ada2e ("x86/PCI: Add
  driver for Intel Volume Management Device (VMD)"), VMD does not support
  INTx interrupts, but does support child devices using either MSI or MSI-X.

  Remove the sanity check to avoid the unnecessary WARN_ON reported by Ammar.


  reply	other threads:[~2025-08-12 16:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-11  5:39 [PATCH] PCI: vmd: Remove MSI-X check on child devices Nam Cao
2025-08-11  5:53 ` Ammar Faizi
2025-08-11 22:46 ` Bjorn Helgaas
2025-08-12  6:27   ` Nam Cao
2025-08-12 14:49     ` Keith Busch
2025-08-12 16:30       ` Bjorn Helgaas [this message]
2025-08-12 18:22         ` Nam Cao
2025-08-12 19:00           ` Bjorn Helgaas
2025-08-12 19:32             ` Nam Cao
2025-08-12 19:41               ` Keith Busch
2025-08-12 19:59               ` 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=20250812163015.GA194338@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=ammarfaizi2@gnuweeb.org \
    --cc=bhelgaas@google.com \
    --cc=jonathan.derrick@linux.dev \
    --cc=kbusch@kernel.org \
    --cc=kwilczynski@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=namcao@linutronix.de \
    --cc=nirmal.patel@linux.intel.com \
    --cc=robh@kernel.org \
    --cc=tglx@linutronix.de \
    /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