From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org, stable@kernel.org
Subject: Re: [PATCH 1/2] drm/i915: fixup pageflip ringbuffer commands for i8xx
Date: Wed, 4 Aug 2010 12:48:25 -0700 [thread overview]
Message-ID: <20100804124825.3ef2386e@virtuousgeek.org> (raw)
In-Reply-To: <1280949730-5288-2-git-send-email-daniel.vetter@ffwll.ch>
On Wed, 4 Aug 2010 21:22:09 +0200
Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> Add a new path for 2nd gen chips that uses the commands for i81x
> chips (where public docs do exist) augmented with the plane bits
> from i915. It seems to work and doesn't result in a black screen
> like before.
>
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> Cc: stable@kernel.org
> ---
> drivers/gpu/drm/i915/intel_display.c | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 8359c50..8135ee0 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -4933,12 +4933,18 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
> OUT_RING(obj_priv->gtt_offset | obj_priv->tiling_mode);
> pipesrc = I915_READ(pipesrc_reg);
> OUT_RING(pipesrc & 0x0fff0fff);
> - } else {
> + } else if (IS_GEN3(dev)) {
> OUT_RING(MI_DISPLAY_FLIP_I915 |
> MI_DISPLAY_FLIP_PLANE(intel_crtc->plane));
> OUT_RING(fb->pitch);
> OUT_RING(obj_priv->gtt_offset);
> OUT_RING(MI_NOOP);
> + } else {
> + OUT_RING(MI_DISPLAY_FLIP |
> + MI_DISPLAY_FLIP_PLANE(intel_crtc->plane));
> + OUT_RING(fb->pitch);
> + OUT_RING(obj_priv->gtt_offset);
> + OUT_RING(MI_NOOP);
> }
> ADVANCE_LP_RING();
Yep, looks fine.
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
--
Jesse Barnes, Intel Open Source Technology Center
next prev parent reply other threads:[~2010-08-04 19:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 19:22 [PATCH 0/2] fixup pageflip for i8xx class hw Daniel Vetter
2010-08-04 19:22 ` [PATCH 1/2] drm/i915: fixup pageflip ringbuffer commands for i8xx Daniel Vetter
2010-08-04 19:48 ` Jesse Barnes [this message]
2010-08-04 19:22 ` [PATCH 2/2] drm/i915: i8xx also doesn't like multiple oustanding pageflips Daniel Vetter
2010-08-04 19:49 ` Jesse Barnes
2010-08-04 21:03 ` Pedro Ribeiro
2010-08-04 20:06 ` [PATCH 2/2] drm/i915: i8xx also does not " Chris Wilson
2010-08-04 20:21 ` 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=20100804124825.3ef2386e@virtuousgeek.org \
--to=jbarnes@virtuousgeek.org \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=stable@kernel.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.