From: Daniel Vetter <daniel@ffwll.ch>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 5/5] drm/i915: flip on a no fb -> fb transition if crtc is active v3
Date: Sun, 30 Jun 2013 21:33:06 +0200 [thread overview]
Message-ID: <20130630193306.GS18285@phenom.ffwll.local> (raw)
In-Reply-To: <1372199899-5315-6-git-send-email-jbarnes@virtuousgeek.org>
On Wed, Jun 26, 2013 at 01:38:19AM +0300, Jesse Barnes wrote:
> If the crtc is active, we can simply flip a new fb onto it, provided the
> other mode setting reqs are met. Otherwise, we'll need to do a full
> mode set to re-enable the crtc.
>
> v2: check for crtc active and set mode_changed accordingly
> v3: add module parameter, i915.fastboot, to control no fb -> fb flip behavior
>
> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Ok, I've slurped this in. Not too impressed with tiny commit messages for
the first two patches though, but I've fixed that up while applying.
Commit message that just do a random change but fail to explain the why
aren't good enough. Same for failing to highlight a tricky part of the
patch.
Cheers, Daniel
> ---
> drivers/gpu/drm/i915/intel_display.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index a55e1e5..0e7324d 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -8667,8 +8667,16 @@ intel_set_config_compute_mode_changes(struct drm_mode_set *set,
> if (set->crtc->fb != set->fb) {
> /* If we have no fb then treat it as a full mode set */
> if (set->crtc->fb == NULL) {
> - DRM_DEBUG_KMS("crtc has no fb, full mode set\n");
> - config->mode_changed = true;
> + struct intel_crtc *intel_crtc =
> + to_intel_crtc(set->crtc);
> +
> + if (intel_crtc->active && i915_fastboot) {
> + DRM_DEBUG_KMS("crtc has no fb, will flip\n");
> + config->fb_changed = true;
> + } else {
> + DRM_DEBUG_KMS("inactive crtc, full mode set\n");
> + config->mode_changed = true;
> + }
> } else if (set->fb == NULL) {
> config->mode_changed = true;
> } else if (set->fb->pixel_format !=
> --
> 1.7.9.5
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
prev parent reply other threads:[~2013-06-30 19:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-25 22:38 Moar fastboot Jesse Barnes
2013-06-25 22:38 ` [PATCH 1/5] drm/i915: add fastboot param for fast & loose mode setting Jesse Barnes
2013-06-25 22:38 ` [PATCH 2/5] drm/i915: get mode clock when reading the pipe config v7 Jesse Barnes
2013-06-26 11:37 ` Daniel Vetter
2013-06-26 15:57 ` [PATCH] drm/i915: get mode clock when reading the pipe config v8 Jesse Barnes
2013-06-26 21:39 ` [PATCH] drm/i915: get mode clock when reading the pipe config v9 Jesse Barnes
2013-06-25 22:38 ` [PATCH 3/5] drm/i915: copy fetched mode state into crtc at setup_hw time v4 Jesse Barnes
2013-06-26 11:37 ` Chris Wilson
2013-06-26 15:57 ` [PATCH] drm/i915: copy fetched mode state into crtc at setup_hw time v5 Jesse Barnes
2013-06-25 22:38 ` [PATCH 4/5] drm/i915: turn off panel fitting at flip time if needed v2 Jesse Barnes
2013-06-25 22:38 ` [PATCH 5/5] drm/i915: flip on a no fb -> fb transition if crtc is active v3 Jesse Barnes
2013-06-30 19:33 ` 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=20130630193306.GS18285@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox