diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-02-09 14:33:18 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-13 17:28:35 -0500 |
commit | 8bc0ccf6b1f0c0c6eef8301cb2a5b743a01635db (patch) | |
tree | e3f2400e5728667c4acfeac58fca4ef5932c5a45 /drivers/gpu/drm/i915 | |
parent | 9370cd987e91d6d652ebe6d883fbc51b10df2403 (diff) |
drm/i915/skl: Implement WaDisableLSQCROPERFforOCL
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Nick Hoath <nicholas.hoath@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 5 |
3 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 4cea57add113..b37604bbdf1a 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -2396,6 +2396,7 @@ struct drm_i915_cmd_table { | |||
2396 | #define SKL_REVID_B0 (0x1) | 2396 | #define SKL_REVID_B0 (0x1) |
2397 | #define SKL_REVID_C0 (0x2) | 2397 | #define SKL_REVID_C0 (0x2) |
2398 | #define SKL_REVID_D0 (0x3) | 2398 | #define SKL_REVID_D0 (0x3) |
2399 | #define SKL_REVID_E0 (0x4) | ||
2399 | 2400 | ||
2400 | /* | 2401 | /* |
2401 | * The genX designation typically refers to the render engine, so render | 2402 | * The genX designation typically refers to the render engine, so render |
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index b610764768d7..0fb6a4f6c6f7 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -5259,6 +5259,9 @@ enum skl_disp_power_wells { | |||
5259 | #define GEN7_L3SQCREG4 0xb034 | 5259 | #define GEN7_L3SQCREG4 0xb034 |
5260 | #define L3SQ_URB_READ_CAM_MATCH_DISABLE (1<<27) | 5260 | #define L3SQ_URB_READ_CAM_MATCH_DISABLE (1<<27) |
5261 | 5261 | ||
5262 | #define GEN8_L3SQCREG4 0xb118 | ||
5263 | #define GEN8_LQSC_RO_PERF_DIS (1<<27) | ||
5264 | |||
5262 | /* GEN8 chicken */ | 5265 | /* GEN8 chicken */ |
5263 | #define HDC_CHICKEN0 0x7300 | 5266 | #define HDC_CHICKEN0 0x7300 |
5264 | #define HDC_FENCE_DEST_SLM_DISABLE (1<<14) | 5267 | #define HDC_FENCE_DEST_SLM_DISABLE (1<<14) |
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index af8dca28c505..d7750176091b 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -65,6 +65,11 @@ static void skl_init_clock_gating(struct drm_device *dev) | |||
65 | GEN8_GAPSUNIT_CLOCK_GATE_DISABLE | | 65 | GEN8_GAPSUNIT_CLOCK_GATE_DISABLE | |
66 | GEN8_SDEUNIT_CLOCK_GATE_DISABLE); | 66 | GEN8_SDEUNIT_CLOCK_GATE_DISABLE); |
67 | } | 67 | } |
68 | |||
69 | if (INTEL_REVID(dev) <= SKL_REVID_E0) | ||
70 | /* WaDisableLSQCROPERFforOCL:skl */ | ||
71 | I915_WRITE(GEN8_L3SQCREG4, I915_READ(GEN8_L3SQCREG4) | | ||
72 | GEN8_LQSC_RO_PERF_DIS); | ||
68 | } | 73 | } |
69 | 74 | ||
70 | static void i915_pineview_get_mem_freq(struct drm_device *dev) | 75 | static void i915_pineview_get_mem_freq(struct drm_device *dev) |