From: Clinton Taylor <Clinton.A.Taylor@intel.com>
To: Matt Roper <matthew.d.roper@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Add Wa_1409120013:icl,ehl
Date: Wed, 12 Jun 2019 10:03:41 -0700 [thread overview]
Message-ID: <d6411e0c-b530-dce6-dabc-c6d940ff359a@intel.com> (raw)
In-Reply-To: <20190610222726.18808-1-matthew.d.roper@intel.com>
On 6/10/19 3:27 PM, Matt Roper wrote:
> This chicken bit should be set before enabling FBC to avoid screen
> corruption when the plane size has odd vertical and horizontal
> dimensions. It is safe to leave the bit set even when FBC is disabled.
>
> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
> ---
> drivers/gpu/drm/i915/i915_reg.h | 2 ++
> drivers/gpu/drm/i915/intel_fbc.c | 4 ++++
> 2 files changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 7a26766ba84d..2af04568449e 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -3150,6 +3150,8 @@ enum i915_power_well_id {
>
> /* Framebuffer compression for Ironlake */
> #define ILK_DPFC_CB_BASE _MMIO(0x43200)
> +#define ILK_DPFC_CHICKEN _MMIO(0x43224)
Duplicate define, 0x43224 is already defined ~12 lines lower.
> +#define ILK_DPFC_CHICKEN_SPARE14 REG_BIT(14)
Any way we can incorporate COMP_DUMMY_PIXEL into this bit definition?
-Clint
> #define ILK_DPFC_CONTROL _MMIO(0x43208)
> #define FBC_CTL_FALSE_COLOR (1 << 10)
> /* The bit 28-8 is reserved */
> diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c
> index 5679f2fffb7c..875ad83c3d32 100644
> --- a/drivers/gpu/drm/i915/intel_fbc.c
> +++ b/drivers/gpu/drm/i915/intel_fbc.c
> @@ -344,6 +344,10 @@ static void gen7_fbc_activate(struct drm_i915_private *dev_priv)
> HSW_FBCQ_DIS);
> }
>
> + if (IS_GEN(dev_priv, 11))
> + /* Wa_1409120013:icl,ehl */
> + I915_WRITE(ILK_DPFC_CHICKEN, ILK_DPFC_CHICKEN_SPARE14);
> +
> I915_WRITE(ILK_DPFC_CONTROL, dpfc_ctl | DPFC_CTL_EN);
>
> intel_fbc_recompress(dev_priv);
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-06-12 18:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-10 22:27 [PATCH] drm/i915: Add Wa_1409120013:icl,ehl Matt Roper
2019-06-10 23:19 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-06-12 6:52 ` ✓ Fi.CI.IGT: " Patchwork
2019-06-12 17:03 ` Clinton Taylor [this message]
2019-06-12 18:16 ` [PATCH v2] " Matt Roper
2019-06-12 18:27 ` Matt Roper
2019-06-12 18:36 ` [PATCH v3] " Matt Roper
2019-06-12 18:40 ` Clinton Taylor
2019-06-14 14:27 ` Matt Roper
2019-06-12 19:28 ` ✓ Fi.CI.BAT: success for drm/i915: Add Wa_1409120013:icl,ehl (rev3) Patchwork
2019-06-14 13:31 ` ✓ Fi.CI.IGT: " Patchwork
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=d6411e0c-b530-dce6-dabc-c6d940ff359a@intel.com \
--to=clinton.a.taylor@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=matthew.d.roper@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