drm/amd/display: only check available pipe to disable vbios mode.
[ Upstream commit 850d2fcf3e346a35e4e59e310b867e90e3ef8e5a ] [Why & How] 1. only need to check first ODM pipe. 2. Only need to check eDP which is on. Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Stable-dep-of: 23645bca9830 ("drm/amd/display: Don't set dpms_off for seamless boot") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f4bfebab79
commit
281aceba12
1 changed files with 5 additions and 1 deletions
|
@ -862,12 +862,16 @@ static void disable_vbios_mode_if_required(
|
||||||
if (stream == NULL)
|
if (stream == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// only looking for first odm pipe
|
||||||
|
if (pipe->prev_odm_pipe)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (stream->link->local_sink &&
|
if (stream->link->local_sink &&
|
||||||
stream->link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
|
stream->link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
|
||||||
link = stream->link;
|
link = stream->link;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (link != NULL) {
|
if (link != NULL && link->link_enc->funcs->is_dig_enabled(link->link_enc)) {
|
||||||
unsigned int enc_inst, tg_inst = 0;
|
unsigned int enc_inst, tg_inst = 0;
|
||||||
unsigned int pix_clk_100hz;
|
unsigned int pix_clk_100hz;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue