提交 f4c07f88 编写于 作者: T Tony Cheng 提交者: Alex Deucher

drm/amd/display: avoid apply_clk_constraints for address update

- dc_update_surfaces_for_target get called in ISR but apply_clk_constraints allocates memory
Signed-off-by: NTony Cheng <tony.cheng@amd.com>
Reviewed-by: NDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 edbd58af
......@@ -1336,6 +1336,7 @@ void dc_update_surfaces_for_target(struct dc *dc, struct dc_surface_update *upda
int i, j;
bool is_new_pipe_surface[MAX_PIPES];
const struct dc_surface *new_surfaces[MAX_SURFACES] = { 0 };
bool need_apply_clk_constraints = false;
update_surface_trace(dc, updates, surface_count);
......@@ -1405,6 +1406,7 @@ void dc_update_surfaces_for_target(struct dc *dc, struct dc_surface_update *upda
if (updates[i].plane_info || updates[i].scaling_info
|| is_new_pipe_surface[j]) {
need_apply_clk_constraints = true;
if (updates[i].plane_info) {
surface->public.color_space =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册