Bug 104344 - Display Adapter Chain, Cable Disconnect causes Nouveau trace
Summary: Display Adapter Chain, Cable Disconnect causes Nouveau trace
Status: NEW
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-20 05:52 UTC by mbazzinotti
Modified: 2017-12-21 21:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
collation of syslog grep'd for "nouveau|drm"; includes trace. there was no pertinent log info right before the trace occurred. (5.61 KB, text/plain)
2017-12-20 05:52 UTC, mbazzinotti
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mbazzinotti 2017-12-20 05:52:17 UTC
Created attachment 136308 [details]
collation of syslog grep'd for "nouveau|drm"; includes trace. there was no pertinent log info right before the trace occurred.

While experimenting with physical connections to avert Flicker Bug 88272
(https://bugs.freedesktop.org/show_bug.cgi?id=88272)

I found myself using a mini DisplayPort(mDP) adapter which has 3 outputs
(HDMI, DVI, and DP), with its DP output connected to a second DP->DVI adapter.

Let's call the first adapter A, and the 2nd adapter B. The connections are:


-------  mDP  ---  DP  --- DVI --------- 
Laptop |-----| A |----| B |---| Monitor |
-------       ---      ---     ---------


While connected, display appeared "normal" as per Bug 88272 screen flicker. When
I unplugged the DVI cable from adapter B, this trace appeared in the dmesg attachment. Dmesg Output before the trace was not relevant. This issue can be reproduced again and again by reconnecting and disconnecting the cable.

This does not crash X. The desktop appears to run just fine, even during the nouveau crash IIRC. If I was not watching dmesg, I may not have even noticed.

The problem does not happen if unplugging the root adapter from the laptop. I have not tried unplugging the 2nd adapter to see what happens in that case.

Note: When adapter A is plugged via DVI to monitor directly, unplugging the DVI cable does not cause a crash; no call stack is outputted to dmesg in this case.

---------
Hardware |
---------
Macbook Pro 5,4 15" mid-2009
Nvidia GeForce 9400m
mini DisplayPort -> "Gigaware" DVI/HDMI/Displayport adapter -> HP DP>DVI
adapter
Dell LCD Monitor model E2011Hc

--------
Software|
--------
Gentoo Linux 4.12.12. 
x11-base/xorg-server-1.19.5
x11-drivers/xf86-video-nouveau-1.0.15
i3wm
No compositor

kernel command line: ro root=PARTUUID=xxxxxxxx net.ifnames=0

-----
Comment 1 mbazzinotti 2017-12-21 21:04:26 UTC
Ah, it was not a crash! it was the WARN_ON.

I got some more info on what produced the warning
drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h:169

inside nvkm_rdaux()
WARN_ON(!ret && size != xfer);


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.