nova-core: remove an unnecessary register read: HWCFG1
Subsystems (4)
PATCH 1/1 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.
---
This applies cleanly to today's drm-rust-next.
thanks,
John Hubbard
drivers/gpu/nova-core/falcon.rs | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/nova-core/falcon.rs +0 -5
@@ -371,11 +371,6 @@ pub(crate) fn new( bar: &Bar0, need_riscv: bool, ) -> Result<Self> { -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 () {
base-commit: d3917368ebc5cd89d7d08eab4673e5c4c73ff42f
Signature · 1 line
2.51.1
Quoted 6 lines · John Hubbard
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 <[email protected]>---
I temporarily overlooked the dependency of a follow-on patch, so this single patch here can be ignored, please. (It's also harmless to apply it, due to git's behavior with identical patches.)
I've included this identical patch in a 2-patch series that can be used instead:
[PATCH 0/2] nova-core: remove HWCFG1 and need_riscv [1]
[1] https://lore.kernel.org/[email protected]
thanks,
John Hubbard
Quoted 28 lines
This applies cleanly to today's drm-rust-next.
thanks,
John Hubbarddrivers/gpu/nova-core/falcon.rs | 5 ----- 1 file changed, 5 deletions(-)drivers/gpu/nova-core/falcon.rs +0
-5@@ -371,11 +371,6 @@ pub(crate) fn new( bar: &Bar0, need_riscv: bool, ) -> Result<Self> { -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 () {base-commit:
d3917368ebc5cd89d7d08eab4673e5c4c73ff42f