Bug 77073

Summary: [nouveaun NVE0] Attaching displayport spawns kworker taking up 100% cpu
Product: xorg Reporter: Dale Hamel <daleha>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
vmbios on affected system
none
kernel log none

Description Dale Hamel 2014-04-04 22:40:45 UTC
Symptoms:

Attaching a displayport (even in console, with no Xorg loaded) causes 100% CPU usage in kworker, making system extremely unresponsive.

See referenced issue on ubuntu bug tracker: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1248256

I'm going to try to get additional logs, but my dmesg is pretty uninteresting. I'll attached the vbios as well. Going to try booting with more debug info. Right now system is too slow (because of this bug) to add the attachments.

It also happens with the intel driver, but I haven't been able to trace that one as well. I don't think the cause of the problem is nouveau specific for that reason, but the kworker that is constantly showing up is definitely part of the nouveau code:

     kworker/0:3-1128 [000] d.s2 1973.688813: workqueue_queue_work: work struct=ffff88046f2135d8 function=od_dbs_timer [cpufreq_ondemand] workqueue=ffff88046d17ba00 req_cpu=0 cpu=0
     kworker/0:3-1128 [000] d.h2 1973.704711: workqueue_queue_work: work struct=ffffffff819b85e0 function=push_to_pool workqueue=ffff88046d17ba00 req_cpu=32 cpu=0
     kworker/0:3-1128 [000] d.h3 1973.757128: workqueue_queue_work: work struct=ffff88045db116e0 function=nouveau_connector_hotplug_work workqueue=ffff88046d17ba00 req_cpu=32 cpu=0
     kworker/0:3-1128 [000] d.h3 1973.830281: workqueue_queue_work: work struct=ffff88045db116e0 function=nouveau_connector_hotplug_work workqueue=ffff88046d17ba00 req_cpu=32 cpu=0
     kworker/0:3-1128 [000] d.s3 1973.838757: workqueue_queue_work: work struct=ffff88046f2135d8 function=od_dbs_timer [cpufreq_ondemand] workqueue=ffff88046d17ba00 req_cpu=0 cpu=0
     kworker/0:3-1128 [000] d.h2 1973.859889: workqueue_queue_work: work struct=ffffffff819b85e0 function=push_to_pool workqueue=ffff88046d17ba00 req_cpu=32 cpu=0
     kworker/0:3-1128 [000] d.h3 1973.903514: workqueue_queue_work: work struct=ffff88045db116e0 function=nouveau_connector_hotplug_work workqueue=ffff88046d17ba00 req_cpu=32 cpu=0


Affected hardware:

MacBook pro 10,11 with cinema display (thunderbolt and displayport)
IBM Thinkpad with dell display port.
Possibly others


Versions:
xf86-nouveau 1.0.11
kernel 3.14-rc8 (also happens on 3.14 final, as well as earlier versions)

Reference issues:
https://bugs.freedesktop.org/show_bug.cgi?id=76732
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1248256
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nouveau/+bug/1020221
Comment 1 Dale Hamel 2014-04-04 23:00:32 UTC
Created attachment 96924 [details]
vmbios on affected system

vmbios after the error occurred (though it's rom so it doesn't matter)
Comment 2 Dale Hamel 2014-04-04 23:02:28 UTC
Created attachment 96925 [details]
kernel log

kernel log during boot and after error occurred.

Note i've enabled kernel debugging. It's long.

Sorry, had to gzip it
Comment 3 Dale Hamel 2014-04-04 23:05:39 UTC
Lots of this going on in the kernel log:

[  773.163695] [drm:drm_helper_hpd_irq_event], [CONNECTOR:17:eDP-1] status updated from connected to connected
[  773.168560] [drm:drm_helper_hpd_irq_event], [CONNECTOR:19:DP-1] status updated from disconnected to disconnected
[  773.226530] [drm:drm_helper_hpd_irq_event], [CONNECTOR:22:DP-2] status updated from connected to connected
[  773.229800] [drm:drm_helper_hpd_irq_event], [CONNECTOR:25:HDMI-A-1] status updated from disconnected to disconnected
[  773.236734] [drm:drm_helper_hpd_irq_event], [CONNECTOR:17:eDP-1] status updated from connected to connected
[  773.241629] [drm:drm_helper_hpd_irq_event], [CONNECTOR:19:DP-1] status updated from disconnected to disconnected
[  773.299627] [drm:drm_helper_hpd_irq_event], [CONNECTOR:22:DP-2] status updated from connected to connected

Not sure if that's normal.
Comment 4 Ilia Mirkin 2014-04-04 23:13:43 UTC
I believe this is the same issue as bug 76732, marking as a dup.

[  749.265303] nouveau  [     DRM] plugged DP-2

Keeps on happening, which triggers a bunch of work. Somehow it keeps thinking it's getting plugged in. In the other bug it's the eDP screen which causes it.

*** This bug has been marked as a duplicate of bug 76732 ***

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.