From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: Qualcomm Sahara protocol enhancements.
Date: Mon, 09 Mar 2026 08:08:59 +1000 [thread overview]
Message-ID: <review-overall-20260307-sahara_protocol_new_v2-v2-0-29dc748b5e9c@oss.qualcomm.com> (raw)
In-Reply-To: <20260307-sahara_protocol_new_v2-v2-0-29dc748b5e9c@oss.qualcomm.com>
Overall Series Review
Subject: Qualcomm Sahara protocol enhancements.
Author: Kishore Batta <kishore.batta@oss.qualcomm.com>
Patches: 13
Reviewed: 2026-03-09T08:08:59.981979
---
This 9-patch series relocates the Sahara protocol driver from the QAIC accelerator subsystem (`drivers/accel/qaic/`) to `drivers/bus/mhi/sahara/`, generalizes it for multiple MHI devices, adds QDU100 device support, implements Sahara command mode for DDR training data capture, and exposes the training data via sysfs. The overall goal is sound -- making a reusable MHI protocol driver rather than embedding it in the QAIC-specific tree.
**Key concerns:**
1. **Patch ordering is wrong** -- Patch 7 (command mode) arrives in the mbox after patch 8 (sysfs exposure) and patch 9 (ABI docs), even though patches 8 and 9 depend on structures and functions introduced in patch 7. The Message-Id numbering is correct (v2-7, v2-8, v2-9) but the mbox delivery order is 8, 9, 7. This will break `git am` unless reordered.
2. **Copyright header regression** -- Patch 2 changes the SPDX license from `GPL-2.0-only` to `GPL-2.0` and replaces the copyright with a different (older) one. This looks like an accidental revert to an old internal header rather than a deliberate change.
3. **Concurrency issues in the DL callback** -- The DL transfer callback (patch 7) accesses `context->is_cmd_mode`, `context->receiving_trng_data`, and other shared state without locking while they can be modified concurrently from workqueues. The MHI DL callback runs in interrupt/softirq context, making mutexes unsuitable there.
4. **The `sahara_ctrl_trng_get()` function doubles as allocator and finder** -- it silently creates the devres entry if missing, which is called both from workqueue context and from the DL callback (interrupt context). The `devres_alloc` with `GFP_KERNEL` in the DL callback path is a sleeping allocation in atomic context.
5. **Documentation placement** -- `Documentation/sahara/` is a new top-level doc directory for a single driver, which is unusual. Typically this would be under `Documentation/bus/` or `Documentation/driver-api/`.
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-08 22:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-07 11:41 [PATCH v2 0/9] Qualcomm Sahara protocol enhancements Kishore Batta
2026-03-07 11:41 ` [PATCH v2 1/9] Add documentation for Sahara protocol Kishore Batta
2026-03-07 19:50 ` kernel test robot
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-07 11:41 ` [PATCH v2 2/9] bus: mhi: Move sahara protocol driver under drivers/bus/mhi Kishore Batta
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-07 11:41 ` [PATCH v2 3/9] bus: mhi: Match devices exposing the protocol on the SAHARA channel Kishore Batta
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-07 11:41 ` [PATCH v2 4/9] bus: mhi: Centralize firmware image table selection at probe time Kishore Batta
2026-03-08 8:56 ` kernel test robot
2026-03-08 9:27 ` kernel test robot
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-07 11:41 ` [PATCH v2 5/9] bus: mhi: Add QDU100 firmware image table Kishore Batta
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-07 11:41 ` [PATCH v2 6/9] bus: mhi: Load DDR training data using per-device serial number Kishore Batta
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-07 11:41 ` [PATCH v2 7/9] bus: mhi: Capture DDR training data using command mode Kishore Batta
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-07 11:41 ` [PATCH v2 8/9] bus: mhi: Expose DDR training data via controller sysfs Kishore Batta
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-07 11:41 ` [PATCH v2 9/9] Documentation: ABI: Add sysfs ABI documentation for DDR training data Kishore Batta
2026-03-08 22:09 ` Claude review: " Claude Code Review Bot
2026-03-08 22:08 ` Claude Code Review Bot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-10 7:21 [PATCH v3 0/9] Qualcomm Sahara protocol enhancements Kishore Batta
2026-03-11 3:35 ` Claude review: " Claude Code Review Bot
2026-03-19 6:31 [PATCH v4 0/9] " Kishore Batta
2026-03-21 18:44 ` 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-overall-20260307-sahara_protocol_new_v2-v2-0-29dc748b5e9c@oss.qualcomm.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