]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Check stream pointer is initialized before accessing
authorSung Joon Kim <sungjoon.kim@amd.com>
Wed, 3 Jul 2024 20:15:59 +0000 (16:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:07:13 +0000 (17:07 -0400)
commitbe7a6a5171649c39f79a6259518218351082bd99
tree818f7fe210a95914c47b95666645bd913a2833d1
parent08cbe68d4aafcf651a86730a485df53e6ee9f594
drm/amd/display: Check stream pointer is initialized before accessing

[why & how]
We calculate static screen wait frames based
on the current timing info in the active stream.
If stream is not initialized, then we should skip
the calculation and go with the default values.

Reviewed-by: Gabe Teeger <gabe.teeger@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Sung Joon Kim <sungjoon.kim@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c