nvme_disk: Disable MSI-X support for now.

It is broken under QEMU, and it may well be on real hardware, too.
More investigation is required.
This commit is contained in:
Augustin Cavalier 2021-10-18 16:27:48 -04:00
parent f7179d9f41
commit 62571f5eb4

View File

@ -301,6 +301,7 @@ nvme_disk_init_device(void* _info, void** _cookie)
uint8 irq = info->info.u.h0.interrupt_line;
if (sPCIx86Module != NULL) {
#if 0
if (sPCIx86Module->get_msix_count(info->info.bus, info->info.device,
info->info.function)) {
uint8 msixVector = 0;
@ -311,7 +312,9 @@ nvme_disk_init_device(void* _info, void** _cookie)
TRACE_ALWAYS("using MSI-X\n");
irq = msixVector;
}
} else if (sPCIx86Module->get_msi_count(info->info.bus,
} else
#endif
if (sPCIx86Module->get_msi_count(info->info.bus,
info->info.device, info->info.function) >= 1) {
uint8 msiVector = 0;
if (sPCIx86Module->configure_msi(info->info.bus, info->info.device,