Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci disable MSI-X for time being since it's not work...
details: https://anonhg.NetBSD.org/src/rev/35a621e4f6d0
branches: trunk
changeset: 995059:35a621e4f6d0
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Dec 04 19:34:27 2018 +0000
description:
disable MSI-X for time being since it's not working; allow only MSI
and INTx which both are confirmed working
diffstat:
sys/dev/pci/ahcisata_pci.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r faf0d906da0d -r 35a621e4f6d0 sys/dev/pci/ahcisata_pci.c
--- a/sys/dev/pci/ahcisata_pci.c Tue Dec 04 19:27:22 2018 +0000
+++ b/sys/dev/pci/ahcisata_pci.c Tue Dec 04 19:34:27 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ahcisata_pci.c,v 1.48 2018/11/30 17:47:54 jdolecek Exp $ */
+/* $NetBSD: ahcisata_pci.c,v 1.49 2018/12/04 19:34:27 jdolecek Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.48 2018/11/30 17:47:54 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.49 2018/12/04 19:34:27 jdolecek Exp $");
#ifdef _KERNEL_OPT
#include "opt_ahcisata_pci.h"
@@ -311,8 +311,14 @@
pci_aprint_devinfo(pa, "AHCI disk controller");
+ int counts[PCI_INTR_TYPE_SIZE] = {
+ [PCI_INTR_TYPE_INTX] = 1,
+ [PCI_INTR_TYPE_MSI] = 1,
+ [PCI_INTR_TYPE_MSIX] = 0, /* XXX not working */
+ };
+
/* Allocate and establish the interrupt. */
- if (pci_intr_alloc(pa, &psc->sc_pihp, NULL, 0)) {
+ if (pci_intr_alloc(pa, &psc->sc_pihp, counts, PCI_INTR_TYPE_MSI)) {
aprint_error_dev(self, "can't allocate handler\n");
goto fail;
}
Home |
Main Index |
Thread Index |
Old Index