From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Imre Deak <imre.deak@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH] drm/i915/gen9: Disable FBC on planes with a misaligned Y-offset
Date: Wed, 28 Feb 2018 18:05:11 +0200 [thread overview]
Message-ID: <20180228160511.GM5453@intel.com> (raw)
In-Reply-To: <20180228153656.1965-1-imre.deak@intel.com>
On Wed, Feb 28, 2018 at 05:36:56PM +0200, Imre Deak wrote:
> Enabling FBC on a plane having a Y-offset that isn't dividable by 4 may
> cause pipe FIFO underruns and flickers, so disable FBC on such a config.
>
> I tried to the followings to work around the issue:
> - enable each HW work around in ILK_DPFC_CHICKEN
> - disable each compression algorithm in ILK_DPFC_CONTROL
> - disable low-power watermarks
> None of the above got rid of the problem. I haven't found this issue in
> the Bspec/WA database either.
>
> Besides the igt testcase below (yet to be merged) an easy way to
> reproduce the issue is to enable a plane with FBC and a plane Y-offset
> not aligned to 4 and then just enable/disable FBC in a loop, keeping the
> plane enabled.
>
> I could trigger the problem on BXT/GLK/SKL, so assume for now that it's
> only present on GEN9.
>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Testcase: igt/kms_plane/plane-clipping-pipe-A-planes
> Signed-off-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/i915/intel_fbc.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c
> index 38b036c499d9..224c6a795f70 100644
> --- a/drivers/gpu/drm/i915/intel_fbc.c
> +++ b/drivers/gpu/drm/i915/intel_fbc.c
> @@ -859,6 +859,17 @@ static bool intel_fbc_can_activate(struct intel_crtc *crtc)
> return false;
> }
>
> + /*
> + * Work around a problem on GEN9 HW, where enabling FBC on a plane
> + * having a Y offset that isn't dividable by 4 causes FIFO underrun
> + * and screen ficker.
"divisible", "flicker"
> + */
> + if (INTEL_GEN(dev_priv) == 9 &&
IS_GEN9()?
I do wonder about gen10+ however. GLK display pipes/planes did come
from CNL after all so it seems at least possible tht CNL suffers from
the same issue.
The patch seems sensible either way so
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> + (fbc->state_cache.plane.adjusted_y & 3)) {
> + fbc->no_fbc_reason = "plane Y offset is misaligned";
> + return false;
> + }
> +
> return true;
> }
>
> --
> 2.13.2
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-02-28 16:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-28 15:36 [PATCH] drm/i915/gen9: Disable FBC on planes with a misaligned Y-offset Imre Deak
2018-02-28 15:57 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-02-28 16:05 ` Ville Syrjälä [this message]
2018-02-28 16:53 ` [PATCH] " Imre Deak
2018-03-01 13:44 ` [PATCH v2] drm/i915/gen9, gen10: " Imre Deak
2018-02-28 20:01 ` ✗ Fi.CI.IGT: warning for drm/i915/gen9: " Patchwork
2018-03-01 14:40 ` ✓ Fi.CI.BAT: success for drm/i915/gen9: Disable FBC on planes with a misaligned Y-offset (rev2) Patchwork
2018-03-01 22:48 ` ✓ Fi.CI.IGT: " Patchwork
2018-03-02 15:54 ` Imre Deak
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=20180228160511.GM5453@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@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 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.