Commit 2e583200 authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher
Browse files

drm/amd/display: block dcn315 dynamic crb allocation when unintended



[WHY/HOW]
Limit the dynamic crb to dual stream configs that include eDP

Reviewed-by: default avatarCharlene Liu <charlene.liu@amd.com>
Acked-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Signed-off-by: default avatarDmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bd1f6a31
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1631,8 +1631,10 @@ static bool allow_pixel_rate_crb(struct dc *dc, struct dc_state *context)
	int i;
	struct resource_context *res_ctx = &context->res_ctx;

	/*Don't apply for single stream*/
	if (context->stream_count < 2)
	/* Only apply for dual stream scenarios with edp*/
	if (context->stream_count != 2)
		return false;
	if (context->streams[0]->signal != SIGNAL_TYPE_EDP && context->streams[1]->signal != SIGNAL_TYPE_EDP)
		return false;

	for (i = 0; i < dc->res_pool->pipe_count; i++) {