From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: rafael.barbalho@intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Fix read back of plane stride register
Date: Tue, 29 Jul 2014 12:46:14 +0300 [thread overview]
Message-ID: <20140729094614.GQ27580@intel.com> (raw)
In-Reply-To: <1406573787-13382-1-git-send-email-rafael.barbalho@intel.com>
On Mon, Jul 28, 2014 at 07:56:27PM +0100, rafael.barbalho@intel.com wrote:
> From: Rafael Barbalho <rafael.barbalho@intel.com>
>
> According to the specifications bit 6 is actually valid in the stride register.
>
> Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Rafael Barbalho <rafael.barbalho@intel.com>
Indeed, min stride alignment is 64 bytes so we want bit 6 as well.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 99eb7ca..52dab31 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -6221,7 +6221,7 @@ static void i9xx_get_plane_config(struct intel_crtc *crtc,
> crtc->base.primary->fb->height = ((val >> 0) & 0xfff) + 1;
>
> val = I915_READ(DSPSTRIDE(pipe));
> - crtc->base.primary->fb->pitches[0] = val & 0xffffff80;
> + crtc->base.primary->fb->pitches[0] = val & 0xffffffc0;
>
> aligned_height = intel_align_height(dev, crtc->base.primary->fb->height,
> plane_config->tiled);
> @@ -7241,7 +7241,7 @@ static void ironlake_get_plane_config(struct intel_crtc *crtc,
> crtc->base.primary->fb->height = ((val >> 0) & 0xfff) + 1;
>
> val = I915_READ(DSPSTRIDE(pipe));
> - crtc->base.primary->fb->pitches[0] = val & 0xffffff80;
> + crtc->base.primary->fb->pitches[0] = val & 0xffffffc0;
>
> aligned_height = intel_align_height(dev, crtc->base.primary->fb->height,
> plane_config->tiled);
> --
> 2.0.3
--
Ville Syrjälä
Intel OTC
prev parent reply other threads:[~2014-07-29 9:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 18:56 [PATCH] drm/i915: Fix read back of plane stride register rafael.barbalho
2014-07-29 9:46 ` Ville Syrjälä [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=20140729094614.GQ27580@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rafael.barbalho@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