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: dma-buf: heaps: Turn heaps into modules
Date: Wed, 01 Apr 2026 07:50:36 +1000	[thread overview]
Message-ID: <review-overall-20260331-dma-buf-heaps-as-modules-v4-0-e18fda504419@kernel.org> (raw)
In-Reply-To: <20260331-dma-buf-heaps-as-modules-v4-0-e18fda504419@kernel.org>

Overall Series Review

Subject: dma-buf: heaps: Turn heaps into modules
Author: Maxime Ripard <mripard@kernel.org>
Patches: 10
Reviewed: 2026-04-01T07:50:36.145257

---

This is a well-structured series by Maxime Ripard (v4) that enables the CMA and system dma-buf heaps to be built as loadable modules. The approach is sound: invert the dependency so that `kernel/dma/contiguous.c` stores the CMA areas and provides an iterator, rather than calling into the heap code. The series is logically ordered, with each patch building on the previous one, and the individual changes are small and easy to follow.

The key concern is around **duplicate registration of the default CMA area**, which I detail below. Otherwise, the series looks good and the progression from inverting the logic, to de-inlining, to making static, to exporting, and finally to tristate is clean.

One note from the mbox: patches 3 and 4 appear in the mbox in the **wrong order** relative to the cover letter (the mbox has patch 3 "Make dma_contiguous_default_area static" before patch 4 "Export dev_get_cma_area()", but the message numbering is correct). The logical dependency is fine either way since patch 3 makes the variable static and patch 4 exports the function, and they touch independent lines.

---
Generated by Claude Code Patch Reviewer

  parent reply	other threads:[~2026-03-31 21:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20260331100026eucas1p19bdc2aaca4c9a48c6f6ac8fec71478d8@eucas1p1.samsung.com>
2026-03-31 10:00 ` [PATCH v4 0/8] dma-buf: heaps: Turn heaps into modules Maxime Ripard
2026-03-31 10:00   ` [PATCH v4 1/8] dma: contiguous: Turn heap registration logic around Maxime Ripard
2026-03-31 21:50     ` Claude review: " Claude Code Review Bot
2026-03-31 10:00   ` [PATCH v4 2/8] dma: contiguous: Make dev_get_cma_area() a proper function Maxime Ripard
2026-03-31 21:50     ` Claude review: " Claude Code Review Bot
2026-03-31 10:00   ` [PATCH v4 3/8] dma: contiguous: Make dma_contiguous_default_area static Maxime Ripard
2026-03-31 21:50     ` Claude review: " Claude Code Review Bot
2026-03-31 10:00   ` [PATCH v4 4/8] dma: contiguous: Export dev_get_cma_area() Maxime Ripard
2026-03-31 21:50     ` Claude review: " Claude Code Review Bot
2026-03-31 10:00   ` [PATCH v4 5/8] mm: cma: Export cma_alloc(), cma_release() and cma_get_name() Maxime Ripard
2026-03-31 21:50     ` Claude review: " Claude Code Review Bot
2026-03-31 10:00   ` [PATCH v4 6/8] dma-buf: heaps: Export mem_accounting parameter Maxime Ripard
2026-03-31 21:50     ` Claude review: " Claude Code Review Bot
2026-03-31 10:00   ` [PATCH v4 7/8] dma-buf: heaps: cma: Turn the heap into a module Maxime Ripard
2026-03-31 21:50     ` Claude review: " Claude Code Review Bot
2026-03-31 10:00   ` [PATCH v4 8/8] dma-buf: heaps: system: " Maxime Ripard
2026-03-31 21:50     ` Claude review: " Claude Code Review Bot
2026-03-31 12:54   ` [PATCH v4 0/8] dma-buf: heaps: Turn heaps into modules Marek Szyprowski
2026-03-31 21:50   ` Claude Code Review Bot [this message]
2026-03-03 10:13 [PATCH v3 " Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
  -- strict thread matches above, loose matches on Subject: below --
2026-02-25 16:41 [PATCH 0/7] " Maxime Ripard
2026-02-27  3:12 ` 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-20260331-dma-buf-heaps-as-modules-v4-0-e18fda504419@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