From: Keith Packard <keithp@keithp.com>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915: Use pipe state to tell when pipe is off
Date: Sun, 03 Oct 2010 12:42:14 -0700 [thread overview]
Message-ID: <yuniq1j9i7d.fsf@aiko.keithp.com> (raw)
In-Reply-To: <20101003081048.5013dd26@jbarnes-x201>
[-- Attachment #1.1: Type: text/plain, Size: 2078 bytes --]
On Sun, 3 Oct 2010 08:10:48 -0700, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> Do these fixes help with the DP issues you've been seeing, Keith?
> Seems like the first one shouldn't change behavior since we ought to
> time out on waiting on vblank in that case, and the timeout is the same
> as the msleep we used to use.
The first one changes when the monitor sees the training message --
before the change, the training message would get sent before waiting
for the vblank, and could potentially mess up the monitor
synchronization with signals.
I tested this by turning an external DP monitor on/off repeatedly
without X running. Before the patch, the monitor would fail to sync once
in a while. With the patch, I haven't seen it fail. That's not to say
that it has actually fixed anything, just that it seems better.
The best feature of the patch is that it shortens the time it takes to
light up a DP pipe -- the code was always hitting the timeout instead of
seeing a vblank signal, so we'd get a 50ms delay instead of a couple of ms.
> The second one looks like a good change, but really the pipe off change
> is separate from the plane disable bug fix.
Yeah, yeah, I know. I should have split the patch into two pieces...
With these two patches in place, I'm not getting any timeouts while
waiting for vblank, which seems like a useful result, and should make
mode setting a tiny bit faster as well.
I've got a couple more changes to work on today:
1) re-train the monitor when it gets unplugged and then plugged back
in. Right now, if you kick the cable out, you're stuck fumbling
around in the dark trying to run 'xrandr' again.
2) send hotplug notification through the X server, at least for the
'reliable' hotplug signals. Right now, when you run 'xrandr'
after changing connections, gnome sees the connection status change
event and 'does stuff', which frequently collides with the 'xrandr'
command you're running. This is very confusing to users.
--
keith.packard@intel.com
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 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
next prev parent reply other threads:[~2010-10-03 19:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-03 7:33 [PATCH 1/2] drm/i915: vblank status not valid while training display port Keith Packard
2010-10-03 7:33 ` [PATCH 2/2] drm/i915: Use pipe state to tell when pipe is off Keith Packard
2010-10-03 9:34 ` Chris Wilson
2010-10-03 15:10 ` [Intel-gfx] " Jesse Barnes
2010-10-03 19:42 ` Keith Packard [this message]
2010-10-03 19:55 ` Jesse Barnes
2010-10-03 20:33 ` Dave Airlie
2010-10-03 21:17 ` Jesse Barnes
2010-10-03 23:13 ` [Intel-gfx] " Keith Packard
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=yuniq1j9i7d.fsf@aiko.keithp.com \
--to=keithp@keithp.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jbarnes@virtuousgeek.org \
/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.