* [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function
@ 2020-10-31 8:17 ` Jonathan Liu
0 siblings, 0 replies; 25+ messages in thread
From: Jonathan Liu @ 2020-10-31 8:17 UTC (permalink / raw)
To: linux-rockchip, dri-devel, linux-kernel, linux-arm-kernel
Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie,
Neil Armstrong, Jonathan Liu, Andrzej Hajda, Boris Brezillon,
Laurent Pinchart, Daniel Vetter, Russell King, Liu Ying,
Sam Ravnborg
It has been observed that resetting force in the detect function can
result in the PHY being powered down in response to hot-plug detect
being asserted, even when the HDMI connector is forced on.
Enabling debug messages and adding a call to dump_stack() in
dw_hdmi_phy_power_off() shows the following in dmesg:
[ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin
[ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations
Call trace:
dw_hdmi_phy_power_off
dw_hdmi_phy_disable
dw_hdmi_update_power
dw_hdmi_detect
dw_hdmi_connector_detect
drm_helper_probe_detect_ctx
drm_helper_hpd_irq_event
dw_hdmi_irq
irq_thread_fn
irq_thread
kthread
ret_from_fork
Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing")
Signed-off-by: Jonathan Liu <net147@gmail.com>
---
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
index 748df1cacd2b..0c79a9ba48bb 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
@@ -2327,12 +2327,6 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi)
{
enum drm_connector_status result;
- mutex_lock(&hdmi->mutex);
- hdmi->force = DRM_FORCE_UNSPECIFIED;
- dw_hdmi_update_power(hdmi);
- dw_hdmi_update_phy_mask(hdmi);
- mutex_unlock(&hdmi->mutex);
-
result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data);
mutex_lock(&hdmi->mutex);
--
2.29.1
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply related [flat|nested] 25+ messages in thread* [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-10-31 8:17 ` Jonathan Liu 0 siblings, 0 replies; 25+ messages in thread From: Jonathan Liu @ 2020-10-31 8:17 UTC (permalink / raw) To: linux-rockchip, dri-devel, linux-kernel, linux-arm-kernel Cc: Andrzej Hajda, Neil Armstrong, Laurent Pinchart, Jonas Karlman, Jernej Skrabec, David Airlie, Daniel Vetter, Sam Ravnborg, Boris Brezillon, Liu Ying, Russell King, Fabio Estevam, Jonathan Liu It has been observed that resetting force in the detect function can result in the PHY being powered down in response to hot-plug detect being asserted, even when the HDMI connector is forced on. Enabling debug messages and adding a call to dump_stack() in dw_hdmi_phy_power_off() shows the following in dmesg: [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations Call trace: dw_hdmi_phy_power_off dw_hdmi_phy_disable dw_hdmi_update_power dw_hdmi_detect dw_hdmi_connector_detect drm_helper_probe_detect_ctx drm_helper_hpd_irq_event dw_hdmi_irq irq_thread_fn irq_thread kthread ret_from_fork Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") Signed-off-by: Jonathan Liu <net147@gmail.com> --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 748df1cacd2b..0c79a9ba48bb 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2327,12 +2327,6 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi) { enum drm_connector_status result; - mutex_lock(&hdmi->mutex); - hdmi->force = DRM_FORCE_UNSPECIFIED; - dw_hdmi_update_power(hdmi); - dw_hdmi_update_phy_mask(hdmi); - mutex_unlock(&hdmi->mutex); - result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data); mutex_lock(&hdmi->mutex); -- 2.29.1 ^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-10-31 8:17 ` Jonathan Liu 0 siblings, 0 replies; 25+ messages in thread From: Jonathan Liu @ 2020-10-31 8:17 UTC (permalink / raw) To: linux-rockchip, dri-devel, linux-kernel, linux-arm-kernel Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, Jonathan Liu, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying, Sam Ravnborg It has been observed that resetting force in the detect function can result in the PHY being powered down in response to hot-plug detect being asserted, even when the HDMI connector is forced on. Enabling debug messages and adding a call to dump_stack() in dw_hdmi_phy_power_off() shows the following in dmesg: [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations Call trace: dw_hdmi_phy_power_off dw_hdmi_phy_disable dw_hdmi_update_power dw_hdmi_detect dw_hdmi_connector_detect drm_helper_probe_detect_ctx drm_helper_hpd_irq_event dw_hdmi_irq irq_thread_fn irq_thread kthread ret_from_fork Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") Signed-off-by: Jonathan Liu <net147@gmail.com> --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 748df1cacd2b..0c79a9ba48bb 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2327,12 +2327,6 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi) { enum drm_connector_status result; - mutex_lock(&hdmi->mutex); - hdmi->force = DRM_FORCE_UNSPECIFIED; - dw_hdmi_update_power(hdmi); - dw_hdmi_update_phy_mask(hdmi); - mutex_unlock(&hdmi->mutex); - result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data); mutex_lock(&hdmi->mutex); -- 2.29.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-10-31 8:17 ` Jonathan Liu 0 siblings, 0 replies; 25+ messages in thread From: Jonathan Liu @ 2020-10-31 8:17 UTC (permalink / raw) To: linux-rockchip, dri-devel, linux-kernel, linux-arm-kernel Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, Jonathan Liu, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, Daniel Vetter, Russell King, Liu Ying, Sam Ravnborg It has been observed that resetting force in the detect function can result in the PHY being powered down in response to hot-plug detect being asserted, even when the HDMI connector is forced on. Enabling debug messages and adding a call to dump_stack() in dw_hdmi_phy_power_off() shows the following in dmesg: [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations Call trace: dw_hdmi_phy_power_off dw_hdmi_phy_disable dw_hdmi_update_power dw_hdmi_detect dw_hdmi_connector_detect drm_helper_probe_detect_ctx drm_helper_hpd_irq_event dw_hdmi_irq irq_thread_fn irq_thread kthread ret_from_fork Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") Signed-off-by: Jonathan Liu <net147@gmail.com> --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 748df1cacd2b..0c79a9ba48bb 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2327,12 +2327,6 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi) { enum drm_connector_status result; - mutex_lock(&hdmi->mutex); - hdmi->force = DRM_FORCE_UNSPECIFIED; - dw_hdmi_update_power(hdmi); - dw_hdmi_update_phy_mask(hdmi); - mutex_unlock(&hdmi->mutex); - result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data); mutex_lock(&hdmi->mutex); -- 2.29.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function 2020-10-31 8:17 ` Jonathan Liu (?) (?) @ 2020-11-08 9:53 ` Sam Ravnborg -1 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-08 9:53 UTC (permalink / raw) To: Jonathan Liu, Russell King Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying, linux-arm-kernel Russell, On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > It has been observed that resetting force in the detect function can > result in the PHY being powered down in response to hot-plug detect > being asserted, even when the HDMI connector is forced on. > > Enabling debug messages and adding a call to dump_stack() in > dw_hdmi_phy_power_off() shows the following in dmesg: > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > Call trace: > dw_hdmi_phy_power_off > dw_hdmi_phy_disable > dw_hdmi_update_power > dw_hdmi_detect > dw_hdmi_connector_detect > drm_helper_probe_detect_ctx > drm_helper_hpd_irq_event > dw_hdmi_irq > irq_thread_fn > irq_thread > kthread > ret_from_fork > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > Signed-off-by: Jonathan Liu <net147@gmail.com> you are the original author of this code - any comments on this patch? Sam > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > index 748df1cacd2b..0c79a9ba48bb 100644 > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > @@ -2327,12 +2327,6 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi) > { > enum drm_connector_status result; > > - mutex_lock(&hdmi->mutex); > - hdmi->force = DRM_FORCE_UNSPECIFIED; > - dw_hdmi_update_power(hdmi); > - dw_hdmi_update_phy_mask(hdmi); > - mutex_unlock(&hdmi->mutex); > - > result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data); > > mutex_lock(&hdmi->mutex); > -- > 2.29.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 9:53 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-08 9:53 UTC (permalink / raw) To: Jonathan Liu, Russell King Cc: linux-rockchip, dri-devel, linux-kernel, linux-arm-kernel, Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying Russell, On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > It has been observed that resetting force in the detect function can > result in the PHY being powered down in response to hot-plug detect > being asserted, even when the HDMI connector is forced on. > > Enabling debug messages and adding a call to dump_stack() in > dw_hdmi_phy_power_off() shows the following in dmesg: > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > Call trace: > dw_hdmi_phy_power_off > dw_hdmi_phy_disable > dw_hdmi_update_power > dw_hdmi_detect > dw_hdmi_connector_detect > drm_helper_probe_detect_ctx > drm_helper_hpd_irq_event > dw_hdmi_irq > irq_thread_fn > irq_thread > kthread > ret_from_fork > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > Signed-off-by: Jonathan Liu <net147@gmail.com> you are the original author of this code - any comments on this patch? Sam > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > index 748df1cacd2b..0c79a9ba48bb 100644 > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > @@ -2327,12 +2327,6 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi) > { > enum drm_connector_status result; > > - mutex_lock(&hdmi->mutex); > - hdmi->force = DRM_FORCE_UNSPECIFIED; > - dw_hdmi_update_power(hdmi); > - dw_hdmi_update_phy_mask(hdmi); > - mutex_unlock(&hdmi->mutex); > - > result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data); > > mutex_lock(&hdmi->mutex); > -- > 2.29.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 9:53 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-08 9:53 UTC (permalink / raw) To: Jonathan Liu, Russell King Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying, linux-arm-kernel Russell, On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > It has been observed that resetting force in the detect function can > result in the PHY being powered down in response to hot-plug detect > being asserted, even when the HDMI connector is forced on. > > Enabling debug messages and adding a call to dump_stack() in > dw_hdmi_phy_power_off() shows the following in dmesg: > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > Call trace: > dw_hdmi_phy_power_off > dw_hdmi_phy_disable > dw_hdmi_update_power > dw_hdmi_detect > dw_hdmi_connector_detect > drm_helper_probe_detect_ctx > drm_helper_hpd_irq_event > dw_hdmi_irq > irq_thread_fn > irq_thread > kthread > ret_from_fork > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > Signed-off-by: Jonathan Liu <net147@gmail.com> you are the original author of this code - any comments on this patch? Sam > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > index 748df1cacd2b..0c79a9ba48bb 100644 > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > @@ -2327,12 +2327,6 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi) > { > enum drm_connector_status result; > > - mutex_lock(&hdmi->mutex); > - hdmi->force = DRM_FORCE_UNSPECIFIED; > - dw_hdmi_update_power(hdmi); > - dw_hdmi_update_phy_mask(hdmi); > - mutex_unlock(&hdmi->mutex); > - > result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data); > > mutex_lock(&hdmi->mutex); > -- > 2.29.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 9:53 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-08 9:53 UTC (permalink / raw) To: Jonathan Liu, Russell King Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying, linux-arm-kernel Russell, On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > It has been observed that resetting force in the detect function can > result in the PHY being powered down in response to hot-plug detect > being asserted, even when the HDMI connector is forced on. > > Enabling debug messages and adding a call to dump_stack() in > dw_hdmi_phy_power_off() shows the following in dmesg: > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > Call trace: > dw_hdmi_phy_power_off > dw_hdmi_phy_disable > dw_hdmi_update_power > dw_hdmi_detect > dw_hdmi_connector_detect > drm_helper_probe_detect_ctx > drm_helper_hpd_irq_event > dw_hdmi_irq > irq_thread_fn > irq_thread > kthread > ret_from_fork > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > Signed-off-by: Jonathan Liu <net147@gmail.com> you are the original author of this code - any comments on this patch? Sam > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > index 748df1cacd2b..0c79a9ba48bb 100644 > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > @@ -2327,12 +2327,6 @@ static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi) > { > enum drm_connector_status result; > > - mutex_lock(&hdmi->mutex); > - hdmi->force = DRM_FORCE_UNSPECIFIED; > - dw_hdmi_update_power(hdmi); > - dw_hdmi_update_phy_mask(hdmi); > - mutex_unlock(&hdmi->mutex); > - > result = hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data); > > mutex_lock(&hdmi->mutex); > -- > 2.29.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function 2020-11-08 9:53 ` Sam Ravnborg (?) (?) @ 2020-11-08 9:57 ` Russell King - ARM Linux admin -1 siblings, 0 replies; 25+ messages in thread From: Russell King - ARM Linux admin @ 2020-11-08 9:57 UTC (permalink / raw) To: Sam Ravnborg Cc: Fabio Estevam, Jernej Skrabec, Jonathan Liu, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Liu Ying, linux-arm-kernel On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > Russell, > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > It has been observed that resetting force in the detect function can > > result in the PHY being powered down in response to hot-plug detect > > being asserted, even when the HDMI connector is forced on. > > > > Enabling debug messages and adding a call to dump_stack() in > > dw_hdmi_phy_power_off() shows the following in dmesg: > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > Call trace: > > dw_hdmi_phy_power_off > > dw_hdmi_phy_disable > > dw_hdmi_update_power > > dw_hdmi_detect > > dw_hdmi_connector_detect > > drm_helper_probe_detect_ctx > > drm_helper_hpd_irq_event > > dw_hdmi_irq > > irq_thread_fn > > irq_thread > > kthread > > ret_from_fork > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > you are the original author of this code - any comments on this patch? No further comments beyond what has already been discussed, and the long and short of it is it's been so long that I don't remember why that code was there. Given that, I'm not even in a position to ack the change. Sorry. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 9:57 ` Russell King - ARM Linux admin 0 siblings, 0 replies; 25+ messages in thread From: Russell King - ARM Linux admin @ 2020-11-08 9:57 UTC (permalink / raw) To: Sam Ravnborg Cc: Jonathan Liu, linux-rockchip, dri-devel, linux-kernel, linux-arm-kernel, Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, Liu Ying On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > Russell, > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > It has been observed that resetting force in the detect function can > > result in the PHY being powered down in response to hot-plug detect > > being asserted, even when the HDMI connector is forced on. > > > > Enabling debug messages and adding a call to dump_stack() in > > dw_hdmi_phy_power_off() shows the following in dmesg: > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > Call trace: > > dw_hdmi_phy_power_off > > dw_hdmi_phy_disable > > dw_hdmi_update_power > > dw_hdmi_detect > > dw_hdmi_connector_detect > > drm_helper_probe_detect_ctx > > drm_helper_hpd_irq_event > > dw_hdmi_irq > > irq_thread_fn > > irq_thread > > kthread > > ret_from_fork > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > you are the original author of this code - any comments on this patch? No further comments beyond what has already been discussed, and the long and short of it is it's been so long that I don't remember why that code was there. Given that, I'm not even in a position to ack the change. Sorry. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 9:57 ` Russell King - ARM Linux admin 0 siblings, 0 replies; 25+ messages in thread From: Russell King - ARM Linux admin @ 2020-11-08 9:57 UTC (permalink / raw) To: Sam Ravnborg Cc: Fabio Estevam, Jernej Skrabec, Jonathan Liu, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Liu Ying, linux-arm-kernel On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > Russell, > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > It has been observed that resetting force in the detect function can > > result in the PHY being powered down in response to hot-plug detect > > being asserted, even when the HDMI connector is forced on. > > > > Enabling debug messages and adding a call to dump_stack() in > > dw_hdmi_phy_power_off() shows the following in dmesg: > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > Call trace: > > dw_hdmi_phy_power_off > > dw_hdmi_phy_disable > > dw_hdmi_update_power > > dw_hdmi_detect > > dw_hdmi_connector_detect > > drm_helper_probe_detect_ctx > > drm_helper_hpd_irq_event > > dw_hdmi_irq > > irq_thread_fn > > irq_thread > > kthread > > ret_from_fork > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > you are the original author of this code - any comments on this patch? No further comments beyond what has already been discussed, and the long and short of it is it's been so long that I don't remember why that code was there. Given that, I'm not even in a position to ack the change. Sorry. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 9:57 ` Russell King - ARM Linux admin 0 siblings, 0 replies; 25+ messages in thread From: Russell King - ARM Linux admin @ 2020-11-08 9:57 UTC (permalink / raw) To: Sam Ravnborg Cc: Fabio Estevam, Jernej Skrabec, Jonathan Liu, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Liu Ying, linux-arm-kernel On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > Russell, > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > It has been observed that resetting force in the detect function can > > result in the PHY being powered down in response to hot-plug detect > > being asserted, even when the HDMI connector is forced on. > > > > Enabling debug messages and adding a call to dump_stack() in > > dw_hdmi_phy_power_off() shows the following in dmesg: > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > Call trace: > > dw_hdmi_phy_power_off > > dw_hdmi_phy_disable > > dw_hdmi_update_power > > dw_hdmi_detect > > dw_hdmi_connector_detect > > drm_helper_probe_detect_ctx > > drm_helper_hpd_irq_event > > dw_hdmi_irq > > irq_thread_fn > > irq_thread > > kthread > > ret_from_fork > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > you are the original author of this code - any comments on this patch? No further comments beyond what has already been discussed, and the long and short of it is it's been so long that I don't remember why that code was there. Given that, I'm not even in a position to ack the change. Sorry. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function 2020-11-08 9:57 ` Russell King - ARM Linux admin (?) (?) @ 2020-11-08 10:47 ` Sam Ravnborg -1 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-08 10:47 UTC (permalink / raw) To: Russell King - ARM Linux admin Cc: Fabio Estevam, Jernej Skrabec, Neil Armstrong, David Airlie, Jonas Karlman, Jonathan Liu, dri-devel, linux-kernel, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, linux-rockchip, Liu Ying, linux-arm-kernel Hi Russell, On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin wrote: > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > Russell, > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > It has been observed that resetting force in the detect function can > > > result in the PHY being powered down in response to hot-plug detect > > > being asserted, even when the HDMI connector is forced on. > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > > > Call trace: > > > dw_hdmi_phy_power_off > > > dw_hdmi_phy_disable > > > dw_hdmi_update_power > > > dw_hdmi_detect > > > dw_hdmi_connector_detect > > > drm_helper_probe_detect_ctx > > > drm_helper_hpd_irq_event > > > dw_hdmi_irq > > > irq_thread_fn > > > irq_thread > > > kthread > > > ret_from_fork > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > you are the original author of this code - any comments on this patch? > > No further comments beyond what has already been discussed, and the > long and short of it is it's been so long that I don't remember why > that code was there. Given that, I'm not even in a position to ack > the change. Sorry. Thanks for the quick reply. Given that this fixes a problem for Jonathan I will apply this to -fixes if there is no other feedback the next couple of days. If it introduces regression we can take it from there. Jonathan - please ping me if I forget. Sam _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 10:47 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-08 10:47 UTC (permalink / raw) To: Russell King - ARM Linux admin Cc: Fabio Estevam, Jernej Skrabec, Jonathan Liu, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Liu Ying, linux-arm-kernel Hi Russell, On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin wrote: > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > Russell, > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > It has been observed that resetting force in the detect function can > > > result in the PHY being powered down in response to hot-plug detect > > > being asserted, even when the HDMI connector is forced on. > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > > > Call trace: > > > dw_hdmi_phy_power_off > > > dw_hdmi_phy_disable > > > dw_hdmi_update_power > > > dw_hdmi_detect > > > dw_hdmi_connector_detect > > > drm_helper_probe_detect_ctx > > > drm_helper_hpd_irq_event > > > dw_hdmi_irq > > > irq_thread_fn > > > irq_thread > > > kthread > > > ret_from_fork > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > you are the original author of this code - any comments on this patch? > > No further comments beyond what has already been discussed, and the > long and short of it is it's been so long that I don't remember why > that code was there. Given that, I'm not even in a position to ack > the change. Sorry. Thanks for the quick reply. Given that this fixes a problem for Jonathan I will apply this to -fixes if there is no other feedback the next couple of days. If it introduces regression we can take it from there. Jonathan - please ping me if I forget. Sam ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 10:47 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-08 10:47 UTC (permalink / raw) To: Russell King - ARM Linux admin Cc: Fabio Estevam, Jernej Skrabec, Neil Armstrong, David Airlie, Jonas Karlman, Jonathan Liu, dri-devel, linux-kernel, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, linux-rockchip, Liu Ying, linux-arm-kernel Hi Russell, On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin wrote: > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > Russell, > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > It has been observed that resetting force in the detect function can > > > result in the PHY being powered down in response to hot-plug detect > > > being asserted, even when the HDMI connector is forced on. > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > > > Call trace: > > > dw_hdmi_phy_power_off > > > dw_hdmi_phy_disable > > > dw_hdmi_update_power > > > dw_hdmi_detect > > > dw_hdmi_connector_detect > > > drm_helper_probe_detect_ctx > > > drm_helper_hpd_irq_event > > > dw_hdmi_irq > > > irq_thread_fn > > > irq_thread > > > kthread > > > ret_from_fork > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > you are the original author of this code - any comments on this patch? > > No further comments beyond what has already been discussed, and the > long and short of it is it's been so long that I don't remember why > that code was there. Given that, I'm not even in a position to ack > the change. Sorry. Thanks for the quick reply. Given that this fixes a problem for Jonathan I will apply this to -fixes if there is no other feedback the next couple of days. If it introduces regression we can take it from there. Jonathan - please ping me if I forget. Sam _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-08 10:47 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-08 10:47 UTC (permalink / raw) To: Russell King - ARM Linux admin Cc: Fabio Estevam, Jernej Skrabec, Neil Armstrong, David Airlie, Jonas Karlman, Jonathan Liu, dri-devel, linux-kernel, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, linux-rockchip, Liu Ying, linux-arm-kernel Hi Russell, On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin wrote: > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > Russell, > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > It has been observed that resetting force in the detect function can > > > result in the PHY being powered down in response to hot-plug detect > > > being asserted, even when the HDMI connector is forced on. > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > > > Call trace: > > > dw_hdmi_phy_power_off > > > dw_hdmi_phy_disable > > > dw_hdmi_update_power > > > dw_hdmi_detect > > > dw_hdmi_connector_detect > > > drm_helper_probe_detect_ctx > > > drm_helper_hpd_irq_event > > > dw_hdmi_irq > > > irq_thread_fn > > > irq_thread > > > kthread > > > ret_from_fork > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > you are the original author of this code - any comments on this patch? > > No further comments beyond what has already been discussed, and the > long and short of it is it's been so long that I don't remember why > that code was there. Given that, I'm not even in a position to ack > the change. Sorry. Thanks for the quick reply. Given that this fixes a problem for Jonathan I will apply this to -fixes if there is no other feedback the next couple of days. If it introduces regression we can take it from there. Jonathan - please ping me if I forget. Sam _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function 2020-11-08 10:47 ` Sam Ravnborg ` (2 preceding siblings ...) (?) @ 2020-11-11 7:57 ` Jonathan Liu -1 siblings, 0 replies; 25+ messages in thread From: Jonathan Liu @ 2020-11-11 7:57 UTC (permalink / raw) To: Sam Ravnborg Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, Russell King - ARM Linux admin, dri-devel, linux-kernel, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, linux-rockchip, Liu Ying, linux-arm-kernel [-- Attachment #1.1: Type: text/plain, Size: 1968 bytes --] Hi Sam, On Sun, 8 Nov 2020 at 9:47 pm, Sam Ravnborg <sam@ravnborg.org> wrote: > Hi Russell, > > On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin > wrote: > > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > > Russell, > > > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > > It has been observed that resetting force in the detect function can > > > > result in the PHY being powered down in response to hot-plug detect > > > > being asserted, even when the HDMI connector is forced on. > > > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 > iterations > > > > > > > > Call trace: > > > > dw_hdmi_phy_power_off > > > > dw_hdmi_phy_disable > > > > dw_hdmi_update_power > > > > dw_hdmi_detect > > > > dw_hdmi_connector_detect > > > > drm_helper_probe_detect_ctx > > > > drm_helper_hpd_irq_event > > > > dw_hdmi_irq > > > > irq_thread_fn > > > > irq_thread > > > > kthread > > > > ret_from_fork > > > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode > forcing") > > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > > > you are the original author of this code - any comments on this patch? > > > > No further comments beyond what has already been discussed, and the > > long and short of it is it's been so long that I don't remember why > > that code was there. Given that, I'm not even in a position to ack > > the change. Sorry. > Thanks for the quick reply. > > Given that this fixes a problem for Jonathan I will apply this to -fixes > if there is no other feedback the next couple of days. > If it introduces regression we can take it from there. > > Jonathan - please ping me if I forget. > > Sam > Ping. Regards, Jonathan [-- Attachment #1.2: Type: text/html, Size: 2956 bytes --] [-- Attachment #2: Type: text/plain, Size: 160 bytes --] _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function 2020-11-08 10:47 ` Sam Ravnborg (?) (?) @ 2020-11-11 7:59 ` Jonathan Liu -1 siblings, 0 replies; 25+ messages in thread From: Jonathan Liu @ 2020-11-11 7:59 UTC (permalink / raw) To: Sam Ravnborg Cc: Fabio Estevam, Jernej Skrabec, Neil Armstrong, David Airlie, Jonas Karlman, Russell King - ARM Linux admin, dri-devel, linux-kernel, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, linux-rockchip, Liu Ying, linux-arm-kernel Hi Sam, On Sun, 8 Nov 2020 at 21:47, Sam Ravnborg <sam@ravnborg.org> wrote: > > Hi Russell, > > On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin wrote: > > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > > Russell, > > > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > > It has been observed that resetting force in the detect function can > > > > result in the PHY being powered down in response to hot-plug detect > > > > being asserted, even when the HDMI connector is forced on. > > > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > > > > > Call trace: > > > > dw_hdmi_phy_power_off > > > > dw_hdmi_phy_disable > > > > dw_hdmi_update_power > > > > dw_hdmi_detect > > > > dw_hdmi_connector_detect > > > > drm_helper_probe_detect_ctx > > > > drm_helper_hpd_irq_event > > > > dw_hdmi_irq > > > > irq_thread_fn > > > > irq_thread > > > > kthread > > > > ret_from_fork > > > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > > > you are the original author of this code - any comments on this patch? > > > > No further comments beyond what has already been discussed, and the > > long and short of it is it's been so long that I don't remember why > > that code was there. Given that, I'm not even in a position to ack > > the change. Sorry. > Thanks for the quick reply. > > Given that this fixes a problem for Jonathan I will apply this to -fixes > if there is no other feedback the next couple of days. > If it introduces regression we can take it from there. > > Jonathan - please ping me if I forget. > > Sam Ping. Regards, Jonathan _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-11 7:59 ` Jonathan Liu 0 siblings, 0 replies; 25+ messages in thread From: Jonathan Liu @ 2020-11-11 7:59 UTC (permalink / raw) To: Sam Ravnborg Cc: Russell King - ARM Linux admin, Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Liu Ying, linux-arm-kernel Hi Sam, On Sun, 8 Nov 2020 at 21:47, Sam Ravnborg <sam@ravnborg.org> wrote: > > Hi Russell, > > On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin wrote: > > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > > Russell, > > > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > > It has been observed that resetting force in the detect function can > > > > result in the PHY being powered down in response to hot-plug detect > > > > being asserted, even when the HDMI connector is forced on. > > > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > > > > > Call trace: > > > > dw_hdmi_phy_power_off > > > > dw_hdmi_phy_disable > > > > dw_hdmi_update_power > > > > dw_hdmi_detect > > > > dw_hdmi_connector_detect > > > > drm_helper_probe_detect_ctx > > > > drm_helper_hpd_irq_event > > > > dw_hdmi_irq > > > > irq_thread_fn > > > > irq_thread > > > > kthread > > > > ret_from_fork > > > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > > > you are the original author of this code - any comments on this patch? > > > > No further comments beyond what has already been discussed, and the > > long and short of it is it's been so long that I don't remember why > > that code was there. Given that, I'm not even in a position to ack > > the change. Sorry. > Thanks for the quick reply. > > Given that this fixes a problem for Jonathan I will apply this to -fixes > if there is no other feedback the next couple of days. > If it introduces regression we can take it from there. > > Jonathan - please ping me if I forget. > > Sam Ping. Regards, Jonathan ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-11 7:59 ` Jonathan Liu 0 siblings, 0 replies; 25+ messages in thread From: Jonathan Liu @ 2020-11-11 7:59 UTC (permalink / raw) To: Sam Ravnborg Cc: Fabio Estevam, Jernej Skrabec, Neil Armstrong, David Airlie, Jonas Karlman, Russell King - ARM Linux admin, dri-devel, linux-kernel, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, linux-rockchip, Liu Ying, linux-arm-kernel Hi Sam, On Sun, 8 Nov 2020 at 21:47, Sam Ravnborg <sam@ravnborg.org> wrote: > > Hi Russell, > > On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin wrote: > > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > > Russell, > > > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > > It has been observed that resetting force in the detect function can > > > > result in the PHY being powered down in response to hot-plug detect > > > > being asserted, even when the HDMI connector is forced on. > > > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > > > > > Call trace: > > > > dw_hdmi_phy_power_off > > > > dw_hdmi_phy_disable > > > > dw_hdmi_update_power > > > > dw_hdmi_detect > > > > dw_hdmi_connector_detect > > > > drm_helper_probe_detect_ctx > > > > drm_helper_hpd_irq_event > > > > dw_hdmi_irq > > > > irq_thread_fn > > > > irq_thread > > > > kthread > > > > ret_from_fork > > > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > > > you are the original author of this code - any comments on this patch? > > > > No further comments beyond what has already been discussed, and the > > long and short of it is it's been so long that I don't remember why > > that code was there. Given that, I'm not even in a position to ack > > the change. Sorry. > Thanks for the quick reply. > > Given that this fixes a problem for Jonathan I will apply this to -fixes > if there is no other feedback the next couple of days. > If it introduces regression we can take it from there. > > Jonathan - please ping me if I forget. > > Sam Ping. Regards, Jonathan _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-11 7:59 ` Jonathan Liu 0 siblings, 0 replies; 25+ messages in thread From: Jonathan Liu @ 2020-11-11 7:59 UTC (permalink / raw) To: Sam Ravnborg Cc: Fabio Estevam, Jernej Skrabec, Neil Armstrong, David Airlie, Jonas Karlman, Russell King - ARM Linux admin, dri-devel, linux-kernel, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, linux-rockchip, Liu Ying, linux-arm-kernel Hi Sam, On Sun, 8 Nov 2020 at 21:47, Sam Ravnborg <sam@ravnborg.org> wrote: > > Hi Russell, > > On Sun, Nov 08, 2020 at 09:57:25AM +0000, Russell King - ARM Linux admin wrote: > > On Sun, Nov 08, 2020 at 10:53:22AM +0100, Sam Ravnborg wrote: > > > Russell, > > > > > > On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > > > > It has been observed that resetting force in the detect function can > > > > result in the PHY being powered down in response to hot-plug detect > > > > being asserted, even when the HDMI connector is forced on. > > > > > > > > Enabling debug messages and adding a call to dump_stack() in > > > > dw_hdmi_phy_power_off() shows the following in dmesg: > > > > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > > > > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > > > > > > > Call trace: > > > > dw_hdmi_phy_power_off > > > > dw_hdmi_phy_disable > > > > dw_hdmi_update_power > > > > dw_hdmi_detect > > > > dw_hdmi_connector_detect > > > > drm_helper_probe_detect_ctx > > > > drm_helper_hpd_irq_event > > > > dw_hdmi_irq > > > > irq_thread_fn > > > > irq_thread > > > > kthread > > > > ret_from_fork > > > > > > > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > > > > Signed-off-by: Jonathan Liu <net147@gmail.com> > > > > > > you are the original author of this code - any comments on this patch? > > > > No further comments beyond what has already been discussed, and the > > long and short of it is it's been so long that I don't remember why > > that code was there. Given that, I'm not even in a position to ack > > the change. Sorry. > Thanks for the quick reply. > > Given that this fixes a problem for Jonathan I will apply this to -fixes > if there is no other feedback the next couple of days. > If it introduces regression we can take it from there. > > Jonathan - please ping me if I forget. > > Sam Ping. Regards, Jonathan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function 2020-10-31 8:17 ` Jonathan Liu (?) (?) @ 2020-11-12 21:22 ` Sam Ravnborg -1 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-12 21:22 UTC (permalink / raw) To: Jonathan Liu Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying, linux-arm-kernel Hi Jonathan On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > It has been observed that resetting force in the detect function can > result in the PHY being powered down in response to hot-plug detect > being asserted, even when the HDMI connector is forced on. > > Enabling debug messages and adding a call to dump_stack() in > dw_hdmi_phy_power_off() shows the following in dmesg: > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > Call trace: > dw_hdmi_phy_power_off > dw_hdmi_phy_disable > dw_hdmi_update_power > dw_hdmi_detect > dw_hdmi_connector_detect > drm_helper_probe_detect_ctx > drm_helper_hpd_irq_event > dw_hdmi_irq > irq_thread_fn > irq_thread > kthread > ret_from_fork > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > Signed-off-by: Jonathan Liu <net147@gmail.com> Applied to drm-misc-fixes. Sam _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-12 21:22 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-12 21:22 UTC (permalink / raw) To: Jonathan Liu Cc: linux-rockchip, dri-devel, linux-kernel, linux-arm-kernel, Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, Andrzej Hajda, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying Hi Jonathan On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > It has been observed that resetting force in the detect function can > result in the PHY being powered down in response to hot-plug detect > being asserted, even when the HDMI connector is forced on. > > Enabling debug messages and adding a call to dump_stack() in > dw_hdmi_phy_power_off() shows the following in dmesg: > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > Call trace: > dw_hdmi_phy_power_off > dw_hdmi_phy_disable > dw_hdmi_update_power > dw_hdmi_detect > dw_hdmi_connector_detect > drm_helper_probe_detect_ctx > drm_helper_hpd_irq_event > dw_hdmi_irq > irq_thread_fn > irq_thread > kthread > ret_from_fork > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > Signed-off-by: Jonathan Liu <net147@gmail.com> Applied to drm-misc-fixes. Sam ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-12 21:22 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-12 21:22 UTC (permalink / raw) To: Jonathan Liu Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying, linux-arm-kernel Hi Jonathan On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > It has been observed that resetting force in the detect function can > result in the PHY being powered down in response to hot-plug detect > being asserted, even when the HDMI connector is forced on. > > Enabling debug messages and adding a call to dump_stack() in > dw_hdmi_phy_power_off() shows the following in dmesg: > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > Call trace: > dw_hdmi_phy_power_off > dw_hdmi_phy_disable > dw_hdmi_update_power > dw_hdmi_detect > dw_hdmi_connector_detect > drm_helper_probe_detect_ctx > drm_helper_hpd_irq_event > dw_hdmi_irq > irq_thread_fn > irq_thread > kthread > ret_from_fork > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > Signed-off-by: Jonathan Liu <net147@gmail.com> Applied to drm-misc-fixes. Sam _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function @ 2020-11-12 21:22 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2020-11-12 21:22 UTC (permalink / raw) To: Jonathan Liu Cc: Fabio Estevam, Jernej Skrabec, Jonas Karlman, David Airlie, Neil Armstrong, linux-kernel, dri-devel, Andrzej Hajda, linux-rockchip, Boris Brezillon, Laurent Pinchart, Russell King, Liu Ying, linux-arm-kernel Hi Jonathan On Sat, Oct 31, 2020 at 07:17:47PM +1100, Jonathan Liu wrote: > It has been observed that resetting force in the detect function can > result in the PHY being powered down in response to hot-plug detect > being asserted, even when the HDMI connector is forced on. > > Enabling debug messages and adding a call to dump_stack() in > dw_hdmi_phy_power_off() shows the following in dmesg: > [ 160.637413] dwhdmi-rockchip ff940000.hdmi: EVENT=plugin > [ 160.637433] dwhdmi-rockchip ff940000.hdmi: PHY powered down in 0 iterations > > Call trace: > dw_hdmi_phy_power_off > dw_hdmi_phy_disable > dw_hdmi_update_power > dw_hdmi_detect > dw_hdmi_connector_detect > drm_helper_probe_detect_ctx > drm_helper_hpd_irq_event > dw_hdmi_irq > irq_thread_fn > irq_thread > kthread > ret_from_fork > > Fixes: 381f05a7a842 ("drm: bridge/dw_hdmi: add connector mode forcing") > Signed-off-by: Jonathan Liu <net147@gmail.com> Applied to drm-misc-fixes. Sam _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2020-11-12 21:23 UTC | newest] Thread overview: 25+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-10-31 8:17 [PATCH] drm: bridge: dw-hdmi: Avoid resetting force in the detect function Jonathan Liu 2020-10-31 8:17 ` Jonathan Liu 2020-10-31 8:17 ` Jonathan Liu 2020-10-31 8:17 ` Jonathan Liu 2020-11-08 9:53 ` Sam Ravnborg 2020-11-08 9:53 ` Sam Ravnborg 2020-11-08 9:53 ` Sam Ravnborg 2020-11-08 9:53 ` Sam Ravnborg 2020-11-08 9:57 ` Russell King - ARM Linux admin 2020-11-08 9:57 ` Russell King - ARM Linux admin 2020-11-08 9:57 ` Russell King - ARM Linux admin 2020-11-08 9:57 ` Russell King - ARM Linux admin 2020-11-08 10:47 ` Sam Ravnborg 2020-11-08 10:47 ` Sam Ravnborg 2020-11-08 10:47 ` Sam Ravnborg 2020-11-08 10:47 ` Sam Ravnborg 2020-11-11 7:57 ` Jonathan Liu 2020-11-11 7:59 ` Jonathan Liu 2020-11-11 7:59 ` Jonathan Liu 2020-11-11 7:59 ` Jonathan Liu 2020-11-11 7:59 ` Jonathan Liu 2020-11-12 21:22 ` Sam Ravnborg 2020-11-12 21:22 ` Sam Ravnborg 2020-11-12 21:22 ` Sam Ravnborg 2020-11-12 21:22 ` Sam Ravnborg
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.