From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: dma::Coherent & dma::CoherentInit API Date: Wed, 04 Mar 2026 07:03:01 +1000 Message-ID: In-Reply-To: <20260303162314.94363-1-dakr@kernel.org> References: <20260303162314.94363-1-dakr@kernel.org> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: dma::Coherent & dma::CoherentInit API Author: Danilo Krummrich Patches: 12 Reviewed: 2026-03-04T07:03:01.673413 --- This is a well-structured 8-patch series that refactors the Rust DMA coherent allocation API from `CoherentAllocation` (always a slice container) to a generalized `Coherent` that supports both single-object and slice types, plus a `CoherentInit` wrapper for safe initialization before DMA address exposure. The design is sound and the nova-core conversions in patches 6-8 demonstrate real ergonomic improvements (e.g., eliminating `[0]?` indexing for single-object allocations and removing stack-side initialization of large firmware structures). **Key concern**: The series depends on `crate::ptr::KnownSize`, which does not exist in the current drm-next tree. This is presumably from Gary Guo's I/O projection work referenced in the cover letter. The base-commit dependency should be explicitly stated, or the series should be rebased onto a tree that includes that prerequisite. Overall the API evolution is clean and the safety reasoning is mostly correct. A few minor issues are noted below. --- Generated by Claude Code Patch Reviewer