Skip to content

Commit 2931937

Browse files
Mustapha Ghaddaralexdeucher
authored andcommitted
drm/amd/display: Fix 2nd DPIA encoder Assignment
[HOW & Why] There seems to be an issue with 2nd DPIA acquiring link encoder for tiled displays. Solution is to remove check for eng_id before we get first dynamic encoder for it Reviewed-by: Cruise Hung <[email protected]> Reviewed-by: Meenakshikumar Somasundaram <[email protected]> Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Cc: [email protected] Acked-by: Stylon Wang <[email protected]> Signed-off-by: Mustapha Ghaddar <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 64be47b commit 2931937

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,7 @@ void link_enc_cfg_link_encs_assign(
395395
stream->link->dpia_preferred_eng_id != ENGINE_ID_UNKNOWN)
396396
eng_id_req = stream->link->dpia_preferred_eng_id;
397397

398-
if (eng_id == ENGINE_ID_UNKNOWN)
399-
eng_id = find_first_avail_link_enc(stream->ctx, state, eng_id_req);
398+
eng_id = find_first_avail_link_enc(stream->ctx, state, eng_id_req);
400399
}
401400
else
402401
eng_id = link_enc->preferred_engine;
@@ -501,7 +500,6 @@ struct dc_link *link_enc_cfg_get_link_using_link_enc(
501500
if (stream)
502501
link = stream->link;
503502

504-
// dm_output_to_console("%s: No link using DIG(%d).\n", __func__, eng_id);
505503
return link;
506504
}
507505

0 commit comments

Comments
 (0)