drm/amd/display: Fix DVI-D/HDMI adapters
Subsystems (3)
PATCH 1/1 drm/amd/display: Fix DVI-D/HDMI adapters
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:amdgpu_atombios_encoder_get_encoder_mode
which selects ATOM_ENCODER_MODE_HDMI for the same case.
This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
--- drivers/gpu/drm/amd/display/dc/link/link_detection.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/display/dc/link/link_detection.c +4 -0
@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (sink->sink_signal ==SIGNAL_TYPE_HDMI_TYPE_A && !sink->edid_caps.edid_hdmi) sink->sink_signal =SIGNAL_TYPE_DVI_SINGLE_LINK ; +else if (dc_is_dvi_signal (sink->sink_signal) && + aud_support->hdmi_audio_native && + sink->edid_caps.edid_hdmi) + sink->sink_signal =SIGNAL_TYPE_HDMI_TYPE_A ;if (link->local_sink &&dc_is_dp_signal (sink_caps.signal))dp_trace_init (link);
Signature · 1 line
2.50.1
Quoted 13 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
Quoted 7 lines
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Signed-off-by Timur Kristóf <[email protected]>
Makes sense to me, but would be good to get input from display team in case there is anything I'm missing.
Quoted 22 lines
--- drivers/gpu/drm/amd/display/dc/link/link_detection.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/display/dc/link/link_detection.c +4
-1@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (sink->sink_signal ==SIGNAL_TYPE_HDMI_TYPE_A && !sink->edid_caps.edid_hdmi) sink->sink_signal =SIGNAL_TYPE_DVI_SINGLE_LINK ; +else if (dc_is_dvi_signal (sink->sink_signal) && + aud_support->hdmi_audio_native && + sink->edid_caps.edid_hdmi) + sink->sink_signal =SIGNAL_TYPE_HDMI_TYPE_A ;if (link->local_sink &&dc_is_dp_signal (sink_caps.signal))dp_trace_init (link); --2.50.1
Quoted 21 lines · Alex Deucher
Quoted 19 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Quoted 6 lines
Quoted 1 line
Signed-off-by Timur Kristóf <[email protected]>Makes sense to me, but would be good to get input from display team in
case there is anything I'm missing.Acked-by Alex Deucher <[email protected]>
Thank you!
I just want to add that the code path without audio for both DVI-D and HDMI seems to be broken and probably needs further investigation.
I might come back to this problem later when/if I have an opportunity to test with a display that actually uses DVI-D. Right now I only have the DVI/HDMI adapter which seems to work differently (as noted in the above patch).
Timur
Quoted 28 lines
Quoted 28 lines
---
drivers/gpu/drm/amd/display/dc/link/link_detection.c | 4 ++++1 file changed, 4 insertions(+)drivers/gpu/drm/amd/display/dc/link/link_detection.c +0
-0@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (
sink->sink_signal==SIGNAL_TYPE_HDMI_TYPE_A&& !sink->edid_caps.edid_hdmi)sink->sink_signal=SIGNAL_TYPE_DVI_SINGLE_LINK;
+ else if (dc_is_dvi_signal(sink->sink_signal)&& +aud_support->hdmi_audio_native&& +sink->edid_caps.edid_hdmi)
+sink->sink_signal=SIGNAL_TYPE_HDMI_TYPE_A;if (
link->local_sink&&dc_is_dp_signal(sink_caps.signal))
dp_trace_init(link);
--
2.50.1
Quoted 21 lines · Alex Deucher
Quoted 19 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Quoted 6 lines
Quoted 1 line
Signed-off-by Timur Kristóf <[email protected]>Makes sense to me, but would be good to get input from display team in
case there is anything I'm missing.Acked-by Alex Deucher <[email protected]>
@[email protected] or @[email protected] Can you guys please review this patch? Thank you!
Quoted 28 lines
Quoted 28 lines
---
drivers/gpu/drm/amd/display/dc/link/link_detection.c | 4 ++++1 file changed, 4 insertions(+)drivers/gpu/drm/amd/display/dc/link/link_detection.c +0
-0@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (
sink->sink_signal==SIGNAL_TYPE_HDMI_TYPE_A&& !sink->edid_caps.edid_hdmi)sink->sink_signal=SIGNAL_TYPE_DVI_SINGLE_LINK;
+ else if (dc_is_dvi_signal(sink->sink_signal)&& +aud_support->hdmi_audio_native&& +sink->edid_caps.edid_hdmi)
+sink->sink_signal=SIGNAL_TYPE_HDMI_TYPE_A;if (
link->local_sink&&dc_is_dp_signal(sink_caps.signal))
dp_trace_init(link);
--
2.50.1
@[email protected]@Wentland, Harry
Were you planning to pick this up for this week's promotion or should
I grab it?
Thanks,
Alex
Quoted 61 lines · Timur Kristóf
Quoted 21 lines · Alex Deucher
Quoted 19 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Quoted 6 lines
Quoted 1 line
Signed-off-by Timur Kristóf <[email protected]>Makes sense to me, but would be good to get input from display team in
case there is anything I'm missing.Acked-by Alex Deucher <[email protected]>@[email protected] or @[email protected] Can you guys please review this patch? Thank you!
Quoted 28 lines
Quoted 28 lines
--- drivers/gpu/drm/amd/display/dc/link/link_detection.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/display/dc/link/link_detection.c +4
-0@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link, if (sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A && !sink->edid_caps.edid_hdmi) sink->sink_signal =SIGNAL_TYPE_DVI_SINGLE_LINK ; + else if (dc_is_dvi_signal(sink->sink_signal) && + aud_support->hdmi_audio_native && + sink->edid_caps.edid_hdmi) + sink->sink_signal =SIGNAL_TYPE_HDMI_TYPE_A ;if (link->local_sink && dc_is_dp_signal(sink_caps.signal)) dp_trace_init(link);--
2.50.1
Quoted 3 lines · Alex Deucher
@[email protected]@Wentland, Harry
Were you planning to pick this up for this week's promotion or should
I grab it?
I will send them to weekly DC promotion.
Thanks.
Quoted 44 lines
Thanks,
Alex
Quoted 38 lines · Timur Kristóf
Quoted 21 lines · Alex Deucher
Quoted 19 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Quoted 6 lines
Quoted 1 line
Signed-off-by Timur Kristóf <[email protected]>Makes sense to me, but would be good to get input from display team in
case there is anything I'm missing.Acked-by Alex Deucher <[email protected]>@[email protected] or @[email protected] Can you guys please review this patch? Thank you!
Quoted 5 lines
Quoted 5 lines
--- drivers/gpu/drm/amd/display/dc/link/link_detection.c | 4 ++++ 1 file changed, 4 insertions(+)
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/amd/display/dc/link/link_detection.c +0
-0@@ -1140,6 +1140,10 @@ static boolQuoted 8 lines
Quoted 8 lines
drivers/gpu/drm/amd/display/dc/link/link_detection.c static bool detect_link_and_local_sink(struct dc_link *link, · line 1145
Quoted 8 lines
drivers/gpu/drm/amd/display/dc/link/link_detection.c +3
-0detect_link_and_local_sink(struct dc_link *link, if (sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A && !sink->edid_caps.edid_hdmi) sink->sink_signal =SIGNAL_TYPE_DVI_SINGLE_LINK ; + else if (dc_is_dvi_signal(sink->sink_signal) && + aud_support->hdmi_audio_native && + sink->edid_caps.edid_hdmi)
nitpick: probably need extra spaces to align with dc_is_dvi_signal, but I can fix it manually after this patch passes promotion test.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/amd/display/dc/link/link_detection.c +1
-0+ sink->sink_signal =>>>> SIGNAL_TYPE_HDMI_TYPE_A;if (link->local_sink && dc_is_dp_signal(sink_caps.signal)) dp_trace_init(link);--
2.50.1
Quoted 70 lines · Alex Hung
Quoted 4 lines · Alex Deucher
@[email protected]@Wentland, Harry
Were you planning to pick this up for this week's promotion or should
I grab it?I will send them to weekly DC promotion.
Thanks.
Quoted 58 lines
Thanks,
Alex
Quoted 51 lines · Timur Kristóf
Quoted 21 lines · Alex Deucher
Quoted 19 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Quoted 7 lines
Quoted 1 line
Signed-off-by Timur Kristóf <[email protected]>Makes sense to me, but would be good to get input from display team
in
case there is anything I'm missing.Acked-by Alex Deucher <[email protected]>@[email protected] or @[email protected] Can you guys please review this patch? Thank you!
Quoted 17 lines
Quoted 17 lines
---
drivers/gpu/drm/amd/display/dc/link/link_detection.c| 4
++++1 file changed, 4 insertions(+)diff --git
a/drivers/gpu/drm/amd/display/dc/link/link_detection.cb/drivers/gpu/drm/amd/display/dc/link/link_detection.cindex827b630daf49..42180e6aca91100644drivers/gpu/drm/amd/display/dc/link/link_detection.c +0
-0@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (
sink->sink_signal==SIGNAL_TYPE_HDMI_TYPE_A&& !sink->edid_caps.edid_hdmi)
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
sink->sink_signal=SIGNAL_TYPE_DVI_SINGLE_LINK;
+ else if (dc_is_dvi_signal(sink->sink_signal)&&
+aud_support->hdmi_audio_native&& +sink->edid_caps.edid_hdmi)nitpick: probably need extra spaces to align with
dc_is_dvi_signal,
Thank you for the comment!
The check patch script actually warns against using spaces and tabs on the same line, so I wanted to avoid doing that.
I couldn't find a clear guideline on how to format multiline conditions, so I just aligned them to the other conditions that were already here.
Quoted 12 lines
but
I can fix it manually after this patch passes promotion test.Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
+
sink->sink_signal=>>>>SIGNAL_TYPE_HDMI_TYPE_A;if (
link->local_sink&&dc_is_dp_signal(sink_caps.signal))dp_trace_init(link);
--
2.50.1
Quoted 80 lines · Timur Kristóf
Quoted 70 lines · Alex Hung
Quoted 4 lines · Alex Deucher
@[email protected]@Wentland, Harry
Were you planning to pick this up for this week's promotion or
should
I grab it?I will send them to weekly DC promotion.
Thanks.
Quoted 58 lines
Thanks,
Alex
Quoted 51 lines · Timur Kristóf
Quoted 21 lines · Alex Deucher
Quoted 19 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Quoted 7 lines
Quoted 1 line
Signed-off-by Timur Kristóf <[email protected]>Makes sense to me, but would be good to get input from display team
in
case there is anything I'm missing.Acked-by Alex Deucher <[email protected]>@[email protected] or @[email protected] Can you guys please review this patch? Thank you!
Quoted 17 lines
Quoted 17 lines
--- drivers/gpu/drm/amd/display/dc/link/link_detection.c | 4 ++++ 1 file changed, 4 insertions(+)diff --git
a/drivers/gpu/drm/amd/display/dc/link/link_detection.cb/drivers/gpu/drm/amd/display/dc/link/link_detection.cindex827b630daf49..42180e6aca91100644drivers/gpu/drm/amd/display/dc/link/link_detection.c +0
-0@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link, if (sink->sink_signal ==
SIGNAL_TYPE_HDMI_TYPE_A&&
!sink->edid_caps.edid_hdmi)Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
sink->sink_signal=SIGNAL_TYPE_DVI_SINGLE_LINK;
+ else if (dc_is_dvi_signal(sink->sink_signal)&&
+aud_support->hdmi_audio_native&& +sink->edid_caps.edid_hdmi)nitpick: probably need extra spaces to align with
dc_is_dvi_signal,
Quoted 8 lines
Thank you for the comment!
The check patch script actually warns against using spaces and tabs on the same line, so I wanted to avoid doing that.
I couldn't find a clear guideline on how to format multiline conditions, so I just aligned them to the other conditions that were already here.
I did not see any warning as below, but this is a nitpick.
drivers/gpu/drm/amd/display/dc/link/link_detection.c +4 -0
@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (sink->sink_signal ==SIGNAL_TYPE_HDMI_TYPE_A && !sink->edid_caps.edid_hdmi) sink->sink_signal =SIGNAL_TYPE_DVI_SINGLE_LINK ; +else if (dc_is_dvi_signal (sink->sink_signal) && + aud_support->hdmi_audio_native && + sink->edid_caps.edid_hdmi) + sink->sink_signal =SIGNAL_TYPE_HDMI_TYPE_A ;if (link->local_sink &&dc_is_dp_signal (sink_caps.signal))dp_trace_init (link);
Signature · 6 lines
2.43.0 alexhung@ws:~/src/kernel/amdgpu(review)$ ./scripts/checkpatch.pl 0001-drm-amd-display-Fix-DVI-D-HDMI-adapters.patch total: 0 errors, 0 warnings, 10 lines checked 0001-drm-amd-display-Fix-DVI-D-HDMI-adapters.patch has no obvious style problems and is ready for submission.
Quoted 13 lines
Quoted 13 lines
but
I can fix it manually after this patch passes promotion test.Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
+
sink->sink_signal=>>>>SIGNAL_TYPE_HDMI_TYPE_A;if (
link->local_sink&&dc_is_dp_signal(sink_caps.signal))
dp_trace_init(link);
--
2.50.1
Quoted 98 lines · Alex Hung
Quoted 95 lines · Timur Kristóf
Quoted 80 lines · Alex Hung
Quoted 5 lines · Alex Deucher
@[email protected]@Wentland, Harry
Were you planning to pick this up for this week's promotion or
should
I grab it?I will send them to weekly DC promotion.
Thanks.
Quoted 67 lines
Thanks,
Alex
Quoted 60 lines · Timur Kristóf
Quoted 22 lines · Alex Deucher
Quoted 20 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Quoted 8 lines
Quoted 1 line
Signed-off-by Timur Kristóf <[email protected]>Makes sense to me, but would be good to get input from display
team
in
case there is anything I'm missing.Acked-by Alex Deucher <[email protected]>@[email protected] or @[email protected] Can you guys please
review this patch? Thank you!Quoted 23 lines
Quoted 23 lines
---
drivers/gpu/drm/amd/display/dc/link/link_detection.c| 4
++++1 file changed, 4 insertions(+)diff --git
a/drivers/gpu/drm/amd/display/dc/link/link_detection.cb/drivers/gpu/drm/amd/display/dc/link/link_detection.cindex827b630daf49..42180e6aca91100644
---a/drivers/gpu/drm/amd/display/dc/link/link_detection.c
+++b/drivers/gpu/drm/amd/display/dc/link/link_detection.c(quoted diff) +0
-0@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (
sink->sink_signal==SIGNAL_TYPE_HDMI_TYPE_A&& !sink->edid_caps.edid_hdmi)sink->sink_signal=SIGNAL_TYPE_DVI_SINGLE_LINK;
+ else if (dc_is_dvi_signal(sink-Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
sink_signal)&&
+aud_support->hdmi_audio_native&& +sink->edid_caps.edid_hdmi)nitpick: probably need extra spaces to align with
dc_is_dvi_signal,Thank you for the comment!
The check patch script actually warns against using spaces and tabs on
the same line, so I wanted to avoid doing that.
Quoted 6 lines
Quoted 4 lines
I couldn't find a clear guideline on how to format multiline conditions, so I just aligned them to the other conditions that were
already here.I did not see any warning as below, but this is a nitpick.
Thank you. I'll keep that style in mind for my future patches.
Quoted 17 lines
drivers/gpu/drm/amd/display/dc/link/link_detection.c +0
-0@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (
sink->sink_signal==SIGNAL_TYPE_HDMI_TYPE_A&& !sink->edid_caps.edid_hdmi)sink->sink_signal=SIGNAL_TYPE_DVI_SINGLE_LINK;drivers/gpu/drm/amd/display/dc/link/link_detection.c +4
-0+else if (dc_is_dvi_signal (sink->sink_signal) && + aud_support->hdmi_audio_native && + sink->edid_caps.edid_hdmi) + sink->sink_signal =SIGNAL_TYPE_HDMI_TYPE_A ;if (
link->local_sink&&dc_is_dp_signal(sink_caps.signal))
dp_trace_init(link);
No regression found in DC promotion test.
Quoted 38 lines · Timur Kristóf
When the EDID has the HDMI bit, we should simply select the HDMI signal type even on DVI ports.
For reference see, the legacy amdgpu display code:
amdgpu_atombios_encoder_get_encoder_mode
which selectsATOM_ENCODER_MODE_HDMIfor the same case.This commit fixes DVI connectors to work with DVI-D/HDMI adapters so that they can now produce output over these connectors for HDMI monitors with higher bandwidth modes. With this change, even HDMI audio works through DVI.
For testing, I used a CAA-DMDHFD3 DVI-D/HDMI adapter with the following GPUs:
Tahiti (DCE 6) - DC can now output 4K 30 Hz over DVI Polaris 10 (DCE 11.2) - DC can now output 4K 60 Hz over DVI
Signed-off-by Timur Kristóf <[email protected]>--- drivers/gpu/drm/amd/display/dc/link/link_detection.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/display/dc/link/link_detection.c +4
-0@@ -1140,6 +1140,10 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (sink->sink_signal ==SIGNAL_TYPE_HDMI_TYPE_A && !sink->edid_caps.edid_hdmi) sink->sink_signal =SIGNAL_TYPE_DVI_SINGLE_LINK ; +else if (dc_is_dvi_signal (sink->sink_signal) && + aud_support->hdmi_audio_native && + sink->edid_caps.edid_hdmi) + sink->sink_signal =SIGNAL_TYPE_HDMI_TYPE_A ;if (link->local_sink &&dc_is_dp_signal (sink_caps.signal))dp_trace_init (link);