Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: update disp pattern generator routine for DCN30

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Aurabindo Pillai and committed by
Alex Deucher
214d72f6 327f79d7

+2 -31
+2 -31
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c
··· 959 959 const struct tg_color *solid_color, 960 960 int width, int height, int offset) 961 961 { 962 - struct stream_resource *stream_res = &pipe_ctx->stream_res; 963 - struct pipe_ctx *mpcc_pipe; 964 - 965 - if (test_pattern != CONTROLLER_DP_TEST_PATTERN_VIDEOMODE) { 966 - pipe_ctx->vtp_locked = false; 967 - /* turning on DPG */ 968 - stream_res->opp->funcs->opp_set_disp_pattern_generator(stream_res->opp, test_pattern, color_space, 969 - color_depth, solid_color, width, height, offset); 970 - 971 - /* Defer hubp blank if tg is locked */ 972 - if (stream_res->tg->funcs->is_tg_enabled(stream_res->tg)) { 973 - if (stream_res->tg->funcs->is_locked(stream_res->tg)) 974 - pipe_ctx->vtp_locked = true; 975 - else { 976 - /* Blank HUBP to allow p-state during blank on all timings */ 977 - pipe_ctx->plane_res.hubp->funcs->set_blank(pipe_ctx->plane_res.hubp, true); 978 - 979 - for (mpcc_pipe = pipe_ctx->bottom_pipe; mpcc_pipe; mpcc_pipe = mpcc_pipe->bottom_pipe) 980 - mpcc_pipe->plane_res.hubp->funcs->set_blank(mpcc_pipe->plane_res.hubp, true); 981 - } 982 - } 983 - } else { 984 - /* turning off DPG */ 985 - pipe_ctx->plane_res.hubp->funcs->set_blank(pipe_ctx->plane_res.hubp, false); 986 - for (mpcc_pipe = pipe_ctx->bottom_pipe; mpcc_pipe; mpcc_pipe = mpcc_pipe->bottom_pipe) 987 - if (mpcc_pipe->plane_res.hubp) 988 - mpcc_pipe->plane_res.hubp->funcs->set_blank(mpcc_pipe->plane_res.hubp, false); 989 - 990 - stream_res->opp->funcs->opp_set_disp_pattern_generator(stream_res->opp, test_pattern, color_space, 991 - color_depth, solid_color, width, height, offset); 992 - } 962 + pipe_ctx->stream_res.opp->funcs->opp_set_disp_pattern_generator(pipe_ctx->stream_res.opp, test_pattern, 963 + color_space, color_depth, solid_color, width, height, offset); 993 964 }