All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Shankar, Uma" <uma.shankar@intel.com>
To: "C, Ramalingam" <ramalingam.c@intel.com>,
	intel-gfx <intel-gfx@lists.freedesktop.org>,
	Daniel Vetter <daniel@ffwll.ch>
Subject: Re: [PATCH v2] drm/i915/hdcp: debug logs for sink related failures
Date: Tue, 9 Jul 2019 10:46:38 +0000	[thread overview]
Message-ID: <E7C9878FBA1C6D42A1CA3F62AEB6945F8212A107@BGSMSX104.gar.corp.intel.com> (raw)
In-Reply-To: <20190708113319.2517-1-ramalingam.c@intel.com>



>-----Original Message-----
>From: C, Ramalingam
>Sent: Monday, July 8, 2019 5:03 PM
>To: intel-gfx <intel-gfx@lists.freedesktop.org>; Daniel Vetter <daniel@ffwll.ch>
>Cc: Shankar, Uma <uma.shankar@intel.com>; C, Ramalingam
><ramalingam.c@intel.com>
>Subject: [PATCH v2] drm/i915/hdcp: debug logs for sink related failures
>
>Adding few more debug logs to identify the sink specific HDCP failures along with a
>out of mem failure.
>
>v2:
>  Capturing the Bug and a-b
>
>Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110991
>Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
>cc: Daniel Vetter <daniel@ffwll.ch>
>Acked-by: Daniel Vetter <daniel@ffwll.ch>
>---

Pushed to dinq. Thanks for the patch.

Regards,
Uma Shankar

> drivers/gpu/drm/i915/display/intel_hdcp.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/gpu/drm/i915/display/intel_hdcp.c
>b/drivers/gpu/drm/i915/display/intel_hdcp.c
>index bc3a94d491c4..a78139f9e847 100644
>--- a/drivers/gpu/drm/i915/display/intel_hdcp.c
>+++ b/drivers/gpu/drm/i915/display/intel_hdcp.c
>@@ -523,12 +523,16 @@ int intel_hdcp_auth_downstream(struct intel_connector
>*connector)
> 	 * authentication.
> 	 */
> 	num_downstream = DRM_HDCP_NUM_DOWNSTREAM(bstatus[0]);
>-	if (num_downstream == 0)
>+	if (num_downstream == 0) {
>+		DRM_DEBUG_KMS("Repeater with zero downstream devices\n");
> 		return -EINVAL;
>+	}
>
> 	ksv_fifo = kcalloc(DRM_HDCP_KSV_LEN, num_downstream, GFP_KERNEL);
>-	if (!ksv_fifo)
>+	if (!ksv_fifo) {
>+		DRM_DEBUG_KMS("Out of mem: ksv_fifo\n");
> 		return -ENOMEM;
>+	}
>
> 	ret = shim->read_ksv_fifo(intel_dig_port, num_downstream, ksv_fifo);
> 	if (ret)
>@@ -1206,8 +1210,10 @@ static int hdcp2_authentication_key_exchange(struct
>intel_connector *connector)
> 	if (ret < 0)
> 		return ret;
>
>-	if (msgs.send_cert.rx_caps[0] != HDCP_2_2_RX_CAPS_VERSION_VAL)
>+	if (msgs.send_cert.rx_caps[0] != HDCP_2_2_RX_CAPS_VERSION_VAL) {
>+		DRM_DEBUG_KMS("cert.rx_caps dont claim HDCP2.2\n");
> 		return -EINVAL;
>+	}
>
> 	hdcp->is_repeater = HDCP_2_2_RX_REPEATER(msgs.send_cert.rx_caps[2]);
>
>--
>2.19.1

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

      parent reply	other threads:[~2019-07-09 10:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-08 11:33 [PATCH v2] drm/i915/hdcp: debug logs for sink related failures Ramalingam C
2019-07-08 19:29 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-07-09  9:12 ` ✓ Fi.CI.IGT: " Patchwork
2019-07-09 10:46 ` Shankar, Uma [this message]

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=E7C9878FBA1C6D42A1CA3F62AEB6945F8212A107@BGSMSX104.gar.corp.intel.com \
    --to=uma.shankar@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ramalingam.c@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 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.