summaryrefslogtreecommitdiffstats
path: root/sys/dev/nvme/nvme_qpair.c
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2016-01-11 17:28:47 +0000
committerjimharris <jimharris@FreeBSD.org>2016-01-11 17:28:47 +0000
commit0cfdfff8b8a389b0bdeacacb22a371eeb9627d00 (patch)
treeb58254296699dfd0a48b6f1539cdf1d974d42bdc /sys/dev/nvme/nvme_qpair.c
parent19ecb17f9b5c28ac941f3c53b3cbaf0a87ff3161 (diff)
downloadFreeBSD-src-0cfdfff8b8a389b0bdeacacb22a371eeb9627d00.zip
FreeBSD-src-0cfdfff8b8a389b0bdeacacb22a371eeb9627d00.tar.gz
MFC r293326:
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.
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