[Intel-gfx] [PATCH] drm/i915/cnl: Add max allowed Cannonlake DC.
Rodrigo Vivi
rodrigo.vivi at gmail.com
Mon Jul 10 19:22:02 UTC 2017
merged to dinq. thanks for the review
On Fri, Jul 7, 2017 at 10:58 AM, Imre Deak <imre.deak at intel.com> wrote:
> On Thu, Jul 06, 2017 at 01:45:08PM -0700, Rodrigo Vivi wrote:
>> This is a follow-up after enabling DC states with
>> commit: "drm/i915/DMC/CNL: Load DMC on CNL".
>>
>> Cc: Anusha Srivatsa <anusha.srivatsa at intel.com>
>> Cc: Imre Deak <imre.deak at intel.com>
>> Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
>
> Reviewed-by: Imre Deak <imre.deak at intel.com>
>
> We could add max_dc_state to intel_device_info at one point.
>
>> ---
>> drivers/gpu/drm/i915/intel_runtime_pm.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
>> index 5eb9c5e..f630d63 100644
>> --- a/drivers/gpu/drm/i915/intel_runtime_pm.c
>> +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
>> @@ -2492,7 +2492,7 @@ static uint32_t get_allowed_dc_mask(const struct drm_i915_private *dev_priv,
>> int requested_dc;
>> int max_dc;
>>
>> - if (IS_GEN9_BC(dev_priv)) {
>> + if (IS_GEN9_BC(dev_priv) || IS_CANNONLAKE(dev_priv)) {
>> max_dc = 2;
>> mask = 0;
>> } else if (IS_GEN9_LP(dev_priv)) {
>> --
>> 1.9.1
>>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Rodrigo Vivi
Blog: http://blog.vivi.eng.br
More information about the Intel-gfx
mailing list