drm/amd/display: Device flash garbage before get in OS
authorChiawen Huang <chiawen.huang@amd.com>
Thu, 21 Jul 2022 13:57:05 +0000 (21:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Aug 2022 19:12:00 +0000 (15:12 -0400)
commit9c580e8f6cd6524d4e2c3490c440110526f7ddd6
treefeb1c72fc7c8b4044b7ec2d6b9907d6aa7d60318
parent9bd110ab06e93fd01938dedd8b6015940418f0fb
drm/amd/display: Device flash garbage before get in OS

[Why]
Enabling stream with tg lock makes config settings
pending causing the garbage until tg unlock.

[How]
Keep the original lock mechanism
The driver doesn't lock tg if plane_state is null.

Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Chiawen Huang <chiawen.huang@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/dcn10/dcn10_hw_sequencer.c