From: Ville Syrjala <ville.syrjala@linux.intel.com> To: intel-gfx@lists.freedesktop.org Subject: [PATCH v2 7/9] drm/i915: Use the canonical [CRTC:%d:%s]/etc. format in i915_display_info Date: Fri, 29 Nov 2019 20:54:32 +0200 [thread overview] Message-ID: <20191129185434.25549-8-ville.syrjala@linux.intel.com> (raw) In-Reply-To: <20191129185434.25549-1-ville.syrjala@linux.intel.com> From: Ville Syrjälä <ville.syrjala@linux.intel.com> Use the canonicalt "[CRTC:%d:%s]" format for the obj id/name in the debugfs display_info dump. Everyone should already be familiar with the format since it's used in the debug logs extensively. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> --- drivers/gpu/drm/i915/i915_debugfs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 3bf7d4e2f940..4dffbff1b8bd 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -2385,11 +2385,11 @@ static void intel_encoder_info(struct seq_file *m, struct drm_device *dev = &dev_priv->drm; struct intel_connector *connector; - seq_printf(m, "\tencoder %d: type: %s, connectors:\n", + seq_printf(m, "\t[ENCODER:%d:%s]: connectors:\n", encoder->base.base.id, encoder->base.name); for_each_connector_on_encoder(dev, &encoder->base, connector) - seq_printf(m, "\t\tconnector %d: type: %s\n", + seq_printf(m, "\t\t[CONNECTOR:%d:%s]\n", connector->base.base.id, connector->base.name); } @@ -2478,7 +2478,7 @@ static void intel_connector_info(struct seq_file *m, struct intel_encoder *intel_encoder = intel_connector->encoder; struct drm_display_mode *mode; - seq_printf(m, "connector %d: type %s, status: %s\n", + seq_printf(m, "[CONNECTOR:%d:%s]: status: %s\n", connector->base.id, connector->name, drm_get_connector_status_name(connector->status)); @@ -2585,8 +2585,8 @@ static void intel_plane_info(struct seq_file *m, struct intel_crtc *crtc) plane_rotation(rot_str, sizeof(rot_str), plane_state->uapi.rotation); - seq_printf(m, "\t--Plane id %d: type=%s, fb=%d,%s,%dx%d, src=" DRM_RECT_FP_FMT ", dst=" DRM_RECT_FMT ", rotation=%s\n", - plane->base.base.id, + seq_printf(m, "\t[PLANE:%d:%s]: type=%s, fb=%d,%s,%dx%d, src=" DRM_RECT_FP_FMT ", dst=" DRM_RECT_FMT ", rotation=%s\n", + plane->base.base.id, plane->base.name, plane_type(plane->base.type), fb ? fb->base.id : 0, fb ? format_name.str : "n/a", @@ -2631,8 +2631,8 @@ static void intel_crtc_info(struct seq_file *m, struct intel_crtc *crtc) const struct intel_crtc_state *crtc_state = to_intel_crtc_state(crtc->base.state); - seq_printf(m, "CRTC %d: pipe: %c, active=%s, (size=%dx%d), dither=%s, bpp=%d\n", - crtc->base.base.id, pipe_name(crtc->pipe), + seq_printf(m, "[CRTC:%d:%s]: active=%s, (size=%dx%d), dither=%s, bpp=%d\n", + crtc->base.base.id, crtc->base.name, yesno(crtc_state->hw.active), crtc_state->pipe_src_w, crtc_state->pipe_src_h, yesno(crtc_state->dither), crtc_state->pipe_bpp); -- 2.23.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
WARNING: multiple messages have this Message-ID (diff)
From: Ville Syrjala <ville.syrjala@linux.intel.com> To: intel-gfx@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v2 7/9] drm/i915: Use the canonical [CRTC:%d:%s]/etc. format in i915_display_info Date: Fri, 29 Nov 2019 20:54:32 +0200 [thread overview] Message-ID: <20191129185434.25549-8-ville.syrjala@linux.intel.com> (raw) Message-ID: <20191129185432.av_v5cQb-QvbYnR4U4daRGnw7K9VJuN1okgS4LWysB4@z> (raw) In-Reply-To: <20191129185434.25549-1-ville.syrjala@linux.intel.com> From: Ville Syrjälä <ville.syrjala@linux.intel.com> Use the canonicalt "[CRTC:%d:%s]" format for the obj id/name in the debugfs display_info dump. Everyone should already be familiar with the format since it's used in the debug logs extensively. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> --- drivers/gpu/drm/i915/i915_debugfs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 3bf7d4e2f940..4dffbff1b8bd 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -2385,11 +2385,11 @@ static void intel_encoder_info(struct seq_file *m, struct drm_device *dev = &dev_priv->drm; struct intel_connector *connector; - seq_printf(m, "\tencoder %d: type: %s, connectors:\n", + seq_printf(m, "\t[ENCODER:%d:%s]: connectors:\n", encoder->base.base.id, encoder->base.name); for_each_connector_on_encoder(dev, &encoder->base, connector) - seq_printf(m, "\t\tconnector %d: type: %s\n", + seq_printf(m, "\t\t[CONNECTOR:%d:%s]\n", connector->base.base.id, connector->base.name); } @@ -2478,7 +2478,7 @@ static void intel_connector_info(struct seq_file *m, struct intel_encoder *intel_encoder = intel_connector->encoder; struct drm_display_mode *mode; - seq_printf(m, "connector %d: type %s, status: %s\n", + seq_printf(m, "[CONNECTOR:%d:%s]: status: %s\n", connector->base.id, connector->name, drm_get_connector_status_name(connector->status)); @@ -2585,8 +2585,8 @@ static void intel_plane_info(struct seq_file *m, struct intel_crtc *crtc) plane_rotation(rot_str, sizeof(rot_str), plane_state->uapi.rotation); - seq_printf(m, "\t--Plane id %d: type=%s, fb=%d,%s,%dx%d, src=" DRM_RECT_FP_FMT ", dst=" DRM_RECT_FMT ", rotation=%s\n", - plane->base.base.id, + seq_printf(m, "\t[PLANE:%d:%s]: type=%s, fb=%d,%s,%dx%d, src=" DRM_RECT_FP_FMT ", dst=" DRM_RECT_FMT ", rotation=%s\n", + plane->base.base.id, plane->base.name, plane_type(plane->base.type), fb ? fb->base.id : 0, fb ? format_name.str : "n/a", @@ -2631,8 +2631,8 @@ static void intel_crtc_info(struct seq_file *m, struct intel_crtc *crtc) const struct intel_crtc_state *crtc_state = to_intel_crtc_state(crtc->base.state); - seq_printf(m, "CRTC %d: pipe: %c, active=%s, (size=%dx%d), dither=%s, bpp=%d\n", - crtc->base.base.id, pipe_name(crtc->pipe), + seq_printf(m, "[CRTC:%d:%s]: active=%s, (size=%dx%d), dither=%s, bpp=%d\n", + crtc->base.base.id, crtc->base.name, yesno(crtc_state->hw.active), crtc_state->pipe_src_w, crtc_state->pipe_src_h, yesno(crtc_state->dither), crtc_state->pipe_bpp); -- 2.23.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-11-29 18:54 UTC|newest] Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-11-29 18:54 [PATCH v2 0/9] drm/i915: i915_display_info cleanup Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-11-29 18:54 ` [PATCH v2 1/9] drm/i915: Use drm_rect to simplify plane {crtc, src}_{x, y, w, h} printing Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-12-02 7:55 ` Ramalingam C 2019-12-02 7:55 ` [Intel-gfx] " Ramalingam C 2019-11-29 18:54 ` [PATCH v2 2/9] drm/i915: Switch to intel_ types in debugfs display_info Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-12-02 8:59 ` Ramalingam C 2019-12-02 8:59 ` [Intel-gfx] " Ramalingam C 2019-11-29 18:54 ` [PATCH v2 3/9] drm/i915: Reorganize plane/fb dump in debugfs Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-12-02 14:27 ` Ramalingam C 2019-12-02 14:27 ` [Intel-gfx] " Ramalingam C 2019-11-29 18:54 ` [PATCH v2 4/9] drm/i915: Refactor debugfs display info code Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-12-02 14:34 ` Ramalingam C 2019-12-02 14:34 ` [Intel-gfx] " Ramalingam C 2019-11-29 18:54 ` [PATCH v2 5/9] drm/i915: Dump the mode for the crtc just the once Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-12-02 14:56 ` Ramalingam C 2019-12-02 14:56 ` [Intel-gfx] " Ramalingam C 2019-11-29 18:54 ` [PATCH v2 6/9] drm/i915: Use drm_modeset_lock_all() in debugfs display info Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-12-02 15:05 ` Ramalingam C 2019-12-02 15:05 ` [Intel-gfx] " Ramalingam C 2019-11-29 18:54 ` Ville Syrjala [this message] 2019-11-29 18:54 ` [Intel-gfx] [PATCH v2 7/9] drm/i915: Use the canonical [CRTC:%d:%s]/etc. format in i915_display_info Ville Syrjala 2019-12-02 15:08 ` Ramalingam C 2019-12-02 15:08 ` [Intel-gfx] " Ramalingam C 2019-12-02 15:43 ` Ramalingam C 2019-12-02 15:43 ` [Intel-gfx] " Ramalingam C 2019-11-29 18:54 ` [PATCH v2 8/9] drm/i915: Dump both the uapi and hw states for crtcs and planes Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-12-02 15:18 ` Ramalingam C 2019-12-02 15:18 ` [Intel-gfx] " Ramalingam C 2019-11-29 18:54 ` [PATCH v2 9/9] drm/i915: Stop using connector->encoder and encoder->crtc links in i915_display_info Ville Syrjala 2019-11-29 18:54 ` [Intel-gfx] " Ville Syrjala 2019-12-02 15:40 ` Ramalingam C 2019-12-02 15:40 ` [Intel-gfx] " Ramalingam C 2019-12-02 16:24 ` Ville Syrjälä 2019-12-02 16:24 ` [Intel-gfx] " Ville Syrjälä 2019-12-02 16:52 ` Ramalingam C 2019-12-02 16:52 ` [Intel-gfx] " Ramalingam C 2019-11-29 21:43 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: i915_display_info cleanup Patchwork 2019-11-29 21:43 ` [Intel-gfx] " Patchwork 2019-11-29 22:27 ` ✓ Fi.CI.BAT: success " Patchwork 2019-11-29 22:27 ` [Intel-gfx] " Patchwork 2019-12-01 1:15 ` ✗ Fi.CI.IGT: failure " Patchwork 2019-12-01 1:15 ` [Intel-gfx] " Patchwork
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20191129185434.25549-8-ville.syrjala@linux.intel.com \ --to=ville.syrjala@linux.intel.com \ --cc=intel-gfx@lists.freedesktop.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.