Commit dcf49aa0 authored by Changpeng Liu's avatar Changpeng Liu Committed by Daniel Verkamp
Browse files

nvme: disable the controller from generating INTx# interrupts



Since we bind the NVMe device to UIO driver to protect against native
NVMe driver, but for Admin queue, there are still INTx interrupts
exist, as all the completion for Admin queue will be processed in
user space, so we don't need INTx anymore.

Change-Id: Ife5b3e410ae95690ed0f3f9a2f2dfaf55a7797b5
Signed-off-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent 0d61bf4b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1094,9 +1094,9 @@ nvme_ctrlr_construct(struct spdk_nvme_ctrlr *ctrlr, void *devhandle)
		return status;
	}

	/* Enable PCI busmaster. */
	/* Enable PCI busmaster and disable INTx */
	nvme_pcicfg_read32(devhandle, &cmd_reg, 4);
	cmd_reg |= 0x4;
	cmd_reg |= 0x0404;
	nvme_pcicfg_write32(devhandle, cmd_reg, 4);

	cap.raw = nvme_mmio_read_8(ctrlr, cap.raw);