diff options
| author | 2022-07-21 21:57:05 +0800 | |
|---|---|---|
| committer | 2022-08-10 15:12:00 -0400 | |
| commit | 9c580e8f6cd6524d4e2c3490c440110526f7ddd6 (patch) | |
| tree | feb1c72fc7c8b4044b7ec2d6b9907d6aa7d60318 | |
| parent | drm/amd/display: Fix TMDS 4K@60Hz YCbCr420 corruption issue (diff) | |
| download | linux-dev-9c580e8f6cd6524d4e2c3490c440110526f7ddd6.tar.xz linux-dev-9c580e8f6cd6524d4e2c3490c440110526f7ddd6.zip | |
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>
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c index bed783747f16..5b5d952b2b8c 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c @@ -110,6 +110,7 @@ void dcn10_lock_all_pipes(struct dc *dc, */ if (pipe_ctx->top_pipe || !pipe_ctx->stream || + !pipe_ctx->plane_state || !tg->funcs->is_tg_enabled(tg)) continue; |
