summaryrefslogtreecommitdiffstats
path: root/sys/dev/nvme/nvme_qpair.c
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2016-01-07 16:11:31 +0000
committerjimharris <jimharris@FreeBSD.org>2016-01-07 16:11:31 +0000
commit35417c6f6727d389b26333c64cb0639275c3400b (patch)
tree20819a37e717531751445d6b6e73e5ccd2daddb5 /sys/dev/nvme/nvme_qpair.c
parent6f7e8e539309cc085154008676bff1a0d411d928 (diff)
downloadFreeBSD-src-35417c6f6727d389b26333c64cb0639275c3400b.zip
FreeBSD-src-35417c6f6727d389b26333c64cb0639275c3400b.tar.gz
nvme: do not pre-allocate MSI-X IRQ resources
The issue referenced here was resolved by other changes in recent commits, so this code is no longer needed. MFC after: 3 days Sponsored by: Intel
Diffstat (limited to 'sys/dev/nvme/nvme_qpair.c')
-rw-r--r--sys/dev/nvme/nvme_qpair.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/nvme/nvme_qpair.c b/sys/dev/nvme/nvme_qpair.c
index d0cb8c6..92fe672 100644
--- a/sys/dev/nvme/nvme_qpair.c
+++ b/sys/dev/nvme/nvme_qpair.c
@@ -479,8 +479,9 @@ nvme_qpair_construct(struct nvme_qpair *qpair, uint32_t id,
* the queue's vector to get the corresponding rid to use.
*/
qpair->rid = vector + 1;
- qpair->res = ctrlr->msi_res[vector];
+ qpair->res = bus_alloc_resource_any(ctrlr->dev, SYS_RES_IRQ,
+ &qpair->rid, RF_ACTIVE);
bus_setup_intr(ctrlr->dev, qpair->res,
INTR_TYPE_MISC | INTR_MPSAFE, NULL,
nvme_qpair_msix_handler, qpair, &qpair->tag);
OpenPOWER on IntegriCloud