* [PATCH] drm/i915: Use pipe_name() instead of the pipe number
@ 2013-10-15 13:45 Damien Lespiau
2013-10-15 17:59 ` Ville Syrjälä
0 siblings, 1 reply; 4+ messages in thread
From: Damien Lespiau @ 2013-10-15 13:45 UTC (permalink / raw)
To: intel-gfx
Yet another direct usage of the pipe number instead of pipe_name().
We've been tracking them lately but managed to miss this one.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
drivers/gpu/drm/i915/intel_display.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index b9cede7..81f7fa5 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -10734,11 +10734,11 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev)
}
encoder->connectors_active = false;
- DRM_DEBUG_KMS("[ENCODER:%d:%s] hw state readout: %s, pipe=%i\n",
+ DRM_DEBUG_KMS("[ENCODER:%d:%s] hw state readout: %s, pipe %c\n",
encoder->base.base.id,
drm_get_encoder_name(&encoder->base),
encoder->base.crtc ? "enabled" : "disabled",
- pipe);
+ pipe_name(pipe));
}
list_for_each_entry(connector, &dev->mode_config.connector_list,
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: Use pipe_name() instead of the pipe number
2013-10-15 13:45 [PATCH] drm/i915: Use pipe_name() instead of the pipe number Damien Lespiau
@ 2013-10-15 17:59 ` Ville Syrjälä
2013-10-16 11:29 ` Damien Lespiau
0 siblings, 1 reply; 4+ messages in thread
From: Ville Syrjälä @ 2013-10-15 17:59 UTC (permalink / raw)
To: Damien Lespiau; +Cc: intel-gfx
On Tue, Oct 15, 2013 at 02:45:43PM +0100, Damien Lespiau wrote:
> Yet another direct usage of the pipe number instead of pipe_name().
> We've been tracking them lately but managed to miss this one.
>
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
I actually see two more in intel_dsi.c and intel_panel.c.
> ---
> drivers/gpu/drm/i915/intel_display.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index b9cede7..81f7fa5 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -10734,11 +10734,11 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev)
> }
>
> encoder->connectors_active = false;
> - DRM_DEBUG_KMS("[ENCODER:%d:%s] hw state readout: %s, pipe=%i\n",
> + DRM_DEBUG_KMS("[ENCODER:%d:%s] hw state readout: %s, pipe %c\n",
> encoder->base.base.id,
> drm_get_encoder_name(&encoder->base),
> encoder->base.crtc ? "enabled" : "disabled",
> - pipe);
> + pipe_name(pipe));
> }
>
> list_for_each_entry(connector, &dev->mode_config.connector_list,
> --
> 1.8.3.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel OTC
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] drm/i915: Use pipe_name() instead of the pipe number
2013-10-15 17:59 ` Ville Syrjälä
@ 2013-10-16 11:29 ` Damien Lespiau
2013-10-16 14:21 ` Daniel Vetter
0 siblings, 1 reply; 4+ messages in thread
From: Damien Lespiau @ 2013-10-16 11:29 UTC (permalink / raw)
To: intel-gfx
Yet other direct usages of the pipe number instead of pipe_name().
We've been tracking them lately but managed to miss these last ones.
v2: Catch them all! (Ville)
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v1)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
drivers/gpu/drm/i915/intel_display.c | 4 ++--
drivers/gpu/drm/i915/intel_dsi.c | 2 +-
drivers/gpu/drm/i915/intel_panel.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 4f1b636..5a40b29 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -10730,11 +10730,11 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev)
}
encoder->connectors_active = false;
- DRM_DEBUG_KMS("[ENCODER:%d:%s] hw state readout: %s, pipe=%i\n",
+ DRM_DEBUG_KMS("[ENCODER:%d:%s] hw state readout: %s, pipe %c\n",
encoder->base.base.id,
drm_get_encoder_name(&encoder->base),
encoder->base.crtc ? "enabled" : "disabled",
- pipe);
+ pipe_name(pipe));
}
list_for_each_entry(connector, &dev->mode_config.connector_list,
diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c
index 9a2fdd2..d257b09 100644
--- a/drivers/gpu/drm/i915/intel_dsi.c
+++ b/drivers/gpu/drm/i915/intel_dsi.c
@@ -350,7 +350,7 @@ static void intel_dsi_mode_set(struct intel_encoder *intel_encoder)
unsigned int bpp = intel_crtc->config.pipe_bpp;
u32 val, tmp;
- DRM_DEBUG_KMS("pipe %d\n", pipe);
+ DRM_DEBUG_KMS("pipe %c\n", pipe_name(pipe));
/* Update the DSI PLL */
vlv_enable_dsi_pll(intel_encoder);
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 1f29960..de15186 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -574,7 +574,7 @@ void intel_panel_enable_backlight(struct drm_device *dev,
intel_pipe_to_cpu_transcoder(dev_priv, pipe);
unsigned long flags;
- DRM_DEBUG_KMS("pipe=%d\n", pipe);
+ DRM_DEBUG_KMS("pipe %c\n", pipe_name(pipe));
spin_lock_irqsave(&dev_priv->backlight.lock, flags);
--
1.8.3.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: Use pipe_name() instead of the pipe number
2013-10-16 11:29 ` Damien Lespiau
@ 2013-10-16 14:21 ` Daniel Vetter
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Vetter @ 2013-10-16 14:21 UTC (permalink / raw)
To: Damien Lespiau; +Cc: intel-gfx
On Wed, Oct 16, 2013 at 12:29:54PM +0100, Damien Lespiau wrote:
> Yet other direct usages of the pipe number instead of pipe_name().
> We've been tracking them lately but managed to miss these last ones.
>
> v2: Catch them all! (Ville)
>
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v1)
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-16 14:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-15 13:45 [PATCH] drm/i915: Use pipe_name() instead of the pipe number Damien Lespiau
2013-10-15 17:59 ` Ville Syrjälä
2013-10-16 11:29 ` Damien Lespiau
2013-10-16 14:21 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox