NetBSD-Bugs archive

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

kern/51065: nouveau recently broken for GTX770 (NVE4/GK104)



>Number:         51065
>Category:       kern
>Synopsis:       nouveau recently broken for GTX770 (NVE4/GK104)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 14 09:30:00 +0000 2016
>Originator:     coypu
>Release:        7.99.27
>Organization:
>Environment:
NetBSD net.Home 7.99.27 NetBSD 7.99.27 (GENERIC) #2: Thu Apr 14 12:13:00 IDT 2016  fly%net.Home@localhost:/usr/obj.amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
Running Xorg now seems broken, only cursor appears correctly.
Picture: http://i.imgur.com/gssp18t.jpg
>How-To-Repeat:
Compile kernel in 14 April after nouveau re-enabled by default
>Fix:
Revert sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c to revision 1.9.

It results in this change:

diff --git a/sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c b/sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c
index 6a8a38d..dc9a5d0 100644
--- a/sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_engine_device_base.c,v 1.10 2016/04/13 08:50:51 riastradh Exp $        */
+/*     $NetBSD: nouveau_engine_device_base.c,v 1.9 2016/02/14 03:41:18 riastradh Exp $ */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_engine_device_base.c,v 1.10 2016/04/13 08:50:51 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_engine_device_base.c,v 1.9 2016/02/14 03:41:18 riastradh Exp $");
 
 #include <core/object.h>
 #include <core/device.h>
@@ -297,12 +297,6 @@ nouveau_devobj_ctor(struct nouveau_object *parent,
 #ifdef __NetBSD__
        if (!(args->disable & NV_DEVICE_DISABLE_MMIO) &&
            !nv_subdev(device)->mmiosz) {
-               /*
-                * Map only through PRAMIN -- don't map the command
-                * FIFO MMIO regions, which start at NV_FIFO_OFFSET =
-                * 0x800000 and are mapped separately.
-                */
-               mmio_size = MIN(mmio_size, 0x800000);
                /* XXX errno NetBSD->Linux */
                ret = -bus_space_map(mmiot, mmio_base, mmio_size, 0, &mmioh);
                if (ret) {



Home | Main Index | Thread Index | Old Index