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/03fbe66c1d30
branches: trunk
changeset: 969241:03fbe66c1d30
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 75462e282912 -r 03fbe66c1d30 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