Unverified Commit 59253ba0 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12049 drm/amd/display: Skip inactive planes within ModeSupportAndSystemConfiguration

parents 9d5b8fe1 2a3cdc9f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1099,8 +1099,13 @@ void ModeSupportAndSystemConfiguration(struct display_mode_lib *mode_lib)

	// Total Available Pipes Support Check
	for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) {
		total_pipes += mode_lib->vba.DPPPerPlane[k];
		pipe_idx = get_pipe_idx(mode_lib, k);
		if (pipe_idx == -1) {
			ASSERT(0);
			continue; // skip inactive planes
		}
		total_pipes += mode_lib->vba.DPPPerPlane[k];

		if (mode_lib->vba.cache_pipes[pipe_idx].clks_cfg.dppclk_mhz > 0.0)
			mode_lib->vba.DPPCLK[k] = mode_lib->vba.cache_pipes[pipe_idx].clks_cfg.dppclk_mhz;
		else