From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/panthor: Store IRQ register base iomem pointer in panthor_irq
Date: Mon, 13 Apr 2026 19:05:52 +1000 [thread overview]
Message-ID: <review-patch4-20260412142951.2309135-5-karunika.choo@arm.com> (raw)
In-Reply-To: <20260412142951.2309135-5-karunika.choo@arm.com>
Patch Review
**Status: Good, with one minor observation.**
Adds `void __iomem *iomem` to `struct panthor_irq` and introduces generic IRQ register offset defines:
```c
+#define INT_RAWSTAT 0x0
+#define INT_CLEAR 0x4
+#define INT_MASK 0x8
+#define INT_STAT 0xc
```
The `PANTHOR_IRQ_HANDLER` macro signature simplifies from `(__name, __reg_prefix, __handler)` to `(__name, __handler)` — the per-block `__reg_prefix` (e.g., `GPU_INT_`, `JOB_INT_`, `MMU_INT_`) is no longer needed because each IRQ instance now carries its own iomem base pointing to the right register block.
The IRQ request functions gain an `iomem` parameter:
```c
-int panthor_request_gpu_irq(struct panthor_device *ptdev, ...);
+int panthor_request_gpu_irq(struct panthor_device *ptdev,
+ void __iomem *iomem, ...);
```
**Observation:** The names `INT_RAWSTAT`, `INT_CLEAR`, `INT_MASK`, `INT_STAT` are quite generic. They're defined in `panthor_device.h` which is only included within the panthor driver, so namespace collision risk is low in practice. But if this header ever gets transitively included from a broader context, these names could clash. A `PANTHOR_` prefix might be safer, though this is a minor style point and not a blocking issue.
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-04-13 9:05 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-12 14:29 [PATCH v2 0/8] drm/panthor: Localize register access by component Karunika Choo
2026-04-12 14:29 ` [PATCH v2 1/8] drm/panthor: Pass an iomem pointer to GPU register access helpers Karunika Choo
2026-04-13 9:05 ` Claude review: " Claude Code Review Bot
2026-04-12 14:29 ` [PATCH v2 2/8] drm/panthor: Split register definitions by components Karunika Choo
2026-04-13 7:43 ` Boris Brezillon
2026-04-13 9:05 ` Claude review: " Claude Code Review Bot
2026-04-12 14:29 ` [PATCH v2 3/8] drm/panthor: Replace cross-component register accesses with helpers Karunika Choo
2026-04-13 7:44 ` Boris Brezillon
2026-04-13 9:05 ` Claude review: " Claude Code Review Bot
2026-04-12 14:29 ` [PATCH v2 4/8] drm/panthor: Store IRQ register base iomem pointer in panthor_irq Karunika Choo
2026-04-13 7:46 ` Boris Brezillon
2026-04-13 9:05 ` Claude Code Review Bot [this message]
2026-04-12 14:29 ` [PATCH v2 5/8] drm/panthor: Use a local iomem base for GPU registers Karunika Choo
2026-04-13 9:05 ` Claude review: " Claude Code Review Bot
2026-04-12 14:29 ` [PATCH v2 6/8] drm/panthor: Use a local iomem base for PWR registers Karunika Choo
2026-04-13 7:51 ` Boris Brezillon
2026-04-13 9:05 ` Claude review: " Claude Code Review Bot
2026-04-12 14:29 ` [PATCH v2 7/8] drm/panthor: Use a local iomem base for firmware control registers Karunika Choo
2026-04-13 9:05 ` Claude review: " Claude Code Review Bot
2026-04-12 14:29 ` [PATCH v2 8/8] drm/panthor: Use a local iomem base for MMU AS registers Karunika Choo
2026-04-13 9:05 ` Claude review: " Claude Code Review Bot
2026-04-13 9:05 ` Claude review: drm/panthor: Localize register access by component Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-04-10 16:46 [PATCH 0/8] " Karunika Choo
2026-04-10 16:46 ` [PATCH 4/8] drm/panthor: Store IRQ register base iomem pointer in panthor_irq Karunika Choo
2026-04-11 23:38 ` 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-patch4-20260412142951.2309135-5-karunika.choo@arm.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