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: convert PMC registers to kernel register macro Date: Wed, 25 Mar 2026 07:57:33 +1000 Message-ID: In-Reply-To: <20260323-b4-nova-register-v3-1-ae2486ecef1b@nvidia.com> References: <20260323-b4-nova-register-v3-0-ae2486ecef1b@nvidia.com> <20260323-b4-nova-register-v3-1-ae2486ecef1b@nvidia.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Patch Review The core PMC register conversion. The `Architecture` type changes from `Try= From` to `TryFrom>` and the `Revision` struct members c= hange to `Bounded`, with `.cast()` calls to convert between bounded = types. One inconsistency at line 829: ```rust - self.0, + self.inner, ``` The `Display` impl for `NV_PMC_BOOT_42` directly accesses `self.inner` to g= et the raw value, while elsewhere the series consistently uses `self.into_r= aw()` (e.g., line 819: `self.into_raw() >> Self::ARCHITECTURE_RANGE.start()= `). Consider using `self.into_raw()` here too for consistency, or verify th= at `self.inner` is the intended public API of the kernel register macro (it= may be =E2=80=94 the `inner` field might be `pub` on the generated struct). The `From for Bounded` implementation at lines 700-70= 3 maps each variant explicitly via `Bounded::::new::<0x16>()` etc.,= which is correct and avoids the previous `repr(u8)` cast. The removal of `Default` from `Architecture` and `Revision` is good =E2=80= =94 those defaults were artifacts of the old macro. --- Generated by Claude Code Patch Reviewer