dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Finet <m.dreadlock@gmail.com>
To: robdclark@gmail.com, daniel.vetter@ffwll.ch,
	dri-devel@lists.freedesktop.org
Subject: Deadlock in Xorg after commit "drm: tweak getconnector locking"
Date: Sun, 15 Feb 2015 22:35:52 +0100	[thread overview]
Message-ID: <20150215223552.3d9e70c0@mlap.lactee> (raw)

Hello,

After trying linux-next (next-20150130) on my i915-powered laptop, I failed to
get Xorg running (just a white underscore).
I bisected it to commit ccfc08655 "drm: tweak getconnector locking".

Issuing a Sysrq+T showed that Xorg has the following call-trace:
> drm_modeset_lock+0x30/0xf0 [drm]
> intel_get_load_detect_pipe+0x8f/0x480 [i915]
> intel_crt_get_edid+0x63/0x90 [i915]
> intel_crt_detect_ddc+0x51/0xe0 [i915]
> intel_crt_detect_ddc+0x51/0xe0 [i915]
> intel_crt_detect+0x45e/0x8d0 [i915]
> drm_helper_probe_single_connector_modes_merge_bits+0x278/0x410 [drm_kms_helper]
> drm_helper_probe_single_connector_modes+0x17/0x20 [drm_kms_helper]
> drm_mode_getconnector+0x295/0x330 [drm]
> drm_mode_getcrtc+0xd0/0xd0 [drm]
> drm_ioctl+0x1ed/0x560 [drm]
> drm_mode_getcrtc+0xd0/0xd0 [drm]
> drm_getmap+0xc0/0xc0 [drm]

In the mentioned commit, drm_modeset_lock() has been moved (too?) up in
drm_mode_getconnector() hence connector->funcs->fill_modes() 
later calls drm_modeset_lock() too.

Should I provide more info ?

Marc.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

                 reply	other threads:[~2015-02-15 21:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150215223552.3d9e70c0@mlap.lactee \
    --to=m.dreadlock@gmail.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=robdclark@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox