From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 2/2] drm/i915: calculate pfit changes in set_config v3
Date: Tue, 9 Dec 2014 13:28:33 -0800 [thread overview]
Message-ID: <20141209132833.169e2cd6@jbarnes-hsw> (raw)
In-Reply-To: <CAKMK7uFmOM9PPfH+A3JXmgC9Pez5mZWMjvwZ7mGvRQorWyZiKg@mail.gmail.com>
On Tue, 9 Dec 2014 22:16:33 +0100
Daniel Vetter <daniel@ffwll.ch> wrote:
> On Tue, Dec 9, 2014 at 6:51 PM, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> > On Tue, 11 Nov 2014 12:30:47 -0800
> > Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> >
> >> This should allow us to avoid mode sets for some panel fitter config
> >> changes.
> >>
> >> v2:
> >> - fixup pfit comment (Ander)
> >> v3:
> >> - fixup pfit disable shortcut, only apply to gen4 for now (Jesse)
> >>
> >
> > Daniel pointed out offline that in the !fastboot case, this will fail
> > to do the pipe size update if we ever try to skip the mode set when
> > changing the pfit state.
> >
> > To address that we'll need to handle the pfit changes more generally
> > anyway, which gets tricky when we're trying to discard the BIOS state.
> >
> > Ander, if you want to tackle this as part of your multi-pipe stuff,
> > feel free, otherwise I'll get to it after the holidays.
>
> Quick addition with two more smaller things we've discussed a bit too:
> - We need a dedicated testcase for this special pfit path. Currently
> all igts disable the pipe again before applying changes, so won't
> exercise this. We need new testcase which does direct mode changes
> (i.e. native -> scaled, scaled->native and scaled->scaled) to make
> sure this works well. With atomc we could even make sure it happens in
> just 1 vblank, but current interfaces don't allow a pageflip
> completion event for setCrtc, so that part has to wait.
>
> - I think the overall decision logic for modeset-or-not should switch
> over to comparing the entire hw state (as stored in
> intel_crtc_config). That way we can drop the fastboot hack which
> copies the adjusted_mode from the pipe config to crtc->mode since we
> only compare the resulting adjusted mode. This should also be more
> robust in handling corner cases like the hdmi infoframes logic that we
> had to take out again.
>
> Anyway just these two to summarize our offline discussion.
Yeah thanks... more tests as usual are needed. We just need a way in
igt to see whether a full mode set happened, then we can check against
our assumptions that one should or shouldn't happen for a given config
change.
And yeah the logic needs to be shuffled around a lot more. I meant to
grab more stuff from compute_mode_changes; right now it's just a set of
special cases, and not very complete. If we add a new pipe config
compare function, we can just special case the fast paths like you
mentioned, and add a custom pfit path as well (somewhere in between a
simple flip and a full mode set, at least for some platforms).
--
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2014-12-09 21:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 20:30 [PATCH 1/2] drm/i915/hdmi: fetch infoframe status in get_config v3 Jesse Barnes
2014-11-11 20:30 ` [PATCH 2/2] drm/i915: calculate pfit changes in set_config v3 Jesse Barnes
2014-11-12 15:41 ` [PATCH 2/2] drm/i915: calculate pfit changes in shuang.he
2014-11-17 9:08 ` [PATCH 2/2] drm/i915: calculate pfit changes in set_config v3 Ander Conselvan de Oliveira
2014-12-09 17:51 ` Jesse Barnes
2014-12-09 21:16 ` Daniel Vetter
2014-12-09 21:28 ` Jesse Barnes [this message]
2014-12-09 21:59 ` Daniel Vetter
2014-11-12 9:44 ` [PATCH 1/2] drm/i915/hdmi: fetch infoframe status in get_config v3 Daniel Vetter
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=20141209132833.169e2cd6@jbarnes-hsw \
--to=jbarnes@virtuousgeek.org \
--cc=daniel@ffwll.ch \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox