All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "drm/amd/display: To modify the condition in indicating branch device"
@ 2021-03-24  1:24 Alex Deucher
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2021-03-24  1:24 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher, Martin Tsai, Bindu Ramamurthy

This breaks HDMI audio.

This reverts commit 9413b23fadad3861f5afd626ac44ef83ad8068ab.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1536
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Martin Tsai <martin.tsai@amd.com>
Cc: Bindu Ramamurthy <bindu.r@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
index 484d96f78ade..18adf4ea6044 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
@@ -3192,7 +3192,13 @@ static void get_active_converter_info(
 	}
 
 	/* DPCD 0x5 bit 0 = 1, it indicate it's branch device */
-	link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
+	if (ds_port.fields.PORT_TYPE == DOWNSTREAM_DP) {
+		link->dpcd_caps.is_branch_dev = false;
+	}
+
+	else {
+		link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
+	}
 
 	switch (ds_port.fields.PORT_TYPE) {
 	case DOWNSTREAM_VGA:
-- 
2.30.2

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Revert "drm/amd/display: To modify the condition in indicating branch device"
  2022-01-24 14:17 Alex Deucher
@ 2022-01-24 21:39 ` Harry Wentland
  0 siblings, 0 replies; 3+ messages in thread
From: Harry Wentland @ 2022-01-24 21:39 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx; +Cc: Siqueira, Rodrigo, Martin Tsai, Bindu Ramamurthy

On 2022-01-24 09:17, Alex Deucher wrote:
> This breaks HDMI audio.
> 

Do we have more info? This is DP code, but maybe the display is connected via a DP-HDMI adapter? Or via a n MST or USB-C hub?

As Siqueira mentioned, we couldn't reproduce the issue and the original change was intended to fix an issue with some receivers. Simply reverting it would likely reintroduce that bug.

Harry

> This reverts commit 9413b23fadad3861f5afd626ac44ef83ad8068ab.
> 
> Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1536
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> Cc: Martin Tsai <martin.tsai@amd.com>
> Cc: Bindu Ramamurthy <bindu.r@amd.com>
> ---
>  drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> index 6f6929435885..eb4432dca761 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> @@ -5039,7 +5039,13 @@ static void get_active_converter_info(
>  	}
>  
>  	/* DPCD 0x5 bit 0 = 1, it indicate it's branch device */
> -	link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
> +	if (ds_port.fields.PORT_TYPE == DOWNSTREAM_DP) {
> +		link->dpcd_caps.is_branch_dev = false;
> +	}
> +
> +	else {
> +		link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
> +	}
>  
>  	switch (ds_port.fields.PORT_TYPE) {
>  	case DOWNSTREAM_VGA:


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Revert "drm/amd/display: To modify the condition in indicating branch device"
@ 2022-01-24 14:17 Alex Deucher
  2022-01-24 21:39 ` Harry Wentland
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Deucher @ 2022-01-24 14:17 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher, Martin Tsai, Bindu Ramamurthy

This breaks HDMI audio.

This reverts commit 9413b23fadad3861f5afd626ac44ef83ad8068ab.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1536
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Martin Tsai <martin.tsai@amd.com>
Cc: Bindu Ramamurthy <bindu.r@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
index 6f6929435885..eb4432dca761 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
@@ -5039,7 +5039,13 @@ static void get_active_converter_info(
 	}
 
 	/* DPCD 0x5 bit 0 = 1, it indicate it's branch device */
-	link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
+	if (ds_port.fields.PORT_TYPE == DOWNSTREAM_DP) {
+		link->dpcd_caps.is_branch_dev = false;
+	}
+
+	else {
+		link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
+	}
 
 	switch (ds_port.fields.PORT_TYPE) {
 	case DOWNSTREAM_VGA:
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-24 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  1:24 [PATCH] Revert "drm/amd/display: To modify the condition in indicating branch device" Alex Deucher
2022-01-24 14:17 Alex Deucher
2022-01-24 21:39 ` Harry Wentland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.