All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ausmus, James" <james.ausmus@intel.com>
To: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Intel GFX <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 2/9] drm/i915/mst: Print active mst links after update
Date: Thu, 14 Sep 2017 13:58:14 -0700	[thread overview]
Message-ID: <CAA1Hj7R-06gfJ2g0xfASMQyzW09y2915DLKx9khJzfarRC_Hag@mail.gmail.com> (raw)
In-Reply-To: <20170912235730.3492-2-dhinakaran.pandiyan@intel.com>

On Tue, Sep 12, 2017 at 4:57 PM, Dhinakaran Pandiyan
<dhinakaran.pandiyan@intel.com> wrote:
> Both mst_disable_dp and mst_post_disable_dp print number of active links
> before the variable has been updated. Move the print statement in
> mst_disable_dp after the decrement so that the printed values indicate
> the disabing of a mst connector. Also, add some text to clarify what we
> are printing.
>
> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>

Reviewed-by: James Ausmus <james.ausmus@intel.com>

> ---
>  drivers/gpu/drm/i915/intel_dp_mst.c | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c
> index 88d1d2b9ac56..9a396f483f8b 100644
> --- a/drivers/gpu/drm/i915/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/intel_dp_mst.c
> @@ -133,7 +133,7 @@ static void intel_mst_disable_dp(struct intel_encoder *encoder,
>                 to_intel_connector(old_conn_state->connector);
>         int ret;
>
> -       DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
> +       DRM_DEBUG_KMS("active links %d\n", intel_dp->active_mst_links);
>
>         drm_dp_mst_reset_vcpi_slots(&intel_dp->mst_mgr, connector->port);
>
> @@ -155,8 +155,6 @@ static void intel_mst_post_disable_dp(struct intel_encoder *encoder,
>         struct intel_connector *connector =
>                 to_intel_connector(old_conn_state->connector);
>
> -       DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
> -
>         /* this can fail */
>         drm_dp_check_act_status(&intel_dp->mst_mgr);
>         /* and this can also fail */
> @@ -173,6 +171,7 @@ static void intel_mst_post_disable_dp(struct intel_encoder *encoder,
>
>                 intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF);
>         }
> +       DRM_DEBUG_KMS("active links %d\n", intel_dp->active_mst_links);
>  }
>
>  static void intel_mst_pre_enable_dp(struct intel_encoder *encoder,
> @@ -195,7 +194,7 @@ static void intel_mst_pre_enable_dp(struct intel_encoder *encoder,
>         connector->encoder = encoder;
>         intel_mst->connector = connector;
>
> -       DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
> +       DRM_DEBUG_KMS("active links %d\n", intel_dp->active_mst_links);
>
>         if (intel_dp->active_mst_links == 0)
>                 intel_dig_port->base.pre_enable(&intel_dig_port->base,
> @@ -229,7 +228,7 @@ static void intel_mst_enable_dp(struct intel_encoder *encoder,
>         enum port port = intel_dig_port->port;
>         int ret;
>
> -       DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links);
> +       DRM_DEBUG_KMS("active links %d\n", intel_dp->active_mst_links);
>
>         if (intel_wait_for_register(dev_priv,
>                                     DP_TP_STATUS(port),
> --
> 2.11.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 


James Ausmus
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-09-14 20:58 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-12 23:57 [PATCH 1/9] drm/i915/mst: Debug log connector name in destroy_connector() Dhinakaran Pandiyan
2017-09-12 23:57 ` [PATCH 2/9] drm/i915/mst: Print active mst links after update Dhinakaran Pandiyan
2017-09-14 20:58   ` Ausmus, James [this message]
2017-09-12 23:57 ` [PATCH 3/9] drm/i915/dp: Fix buffer size for sink_irq_esi read Dhinakaran Pandiyan
2017-09-14 21:10   ` Ausmus, James
2017-09-12 23:57 ` [PATCH 4/9] drm/i915/dp: Avoid more dpcd transactions after resume failure Dhinakaran Pandiyan
2017-09-13 13:24   ` Ville Syrjälä
2017-09-13 20:21     ` Pandiyan, Dhinakaran
2017-09-12 23:57 ` [PATCH 5/9] drm/i915/dp: Remove intel_dp->is_mst check in intel_dp_check_mst_status Dhinakaran Pandiyan
2017-09-13  9:32   ` Jani Nikula
2017-09-13 20:13     ` Pandiyan, Dhinakaran
2017-09-13 13:31   ` Ville Syrjälä
2017-09-13 20:33     ` Pandiyan, Dhinakaran
2017-09-12 23:57 ` [PATCH 6/9] drm/i915/dp: Handle check_mst_status() failure in one place Dhinakaran Pandiyan
2017-09-14 21:32   ` Ausmus, James
2017-09-14 21:52     ` Pandiyan, Dhinakaran
2017-09-12 23:57 ` [PATCH 7/9] drm/i915/dp: Avoid double-printing esi regs Dhinakaran Pandiyan
2017-09-14 20:42   ` Ausmus, James
2017-09-12 23:57 ` [PATCH 8/9] drm/i915/dp: Protect link training with connection mutex Dhinakaran Pandiyan
2017-09-14 22:26   ` Ausmus, James
2017-09-15 18:16     ` Pandiyan, Dhinakaran
2017-09-15 18:38     ` Manasi Navare
2017-09-15 18:57       ` Ausmus, James
2017-09-15 10:10   ` Ville Syrjälä
2017-09-18 21:50     ` Pandiyan, Dhinakaran
2017-09-19 12:42       ` Ville Syrjälä
2017-09-19 19:21         ` Pandiyan, Dhinakaran
2017-09-12 23:57 ` [PATCH 9/9] drm/i915/dp: Remove redundant can_mst checks in intel_dp_configure_mst() Dhinakaran Pandiyan
2017-09-14 22:36   ` Ausmus, James
2017-09-15 18:29     ` Pandiyan, Dhinakaran
2017-09-13  0:19 ` ✗ Fi.CI.BAT: failure for series starting with [1/9] drm/i915/mst: Debug log connector name in destroy_connector() Patchwork
2017-09-14  0:20 ` [PATCH 1/9] " Ausmus, James
2017-09-14 19:22   ` Pandiyan, Dhinakaran

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=CAA1Hj7R-06gfJ2g0xfASMQyzW09y2915DLKx9khJzfarRC_Hag@mail.gmail.com \
    --to=james.ausmus@intel.com \
    --cc=dhinakaran.pandiyan@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: link
Be 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.