drm/amd/display: fix display clock integrated info read
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Fri, 2 Dec 2016 22:41:42 +0000 (17:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:03:13 +0000 (17:03 -0400)
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c

index 77033fe..846754c 100644 (file)
@@ -342,7 +342,7 @@ static void dce_clock_read_integrated_info(struct dce_disp_clk *clk_dce)
                                info.disp_clk_voltage[i].max_supported_clk;
        }
 
-       if (!debug->disable_dfs_bypass)
+       if (!debug->disable_dfs_bypass && bp->integrated_info)
                if (bp->integrated_info->gpu_cap_info & DFS_BYPASS_ENABLE)
                        clk_dce->dfs_bypass_enabled = true;