From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: gpu/tests/gpu_buddy: Add gpu_test_buddy_alloc_range for exact-range allocation Date: Tue, 03 Mar 2026 13:14:20 +1000 Message-ID: In-Reply-To: <20260302150947.47535-2-sanjay.kumar.yadav@intel.com> References: <20260302150947.47535-2-sanjay.kumar.yadav@intel.com> 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: gpu/tests/gpu_buddy: Add gpu_test_buddy_alloc_range for exact-range allocation Author: Sanjay Yadav Patches: 1 Reviewed: 2026-03-03T13:14:20.435073 --- This is a single patch adding a new KUnit test function `gpu_test_buddy_alloc_range()` that exercises the exact-range allocation path in the GPU buddy allocator (the `start + size == end` codepath that dispatches to `__gpu_buddy_alloc_range()`). The test is well-structured with good scenario coverage including positive, negative, and randomized cases. The code is consistent with existing test style (e.g., `gpu_test_buddy_alloc_range_bias`) and uses the same variable types (`u32` for sizes) and patterns. The test is generally clean and correct, with only minor observations below. --- Generated by Claude Code Patch Reviewer