@@ -158,9 +158,11 @@ static int host2guc_sample_forcewake(struct intel_guc *guc,
u32 data[2];
data[0] = HOST2GUC_ACTION_SAMPLE_FORCEWAKE;
- data[1] = (intel_enable_rc6(dev_priv->dev)) ? 1 : 0;
+ /* bit 0 and 1 are for Render and Media domain separately */
+ data[1] = (intel_enable_rc6(dev_priv->dev)) ?
+ GUC_FORCEWAKE_RENDER | GUC_FORCEWAKE_MEDIA : 0;
- return host2guc_action(guc, data, 2);
+ return host2guc_action(guc, data, ARRAY_SIZE(data));
}
/*
@@ -260,6 +260,9 @@ struct guc_context_desc {
#define GUC_POWER_D2 3
#define GUC_POWER_D3 4
+#define GUC_FORCEWAKE_RENDER (1 << 0)
+#define GUC_FORCEWAKE_MEDIA (1 << 1)
+
/* This Action will be programmed in C180 - SOFT_SCRATCH_O_REG */
enum host2guc_action {
HOST2GUC_ACTION_DEFAULT = 0x0,