From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/tyr: move probe resources into registration data
Date: Thu, 04 Jun 2026 11:21:43 +1000 [thread overview]
Message-ID: <review-overall-20260603-use_tyr_reg_data-v1-1-97f64e951cf6@collabora.com> (raw)
In-Reply-To: <20260603-use_tyr_reg_data-v1-1-97f64e951cf6@collabora.com>
Overall Series Review
Subject: drm/tyr: move probe resources into registration data
Author: Deborah Brouwer <deborah.brouwer@collabora.com>
Patches: 1
Reviewed: 2026-06-04T11:21:43.367133
---
This is a single well-structured patch that moves probe-time resources (platform device, clocks, regulators, MMIO mapping, firmware state, GPU info) out of `TyrDrmDeviceData` and into a new `TyrDrmRegistrationData<'bound>` struct tied to the DRM registration lifetime. It builds on top of Danilo Krummrich's drm-lifetime series, which introduces `Registration::new_with_lt()` and the `RegistrationData` associated type on `drm::Driver`.
The patch correctly establishes lifetime and ownership patterns for resources that firmware loading and GPU VM setup will need. The `Firmware` and `Mmu` stubs are minimal and appropriate for scaffolding future work.
**Strengths:**
- Clean separation between DRM device data (now empty) and registration-scoped resources
- Correct use of the `ForLt` higher-kinded type pattern for lifetime-parameterized registration data
- Reasonable safety argument for `new_with_lt`
- Stub modules are clearly documented as placeholders
**Concerns (minor to moderate):**
- The `Mmu` object is created, logs information, and is immediately dropped — it's not stored anywhere
- `pr_info!` in `mmu.rs` should use `dev_info!` with a device reference
- Missing `PinnedDrop` for `TyrDrmRegistrationData` to handle clock cleanup (depends on whether the base series changed `Clk` to auto-disable on drop)
---
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-06-04 1:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 23:19 [PATCH] drm/tyr: move probe resources into registration data Deborah Brouwer
2026-06-04 1:21 ` Claude review: " Claude Code Review Bot
2026-06-04 1:21 ` Claude Code Review Bot [this message]
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-20260603-use_tyr_reg_data-v1-1-97f64e951cf6@collabora.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