public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 09/23] drm/i915/edp: Add	WaKVMNotificationOnConfigChange:bdw, skl
Date: Fri, 27 May 2016 11:18:23 +0300	[thread overview]
Message-ID: <87a8jbj4mo.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <1464276586-17939-10-git-send-email-mika.kuoppala@intel.com>

Mika Kuoppala <mika.kuoppala@linux.intel.com> writes:

> [ text/plain ]
> According to bspec this workaround helps to reduce lag and improve
> performance on edp.
>

Bspec says this is for bdw,skl.
wa database says this is for bdw and all gen9.

If we write to 0x42090 on kbl,skl it doesn't
hold value and we get the mmio debug traces as
shown in the CI/bat.

Lets make this for bdw only as it seems to
have this register.

-Mika



> References: HSD#2134579
> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_reg.h | 3 +++
>  drivers/gpu/drm/i915/intel_pm.c | 8 ++++++++
>  2 files changed, 11 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index e3077259541a..1f84c2ff3563 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -6035,6 +6035,9 @@ enum skl_disp_power_wells {
>  #define  FORCE_ARB_IDLE_PLANES	(1 << 14)
>  #define  SKL_EDP_PSR_FIX_RDWRAP	(1 << 3)
>  
> +#define CHICKEN_PAR2_1		_MMIO(0x42090)
> +#define  KVM_CONFIG_CHANGE_NOTIFICATION_SELECT	(1 << 14)
> +
>  #define _CHICKEN_PIPESL_1_A	0x420b0
>  #define _CHICKEN_PIPESL_1_B	0x420b4
>  #define  HSW_FBCQ_DIS			(1 << 22)
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index fc34add6ab82..5d9b7ff9dc18 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -6870,6 +6870,10 @@ static void skylake_init_clock_gating(struct drm_device *dev)
>  	/* See Bspec note for PSR2_CTL bit 31, Wa#828:skl */
>  	I915_WRITE(CHICKEN_PAR1_1,
>  		   I915_READ(CHICKEN_PAR1_1) | SKL_EDP_PSR_FIX_RDWRAP);
> +
> +	/* WaKVMNotificationOnConfigChange:skl */
> +	I915_WRITE(CHICKEN_PAR2_1, I915_READ(CHICKEN_PAR2_1)
> +		   | KVM_CONFIG_CHANGE_NOTIFICATION_SELECT);
>  }
>  
>  static void broadwell_init_clock_gating(struct drm_device *dev)
> @@ -6916,6 +6920,10 @@ static void broadwell_init_clock_gating(struct drm_device *dev)
>  	 */
>  	I915_WRITE(HSW_GTT_CACHE_EN, GTT_CACHE_EN_ALL);
>  
> +	/* WaKVMNotificationOnConfigChange:bdw */
> +	I915_WRITE(CHICKEN_PAR2_1, I915_READ(CHICKEN_PAR2_1)
> +		   | KVM_CONFIG_CHANGE_NOTIFICATION_SELECT);
> +
>  	lpt_init_clock_gating(dev);
>  }
>  
> -- 
> 2.5.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-05-27  8:21 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 [this message]
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ä
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=87a8jbj4mo.fsf@gaia.fi.intel.com \
    --to=mika.kuoppala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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