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: nova-core: mm: Add TLB flush support Date: Wed, 01 Apr 2026 07:33:01 +1000 Message-ID: In-Reply-To: <20260311004008.2208806-10-joelagnelf@nvidia.com> References: <20260311004008.2208806-1-joelagnelf@nvidia.com> <20260311004008.2208806-10-joelagnelf@nvidia.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review Introduces `MmuVersion`, `PageTableLevel`, aperture enums. **Issue:** The `AperturePte::From` implementation has a silent fallback: ```rust _ => Self::VideoMemory, ``` An invalid aperture value silently becomes `VideoMemory`. This could mask hardware errors. Consider returning an error or using a `TryFrom` that can fail, or at least a `debug_assert!` / `pr_warn!`. Same issue exists for `AperturePde`: ```rust _ => Self::Invalid, ``` This one is safer (falls back to invalid) but still silently swallows unexpected values. --- Generated by Claude Code Patch Reviewer