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: refactor SEC2 booter loading into BooterFirmware::run() Date: Mon, 25 May 2026 20:06:42 +1000 Message-ID: In-Reply-To: <20260521-nova-unload-v6-4-65f581c812c9@nvidia.com> References: <20260521-nova-unload-v6-0-65f581c812c9@nvidia.com> <20260521-nova-unload-v6-4-65f581c812c9@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 Good refactoring. The `run()` method encapsulates the SEC2 reset =E2=86=92 = load =E2=86=92 boot =E2=86=92 check-mbox0 sequence that will be needed by b= oth Booter Loader and Booter Unloader. One observation on the `run()` method: ```rust pub(crate) fn run( &self, dev: &device::Device, bar: &Bar0, sec2_falcon: &Falcon, wpr_meta: &Coherent, ) -> Result { ``` The generic `` for `wpr_meta` is used to get the DMA handle. This works = for the Booter Loader case. However, patch 7 later uses the Booter Unloader= with a different boot sequence (passing sentinel values instead of WPR met= adata). Patch 7 doesn't use `BooterFirmware::run()` for the unloader =E2=80= =94 it does the SEC2 load/boot manually with sentinel mailbox values. So `r= un()` is only used for the loader path, which is fine, but the generic `= ` is somewhat unnecessary since it's always called with `Coherent`. Not a real issue though. **Subtle change**: The log message device changed from `pdev` (PCI device) = to `dev` (generic device): ```rust - dev_dbg!(pdev, "SEC2 MBOX0: {:#x}, MBOX1: {:#x}\n", mbox0, mbox1); + dev_dbg!(dev, "SEC2 MBOX0: {:#x}, MBOX1: {:#x}\n", mbox0, mbox1); ``` This is fine =E2=80=94 both reference the same underlying device. --- --- Generated by Claude Code Patch Reviewer