Skip to contentSkip to conversation

drm/bridge: analogix_dp: Downgrade "Link Training" messages to dev_dbg

PATCH Applied Marc Zyngier 3 participants 3 messages Aug 5, 2018 – Sep 13, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge: analogix_dp: Downgrade "Link Training" messages to dev_dbg

The Analogix DP bridge driver is pretty verbose, and outputs things like

[  619.414067] rockchip-dp ff970000.edp: Link Training Clock Recovery success
[  619.429233] rockchip-dp ff970000.edp: Link Training success!

each time the display gets unblanked. While it is good to know that the device is behaving correctly, users already know that because they can see some video output.

Let's keep these messages for cases where we need to actually debug the driver (we have dynamic debug to enable them at runtime if need be), and let's keep the kernel quiet otherwise.

---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +2 -2
index 2bcbfadb6ac5..0d715a375ff9 100644
@@ -554,7 +554,7 @@ static int analogix_dp_process_clock_recovery(struct analogix_dp_device *dp)
 		if (retval < 0)
 			return retval;
 
-		dev_info(dp->dev, "Link Training Clock Recovery success\n");
+		dev_dbg(dp->dev, "Link Training Clock Recovery success\n");
 		dp->link_train.lt_state = EQUALIZER_TRAINING;
 	} else {
 		for (lane = 0; lane < lane_count; lane++) {
@@ -634,7 +634,7 @@ static int analogix_dp_process_equalizer_training(struct analogix_dp_device *dp)
 		if (retval < 0)
 			return retval;
 
-		dev_info(dp->dev, "Link Training success!\n");
+		dev_dbg(dp->dev, "Link Training success!\n");
 		analogix_dp_get_link_bandwidth(dp, &reg);
 		dp->link_train.link_rate = reg;
 		dev_dbg(dp->dev, "final bandwidth = %.2x\n",
Signature · 1 line
2.14.2
reviewer Reviewed-by on v1 1/1
#1 lore raw

Hi Marc,

Thank you for the patch.

Quoted 10 lines · On Sunday, 5 August 2018 20:28:57 EEST Marc Zyngier wrote:

The Analogix DP bridge driver is pretty verbose, and outputs things like

[  619.414067] rockchip-dp ff970000.edp: Link Training Clock Recovery

success [ 619.429233] rockchip-dp ff970000.edp: Link Training success!

each time the display gets unblanked. While it is good to know that the device is behaving correctly, users already know that because they can see some video output.

Quoted 5 lines

Let's keep these messages for cases where we need to actually debug the driver (we have dynamic debug to enable them at runtime if need be), and let's keep the kernel quiet otherwise.

Quoted 29 lines
---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 2bcbfadb6ac5..0d715a375ff9 100644

drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +1 -1
@@ -554,7 +554,7 @@ static int analogix_dp_process_clock_recovery(struct
 analogix_dp_device *dp)
 		if (retval < 0)
 			return retval;
 
-		dev_info(dp->dev, "Link Training Clock Recovery success\n");
+		dev_dbg(dp->dev, "Link Training Clock Recovery success\n");
 		dp->link_train.lt_state = EQUALIZER_TRAINING;
 	} else {
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +1 -1
 		for (lane = 0; lane < lane_count; lane++) {
@@ -634,7 +634,7 @@ static int analogix_dp_process_equalizer_training(struct
 analogix_dp_device *dp)
 		if (retval < 0)
 			return retval;
 
-		dev_info(dp->dev, "Link Training success!\n");
+		dev_dbg(dp->dev, "Link Training success!\n");
 		analogix_dp_get_link_bandwidth(dp, &reg);
 		dp->link_train.link_rate = reg;

dev_dbg(dp->dev, "final bandwidth = %.2x\n",

Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw
In reply to Marc Zyngier
Quoted 10 lines · Marc Zyngier

The Analogix DP bridge driver is pretty verbose, and outputs things like

[  619.414067] rockchip-dp ff970000.edp: Link Training Clock Recovery success
[  619.429233] rockchip-dp ff970000.edp: Link Training success!

each time the display gets unblanked. While it is good to know that the device is behaving correctly, users already know that because they can see some video output.

Quoted 5 lines

Let's keep these messages for cases where we need to actually debug the driver (we have dynamic debug to enable them at runtime if need be), and let's keep the kernel quiet otherwise.

Queued to drm-misc-next.

Regards
Andrzej

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel