@@ -13,8 +13,10 @@ static inline u32 context_reserved_size(struct intel_guc *guc)
if (IS_GEN9_LP(i915))
return BXT_GUC_WOPCM_RC6_CTX_RESERVED;
-
- return 0;
+ else if (INTEL_GEN(i915) >= 10)
+ return CNL_GUC_WOPCM_HW_CTX_RESERVED;
+ else
+ return 0;
}
static inline int gen9_check_dword_gap(struct intel_guc_wopcm *guc_wopcm)
@@ -52,6 +52,8 @@ struct intel_guc;
#define GUC_WOPCM_STACK_RESERVED (8 << 10)
/* 24KB at the end of GuC WOPCM is reserved for RC6 CTX on BXT. */
#define BXT_GUC_WOPCM_RC6_CTX_RESERVED (24 << 10)
+/* 36KB WOPCM reserved at the end of GuC WOPCM on CNL. */
+#define CNL_GUC_WOPCM_HW_CTX_RESERVED (36 << 10)
/*
* GuC WOPCM starts at 144KB (GUC_WOPCM_RESERVED + 128KB reserved for GuC