Bug 203567

Summary: nouveau crashes with optimus laptop - rendering the discrete gpu useless
Product: Drivers Reporter: Josua Mayer (josua.mayer)
Component: Video(Other)Assignee: drivers_video-other
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.1.0 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg 5.1.0

Description Josua Mayer 2019-05-10 19:45:38 UTC
Created attachment 282711 [details]
dmesg 5.1.0

While testing my quite recent laptop with a discrete nvidia gpu, I found any attempt at using it with the nouveau driver leads to scary messages in dmesg, and a hang in userspace.

Simple test case:
env DRI_PRIME=1 glxinfo
name of display: :0
nvc0_screen_create:1003 - Error allocating PGRAPH context for M2MF: -16

glxinfo process never terminates.
Please see attached dmesg.log for all the things going on here.
That particular dmesg was produced from a local build of linux 5.1.0.

A very obvious and recurring theme in dmesg is this timeout message:
[    5.481806] nouveau 0000:01:00.0: timeout

The issue was first observed on openSUSE 15.1 Beta - with their variant of 4.12.y. The issue kept shifting between 3 states:
1. the gpu was not usable, and glxinfo did not hang, reporting only the intel igpu
2. the gpu was not usable, and applications using it would hang (e.g. glxinfo)
3. the gpu was usable! This was observed a few days ago with an intermediate release of the opensuse 4.12.y.

Original bug report: https://bugzilla.opensuse.org/show_bug.cgi?id=1126480
Due to the presence of this issue upstream it has been suggested to move the discussion here.

Device in question is an Asus UX331UN with an Intel i7-8550U and an nvidia mx150 gpu.

If there is anything I can provide in testing or information please let me know!

Thanks for reading, yours sincerely
Josua Mayer