diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-06-02 08:37:35 -0400 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-06-04 07:15:45 -0400 |
commit | 4f47c99a9be7e9b90a7f3c2c4599ea6b7c2ec49d (patch) | |
tree | 3581822859273ff548b6f0ff70f397bba57e1ef5 /drivers/gpu | |
parent | 77b64555f8ddf28d99b4cc19ef4a56b6df39cd81 (diff) |
drm/i915: Move WaBarrierPerformanceFixDisable:skl to skl code from chv code
commit 65ca7514e21adbee25b8175fc909759c735d00ff
Author: Damien Lespiau <damien.lespiau@intel.com>
Date: Mon Feb 9 19:33:22 2015 +0000
drm/i915/skl: Implement WaBarrierPerformanceFixDisable
got misapplied and the code landed in chv_init_workarounds() instead of
the intended skl_init_workarounds(). Move it over to the right place.
Cc: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 441e2502b889..005b5e04de4d 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -901,13 +901,6 @@ static int chv_init_workarounds(struct intel_engine_cs *ring) | |||
901 | GEN6_WIZ_HASHING_MASK, | 901 | GEN6_WIZ_HASHING_MASK, |
902 | GEN6_WIZ_HASHING_16x4); | 902 | GEN6_WIZ_HASHING_16x4); |
903 | 903 | ||
904 | if (INTEL_REVID(dev) == SKL_REVID_C0 || | ||
905 | INTEL_REVID(dev) == SKL_REVID_D0) | ||
906 | /* WaBarrierPerformanceFixDisable:skl */ | ||
907 | WA_SET_BIT_MASKED(HDC_CHICKEN0, | ||
908 | HDC_FENCE_DEST_SLM_DISABLE | | ||
909 | HDC_BARRIER_PERFORMANCE_DISABLE); | ||
910 | |||
911 | return 0; | 904 | return 0; |
912 | } | 905 | } |
913 | 906 | ||
@@ -1024,6 +1017,13 @@ static int skl_init_workarounds(struct intel_engine_cs *ring) | |||
1024 | WA_SET_BIT_MASKED(HIZ_CHICKEN, | 1017 | WA_SET_BIT_MASKED(HIZ_CHICKEN, |
1025 | BDW_HIZ_POWER_COMPILER_CLOCK_GATING_DISABLE); | 1018 | BDW_HIZ_POWER_COMPILER_CLOCK_GATING_DISABLE); |
1026 | 1019 | ||
1020 | if (INTEL_REVID(dev) == SKL_REVID_C0 || | ||
1021 | INTEL_REVID(dev) == SKL_REVID_D0) | ||
1022 | /* WaBarrierPerformanceFixDisable:skl */ | ||
1023 | WA_SET_BIT_MASKED(HDC_CHICKEN0, | ||
1024 | HDC_FENCE_DEST_SLM_DISABLE | | ||
1025 | HDC_BARRIER_PERFORMANCE_DISABLE); | ||
1026 | |||
1027 | return skl_tune_iz_hashing(ring); | 1027 | return skl_tune_iz_hashing(ring); |
1028 | } | 1028 | } |
1029 | 1029 | ||