From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Kannan, Vandana" <vandana.kannan@intel.com>
Cc: "'intel-gfx@lists.freedesktop.org'" <intel-gfx@lists.freedesktop.org>
Subject: Re: Patches for performance improvement
Date: Mon, 26 Aug 2013 11:16:40 +0300 [thread overview]
Message-ID: <20130826081640.GE11428@intel.com> (raw)
In-Reply-To: <C92474498F61544FA80293267D83ED0D26743BD7@BGSMSX101.gar.corp.intel.com>
On Sun, Aug 25, 2013 at 04:35:52AM +0000, Kannan, Vandana wrote:
> Hi,
>
> For sprite performance improvement, instead of the patch "drm/i915: Don't wait for vblank for sprite plane flips", we made use of Chris Wilson's patches from "RFC asynchronous vblank tasks" and verified that it gives the expected performance boost.
> Chris's patches have not been merged yet, specifically,
> drm/i915: Introduce vblank work function
> drm/i915: Asynchronously unpin the old framebuffer after the next vblank
> drm/i915/sprite: Make plane switching asynchronous
>
> Will the updated patches for these be coming any time soon ? We require these patches as it gives us a very good performance improvement.
> Please let me know, I can verify with the updated patches.
I don't seem to have said patches in my mailbox, so I can't comment on
the details, but...
My main concern is again the contents of the old fb after the setplane
ioctl returns. Due to the current synchronous nature of the ioctl,
userspace knows that when the ioctl returns the flip has completed, and
so can write the old fb again.
If the ioctl is async, userspace has to guess whether the old fb can
be safely written. We could solve this with a new event that gets sent
from setplane. We do have plenty of flags left in setplane so it's
certainly doable.
Also with the async ioctl userspace can issue another setplane before
the previous flip has completed. I personally think that's a nice
feature that allows no-fps-limits triple buffering, but it does make it
a bit more difficult to know which fb is actually being used at a given
time. I have it solved in my atomic page flip code though, as the
drm_flip_helper contraption knows how to track this stuff.
Maybe someone should just start pulling in the drm_flip_helper and
associated code from the atomic code to make this feasible. The new
event type I added there would also be suitable for this purpose as
it carries the plane id and information on which fb is freed by the
operation. The other option is to just add a new event, and disallow
another setplane until the previous has completed (maybe try to
generalize the current page flip code a bit to handle sprites as
well as primary planes?)
--
Ville Syrjälä
Intel OTC
next prev parent reply other threads:[~2013-08-26 8:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-25 4:35 Patches for performance improvement Kannan, Vandana
2013-08-26 8:16 ` Ville Syrjälä [this message]
2013-08-26 9:14 ` Daniel Vetter
2013-08-26 10:36 ` 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=20130826081640.GE11428@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=vandana.kannan@intel.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 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.