diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2014-09-19 13:05:26 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-24 04:38:41 -0400 |
commit | d37cf5f7e1b315585940a735a8508d955ffc0f16 (patch) | |
tree | 6fb2733cdfff7fc3201dae4537746b5107b09bb1 /drivers/gpu/drm/i915/intel_ringbuffer.c | |
parent | bda0381e72028708b37695bf7d5b18ec956cf0a2 (diff) |
drm/i915/bdw: Cleanup pre prod workarounds
as these have been fixed in production hw and hurt performance
if applied.
v2: adjust requested ring space (Ville)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83482
Tested-by: zhoujian <jianx.zhou@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 25795f2efdcb..6dc981f0671e 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -707,7 +707,7 @@ static int bdw_init_workarounds(struct intel_engine_cs *ring) | |||
707 | * update the number of dwords required based on the | 707 | * update the number of dwords required based on the |
708 | * actual number of workarounds applied | 708 | * actual number of workarounds applied |
709 | */ | 709 | */ |
710 | ret = intel_ring_begin(ring, 24); | 710 | ret = intel_ring_begin(ring, 18); |
711 | if (ret) | 711 | if (ret) |
712 | return ret; | 712 | return ret; |
713 | 713 | ||
@@ -722,19 +722,8 @@ static int bdw_init_workarounds(struct intel_engine_cs *ring) | |||
722 | intel_ring_emit_wa(ring, GEN7_ROW_CHICKEN2, | 722 | intel_ring_emit_wa(ring, GEN7_ROW_CHICKEN2, |
723 | _MASKED_BIT_ENABLE(DOP_CLOCK_GATING_DISABLE)); | 723 | _MASKED_BIT_ENABLE(DOP_CLOCK_GATING_DISABLE)); |
724 | 724 | ||
725 | /* | ||
726 | * This GEN8_CENTROID_PIXEL_OPT_DIS W/A is only needed for | ||
727 | * pre-production hardware | ||
728 | */ | ||
729 | intel_ring_emit_wa(ring, HALF_SLICE_CHICKEN3, | 725 | intel_ring_emit_wa(ring, HALF_SLICE_CHICKEN3, |
730 | _MASKED_BIT_ENABLE(GEN8_CENTROID_PIXEL_OPT_DIS | 726 | _MASKED_BIT_ENABLE(GEN8_SAMPLER_POWER_BYPASS_DIS)); |
731 | | GEN8_SAMPLER_POWER_BYPASS_DIS)); | ||
732 | |||
733 | intel_ring_emit_wa(ring, GEN7_HALF_SLICE_CHICKEN1, | ||
734 | _MASKED_BIT_ENABLE(GEN7_SINGLE_SUBSCAN_DISPATCH_ENABLE)); | ||
735 | |||
736 | intel_ring_emit_wa(ring, COMMON_SLICE_CHICKEN2, | ||
737 | _MASKED_BIT_ENABLE(GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE)); | ||
738 | 727 | ||
739 | /* Use Force Non-Coherent whenever executing a 3D context. This is a | 728 | /* Use Force Non-Coherent whenever executing a 3D context. This is a |
740 | * workaround for for a possible hang in the unlikely event a TLB | 729 | * workaround for for a possible hang in the unlikely event a TLB |