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/i915/display: Panel Replay BW optimization for DP2.0 tunneling
Date: Fri, 13 Mar 2026 14:30:27 +1000	[thread overview]
Message-ID: <review-patch2-20260312050035.3493690-3-animesh.manna@intel.com> (raw)
In-Reply-To: <20260312050035.3493690-3-animesh.manna@intel.com>

Patch Review

**Reviewed-by already present from Arun R Murthy.** 

**Register bit definition looks correct:** `TRANS_DP2_PR_TUNNELING_ENABLE` at `REG_BIT(26)` — fits between existing bit 30 (`PANEL_REPLAY_ENABLE`) and bit 23 (`DEBUG_ENABLE`), so the ordering in the header is correct.

**The `intel_psr_allow_pr_bw_optimization` check is clean:** It gates on DISPLAY_VER >= 35, bw_alloc being enabled, and PR optimization being supported. The DISPLAY_VER check is appropriate since this is a new hardware feature.

**Redundant `!intel_dp_is_edp()` check in `dg2_activate_panel_replay`:**
```c
if (!intel_dp_is_edp(intel_dp) && intel_psr_allow_pr_bw_optimization(intel_dp))
    dp2_ctl_val |= TRANS_DP2_PR_TUNNELING_ENABLE;
```
The `intel_psr_allow_pr_bw_optimization()` function already calls `intel_dp_tunnel_bw_alloc_is_enabled()` and `intel_dp_tunnel_pr_optimization_supported()`, which would both return false for eDP (no tunnel). The explicit `!intel_dp_is_edp()` check is technically redundant but serves as defensive documentation — acceptable.

**Missing deactivation/disable path:** When Panel Replay is deactivated, `TRANS_DP2_PR_TUNNELING_ENABLE` (bit 26) needs to be cleared. Looking at the existing code, `intel_psr_disable_locked()` calls `intel_de_rmw()` to clear `TRANS_DP2_PANEL_REPLAY_ENABLE` on the `TRANS_DP2_CTL` register. Does it also clear bit 26? I don't see the deactivation path being updated in this patch. If the existing disable code does `intel_de_rmw(display, TRANS_DP2_CTL(...), TRANS_DP2_PANEL_REPLAY_ENABLE, 0)`, then bit 26 would be left set after disable. This is a potential bug — the tunneling enable bit should be cleared when Panel Replay is disabled. Please verify the disable path clears `TRANS_DP2_PR_TUNNELING_ENABLE` as well.

**Copy-paste in wrapper doc comment (patch 1, but affects understanding):**
```c
 * Returns %true if the BW allocation mode is supported on @intel_dp.
```
This comment in `intel_dp_tunnel_pr_optimization_supported()` says "BW allocation mode" but should say "PR BW optimization". This is a copy-paste error from `intel_dp_tunnel_bw_alloc_is_enabled`.

---
Generated by Claude Code Patch Reviewer

  parent reply	other threads:[~2026-03-13  4:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-12  5:00 [PATCH v7 0/3] Panel Replay BW optimization Animesh Manna
2026-03-12  5:00 ` [PATCH v7 1/3] drm/i915/display: Add drm helper to check pr optimization support Animesh Manna
2026-03-12  6:40   ` Hogander, Jouni
2026-03-12  8:36     ` Manna, Animesh
2026-03-13  4:30   ` Claude review: " Claude Code Review Bot
2026-03-12  5:00 ` [PATCH v7 2/3] drm/i915/display: Panel Replay BW optimization for DP2.0 tunneling Animesh Manna
2026-03-12  6:44   ` Hogander, Jouni
2026-03-12  8:44     ` Manna, Animesh
2026-03-13  4:30   ` Claude Code Review Bot [this message]
2026-03-12  5:00 ` [PATCH v7 3/3] drm/i915/display: Disable Panel Replay for DP-tunneling without optimization Animesh Manna
2026-03-12  6:17   ` Hogander, Jouni
2026-03-12  8:33     ` Manna, Animesh
2026-03-13  4:30   ` Claude review: " Claude Code Review Bot
2026-03-12  8:05 ` [PATCH v7 0/3] Panel Replay BW optimization Hogander, Jouni
2026-03-12  8:41   ` Manna, Animesh
2026-03-12 15:18   ` Imre Deak
2026-03-13  4:30 ` Claude review: " 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-20260312050035.3493690-3-animesh.manna@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