drm/amd/display: Remove OTG DIV register write for Virtual signals.
authorSaaem Rizvi <SyedSaaem.Rizvi@amd.com>
Mon, 27 Feb 2023 23:55:07 +0000 (18:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Mar 2023 22:17:22 +0000 (18:17 -0400)
commit709671ffb15dcd1b4f6afe2a9d8c67c7c4ead4a1
tree12d11a829f463f1b7f3ca0cc4a4a76adc32043f6
parent542a56e8eb4467ae654eefab31ff194569db39cd
drm/amd/display: Remove OTG DIV register write for Virtual signals.

[WHY]
Hot plugging and then hot unplugging leads to k1 and k2 values to
change, as signal is detected as a virtual signal on hot unplug. Writing
these values to OTG_PIXEL_RATE_DIV register might cause primary display
to blank (known hw bug).

[HOW]
No longer write k1 and k2 values to register if signal is virtual, we
have safe guards in place in the case that k1 and k2 is unassigned so
that an unknown value is not written to the register either.

Cc: stable@vger.kernel.org
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Samson Tam <Samson.Tam@amd.com>
Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Saaem Rizvi <SyedSaaem.Rizvi@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/dcn32/dcn32_hwseq.c