]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: do not wait for mpc idle if tg is disabled
authorJosip Pavic <Josip.Pavic@amd.com>
Thu, 24 Mar 2022 16:08:43 +0000 (12:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:23:11 +0000 (16:23 +0200)
commitb964eb37c0209fc673b6db4887faffdbfdc9cb38
tree0650c3472f76f586ac67b07a49f3a9c8f608647d
parent7e11c58b2620a22c67a5ae28d64ce383890ee9f4
drm/amd/display: do not wait for mpc idle if tg is disabled

[ Upstream commit 2513ed4f937999c0446fd824f7564f76b697d722 ]

[Why]
When booting, the driver waits for the MPC idle bit to be set as part of
pipe initialization. However, on some systems this occurs before OTG is
enabled, and since the MPC idle bit won't be set until the vupdate
signal occurs (which requires OTG to be enabled), this never happens and
the wait times out. This can add hundreds of milliseconds to the boot
time.

[How]
Do not wait for mpc idle if tg is disabled

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 5a25cefc0920 ("drm/amd/display: check TG is non-null before checking if enabled")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c