From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/i915/dp: On AUX_CH tx timeout, wake up the sink
Date: Tue, 10 Mar 2026 12:41:16 +1000 [thread overview]
Message-ID: <review-patch2-20260309-dp_aux_timeout-v1-2-08c610a63a84@intel.com> (raw)
In-Reply-To: <20260309-dp_aux_timeout-v1-2-08c610a63a84@intel.com>
Patch Review
**Recursive AUX concern:**
```c
if (status & DP_AUX_CH_CTL_TIME_OUT_ERROR) {
drm_dp_wake_sink(&intel_dp->aux);
continue;
}
```
`drm_dp_wake_sink()` internally calls `drm_dp_dpcd_readb()` and `drm_dp_dpcd_writeb()`, which will call back into `intel_dp_aux_xfer()`. This is called inside the retry loop (up to 5 tries × number of clock dividers). Each invocation of `drm_dp_wake_sink` can itself do up to 6 retries with 1ms sleeps plus additional DPCD writes. This creates **nested AUX transactions within AUX transactions**, which could lead to lock recursion issues (the AUX mutex), or at minimum add very long delays (potentially tens of milliseconds per retry iteration).
The comment references "Spec DP2.1 Section 2.11.7.1.5.8" but the cover letter references "Section 2.3.4" — these should be consistent and correct.
**Performance:** On a disconnected sink (the common timeout case per the existing comment at line 410), this will add significant delay to every AUX probe by attempting to wake a non-existent device on every timeout retry.
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-10 2:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 7:29 [PATCH RFC 0/3] Some updates over DP AUX Transactions Arun R Murthy
2026-03-09 7:29 ` [PATCH RFC 1/3] drm/display/dp: Export function to wake the sink AUX_CH Arun R Murthy
2026-03-10 2:41 ` Claude review: " Claude Code Review Bot
2026-03-09 7:29 ` [PATCH RFC 2/3] drm/i915/dp: On AUX_CH tx timeout, wake up the sink Arun R Murthy
2026-03-10 2:41 ` Claude Code Review Bot [this message]
2026-03-09 7:29 ` [PATCH RFC 3/3] drm/i915/dp: Configure PORT_AUX_CTL and then trigger the tx Arun R Murthy
2026-03-09 13:09 ` Jani Nikula
2026-03-09 13:20 ` Murthy, Arun R
2026-03-10 2:41 ` Claude review: " Claude Code Review Bot
2026-03-10 2:41 ` Claude review: Some updates over DP AUX Transactions Claude Code Review Bot
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-patch2-20260309-dp_aux_timeout-v1-2-08c610a63a84@intel.com \
--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