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/adreno: add Adreno 810 GPU support
Date: Tue, 05 May 2026 08:55:17 +1000	[thread overview]
Message-ID: <review-patch6-20260502-adreno-810-v5-6-bc9fd2bb788d@pm.me> (raw)
In-Reply-To: <20260502-adreno-810-v5-6-bc9fd2bb788d@pm.me>

Patch Review

**Status: Looks good overall, a few observations**

This is the main patch adding the A810 catalog entry with register tables. Key observations:

**Catalog entry structure:**
```c
.chip_ids = ADRENO_CHIP_IDS(0x44010000),
.family = ADRENO_8XX_GEN1,
.fw = {
    [ADRENO_FW_SQE] = "gen80300_sqe.fw",
    [ADRENO_FW_GMU] = "gen80300_gmu.bin",
},
.gmem = SZ_512K + SZ_64K,
```

- Family is `ADRENO_8XX_GEN1` (a830 family) — this makes sense as A810 is the "first GPU to be released in the A8x family" per the cover letter, so it's in the earlier gen.
- The existing A8xx GPUs (x285, a840) are `ADRENO_8XX_GEN2` with massive GMEM (18-21MB). A810 has only 576KB — much smaller, consistent with being a lower-tier part.
- Firmware is `gen80300` — distinct from x285's `gen80100` and a840's `gen80200`.
- No `[ADRENO_FW_AQE]` entry unlike A840, which is fine for a simpler GPU.

**Quirks:**
```c
.quirks = ADRENO_QUIRK_HAS_CACHED_COHERENT |
          ADRENO_QUIRK_HAS_HW_APRIV |
          ADRENO_QUIRK_PREEMPTION |
          ADRENO_QUIRK_IFPC,
```
This matches A840's quirk set. No `ADRENO_QUIRK_SOFTFUSE` (unlike x285), which means speedbin reads will use the nvmem fuse path rather than the cx_misc softfuse path.

**Protect table:**
`DECLARE_ADRENO_PROTECT(a810_protect, 64)` — 47 entries out of 64 max global slots. The `__build_asserts` check is properly added.

**Register tables:**
The `a810_nonctxt_regs`, `a810_pwrup_reglist_regs`, `a810_ifpc_reglist_regs`, and `a810_dyn_pwrup_reglist_regs` are all A810-specific, which is expected as register values differ between GPU generations.

**`adreno_is_a810()` helper:**
```c
+static inline int adreno_is_a810(struct adreno_gpu *gpu)
+{
+	return gpu->info->chip_ids[0] == 0x44010000;
+}
```
This is added but I don't see it used in this series. It follows the existing pattern (e.g., `adreno_is_x285()`). Worth confirming it's needed — it may be used by future patches or by the dependent series.

**`a810_dyn_pwrup_reglist_regs` includes `REG_A8XX_CP_PROTECT_PIPE(15)`:**
```c
{ REG_A8XX_CP_PROTECT_PIPE(15), 0, BIT(PIPE_BR) | BIT(PIPE_BV) },
```
This is consistent with the hardcoded slot 15 from patch 5.

**Minor**: The `a810_nonctxt_regs` has a comment `/* Avoid partial waves at VFD */` on the BV-specific `PC_CHICKEN_BITS_1` entry, while the BR entry has no comment. This is fine as it explains why the BV value differs (0x23 vs 0x03).

**Observation on `max_slices = 1`**: A810 is a single-slice GPU, compared to x285 (4 slices) and a840 (3 slices). This is consistent with it being a lower-tier part.

No blocking issues found.

---

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-05-04 22:55 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-02  8:07 [PATCH RFC v5 0/7] Add support for Adreno 810 GPU Alexander Koskovich
2026-05-02  8:07 ` [PATCH RFC v5 1/7] dt-bindings: display/msm/gmu: Document Adreno 810 GMU Alexander Koskovich
2026-05-04 22:55   ` Claude review: " Claude Code Review Bot
2026-05-02  8:07 ` [PATCH RFC v5 2/7] dt-bindings: display/msm/gpu: Document A810 GPU Alexander Koskovich
2026-05-04 22:55   ` Claude review: " Claude Code Review Bot
2026-05-02  8:08 ` [PATCH RFC v5 3/7] drm/msm/adreno: rename llc_mmio to cx_misc_mmio Alexander Koskovich
2026-05-04 22:55   ` Claude review: " Claude Code Review Bot
2026-05-02  8:08 ` [PATCH RFC v5 4/7] drm/msm/adreno: set cx_misc_mmio regardless of if platform has LLCC Alexander Koskovich
2026-05-04 22:55   ` Claude review: " Claude Code Review Bot
2026-05-02  8:08 ` [PATCH RFC v5 5/7] drm/msm/a8xx: use pipe protect slot 15 for last-span-unbound feature Alexander Koskovich
2026-05-04 22:55   ` Claude review: " Claude Code Review Bot
2026-05-02  8:08 ` [PATCH RFC v5 6/7] drm/msm/adreno: add Adreno 810 GPU support Alexander Koskovich
2026-05-04 22:55   ` Claude Code Review Bot [this message]
2026-05-02  8:08 ` [PATCH RFC v5 7/7] arm64: dts: qcom: milos: Add Adreno 810 GPU and GMU nodes Alexander Koskovich
2026-05-04 22:55   ` Claude review: " Claude Code Review Bot
2026-05-04 22:55 ` Claude review: Add support for Adreno 810 GPU Claude Code Review Bot
  -- strict thread matches above, loose matches on Subject: below --
2026-04-08  1:45 [PATCH RFC v3 0/7] " Alexander Koskovich
2026-04-08  1:46 ` [PATCH RFC v3 6/7] drm/msm/adreno: add Adreno 810 GPU support Alexander Koskovich
2026-04-12  3:17   ` 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-patch6-20260502-adreno-810-v5-6-bc9fd2bb788d@pm.me \
    --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