Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/linux re-enable MSI - this actually en...



details:   https://anonhg.NetBSD.org/src/rev/e1b11bceee0c
branches:  trunk
changeset: 744775:e1b11bceee0c
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Feb 12 18:35:01 2020 +0000

description:
re-enable MSI - this actually enables MSI only for intel/radeon/generic
which are reported to work fine, while nouveau (which breaks with
MSI) still uses INTx

see the thread
http://mail-index.netbsd.org/current-users/2020/02/06/msg037661.html

diffstat:

 sys/external/bsd/drm2/linux/linux_pci.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 4e26c855a19d -r e1b11bceee0c sys/external/bsd/drm2/linux/linux_pci.c
--- a/sys/external/bsd/drm2/linux/linux_pci.c   Wed Feb 12 18:11:30 2020 +0000
+++ b/sys/external/bsd/drm2/linux/linux_pci.c   Wed Feb 12 18:35:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_pci.c,v 1.9 2020/02/07 18:13:33 jmcneill Exp $   */
+/*     $NetBSD: linux_pci.c,v 1.10 2020/02/12 18:35:01 jdolecek Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.9 2020/02/07 18:13:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.10 2020/02/12 18:35:01 jdolecek Exp $");
 
 #include <linux/pci.h>
 
@@ -266,7 +266,6 @@
 int
 pci_enable_msi(struct pci_dev *pdev)
 {
-#ifdef notyet
        const struct pci_attach_args *const pa = &pdev->pd_pa;
 
        if (pci_msi_alloc_exact(pa, &pdev->pd_intr_handles, 1))
@@ -274,9 +273,6 @@
 
        pdev->msi_enabled = 1;
        return 0;
-#else
-       return -ENOSYS;
-#endif
 }
 
 void



Home | Main Index | Thread Index | Old Index