From: Daniel Vetter <daniel@ffwll.ch>
To: Matt Roper <matthew.d.roper@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] lib/igt_kms: Add COMIT_ATOMIC to igt_display_commit2()
Date: Mon, 25 Jan 2016 17:17:17 +0100 [thread overview]
Message-ID: <20160125161717.GR11240@phenom.ffwll.local> (raw)
In-Reply-To: <20160122160010.GG13311@intel.com>
On Fri, Jan 22, 2016 at 08:00:10AM -0800, Matt Roper wrote:
> On Thu, Jan 21, 2016 at 09:43:14PM -0800, Palleti, Avinash Reddy wrote:
> > Thanks Matt for pointing me to this.
> >
> > Vlad,
> > As Matt mentioned, we are also working on this to get atomic support in i-g-t. Last week we finalized the design with Matt. I am putting the design we discussed here for reference,
> >
> > - New commit style will be added as "COMMIT_NUCLEAR"
> > - If the commit style is nuclear we will use libdrm interface to build the input structure by taking each property(drmModeAtomicAddProperty)
> > - Above libdrm interface will create the list of properties and add each property to list whenever called
> > - Once all properties are added into list, call drmModeAtomicCommit() to do final commit.
> > - There will be configuration variable or environment variable which specifies commit style (e.g., IGT_COMMIT_STYLE) that will allow to override the commit style of existing IGT tests.
> >
> > Matt,
> > As far as I know both nuclear and atomic are same, and they mean
> > commit per CRTC. Though userspace do commit once at top level for
> > multiple CRTC together, Kernel will internally commit once per CRTC.
> > So no need of two commit styles to be exposed in IGT.
>
> Atomic (as an interface) allows you to submit a single propertyset that
> updates multiple CRTC's. Our Intel platforms don't have locked vblanks,
> so you don't have a guarantee that the changes will be visible at
> exactly the same time across the displays, but you do still get a
> guarantee that the commit as a whole completely succeeds or completely
> fails without leaving you in some kind of halfway limbo state.
>
> "Nuclear pageflip" is a subset of that greater atomic modeset
> functionality where you're only submitting changes that affect a single
> CRTC. This is interesting because it matches the behavior of most
> userspace compositors; a lot of compositors tend to handle each CRTC
> separately and submit new update transactions tied to the specific
> CRTC's vblanks.
>
> Some of my initial work had two new IGT commit styles, NUCLEAR and
> ATOMIC, because we had nuclear pageflip support in i915 well before we
> finished implementing full atomic modeset. These days (thanks to lots
> of work by Maarten and others) our kernel code supports both; the only
> thing we're really lacking from an interface perspective is support for
> non-blocking commits, and that's another issue altogether. It's
> probably fine to just have a single new commit style in IGT now, but I'd
> suggest calling it 'ATOMIC' rather than 'NUCLEAR' and make sure that it
> allows properties for multple CRTC's to all be committed together. If a
> specific IGT test wants to exercise the subset of functionality
> sometimes referred to as "nuclear pageflip" then that test can easily
> just make sure that it only updates the properties of a single CRTC
> before submitting the commit.
Yeah, COMMIT_ATOMIC should also set the ALLOW_MODESET flag imo. That would
reflect popular usage at least.
btw another consideration is how to expose TEST_ONLY. I think best option
is probably to have a new igt_commit_check (which again needs to take
commit flags becaue of the nuclear vs. atomic thing) for this.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2016-01-25 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-15 9:06 [PATCH i-g-t] lib/igt_kms: Add COMIT_ATOMIC to igt_display_commit2() Marius Vlad
2016-01-20 14:52 ` Maarten Lankhorst
2016-01-20 15:08 ` Daniel Stone
2016-01-21 18:57 ` Matt Roper
2016-01-22 5:43 ` Palleti, Avinash Reddy
2016-01-22 10:54 ` Marius Vlad
2016-01-22 16:00 ` Matt Roper
2016-01-25 16:17 ` Daniel Vetter [this message]
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=20160125161717.GR11240@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=matthew.d.roper@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox