linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* NVME PCI driver question
@ 2016-08-23  9:03 First Light
  2016-08-23 14:41 ` Keith Busch
  0 siblings, 1 reply; 2+ messages in thread
From: First Light @ 2016-08-23  9:03 UTC (permalink / raw)


Dear maintainers of NVME driver
I have a question about NVME driver.
In drivers/nvme/host/pci.c, function: nvme_dev_map calls pci_enable_msix, what if  a device just supports MSI but doesn't support MSIX? in such logic, if   pci_enable_msix failed,
I'm using synopsys pcie driver which doesn't support MSIX, but I also want to use it to connect a SSD, what should I do to make it work?

Thanks
Xiaoguang





This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.

???????????????????????????????? ???????????????????????????????????????????????????????????????????????

^ permalink raw reply	[flat|nested] 2+ messages in thread

* NVME PCI driver question
  2016-08-23  9:03 NVME PCI driver question First Light
@ 2016-08-23 14:41 ` Keith Busch
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Busch @ 2016-08-23 14:41 UTC (permalink / raw)


On Tue, Aug 23, 2016@09:03:07AM +0000, First Light wrote:
> Dear maintainers of NVME driver
> I have a question about NVME driver.
> In drivers/nvme/host/pci.c, function: nvme_dev_map calls pci_enable_msix, what if  a device just supports MSI but doesn't support MSIX? in such logic, if   pci_enable_msix failed,

It sounds like you're not using the most recent version of the driver.

The function you're referring sets up early initialisation and would
use MSI-x if INTx was not available. This version of the driver would
also poll for completions if INTx wasn't working.

The nvme_setup_io_queues function would redo all the interrupt setup
once the driver knew how many vectors it needed to allocate. This
routine would fallback to MSI if MSI-x was not supported, so you should
be fine.

> I'm using synopsys pcie driver which doesn't support MSIX, but I also want to use it to connect a SSD, what should I do to make it work?

I assume you mean synopsys pcie "drive" rather than driver. It should
work just fine.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-23 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23  9:03 NVME PCI driver question First Light
2016-08-23 14:41 ` Keith Busch

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).