diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2017-06-06 16:30:37 -0400 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2017-06-07 10:29:51 -0400 |
commit | 1dc0766c33473d61fd85caa5031daf34f719cd3f (patch) | |
tree | b4765bb365082e1d3d20a92fb47e2eafa4a1c124 /drivers/gpu/drm/i915/intel_mocs.c | |
parent | c7ae7e9ab2078ed987903bc6c308abe57d575a59 (diff) |
drm/i915/cnl: Cannonlake has same MOCS table than Skylake.
All registers and default configuration are the same for Skylake
and Cannonlake.
v2: Don't apply Wa for platforms without MOCS. (Paulo)
v3: Removed WaDisableSkipCaching that Joonas noticed that
according to spec it is not applicable to CNL.
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1496781040-20888-8-git-send-email-rodrigo.vivi@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_mocs.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_mocs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_mocs.c b/drivers/gpu/drm/i915/intel_mocs.c index 92e461c68385..f4c46b0b8f0a 100644 --- a/drivers/gpu/drm/i915/intel_mocs.c +++ b/drivers/gpu/drm/i915/intel_mocs.c | |||
@@ -178,7 +178,7 @@ static bool get_mocs_settings(struct drm_i915_private *dev_priv, | |||
178 | { | 178 | { |
179 | bool result = false; | 179 | bool result = false; |
180 | 180 | ||
181 | if (IS_GEN9_BC(dev_priv)) { | 181 | if (IS_GEN9_BC(dev_priv) || IS_CANNONLAKE(dev_priv)) { |
182 | table->size = ARRAY_SIZE(skylake_mocs_table); | 182 | table->size = ARRAY_SIZE(skylake_mocs_table); |
183 | table->table = skylake_mocs_table; | 183 | table->table = skylake_mocs_table; |
184 | result = true; | 184 | result = true; |