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-buf: heaps: Clear CMA pages with clear_pages() Date: Thu, 05 Mar 2026 14:00:37 +1000 Message-ID: In-Reply-To: <20260304-cma-heap-clear-pages-v1-1-6ff59da716d3@kernel.org> References: <20260304-cma-heap-clear-pages-v1-1-6ff59da716d3@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-buf: heaps: Clear CMA pages with clear_pages() Author: Linus Walleij Patches: 1 Reviewed: 2026-03-05T14:00:37.741553 --- This is a single-patch series that replaces `memset(page_address(cma_pages), 0, size)` with `clear_pages(page_address(cma_pages), pagecount)` in the CMA heap allocator's non-highmem path. The change leverages the newer `clear_pages()` API (introduced by commit 62a9f5a85b98) which can use architecture-optimized page-clearing instructions. The conversion is straightforward and functionally correct. However, there is one concern regarding preemption latency that should be addressed. --- Generated by Claude Code Patch Reviewer