Bug 69876 - [NVC3] Reverse prime sometimes freezes the machine
Summary: [NVC3] Reverse prime sometimes freezes the machine
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 10:11 UTC by Mike
Modified: 2014-08-22 13:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
output of /var/log/Xorg.0.log (47.84 KB, text/plain)
2013-09-27 10:11 UTC, Mike
no flags Details
output of /var/log/syslog (461.70 KB, text/plain)
2013-09-27 10:11 UTC, Mike
no flags Details
dmesg output from nouveau.debug=trace (910.69 KB, text/plain)
2013-10-08 14:08 UTC, Mike
no flags Details

Description Mike 2013-09-27 10:11:13 UTC
Created attachment 86712 [details]
output of /var/log/Xorg.0.log

I have a thinkpad with optimus (the nvidia card is a quadro 2000 m).
I am running on Debian sid and a self compiled kernel (3.12-rc1).

When I try to activate the nvidia card for using my external monitor a nolmally use:

xrandr --setprovideroutputsource nouveau Intel

and then

xrandr --setprovideroffloadsink nouveau Intel

Some time when I enter the first command the whole machine freezes. I retrived the syslog and the x logs and you can find them attached.

Cheers

Mike
Comment 1 Mike 2013-09-27 10:11:56 UTC
Created attachment 86713 [details]
output of /var/log/syslog
Comment 2 Ilia Mirkin 2013-09-27 16:16:22 UTC
Perhaps an interesting resource for you: http://nouveau.freedesktop.org/wiki/Optimus/

I'm no expect in the matter, but I'm pretty sure that you shouldn't be using vgaswitcheroo in conjunction with the new runtime pm stuff. Try disabling it (vgaswitcheroo). Alternatively (or in addition to), try disabling the new runtime pm logic, perhaps it doesn't work correctly for you.

Is this a new issue? IOW, did this work properly on older kernels? If so, and the above fails, a bisect may be in order.
Comment 3 Mike 2013-09-27 18:28:12 UTC
With 3.10 is working fine. Have not tried with 3.11. I recompiled 3.12-rc1 without vgaswitcheroo and the problem persists.
Comment 4 Kevin N. 2013-09-29 03:46:52 UTC
I experience the same thing with my Thinkpad t530 and NVS 5400m in Optimus mode with 3.12-rc2 on Fedora 19.

Locks up if I use xrandr or try to do anything with the displayport unless I have it plugged in at boot.

Works fine if I change in bios to discrete nvidia.
Comment 5 Emil Velikov 2013-10-07 08:33:08 UTC
There has been quite a few changes in the window you've mentioned. Thus to narrow it down further you can try - boot with "nouveau.config=MSI=0" to disable MSI interrupts(introduced in 3.12)

If that does not help git bisect might be in order :)
Comment 6 Emil Velikov 2013-10-07 08:35:16 UTC
Had a typo previously, the correct argument is
nouveau.config=NvMSI=0
Comment 7 Mike 2013-10-08 14:08:52 UTC
Created attachment 87285 [details]
dmesg output from nouveau.debug=trace
Comment 8 Mike 2013-10-08 14:53:54 UTC
(In reply to comment #6)
> Had a typo previously, the correct argument is
> nouveau.config=NvMSI=0

The behaviour remain the same with nouveau.config=NvMSI=0
Comment 9 Mike 2013-10-11 14:58:45 UTC
When nouveau.runpm=0 no freeze occurs.
Comment 10 Mike 2013-10-16 19:14:16 UTC
If after xrandr --setprovideroffloadsink nouveau Intel

i turn on the card with, for example, DRI_PRIME glxgers

and then I

xrandr --setprovideroutputsource nouveau Intel

there is no freeze
Comment 11 Ilia Mirkin 2014-08-21 21:25:37 UTC
Is this still an issue with 3.13.x or later? Some runpm issues were fixed there.
Comment 12 Mike 2014-08-22 06:03:18 UTC
I dropped Gnome and I now use Compton as compositor and the problem is no
more present.  I do not know if is due to newer kernel 3.16 or is a
compositor related issue.

Cheers

Michele Cane,  PhD.
Sent from my Android device.
On Aug 21, 2014 11:25 PM, <bugzilla-daemon@freedesktop.org> wrote:

>   *Comment # 11 <https://bugs.freedesktop.org/show_bug.cgi?id=69876#c11>
> on bug 69876 <https://bugs.freedesktop.org/show_bug.cgi?id=69876> from Ilia
> Mirkin <imirkin@alum.mit.edu> *
>
> Is this still an issue with 3.13.x or later? Some runpm issues were fixed
> there.
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.