Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1229630

Re: [PATCH v7] pci: quirk to skip msi disable on shutdown

From Bjorn Helgaas <bhelgaas@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH v7] pci: quirk to skip msi disable on shutdown
Date 2015-09-21 20:30 +0200
Message-ID <qbe0F-6c1-1@gated-at.bofh.it> (permalink)
References <q5KcW-2Q9-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Sep 06, 2015 at 06:32:35PM +0300, Michael S. Tsirkin wrote:
> On some hypervisors, virtio devices tend to generate spurious interrupts
> when switching between MSI and non-MSI mode.  Normally, either MSI or
> non-MSI is used and all is well, but during shutdown, linux disables MSI
> which then causes an "irq %d: nobody cared" message, with irq being
> subsequently disabled.

My understanding is:

  Linux disables MSI/MSI-X during device shutdown.  If the device
  signals an interrupt after that, it may use INTx.

This INTx interrupt is not necessarily spurious.  Using INTx to signal an
interrupt that occurs when MSI is disabled seems like reasonable behavior
for any PCI device.

And it doesn't seem related to switching between MSI and non-MSI mode.
Yes, the INTx happens *after* disabling MSI, but it is not at all
*because* we disabled MSI.  So I wouldn't say "they generate spurious
interrupts when switching between MSI and non-MSI."

Why doesn't virtio-pci just register an INTx handler in addition to an MSI
handler?

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH v7] pci: quirk to skip msi disable on shutdown Bjorn Helgaas <bhelgaas@google.com> - 2015-09-21 20:30 +0200
  Re: [PATCH v7] pci: quirk to skip msi disable on shutdown "Michael S. Tsirkin" <mst@redhat.com> - 2015-09-21 21:50 +0200
    Re: [PATCH v7] pci: quirk to skip msi disable on shutdown Bjorn Helgaas <bhelgaas@google.com> - 2015-09-22 00:20 +0200
      Re: [PATCH v7] pci: quirk to skip msi disable on shutdown "Michael S. Tsirkin" <mst@redhat.com> - 2015-09-22 13:30 +0200
        Re: [PATCH v7] pci: quirk to skip msi disable on shutdown Bjorn Helgaas <bhelgaas@google.com> - 2015-09-22 14:40 +0200
          Re: [PATCH v7] pci: quirk to skip msi disable on shutdown "Michael S. Tsirkin" <mst@redhat.com> - 2015-09-22 16:10 +0200
            Re: [PATCH v7] pci: quirk to skip msi disable on shutdown Bjorn Helgaas <bhelgaas@google.com> - 2015-09-22 17:50 +0200

csiph-web