public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/bridge: it6505: disable HDCP retry when KSV list timeout
Date: Tue, 10 Mar 2026 12:28:48 +1000	[thread overview]
Message-ID: <review-patch1-20260309-disable-hdcp-auto-retry-v1-1-591a1d75a3a6@ite.com.tw> (raw)
In-Reply-To: <20260309-disable-hdcp-auto-retry-v1-1-591a1d75a3a6@ite.com.tw>

Patch Review

**Change 1 — `it6505_hdcp_wait_ksv_list` timeout path (line 2241):**

```c
timeout:
	it6505_stop_hdcp(it6505);
```

This is correct. When the KSV list wait times out after 5 seconds, retrying authentication would just repeat the same timeout. Stopping HDCP is the right thing to do. Note that this `timeout` label is also reached when `it6505_hdcp_part2_ksvlist_check()` fails (line 2237-2238), so the KSV list check failure case also now stops instead of retrying — this is also reasonable behavior.

**Change 2 — `it6505_irq_hdcp_fail` (line 2599):**

```c
	it6505->hdcp_status = HDCP_AUTH_IDLE;
	it6505_show_hdcp_info(it6505);
	it6505_stop_hdcp(it6505);
```

This one is more nuanced. The HDCP fail interrupt can fire for various reasons, not just KSV list timeout on problematic converters. Unconditionally stopping HDCP on *any* failure means:

- **Transient failures** (e.g., noise on the link during authentication) will now permanently disable HDCP for the session rather than retrying. The HDCP spec generally expects implementations to be able to retry authentication.
- **Content protection policy**: If userspace has requested HDCP via the `Content Protection` DRM property, failing permanently without re-attempting may violate the expected behavior. Userspace would need to explicitly toggle the property to trigger a new attempt.

**Suggestion**: Consider whether `it6505_irq_hdcp_fail` should use a limited retry count (e.g., retry 2-3 times before giving up) rather than stopping on the first failure. The KSV list timeout path change is clearly correct, but the general HDCP failure path could benefit from a bounded retry strategy. At minimum, the commit message should acknowledge that this also changes behavior for non-KSV-timeout HDCP failures.

**Minor note**: `it6505_stop_hdcp()` calls `cancel_delayed_work(&it6505->hdcp_work)` — calling this from `it6505_irq_hdcp_fail` (which runs in an IRQ/work context) should be fine since `cancel_delayed_work` is safe to call from any context, but it's worth noting that if the hdcp_work is currently running, it won't wait for it to finish (unlike `cancel_delayed_work_sync`). This matches the existing pattern in the driver, so it's not a new concern.

---
Generated by Claude Code Patch Reviewer

      parent reply	other threads:[~2026-03-10  2:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-09  9:47 [PATCH RESEND] drm/bridge: it6505: disable HDCP retry when KSV list timeout Hermes Wu via B4 Relay
2026-03-10  2:28 ` Claude review: " Claude Code Review Bot
2026-03-10  2:28 ` Claude Code Review Bot [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=review-patch1-20260309-disable-hdcp-auto-retry-v1-1-591a1d75a3a6@ite.com.tw \
    --to=claude-review@example.com \
    --cc=dri-devel-reviews@example.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