Commit b426c837 authored by Lucas De Marchi's avatar Lucas De Marchi

drm/i915: remove explicit CNL handling from intel_wopcm.c

Consider the new WOPCM size as starting in ICL rather than CNL since the
latter is being removed from the driver.
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210728215946.1573015-20-lucas.demarchi@intel.com
parent cf9fb29c
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,8 @@
/* 24KB at the end of WOPCM is reserved for RC6 CTX on BXT. */ /* 24KB at the end of WOPCM is reserved for RC6 CTX on BXT. */
#define BXT_WOPCM_RC6_CTX_RESERVED (SZ_16K + SZ_8K) #define BXT_WOPCM_RC6_CTX_RESERVED (SZ_16K + SZ_8K)
/* 36KB WOPCM reserved at the end of WOPCM on CNL. */ /* 36KB WOPCM reserved at the end of WOPCM on ICL. */
#define CNL_WOPCM_HW_CTX_RESERVED (SZ_32K + SZ_4K) #define ICL_WOPCM_HW_CTX_RESERVED (SZ_32K + SZ_4K)
/* 128KB from GUC_WOPCM_RESERVED is reserved for FW on Gen9. */ /* 128KB from GUC_WOPCM_RESERVED is reserved for FW on Gen9. */
#define GEN9_GUC_FW_RESERVED SZ_128K #define GEN9_GUC_FW_RESERVED SZ_128K
...@@ -93,8 +93,8 @@ static u32 context_reserved_size(struct drm_i915_private *i915) ...@@ -93,8 +93,8 @@ static u32 context_reserved_size(struct drm_i915_private *i915)
{ {
if (IS_GEN9_LP(i915)) if (IS_GEN9_LP(i915))
return BXT_WOPCM_RC6_CTX_RESERVED; return BXT_WOPCM_RC6_CTX_RESERVED;
else if (GRAPHICS_VER(i915) >= 10) else if (GRAPHICS_VER(i915) >= 11)
return CNL_WOPCM_HW_CTX_RESERVED; return ICL_WOPCM_HW_CTX_RESERVED;
else else
return 0; return 0;
} }
...@@ -126,7 +126,7 @@ static bool gen9_check_huc_fw_fits(struct drm_i915_private *i915, ...@@ -126,7 +126,7 @@ static bool gen9_check_huc_fw_fits(struct drm_i915_private *i915,
u32 guc_wopcm_size, u32 huc_fw_size) u32 guc_wopcm_size, u32 huc_fw_size)
{ {
/* /*
* On Gen9 & CNL A0, hardware requires the total available GuC WOPCM * On Gen9, hardware requires the total available GuC WOPCM
* size to be larger than or equal to HuC firmware size. Otherwise, * size to be larger than or equal to HuC firmware size. Otherwise,
* firmware uploading would fail. * firmware uploading would fail.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment