From: John Hubbard Date: Sat, 25 Oct 2025 01:40:49 +0000 (-0700) Subject: gpu: nova-core: remove an unnecessary register read: HWCFG1 X-Git-Tag: v6.19-rc1~157^2~8^2~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1784fb79d6c8db159d928314391817c425731de8;p=thirdparty%2Fkernel%2Flinux.git gpu: nova-core: remove an unnecessary register read: HWCFG1 This register read is not required in order to bring up any of the GPUs, and it is read too early on Hopper/Blackwell+ GPUs anyway. So just stop doing this. Signed-off-by: John Hubbard Signed-off-by: Alexandre Courbot Message-ID: <20251025014050.585153-2-jhubbard@nvidia.com> --- diff --git a/drivers/gpu/nova-core/falcon.rs b/drivers/gpu/nova-core/falcon.rs index 1e70e39c96719..4c14ce1d19e9a 100644 --- a/drivers/gpu/nova-core/falcon.rs +++ b/drivers/gpu/nova-core/falcon.rs @@ -371,11 +371,6 @@ impl Falcon { bar: &Bar0, need_riscv: bool, ) -> Result { - let hwcfg1 = regs::NV_PFALCON_FALCON_HWCFG1::read(bar, &E::ID); - // Check that the revision and security model contain valid values. - let _ = hwcfg1.core_rev()?; - let _ = hwcfg1.security_model()?; - if need_riscv { let hwcfg2 = regs::NV_PFALCON_FALCON_HWCFG2::read(bar, &E::ID); if !hwcfg2.riscv() {