From: Adam Jackson <ajax@redhat.com>
To: Dan Aloni <alonid@gmail.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: Suggestions on fixing fill_modes ioctl() delays under i915
Date: Mon, 16 Apr 2012 12:37:08 -0400 [thread overview]
Message-ID: <1334594228.17648.16.camel@atropine> (raw)
In-Reply-To: <CAAV7fNoiDL-NCe4ry_Utu8JPKoYjbfsAt45fL4KcgSgjBkz4NA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1373 bytes --]
On Mon, 2012-04-16 at 18:54 +0300, Dan Aloni wrote:
> Okay, with 3.4-rc3 I can confirm that it works much better. For the
> xrandr test case, I've timed each ioctl to about 60 milli-secs with 9
> calls spanning over half a second. Any further suggestions? Isn't it
> possible to tell that nothing is connected and then not try to probe
> those ports at all?
There could be such detection, but there is not. We have hotplug
interrupts, but we don't trust them to actually tell us whether
something is connected. (We don't trust them because we think they're
unreliable, and then they remain unreliable because we don't fix the
implementation to be trustworthy.) We just turn the interrupts into
uevents and then rely on userspace to compensate for the kernel not
doing a good enough job.
Since we don't do that, the only way to tell that nothing is connected
is to probe. We could make probing a bit faster by caching previous
EDID and memcmp'ing the first 16 bytes (which include the
vendor/model/serial tuple, which should be unique enough) instead of
retrying the whole EDID fetch unconditionally.
But, as Chris said: You probably want to fix SDL to use
GetScreenResourcesCurrent since GetScreenResources is really only meant
for the session's configuration manager; and if you're running xrandr by
hand, use xrandr --current.
- 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
next prev parent reply other threads:[~2012-04-16 16:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-16 12:04 Suggestions on fixing fill_modes ioctl() delays under i915 Dan Aloni
2012-04-16 13:33 ` Eugeni Dodonov
2012-04-16 15:54 ` Dan Aloni
2012-04-16 16:37 ` Adam Jackson [this message]
2012-04-16 16:53 ` Dan Aloni
2012-04-16 13:41 ` Chris Wilson
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=1334594228.17648.16.camel@atropine \
--to=ajax@redhat.com \
--cc=alonid@gmail.com \
--cc=intel-gfx@lists.freedesktop.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.