Skip to content

Commit 39173f2

Browse files
dgaliffiAMDalexdeucher
authored andcommitted
drm/amd/display: Enable dp_hdmi21_pcon support
[Why] It is not enabled for DCN3.0.1, 3.0.2, 3.0.3. [How] Add `dc->caps.dp_hdmi21_pcon_support = true` to these DCN versions. Reviewed-by: Martin Leung <[email protected]> Acked-by: Stylon Wang <[email protected]> Signed-off-by: David Galiffi <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f0882d3 commit 39173f2

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,8 @@ static bool dcn301_resource_construct(
14931493
dc->caps.color.mpc.ogam_rom_caps.hlg = 0;
14941494
dc->caps.color.mpc.ocsc = 1;
14951495

1496+
dc->caps.dp_hdmi21_pcon_support = true;
1497+
14961498
/* read VBIOS LTTPR caps */
14971499
if (ctx->dc_bios->funcs->get_lttpr_caps) {
14981500
enum bp_result bp_query_result;

drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,8 @@ static bool dcn302_resource_construct(
12811281
dc->caps.color.mpc.ogam_rom_caps.hlg = 0;
12821282
dc->caps.color.mpc.ocsc = 1;
12831283

1284+
dc->caps.dp_hdmi21_pcon_support = true;
1285+
12841286
/* read VBIOS LTTPR caps */
12851287
if (ctx->dc_bios->funcs->get_lttpr_caps) {
12861288
enum bp_result bp_query_result;

drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,8 @@ static bool dcn303_resource_construct(
12121212
dc->caps.color.mpc.ogam_rom_caps.hlg = 0;
12131213
dc->caps.color.mpc.ocsc = 1;
12141214

1215+
dc->caps.dp_hdmi21_pcon_support = true;
1216+
12151217
/* read VBIOS LTTPR caps */
12161218
if (ctx->dc_bios->funcs->get_lttpr_caps) {
12171219
enum bp_result bp_query_result;

0 commit comments

Comments
 (0)