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: accel: ethosu: Runtime PM refcounting and cmd stream validation fixes
Date: Thu, 19 Feb 2026 09:57:30 +1000	[thread overview]
Message-ID: <review-overall-20260218-ethos-fixes-v1-0-be3fa3ea9a30@kernel.org> (raw)
In-Reply-To: <20260218-ethos-fixes-v1-0-be3fa3ea9a30@kernel.org>

Overall Series Review

Subject: accel: ethosu: Runtime PM refcounting and cmd stream validation fixes
Author: "Rob Herring (Arm)" <robh@kernel.org>
Patches: 4
Reviewed: 2026-02-19T09:57:30.759643

---

This is a three-patch fix series for the Arm Ethos-U NPU accelerator driver, addressing runtime PM refcount underflow on job submit failure, incorrect scalar mode detection for elementwise operations on the u65, and potential integer underflow in IFM size calculations. The patches are from Rob Herring and fix real bugs found during testing with additional models.

The architectural approach in patch 1 — splitting cleanup into pre-queue and post-queue paths — is the right idea. The two hardware-specific fixes in patches 2 and 3 are straightforward and well-motivated. One concern in patch 1 is that `done_fence` (which is separately kzalloc'd) is not freed by `ethosu_job_err_cleanup`, resulting in a memory leak on the error paths that go through `out_cleanup_job` or `out_put_job`. This was also leaked in the original code (since `dma_fence_put` on a zero-initialized fence triggers a kref WARN and doesn't actually free), but it would be good to fix it properly while restructuring the cleanup code.

---
Generated by Claude Code Patch Reviewer

      parent reply	other threads:[~2026-02-18 23:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-18 22:21 [PATCH 0/3] accel: ethosu: Runtime PM refcounting and cmd stream validation fixes Rob Herring (Arm)
2026-02-18 22:21 ` [PATCH 1/3] accel: ethosu: Fix job submit error clean-up refcount underflows Rob Herring (Arm)
2026-02-18 23:57   ` Claude review: " Claude Code Review Bot
2026-02-18 22:21 ` [PATCH 2/3] accel: ethosu: Fix NPU_OP_ELEMENTWISE validation with scalar Rob Herring (Arm)
2026-02-18 23:57   ` Claude review: " Claude Code Review Bot
2026-02-18 22:21 ` [PATCH 3/3] accel: ethosu: Handle possible underflow in IFM size calculations Rob Herring (Arm)
2026-02-18 23:57   ` Claude review: " Claude Code Review Bot
2026-02-18 23:57 ` 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-20260218-ethos-fixes-v1-0-be3fa3ea9a30@kernel.org \
    --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