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/nouveau this works well enough to star...



details:   https://anonhg.NetBSD.org/src/rev/ae390b2a4381
branches:  trunk
changeset: 446887:ae390b2a4381
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Dec 24 08:26:04 2018 +0000

description:
this works well enough to start and have basic accel only on GTX 750,
so enable those cards.  maybe can enable some pascal cards too.

thanks to fly for fixing nouveau drm2 so it was worth trying :-)

diffstat:

 sys/external/bsd/drm2/nouveau/nouveau_pci.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (32 lines):

diff -r 9737579c9cc6 -r ae390b2a4381 sys/external/bsd/drm2/nouveau/nouveau_pci.c
--- a/sys/external/bsd/drm2/nouveau/nouveau_pci.c       Mon Dec 24 05:06:45 2018 +0000
+++ b/sys/external/bsd/drm2/nouveau/nouveau_pci.c       Mon Dec 24 08:26:04 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_pci.c,v 1.21 2018/08/28 03:34:07 riastradh Exp $       */
+/*     $NetBSD: nouveau_pci.c,v 1.22 2018/12/24 08:26:04 mrg Exp $     */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_pci.c,v 1.21 2018/08/28 03:34:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_pci.c,v 1.22 2018/12/24 08:26:04 mrg Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -98,13 +98,6 @@
 #define IS_BETWEEN(x,y) \
        (PCI_PRODUCT(pa->pa_id) >= (x) && PCI_PRODUCT(pa->pa_id) <= (y))
        /*
-        * NetBSD drm2 needs missing-so-far firmware for Maxwell-based cards:
-        *   0x1380-0x13bf      GM107
-        */
-       if (IS_BETWEEN(0x1380, 0x13bf))
-               return 0;
-
-       /*
         * NetBSD drm2 doesn't support Pascal-based cards:
         *   0x1580-0x15ff      GP100
         *   0x1b00-0x1b7f      GP102



Home | Main Index | Thread Index | Old Index