From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: accel/amdxdna: Fix suspend failure after enabling turbo mode
Date: Wed, 11 Feb 2026 16:14:59 +1000 [thread overview]
Message-ID: <review-overall-20260210191652.312000-1-lizhi.hou@amd.com> (raw)
In-Reply-To: <20260210191652.312000-1-lizhi.hou@amd.com>
Overall Series Review
Subject: accel/amdxdna: Fix suspend failure after enabling turbo
mode
Author: Lizhi Hou <lizhi.hou@amd.com>
Patches: 1
Reviewed: 2026-02-11T16:14:59.929102
---
This single-patch series addresses a suspend/resume issue in the AMD XDNA accelerator driver related to turbo mode and hardware clock gating. The fix is straightforward and addresses a clear bug where enabling turbo mode (which disables clock gating) causes subsequent suspend operations to fail because suspend requires clock gating to be enabled.
**High-Level Assessment:**
The patch correctly identifies that the suspend path needs to re-enable clock gating before suspending the device, and the resume path needs to ensure firmware is initialized before modifying clock gating settings. However, there are several concerns with the implementation:
1. **Error handling**: The added call to `aie2_runtime_cfg()` in `aie2_hw_stop()` doesn't check return values
2. **Ordering logic**: The swap of `aie2_pm_init()` and `aie2_mgmt_fw_init()` in the resume path needs better justification
3. **Missing cleanup**: If the new ordering causes failures, the cleanup path may be incorrect
4. **Documentation**: No comments explain the ordering requirements
**Recommendation:** Needs revision to address error handling and provide clearer rationale for the initialization order change.
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-02-11 6:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-10 19:16 [PATCH V1] accel/amdxdna: Fix suspend failure after enabling turbo mode Lizhi Hou
2026-02-11 6:14 ` Claude Code Review Bot [this message]
2026-02-11 6:15 ` Claude review: " Claude Code Review Bot
2026-02-11 19:23 ` [PATCH V1] " Mario Limonciello
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-20260210191652.312000-1-lizhi.hou@amd.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