The PCI attach code came from nvme(4) and asks for one MSI-X or MSI
vector per queue. It installs an interrupt handler only when it ends
up with a single vector, though. With the default settings it asks
for two vectors, so a controller that grants two gets no handler at
all. The controller attaches, but its interrupts go unhandled and a
request completes only when the watchdog finds it past its timeout.
The driver has a single interrupt handler, which scans every queue.
Ask for one vector, trying MSI-X, then MSI, then INTx, and install
that handler in every case.
Sponsored by: Samsung Electronics