From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: Re: [PATCH v2] drm/radeon: fix internal display on iMac11, 1 (RV770/DCE3.1)
Date: Mon, 18 May 2026 16:36:04 +1000 [thread overview]
Message-ID: <review-patch3-agiy9II5jkHEgPAq@wunner.de> (raw)
In-Reply-To: <agiy9II5jkHEgPAq@wunner.de>
Patch Review
**Correctness: Mostly good, with a logical redundancy.**
**Panel power guard in atombios_set_edp_panel_power():**
```c
- if (!ASIC_IS_DCE4(rdev))
+ if (!ASIC_IS_DCE31(rdev))
goto done;
```
This is the key fix — without it, the eDP panel power-on sequence is skipped entirely for DCE3.1. The connector type check (`!= DRM_MODE_CONNECTOR_eDP`) above this line already gates entry, so extending to DCE3.1 won't affect non-eDP systems. The author reports HPD polling works correctly on iMac11,1.
**DP video on/off changes:**
```c
- if (ASIC_IS_DCE4(rdev))
+ if (ASIC_IS_DCE4(rdev) || ASIC_IS_DCE31(rdev))
atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_DP_VIDEO_ON, 0);
```
```c
- if (ASIC_IS_DCE4(rdev)) {
+ if (ASIC_IS_DCE4(rdev) || ASIC_IS_DCE31(rdev)) {
```
**Issue: Logical redundancy.** Since `ASIC_IS_DCE31()` is `>= CHIP_RV770` and `ASIC_IS_DCE4()` is `>= CHIP_CEDAR`, and `CHIP_CEDAR > CHIP_RV770` in the enum, every chip matching DCE4 also matches DCE31. Therefore `ASIC_IS_DCE4(rdev) || ASIC_IS_DCE31(rdev)` simplifies to just `ASIC_IS_DCE31(rdev)`. The `ASIC_IS_DCE4` term is redundant.
However, this has a subtle semantic consequence: the original code only sent `DP_VIDEO_ON`/`DP_VIDEO_OFF` for DCE4+. By changing to `ASIC_IS_DCE31(rdev)` (even with the redundant `||`), this now also sends these commands for **DCE3.2** hardware (RV730, RV710, RV740) — not just RV770. The author should confirm this is intentional and safe for DCE3.2 systems, or narrow the condition if only RV770 needs it.
**Other issues:**
1. **Missing `Fixes:` tag** — same as patch 2.
2. **Missing `Signed-off-by` chain context.** This patch depends on patch v2 (it uses `ASIC_IS_DCE31` introduced there and its `diff --git` index line `4e984973c043` matches the post-v2 state). The dependency should be explicitly stated via an `In-Reply-To:` to the v2 patch or a cover letter, and the two should be submitted as a proper series (`[PATCH v2 1/2]` and `[PATCH v2 2/2]`).
3. **The `ATOM_ENCODER_CMD_DP_VIDEO_ON/OFF` on DCE3.1** — the author should confirm the ATOM BIOS table on RV770 actually implements these encoder commands. If the VBIOS table doesn't handle them, `atom_execute_table()` might silently succeed or could misbehave. The author says it's tested on iMac11,1, which is good, but broader DCE3.1/3.2 implications should be considered.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-18 6:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 18:54 [PATCH] The Apple iMac11, 1 (late 2009) has an integrated ATI Mobility Radeon HD 4850. This machine suffers from a similar problem as the iMac10, 1 (late 2009) and the iMac11, 2 (mid 2010). This small patch fixes the issue on this machine Gilles Risch
2026-05-16 5:26 ` Claude review: " Claude Code Review Bot
2026-05-16 5:26 ` Claude Code Review Bot
2026-05-16 9:24 ` [PATCH v2] drm/radeon: fix internal display on iMac11, 1 (RV770/DCE3.1) Gilles Risch
2026-05-16 18:09 ` Lukas Wunner
2026-05-17 13:53 ` Gilles Risch
2026-05-17 14:05 ` Lukas Wunner
2026-05-18 6:36 ` Claude Code Review Bot [this message]
2026-05-16 18:52 ` [PATCH] drm/radeon: fix eDP resume from suspend on iMac11, 1 / DCE3.1 systems Gilles Risch
2026-05-17 3:28 ` kernel test robot
2026-05-17 5:12 ` kernel test robot
2026-05-18 6:57 ` Claude review: drm/radeon: fix internal display on iMac11, 1 (RV770/DCE3.1) 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-patch3-agiy9II5jkHEgPAq@wunner.de \
--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