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: dw-hdmi-qp: Guard clear_audio_infoframe when PHY is down
Date: Sat, 16 May 2026 13:45:35 +1000	[thread overview]
Message-ID: <review-overall-20260512103153.8861-1-rmxpzlb@gmail.com> (raw)
In-Reply-To: <20260512103153.8861-1-rmxpzlb@gmail.com>

Overall Series Review

Subject: drm/bridge: dw-hdmi-qp: Guard clear_audio_infoframe when PHY is down
Author: Frank Zhang <rmxpzlb@gmail.com>
Patches: 1
Reviewed: 2026-05-16T13:45:35.779160

---

This is a single-patch bug fix for a kernel panic (Asynchronous SError Interrupt) triggered when pipewire closes an HDMI audio device after the display pipeline has already been disabled. The race is: `atomic_disable()` sets `tmds_char_rate = 0` and powers down the PHY, then pipewire's PCM release path calls `dw_hdmi_qp_bridge_clear_audio_infoframe()` which performs a regmap write to hardware that is no longer clocked, causing an SError.

The fix is reasonable and addresses a real crash. The approach of guarding `clear_audio_infoframe` with a `tmds_char_rate` check follows the existing pattern already used in `dw_hdmi_qp_audio_enable()` (line 472) and `dw_hdmi_qp_audio_disable()` (line 531). The decoupling of write from clear avoids adding the guard in the write path where it would be unnecessary (write is only called when the PHY is active).

One concern: the other `clear_*_infoframe` functions (`clear_avi_infoframe`, `clear_hdmi_infoframe`, `clear_hdr_drm_infoframe`, `clear_spd_infoframe`) do **not** have the same `tmds_char_rate` guard. If any of those can also be called after PHY teardown, they would have the same bug. This patch only fixes the audio path because that's where the crash was observed, but it may be worth considering whether the same race exists for other infoframes. That said, for a targeted stable-backport fix, limiting scope to the observed crash is pragmatic.

**Verdict: The patch looks correct for the stated problem. Recommend accepting with minor comments.**

---

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-05-16  3:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12 10:31 [PATCH v4] drm/bridge: dw-hdmi-qp: Guard clear_audio_infoframe when PHY is down Frank Zhang
2026-05-16  3:45 ` Claude Code Review Bot [this message]
2026-05-16  3:45 ` 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-overall-20260512103153.8861-1-rmxpzlb@gmail.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