From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: arm64: dts: qcom: Add GPU support for Glymur
Date: Tue, 05 May 2026 09:19:37 +1000 [thread overview]
Message-ID: <review-patch4-20260501-glymur-gpu-dt-v2-4-2f128b5596bb@oss.qualcomm.com> (raw)
In-Reply-To: <20260501-glymur-gpu-dt-v2-4-2f128b5596bb@oss.qualcomm.com>
Patch Review
**Status: Mostly good, a few items to consider.**
This is the main patch, adding the GPU and GMU nodes with a 12-entry OPP table.
**GPU node:**
```
+ gpu: gpu@3d00000 {
+ compatible = "qcom,adreno-44070001", "qcom,adreno";
+ reg = <0x0 0x03d00000 0x0 0x6c000>,
+ <0x0 0x03d9e000 0x0 0x2000>;
+ reg-names = "kgsl_3d0_reg_memory",
+ "cx_mem";
```
- The `kgsl_3d0_reg_memory` region is `0x6c000` bytes, larger than sm8550's `0x40000`. This is consistent with a newer, larger GPU IP block. The cover letter mentions it includes the `cx_dbgc` range that was previously separate.
**OPP table:**
```
+ gpu_opp_table: opp-table {
+ compatible = "operating-points-v2-adreno",
+ "operating-points-v2";
```
- Uses `operating-points-v2-adreno` dual-compatible, consistent with the pattern in sm8650 and hamoa (newer SoCs). This is correct for supporting the `opp-supported-hw` and `qcom,opp-acd-level` properties used by the adreno driver.
- The `opp-supported-hw` values form a clear speed-bin mask pattern: `0xf` (all bins) for lower frequencies, `0x7` (bins 0-2) for 1550-1700 MHz, and `0x3` (bins 0-1) for the top 1850 MHz. This is a reasonable binning scheme.
- The two lowest OPPs (310 MHz, 410 MHz) have `/* ACD is disabled */` comments instead of `qcom,opp-acd-level`. This is a reasonable pattern — ACD (Adaptive Clock Distribution) is typically not needed at low voltages/frequencies.
**GMU node:**
```
+ gmu: gmu@3d6c000 {
+ compatible = "qcom,adreno-gmu-x285.1", "qcom,adreno-gmu";
```
- The GMU compatible `qcom,adreno-gmu-x285.1` follows the newer naming pattern (matching the marketing "X2-85" name more closely than the GPU chip ID).
- **6 clocks** vs 7 on sm8550/sm8650. Missing `axi` and `demet`, but adds `rscc`. This is a different clock topology — presumably the RSCC (Resource State Coordinator Controller) hub clock replaces or subsumes the demet clock on this platform, and the AXI path is handled differently. This should be fine as long as the GMU driver supports this configuration.
- The GMU `reg` is at `0x03d6c000` with size `0x32000`, which ends at `0x03d9e000` — exactly where `cx_mem` begins. Good, no overlap.
**Node ordering:**
The GPU node is placed before `gxclkctl` (at `0x3d64000`), and the GMU is placed after `gxclkctl` but before `gpucc` (at `0x3d90000`). The GPU node's address `0x3d00000` comes before `gxclkctl`'s `0x3d64000`, and the GMU at `0x3d6c000` comes after `gxclkctl`. This ordering follows the DT convention of sorting by unit address, which is correct.
**Minor observations:**
1. The GPU `reg` range (`0x03d00000` to `0x03d6c000`) overlaps with `gxclkctl` at `0x03d64000` size `0x6000` (ending at `0x03d6a000`). The GPU `kgsl_3d0_reg_memory` covers `0x03d00000 + 0x6c000 = 0x03d6c000`, so it includes the range `0x03d64000-0x03d6a000` which is also claimed by `gxclkctl`. This is likely intentional — the GPU register space is a large contiguous block and the clock controller within it is described as a separate device for the clock framework. This is a common pattern in Qualcomm SoCs (the gpucc at `0x3d90000` is similarly within the broader GPU register range on some platforms). But reviewers may want to double-check this is intended.
2. No `status = "disabled"` on the GPU/GMU/SMMU nodes. The cover letter explicitly says "Keep GPU/GMU enabled by default and drop the enablement patch (Konrad)" — this was a v2 change based on reviewer feedback, so this is intentional.
**No blocking issues found.**
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-04 23:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-01 17:10 [PATCH v2 0/4] Devicetree support for Glymur GPU Akhil P Oommen
2026-05-01 17:10 ` [PATCH v2 1/4] dt-bindings: display/msm: gpu: Document Adreno X2-185 Akhil P Oommen
2026-05-03 14:10 ` Krzysztof Kozlowski
2026-05-03 14:13 ` Krzysztof Kozlowski
2026-05-04 23:19 ` Claude review: " Claude Code Review Bot
2026-05-01 17:10 ` [PATCH v2 2/4] dt-bindings: arm-smmu: Update the description for Glymur GPU SMMU Akhil P Oommen
2026-05-03 14:14 ` Krzysztof Kozlowski
2026-05-04 23:19 ` Claude review: " Claude Code Review Bot
2026-05-01 17:10 ` [PATCH v2 3/4] arm64: dts: qcom: glymur: Add GPU smmu node Akhil P Oommen
2026-05-04 23:19 ` Claude review: " Claude Code Review Bot
2026-05-01 17:10 ` [PATCH v2 4/4] arm64: dts: qcom: Add GPU support for Glymur Akhil P Oommen
2026-05-04 23:19 ` Claude Code Review Bot [this message]
2026-05-04 23:19 ` Claude review: Devicetree support for Glymur GPU 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-patch4-20260501-glymur-gpu-dt-v2-4-2f128b5596bb@oss.qualcomm.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