Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: intel-gfx@lists.freedesktop.org, "Runyan,
	Arthur J" <arthur.j.runyan@intel.com>
Subject: Re: [PATCH] drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk
Date: Thu, 9 Nov 2017 15:45:04 +0200	[thread overview]
Message-ID: <20171109134504.GN10981@intel.com> (raw)
In-Reply-To: <20171108233016.32020-1-rodrigo.vivi@intel.com>

On Wed, Nov 08, 2017 at 03:30:16PM -0800, Rodrigo Vivi wrote:
> PM Rsp is not sent when plane is turned off at around the
> time that a PM fill Req is received by display

Do we know what the impact of this is? The HSD just seems to say
"Detection method: Hang" which isn't partciluarly helpful.

To me this smells vaguely of WaRsPkgCStateDisplayPMReq:hsw which
will cause a system hang if we don't do it early enough. Do we have
similar concerns here? (and if so please look at commit f72b84c677d6
("drm/i915: Move init_clock_gating() back to where it was"))

Maybe we should start a new init_clock_gating/init_workarounds thing
just for the display, and add all new stuff there? And then we can
start moving the old display w/as etc. there as well.

> 
> WA: disable arbiter clock gating, set bit [27] of 0x46530
> 
> Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
> Cc: Imre Deak <imre.deak@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_reg.h | 1 +
>  drivers/gpu/drm/i915/intel_pm.c | 8 ++++++++
>  2 files changed, 9 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 6ef33422f762..fc8c5f8260f6 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -3819,6 +3819,7 @@ enum {
>   * GEN9 clock gating regs
>   */
>  #define GEN9_CLKGATE_DIS_0		_MMIO(0x46530)
> +#define   DARBF_GATING_DIS		(1 << 27)
>  #define   PWM2_GATING_DIS		(1 << 14)
>  #define   PWM1_GATING_DIS		(1 << 13)
>  
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index e09377df590d..e642e8983035 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -127,6 +127,10 @@ static void glk_init_clock_gating(struct drm_i915_private *dev_priv)
>  	u32 val;
>  	gen9_init_clock_gating(dev_priv);
>  
> +	/* Display WA #1185 WaDisableDARBFClkGating:glk */
> +	I915_WRITE(GEN9_CLKGATE_DIS_0, I915_READ(GEN9_CLKGATE_DIS_0) |
> +		   DARBF_GATING_DIS);
> +
>  	/*
>  	 * WaDisablePWMClockGating:glk
>  	 * Backlight PWM may stop in the asserted state, causing backlight
> @@ -8528,6 +8532,10 @@ static void cnl_init_clock_gating(struct drm_i915_private *dev_priv)
>  	u32 val;
>  	cnp_init_clock_gating(dev_priv);
>  
> +	/* Display WA #1185 WaDisableDARBFClkGating:cnl */
> +	I915_WRITE(GEN9_CLKGATE_DIS_0, I915_READ(GEN9_CLKGATE_DIS_0) |
> +		   DARBF_GATING_DIS);
> +
>  	/* This is not an Wa. Enable for better image quality */
>  	I915_WRITE(_3D_CHICKEN3,
>  		   _MASKED_BIT_ENABLE(_3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE));
> -- 
> 2.13.6
> 
> _______________________________________________
> 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

  parent reply	other threads:[~2017-11-09 13:45 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-08 23:30 [PATCH] drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk Rodrigo Vivi
2017-11-08 23:48 ` ✗ Fi.CI.BAT: warning for " Patchwork
2017-11-09  0:31 ` ✗ Fi.CI.IGT: failure " Patchwork
2017-11-09  0:55 ` ✓ Fi.CI.BAT: success " Patchwork
2017-11-09  1:31 ` ✗ Fi.CI.BAT: warning " Patchwork
2017-11-09 13:20 ` [PATCH] " Imre Deak
2017-11-09 13:45 ` Ville Syrjälä [this message]
2017-11-09 17:58   ` Rodrigo Vivi
2017-11-09 18:05     ` Chris Wilson
2017-11-09 22:26   ` Rodrigo Vivi
2017-11-10 20:13     ` Ville Syrjälä
2017-11-10 20:24       ` Rodrigo Vivi
2017-11-10 20:44         ` Ville Syrjälä
2017-11-10 20:58           ` Rodrigo Vivi
2017-11-10 21:11             ` Ville Syrjälä
2017-11-10 21:17               ` Rodrigo Vivi
2017-11-11  0:03               ` Rodrigo Vivi
2017-11-09 22:43 ` ✓ Fi.CI.BAT: success for drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev2) Patchwork
2017-11-09 23:25 ` ✗ Fi.CI.IGT: failure " Patchwork
2017-11-10 21:18 ` ✓ Fi.CI.BAT: success for drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev3) Patchwork
2017-11-10 23:00 ` ✓ Fi.CI.IGT: " Patchwork
2017-11-11  0:22 ` ✗ Fi.CI.BAT: warning for drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev4) Patchwork
2017-11-13 23:01 ` ✗ Fi.CI.BAT: failure " Patchwork
2017-11-14  0:38 ` ✓ Fi.CI.BAT: success " Patchwork
2017-11-14  1: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=20171109134504.GN10981@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=arthur.j.runyan@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@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