Display version 35+ supports DC3CO power state. Set max_dc to 4
for these platforms to allow DC3CO along with DC6 state.

Signed-off-by: Dibin Moolakadan Subrahmanian 
<[email protected]>
---
 drivers/gpu/drm/i915/display/intel_display_power.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c 
b/drivers/gpu/drm/i915/display/intel_display_power.c
index 3ea51064a06c..0bb4f9d9c36f 100644
--- a/drivers/gpu/drm/i915/display/intel_display_power.c
+++ b/drivers/gpu/drm/i915/display/intel_display_power.c
@@ -1010,7 +1010,9 @@ static u32 get_allowed_dc_mask(struct intel_display 
*display, int enable_dc)
        if (!HAS_DISPLAY(display))
                return 0;
 
-       if (DISPLAY_VER(display) >= 20)
+       if (DISPLAY_VER(display) >= 35)
+               max_dc = 4;
+       else if (DISPLAY_VER(display) >= 20)
                max_dc = 2;
        else if (display->platform.dg2)
                max_dc = 1;
-- 
2.43.0

Reply via email to