intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: "Sharma, Swati2" <swati2.sharma@intel.com>
Cc: intel-gfx@lists.freedesktop.org,
	Ankit Nautiyal <ankit.k.nautiyal@intel.com>,
	Uma Shankar <uma.shankar@intel.com>,
	Jani Nikula <jani.nikula@intel.com>,
	Ville Syrj_l_ <ville.syrjala@linux.intel.com>,
	Manasi Navare <manasi.d.navare@intel.com>,
	Jos_ Roberto de Souza <jose.souza@intel.com>,
	Sean Paul <seanpaul@chromium.org>,
	stable@vger.kernel.org
Subject: Re: [Intel-gfx] [v3][PATCH] drm/i915/display: Drop redundant debug print
Date: Mon, 16 Aug 2021 15:01:10 +0300	[thread overview]
Message-ID: <20210816120110.GA2739849@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <4d4c94a4-2344-068d-5096-262b0ad70602@intel.com>

On Mon, Aug 16, 2021 at 05:23:00PM +0530, Sharma, Swati2 wrote:
> On 12-Aug-21 9:31 PM, Imre Deak wrote:
> > On Thu, Aug 12, 2021 at 06:41:07PM +0530, Swati Sharma wrote:
> > > drm_dp_dpcd_read/write already has debug error message.
> > > Drop redundant error messages which gives false
> > > status even if correct value is read in drm_dp_dpcd_read().
> > > 
> > > v2: -Added fixes tag (Ankit)
> > > v3: -Fixed build error (CI)
> > > 
> > > Fixes: 9488a030ac91 ("drm/i915: Add support for enabling link status and recovery")
> > > Cc: Swati Sharma <swati2.sharma@intel.com>
> > > Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> > > Cc: Uma Shankar <uma.shankar@intel.com> (v2)
> > > Cc: Jani Nikula <jani.nikula@intel.com>
> > > Cc: "Ville Syrj_l_" <ville.syrjala@linux.intel.com>
> > > Cc: Imre Deak <imre.deak@intel.com>
> > > Cc: Manasi Navare <manasi.d.navare@intel.com>
> > > Cc: Uma Shankar <uma.shankar@intel.com>
> > > Cc: "Jos_ Roberto de Souza" <jose.souza@intel.com>
> > > Cc: Sean Paul <seanpaul@chromium.org>
> > > Cc: <stable@vger.kernel.org> # v5.12+
> > > 
> > > Link: https://patchwork.freedesktop.org/patch/msgid/20201218103723.30844-12-ankit.k.nautiyal@intel.com
> > > 
> > > Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
> > > ---
> > >   drivers/gpu/drm/i915/display/intel_dp.c | 9 ++-------
> > >   1 file changed, 2 insertions(+), 7 deletions(-)
> > > 
> > > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> > > index c386ef8eb200..2526c9c8c690 100644
> > > --- a/drivers/gpu/drm/i915/display/intel_dp.c
> > > +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> > > @@ -3864,23 +3864,18 @@ static void intel_dp_check_device_service_irq(struct intel_dp *intel_dp)
> > >   static void intel_dp_check_link_service_irq(struct intel_dp *intel_dp)
> > >   {
> > > -	struct drm_i915_private *i915 = dp_to_i915(intel_dp);
> > >   	u8 val;
> > >   	if (intel_dp->dpcd[DP_DPCD_REV] < 0x11)
> > >   		return;
> > >   	if (drm_dp_dpcd_readb(&intel_dp->aux,
> > > -			      DP_LINK_SERVICE_IRQ_VECTOR_ESI0, &val) != 1 || !val) {
> > > -		drm_dbg_kms(&i915->drm, "Error in reading link service irq vector\n");
> > 
> > The only problem seems to be that for !val the debug print is incorrect,
> > so maybe just have a separate check for that after this one for the read()
> > and return w/o the debug message?
> > 
> > Is it really a stable material, since the change wouldn't have any
> > effect for regular users?
> 
> W/o this change in case of valid short pulse this error message will
> come even if it doesn't have anything to do with link service irq. For
> ex: in case of hdcp we keep getting unnecessary error message because
> the value read is 0 which will always be the case unless its really a
> link failure between PCON and HDMI2.1 sink.

Yes, that's why I suggested to return for the '0 value read' case
without any message printed, but still keep the message for the case
when the drm_dp_dpcd_readb() fails.

Note that it's not an error message but a debug message.

> Also, code is written in accordance with other IRQ func() above like
> intel_dp_check_device_service_irq().

Ok, it's good to keep them in sync at least, so I'm ok with removing the
debug messages from here too.

> > > +			      DP_LINK_SERVICE_IRQ_VECTOR_ESI0, &val) != 1 || !val)
> > >   		return;
> > > -	}
> > >   	if (drm_dp_dpcd_writeb(&intel_dp->aux,
> > > -			       DP_LINK_SERVICE_IRQ_VECTOR_ESI0, val) != 1) {
> > > -		drm_dbg_kms(&i915->drm, "Error in writing link service irq vector\n");
> > > +			       DP_LINK_SERVICE_IRQ_VECTOR_ESI0, val) != 1)
> > >   		return;
> > > -	}
> > >   	if (val & HDMI_LINK_STATUS_CHANGED)
> > >   		intel_dp_handle_hdmi_link_status_change(intel_dp);
> > > -- 
> > > 2.25.1
> > > 
> 
> -- 
> ~Swati Sharma

  reply	other threads:[~2021-08-16 12:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12 13:11 [Intel-gfx] [v3][PATCH] drm/i915/display: Drop redundant debug print Swati Sharma
2021-08-12 16:01 ` Imre Deak
2021-08-16 11:53   ` Sharma, Swati2
2021-08-16 12:01     ` Imre Deak [this message]
2021-08-12 18:44 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: Drop redundant debug print (rev3) Patchwork
2021-08-12 23:12 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " 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=20210816120110.GA2739849@ideak-desk.fi.intel.com \
    --to=imre.deak@intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=jose.souza@intel.com \
    --cc=manasi.d.navare@intel.com \
    --cc=seanpaul@chromium.org \
    --cc=stable@vger.kernel.org \
    --cc=swati2.sharma@intel.com \
    --cc=uma.shankar@intel.com \
    --cc=ville.syrjala@linux.intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).