Bug 119861

Summary: Kernel BUG() when Xorg server is started using nouveau
Product: Drivers Reporter: Dmitrii Tcvetkov (demfloro)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: high CC: demfloro, dev
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 4.7-rc2 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg
Xorg.0.log
Xorg.conf
kernel config

Description Dmitrii Tcvetkov 2016-06-09 12:04:48 UTC
Created attachment 219391 [details]
dmesg

OS: Archlinux, 
Video adapter: NVIDIA GeForce GTX 780 Ti,
xf86-nouveau version: 1.0.12

When I run startx BUG: unable to handle kernel NULL pointer dereference appers in dmesg and screen stays black. Problem appeared in 4.7 kernel, previous kernels work fine.
Comment 1 Dmitrii Tcvetkov 2016-06-09 12:05:30 UTC
Created attachment 219401 [details]
Xorg.0.log
Comment 2 Dmitrii Tcvetkov 2016-06-09 12:06:19 UTC
Created attachment 219411 [details]
Xorg.conf
Comment 3 Dmitrii Tcvetkov 2016-06-09 12:17:06 UTC
Created attachment 219421 [details]
kernel config
Comment 4 Lucas Stach 2016-06-13 07:32:42 UTC
Probably the same bug as seen on imx-drm by Philipp and fixed with the following 2 patches:
https://patchwork.kernel.org/patch/9151037/
https://patchwork.kernel.org/patch/9151039/

Please test if those also fix this bug. Thanks.
Comment 5 Dmitrii Tcvetkov 2016-06-13 16:41:34 UTC
(In reply to Lucas Stach from comment #4)
> Probably the same bug as seen on imx-drm by Philipp and fixed with the
> following 2 patches:
> https://patchwork.kernel.org/patch/9151037/
> https://patchwork.kernel.org/patch/9151039/
> 
> Please test if those also fix this bug. Thanks.

Thanks, the patch helps on 4.7-rc2, Xorg starts like with 4.6 without errors in dmesg.

Although 4.7-rc3 panics with same .config even without the patch (I can't see anything on screen and I assume it's a panic because kernel reacts on panic= parameter). Looks like it is another issue. I'll make separate report when get any info with netconsole.
Comment 6 Dmitrii Tcvetkov 2016-06-19 17:41:39 UTC
commit fffc5f59f2c68ca859c3f92b224393ed3adbe1ca
Author: Philipp Zabel <p.zabel@pengutronix.de>
Date:   Thu Jun 2 19:27:51 2016 +0200

    drm/crtc: fix connector reference counting mismatch in drm_crtc_helper_set_config