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/include/linux Disable MSI on DRMKMS (a...
details: https://anonhg.NetBSD.org/src/rev/ac800c4e4134
branches: trunk
changeset: 356092:ac800c4e4134
user: maya <maya%NetBSD.org@localhost>
date: Thu Aug 31 23:47:50 2017 +0000
description:
Disable MSI on DRMKMS (again).
It is causing problems on some older nvidia graphics cards:
http://mail-index.netbsd.org/netbsd-users/2017/08/02/msg020026.html
http://mail-index.netbsd.org/pkgsrc-users/2017/08/26/msg025492.html
PR kern/52440
diffstat:
sys/external/bsd/drm2/include/linux/pci.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 37c73b3b8ec7 -r ac800c4e4134 sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Thu Aug 31 22:19:51 2017 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Thu Aug 31 23:47:50 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci.h,v 1.23 2017/03/02 04:31:51 nonaka Exp $ */
+/* $NetBSD: pci.h,v 1.24 2017/08/31 23:47:50 maya Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -293,6 +293,7 @@
static inline 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->intr_handles, 1))
@@ -300,6 +301,9 @@
pdev->msi_enabled = 1;
return 0;
+#else
+ return -ENOSYS;
+#endif
}
static inline void
Home |
Main Index |
Thread Index |
Old Index