All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Jackson <ajax@redhat.com>
To: Andrew Lutomirski <luto@mit.edu>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/gen4: Extra CRT hotplug paranoia
Date: Tue, 25 May 2010 10:46:32 -0400	[thread overview]
Message-ID: <1274798792.25350.20913.camel@atropine.boston.devel.redhat.com> (raw)
In-Reply-To: <AANLkTimjdprsSmpz6OaF0PtIsSckmrQ_krpUDVFyLUUc@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 983 bytes --]

On Mon, 2010-05-24 at 21:46 -0400, Andrew Lutomirski wrote:
> On Mon, May 24, 2010 at 4:46 PM, Adam Jackson <ajax@redhat.com> wrote:
> > Disable the CRT plug interrupt while doing the force cycle, explicitly
> > clear any CRT interrupt we may have generated, and restore when done.
> > Should mitigate interrupt storms from hotplug detection.
> >
> 
> Is there any locking in here to protect PORT_HOTPLUG_EN?  I'm asking
> because I *still* can't use mainline kernels reliably without
> commenting out digital output initialization, and that's one place
> where a bug might be lurking.

At least in d-i-n, PORT_HOTPLUG_EN is only ever written to from ->detect
in the connector vtable, and from IRQ setup.  I don't have a firm
understanding of the locking around either path, but I'd be rather
surprised if it was racy in any practical sense, since neither of those
should get called from interrupt context and you typically only have one
app doing setup.

- ajax

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2010-05-25 14:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-24 20:46 [PATCH] drm/i915/gen4: Extra CRT hotplug paranoia Adam Jackson
2010-05-25  1:46 ` Andrew Lutomirski
2010-05-25 14:46   ` Adam Jackson [this message]
2010-05-25 14:57     ` Andrew Lutomirski
2010-05-26 20:53 ` Eric Anholt

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=1274798792.25350.20913.camel@atropine.boston.devel.redhat.com \
    --to=ajax@redhat.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=luto@mit.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.