From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH 21/23] drm/i915/gen9: Set fbc watermarks disabled
Date: Thu, 26 May 2016 19:06:40 +0300 [thread overview]
Message-ID: <20160526160640.GW4329@intel.com> (raw)
In-Reply-To: <20160526155318.GV4329@intel.com>
On Thu, May 26, 2016 at 06:53:18PM +0300, Ville Syrjälä wrote:
> On Thu, May 26, 2016 at 06:29:44PM +0300, Mika Kuoppala wrote:
> > According to bspec this prevents screen corruption when fbc is
> > used.
> >
> > References: HSD#2135555, HSD#2137270
> > Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> > Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_pm.c | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> > index 262180c0ba70..62734a16e873 100644
> > --- a/drivers/gpu/drm/i915/intel_pm.c
> > +++ b/drivers/gpu/drm/i915/intel_pm.c
> > @@ -67,6 +67,9 @@ static void gen9_init_clock_gating(struct drm_device *dev)
> >
> > I915_WRITE(GEN8_CHICKEN_DCPR_1,
> > I915_READ(GEN8_CHICKEN_DCPR_1) | MASK_WAKEMEM);
> > +
> > + I915_WRITE(DISP_ARB_CTL,
> > + I915_READ(DISP_ARB_CTL) | DISP_FBC_WM_DIS);
>
> Hmm I thought that FBC WM doesn't exist anymore on SKL+. I'm pretty sure
> we don't have any code for it at least.
Hmm. I guess the bit still does something though.
Do we want to start using the bspec w/a IDs in comments?
Hmm. w/a db seems to have a name for this FBC stuff as well. This one
looks like
WaFbcTurnOffFbcWatermark
>
> > }
> >
> > static void bxt_init_clock_gating(struct drm_device *dev)
> > @@ -2798,7 +2801,7 @@ static void ilk_write_wm_values(struct drm_i915_private *dev_priv,
> >
> > if (dirty & WM_DIRTY_FBC) {
> > val = I915_READ(DISP_ARB_CTL);
> > - if (results->enable_fbc_wm)
> > + if (!IS_GEN9(dev) && results->enable_fbc_wm)
>
> That code won't even run SKL+.
>
> > val &= ~DISP_FBC_WM_DIS;
> > else
> > val |= DISP_FBC_WM_DIS;
> > --
> > 2.5.0
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
> --
> Ville Syrjälä
> Intel OTC
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
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:[~2016-05-26 16:06 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-26 15:29 [PATCH 00/23] kbl and gen9 workarounds Mika Kuoppala
2016-05-26 15:29 ` [PATCH 01/23] drm/i915/kbl: Init " Mika Kuoppala
2016-05-26 15:29 ` [PATCH 02/23] drm/i915/kbl: Add REVID macro Mika Kuoppala
2016-05-26 15:29 ` [PATCH 03/23] drm/i915/kbl: Add WaSkipStolenMemoryFirstPage for A0 Mika Kuoppala
2016-05-26 15:29 ` [PATCH 04/23] drm/i915/gen9: Always apply WaForceContextSaveRestoreNonCoherent Mika Kuoppala
2016-05-26 15:29 ` [PATCH 05/23] drm/i915: Mimic skl with WaForceEnableNonCoherent Mika Kuoppala
2016-05-26 15:29 ` [PATCH 06/23] drm/i915/kbl: Add WaEnableGapsTsvCreditFix Mika Kuoppala
2016-05-27 8:14 ` Arun Siluvery
2016-05-26 15:29 ` [PATCH 07/23] drm/i915/kbl: Add WaDisableFenceDestinationToSLM for A0 Mika Kuoppala
2016-05-26 15:29 ` [PATCH 08/23] drm/i915/kbl: Add WaDisableSDEUnitClockGating Mika Kuoppala
2016-05-26 15:29 ` [PATCH 09/23] drm/i915/edp: Add WaKVMNotificationOnConfigChange:bdw, skl Mika Kuoppala
2016-05-27 8:18 ` Mika Kuoppala
2016-05-26 15:29 ` [PATCH 10/23] drm/i915/kbl: Add WaDisableLSQCROPERFforOCL Mika Kuoppala
2016-05-26 15:29 ` [PATCH 11/23] drm/i915/gen9: Enable must set chicken bits in config0 reg Mika Kuoppala
2016-05-26 15:29 ` [PATCH 12/23] drm/i915/kbl: Add WaDisableGamClockGating Mika Kuoppala
2016-05-26 15:29 ` [PATCH 13/23] drm/i915/kbl: Add WaDisableDynamicCreditSharing Mika Kuoppala
2016-05-26 15:29 ` [PATCH 14/23] drm/i915: Add WaInsertDummyPushConstP for bxt and kbl Mika Kuoppala
2016-05-26 15:29 ` [PATCH 15/23] drm/i915/gen9: Add WaDisableSkipCaching Mika Kuoppala
2016-05-26 15:29 ` [PATCH 16/23] drm/i915/skl: Add WAC6entrylatency Mika Kuoppala
2016-05-26 15:29 ` [PATCH 17/23] drm/i915/kbl: Add WaForGAMHang Mika Kuoppala
2016-05-26 15:29 ` [PATCH 18/23] drm/i915: Add WaDisableGafsUnitClkGating for skl and kbl Mika Kuoppala
2016-05-26 15:29 ` [PATCH 19/23] drm/i915/kbl: Add WaDisableSbeCacheDispatchPortSharing Mika Kuoppala
2016-05-26 15:29 ` [PATCH 20/23] drm/i915/gen9: Set wa for display underrun issues with Y & Yf Tiling Mika Kuoppala
2016-05-26 16:53 ` [PATCH 20/23] drm/i915/gen9: Add WaEnableChickenDCPR Mika Kuoppala
2016-05-26 15:29 ` [PATCH 21/23] drm/i915/gen9: Set fbc watermarks disabled Mika Kuoppala
2016-05-26 15:53 ` Ville Syrjälä
2016-05-26 16:06 ` Ville Syrjälä [this message]
2016-05-26 16:54 ` [PATCH 21/23] drm/i915/gen9: Add WaFbcTurnOffFbcWatermark Mika Kuoppala
2016-05-26 15:29 ` [PATCH 22/23] drm/i915/gen9: Prevent fbc corruption/system hangs with high bw Mika Kuoppala
2016-05-26 16:54 ` [PATCH 22/23] drm/i915/gen9: Add WaFbcWakeMemOn Mika Kuoppala
2016-05-26 15:29 ` [PATCH 23/23] drm/i195/fbc: Enable wa to prevent fbc corruption with skl and kbl Mika Kuoppala
2016-05-26 16:55 ` [PATCH 23/23] drm/i195/fbc: Add WaFbcNukeOnHostModify Mika Kuoppala
2016-05-26 16:37 ` ✗ Ro.CI.BAT: warning for kbl and gen9 workarounds Patchwork
2016-05-26 17:37 ` ✗ Ro.CI.BAT: warning for kbl and gen9 workarounds (rev5) Patchwork
2016-06-06 7:51 ` [PATCH 00/23] kbl and gen9 workarounds Jani Nikula
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=20160526160640.GW4329@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=mika.kuoppala@linux.intel.com \
--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.