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/msm/a8xx: Fix RSCC offset
Date: Sat, 16 May 2026 14:42:42 +1000	[thread overview]
Message-ID: <review-patch1-20260512-glymur-gpu-dt-v3-1-84232dc21c03@oss.qualcomm.com> (raw)
In-Reply-To: <20260512-glymur-gpu-dt-v3-1-84232dc21c03@oss.qualcomm.com>

Patch Review

**Change:** Switches `gmu->rscc` from `gmu->mmio + 0x19000` to `gpu->mmio + 0x50000` for all A8xx GPUs.

This is a correctness fix. The RSCC block on A8xx lives at GPU base + 0x50000 (physical 0x3d50000), inside the GPU's `kgsl_3d0_reg_memory` range, not inside the GMU's register space. The old offset 0x19000 from GMU base (0x3d6c000) would yield physical 0x3d85000 -- a completely different address.

I verified that `gpu->mmio` is initialized before `a6xx_gmu_init()` runs (set in `msm_gpu_init()` called via `adreno_gpu_init()` at `a6xx_gpu.c:2671`, before `a6xx_gmu_init()` at line 2692).

**Minor nit:** The comment has a double space:
```c
		 * On a8xx , RSCC lives at GPU base + 0x50000, which falls
```
Should be `On a8xx,` (no space before comma).

**Question:** This changes behavior for **all** `adreno_is_a8xx()` GPUs (both `ADRENO_8XX_GEN1` / a830 family and `ADRENO_8XX_GEN2` / a840 family). Was the previous offset (gmu->mmio + 0x19000) ever correct for any A8xx part, or was this always wrong? The commit message says "Fix RSCC offset" but doesn't clarify whether existing A8xx support was broken. If the sm8750 A8xx GPU was working before with the old offset, this needs more explanation. If no A8xx board was actually booting Linux before, then this is fine as a pre-emptive fix.

**Verdict:** The change itself is correct in structure (uses the right variable, proper scope). The commit message could mention whether this is a regression fix or a fix for code that was never actually exercised.

---

---
Generated by Claude Code Patch Reviewer

  parent reply	other threads:[~2026-05-16  4:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11 20:06 [PATCH v3 0/5] Devicetree support for Glymur GPU Akhil P Oommen
2026-05-11 20:06 ` [PATCH v3 1/5] drm/msm/a8xx: Fix RSCC offset Akhil P Oommen
2026-05-11 20:58   ` Akhil P Oommen
2026-05-16  4:42   ` Claude Code Review Bot [this message]
2026-05-11 20:07 ` [PATCH v3 2/5] dt-bindings: display/msm: gpu: Document Adreno X2-185 Akhil P Oommen
2026-05-16  4:42   ` Claude review: " Claude Code Review Bot
2026-05-11 20:07 ` [PATCH v3 3/5] dt-bindings: arm-smmu: Update the description for Glymur GPU SMMU Akhil P Oommen
2026-05-16  4:42   ` Claude review: " Claude Code Review Bot
2026-05-11 20:07 ` [PATCH v3 4/5] arm64: dts: qcom: glymur: Add GPU smmu node Akhil P Oommen
2026-05-16  4:42   ` Claude review: " Claude Code Review Bot
2026-05-11 20:07 ` [PATCH v3 5/5] arm64: dts: qcom: Add GPU support for Glymur Akhil P Oommen
2026-05-16  4:42   ` Claude review: " Claude Code Review Bot
2026-05-16  4:42 ` Claude review: Devicetree support for Glymur GPU Claude Code Review Bot
  -- strict thread matches above, loose matches on Subject: below --
2026-05-12 19:21 [PATCH v4 0/6] " Akhil P Oommen
2026-05-12 19:21 ` [PATCH v4 1/6] drm/msm/a8xx: Fix RSCC offset Akhil P Oommen
2026-05-16  2:51   ` 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-patch1-20260512-glymur-gpu-dt-v3-1-84232dc21c03@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