drm/i915: Make hpd debug messages less cryptic
Subsystems (2)
PATCH 1/1 drm/i915: Make hpd debug messages less cryptic
From: Ville Syrjälä <[email protected]>
Don't print raw numbers, use port_name() and tell the user whether it's long or short without having to figure out what the other magic number means.
--- drivers/gpu/drm/i915/i915_irq.c | 4 +++- drivers/gpu/drm/i915/intel_dp.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +3 -1
@@ -1777,7 +1777,9 @@ static inline void intel_hpd_irq_handler(struct drm_device *dev, long_hpd = (dig_hotplug_reg >> dig_shift) &PORTB_HOTPLUG_LONG_DETECT ; } -DRM_DEBUG_DRIVER ("digital hpd port %d %d\n" , port, long_hpd); +DRM_DEBUG_DRIVER ("digital hpd port %c - %s\n" , +port_name (port), + long_hpd ?"long" :"short" );/* for long HPD pulses we want to have the digital queue happen, but we still want HPD storm detection to function. */ if (long_hpd) {
drivers/gpu/drm/i915/intel_dp.c +2 -1
@@ -4043,7 +4043,8 @@ intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, bool long_hpd)if (intel_dig_port->base.type !=INTEL_OUTPUT_EDP ) intel_dig_port->base.type =INTEL_OUTPUT_DISPLAYPORT ; -DRM_DEBUG_KMS ("got hpd irq on port %d - %s\n" , intel_dig_port->port, +DRM_DEBUG_KMS ("got hpd irq on port %c - %s\n" , +port_name (intel_dig_port->port), long_hpd ?"long" :"short" );if (long_hpd) {
Signature · 6 lines
1.8.5.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · On Mon, Aug 11, 2014 at 06:37:37PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
Don't print raw numbers, use
port_name()and tell the user whether it's long or short without having to figure out what the other magic number means.Signed-off-by Ville Syrjälä <[email protected]>
Signature · 1 line
Damien
Quoted 41 lines
--- drivers/gpu/drm/i915/i915_irq.c | 4 +++- drivers/gpu/drm/i915/intel_dp.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_irq.c +3
-1@@ -1777,7 +1777,9 @@ static inline void intel_hpd_irq_handler(struct drm_device *dev, long_hpd = (dig_hotplug_reg >> dig_shift) &PORTB_HOTPLUG_LONG_DETECT ; } -DRM_DEBUG_DRIVER ("digital hpd port %d %d\n" , port, long_hpd); +DRM_DEBUG_DRIVER ("digital hpd port %c - %s\n" , +port_name (port), + long_hpd ?"long" :"short" );/* for long HPD pulses we want to have the digital queue happen, but we still want HPD storm detection to function. */ if (long_hpd) {drivers/gpu/drm/i915/intel_dp.c +2
-1@@ -4043,7 +4043,8 @@ intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, bool long_hpd)if (intel_dig_port->base.type !=INTEL_OUTPUT_EDP ) intel_dig_port->base.type =INTEL_OUTPUT_DISPLAYPORT ; -DRM_DEBUG_KMS ("got hpd irq on port %d - %s\n" , intel_dig_port->port, +DRM_DEBUG_KMS ("got hpd irq on port %c - %s\n" , +port_name (intel_dig_port->port), long_hpd ?"long" :"short" );if (long_hpd) {Signature · 6 lines
1.8.5.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 10 lines · Damien Lespiau
Quoted 7 lines · On Mon, Aug 11, 2014 at 06:37:37PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
Don't print raw numbers, use
port_name()and tell the user whether it's long or short without having to figure out what the other magic number means.Signed-off-by Ville Syrjälä <[email protected]>Reviewed-by Damien Lespiau <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Quoted 49 lines
Signature · 2 lines
-- DamienQuoted 41 lines
--- drivers/gpu/drm/i915/i915_irq.c | 4 +++- drivers/gpu/drm/i915/intel_dp.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_irq.c +3
-1@@ -1777,7 +1777,9 @@ static inline void intel_hpd_irq_handler(struct drm_device *dev, long_hpd = (dig_hotplug_reg >> dig_shift) &PORTB_HOTPLUG_LONG_DETECT ; } -DRM_DEBUG_DRIVER ("digital hpd port %d %d\n" , port, long_hpd); +DRM_DEBUG_DRIVER ("digital hpd port %c - %s\n" , +port_name (port), + long_hpd ?"long" :"short" );/* for long HPD pulses we want to have the digital queue happen, but we still want HPD storm detection to function. */ if (long_hpd) {drivers/gpu/drm/i915/intel_dp.c +2
-1@@ -4043,7 +4043,8 @@ intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, bool long_hpd)if (intel_dig_port->base.type !=INTEL_OUTPUT_EDP ) intel_dig_port->base.type =INTEL_OUTPUT_DISPLAYPORT ; -DRM_DEBUG_KMS ("got hpd irq on port %d - %s\n" , intel_dig_port->port, +DRM_DEBUG_KMS ("got hpd irq on port %c - %s\n" , +port_name (intel_dig_port->port), long_hpd ?"long" :"short" );if (long_hpd) {Signature · 6 lines
1.8.5.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch