|
@@ -52,10 +52,21 @@
|
|
#define INTEL_RC6p_ENABLE (1<<1)
|
|
#define INTEL_RC6p_ENABLE (1<<1)
|
|
#define INTEL_RC6pp_ENABLE (1<<2)
|
|
#define INTEL_RC6pp_ENABLE (1<<2)
|
|
|
|
|
|
|
|
+static void gen9_init_clock_gating(struct drm_device *dev)
|
|
|
|
+{
|
|
|
|
+ struct drm_i915_private *dev_priv = dev->dev_private;
|
|
|
|
+
|
|
|
|
+ /* WaEnableLbsSlaRetryTimerDecrement:skl */
|
|
|
|
+ I915_WRITE(BDW_SCRATCH1, I915_READ(BDW_SCRATCH1) |
|
|
|
|
+ GEN9_LBS_SLA_RETRY_TIMER_DECREMENT_ENABLE);
|
|
|
|
+}
|
|
|
|
+
|
|
static void skl_init_clock_gating(struct drm_device *dev)
|
|
static void skl_init_clock_gating(struct drm_device *dev)
|
|
{
|
|
{
|
|
struct drm_i915_private *dev_priv = dev->dev_private;
|
|
struct drm_i915_private *dev_priv = dev->dev_private;
|
|
|
|
|
|
|
|
+ gen9_init_clock_gating(dev);
|
|
|
|
+
|
|
if (INTEL_REVID(dev) == SKL_REVID_A0) {
|
|
if (INTEL_REVID(dev) == SKL_REVID_A0) {
|
|
/*
|
|
/*
|
|
* WaDisableSDEUnitClockGating:skl
|
|
* WaDisableSDEUnitClockGating:skl
|