From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Hermes Wu <Hermes.Wu@ite.com.tw>
Cc: Kenneth Hung <Kenneth.hung@ite.com.tw>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <rfoss@kernel.org>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Allen Chen <allen.chen@ite.com.tw>,
"open list:DRM DRIVERS" <dri-devel@lists.freedesktop.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 06/11] drm/bridge: it6505: fix HDCP Bstatus check.
Date: Thu, 26 Sep 2024 10:10:42 +0200 [thread overview]
Message-ID: <06569bf4-4ec5-4ea8-a2df-e696deb9d4e2@collabora.com> (raw)
In-Reply-To: <20240926075018.22328-2-Hermes.Wu@ite.com.tw>
Il 26/09/24 09:50, Hermes Wu ha scritto:
> From: Hermes Wu <Hermes.wu@ite.com.tw>
>
> When HDCP is activated, A DisplayPort source receives CP_IRQ from the
> sink shall check Bstatus from DPCD and process the corresponding value.
>
>
> Fixes: b5c84a9edcd4 ("drm/bridge: add it6505 driver")
> Signed-off-by: Hermes Wu <Hermes.wu@ite.com.tw>
> ---
> drivers/gpu/drm/bridge/ite-it6505.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c
> index 5d5ce12cd054..d2ec3dfc57d6 100644
> --- a/drivers/gpu/drm/bridge/ite-it6505.c
> +++ b/drivers/gpu/drm/bridge/ite-it6505.c
> @@ -2322,14 +2322,20 @@ static int it6505_process_hpd_irq(struct it6505 *it6505)
> DRM_DEV_DEBUG_DRIVER(dev, "dp_irq_vector = 0x%02x", dp_irq_vector);
>
> if (dp_irq_vector & DP_CP_IRQ) {
> - it6505_set_bits(it6505, REG_HDCP_TRIGGER, HDCP_TRIGGER_CPIRQ,
> - HDCP_TRIGGER_CPIRQ);
> -
> bstatus = it6505_dpcd_read(it6505, DP_AUX_HDCP_BSTATUS);
> if (bstatus < 0)
> return bstatus;
>
> DRM_DEV_DEBUG_DRIVER(dev, "Bstatus = 0x%02x", bstatus);
> +
> + /*check BSTATUS when recive CP_IRQ */
/* Check .... */
> + if (bstatus & DP_BSTATUS_R0_PRIME_READY &&
> + it6505->hdcp_status == HDCP_AUTH_GOING)
> + it6505_set_bits(it6505, REG_HDCP_TRIGGER, HDCP_TRIGGER_CPIRQ,
> + HDCP_TRIGGER_CPIRQ);
> + else if (bstatus & (DP_BSTATUS_REAUTH_REQ | DP_BSTATUS_LINK_FAILURE) &&
> + it6505->hdcp_status == HDCP_AUTH_DONE)
> + it6505_start_hdcp(it6505);
> }
>
> ret = drm_dp_dpcd_read_link_status(&it6505->aux, link_status);
next prev parent reply other threads:[~2024-09-26 8:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-26 7:50 [PATCH v4 05/11] drm/bridge: it6505: increase supports of HDCP repeater ksv devices Hermes Wu
2024-09-26 7:50 ` [PATCH v4 06/11] drm/bridge: it6505: fix HDCP Bstatus check Hermes Wu
2024-09-26 8:09 ` Dmitry Baryshkov
2024-09-26 8:10 ` AngeloGioacchino Del Regno [this message]
2024-09-26 7:50 ` [PATCH v4 07/11] drm/bridge: it6505: fix HDCP encription not enable when R0 ready Hermes Wu
2024-09-26 7:50 ` [PATCH v4 08/11] drm/bridge: it6505: fix HDCP KSV list did not read correctly Hermes Wu
2024-09-26 8:10 ` AngeloGioacchino Del Regno
2024-09-26 7:50 ` [PATCH v4 09/11] drm/bridge: it6505: fix HDCP CTS compare V matching without retry Hermes Wu
2024-09-26 8:07 ` [PATCH v4 05/11] drm/bridge: it6505: increase supports of HDCP repeater ksv devices Dmitry Baryshkov
2024-09-27 2:18 ` Hermes.Wu
2024-09-27 8:50 ` Dmitry Baryshkov
2024-09-27 4:06 ` Hermes.Wu
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=06569bf4-4ec5-4ea8-a2df-e696deb9d4e2@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=Hermes.Wu@ite.com.tw \
--cc=Kenneth.hung@ite.com.tw \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=allen.chen@ite.com.tw \
--cc=andrzej.hajda@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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