Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpu: nova-core: gsp: derive `Debug` on more sequencer types

Being able to print these is useful when debugging the sequencer.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260217-nova-misc-v3-5-b4e2d45eafbc@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

+6 -5
+5 -5
drivers/gpu/nova-core/gsp/fw.rs
··· 330 330 331 331 /// Wrapper for GSP sequencer register write payload. 332 332 #[repr(transparent)] 333 - #[derive(Copy, Clone)] 333 + #[derive(Copy, Clone, Debug)] 334 334 pub(crate) struct RegWritePayload(bindings::GSP_SEQ_BUF_PAYLOAD_REG_WRITE); 335 335 336 336 impl RegWritePayload { ··· 353 353 354 354 /// Wrapper for GSP sequencer register modify payload. 355 355 #[repr(transparent)] 356 - #[derive(Copy, Clone)] 356 + #[derive(Copy, Clone, Debug)] 357 357 pub(crate) struct RegModifyPayload(bindings::GSP_SEQ_BUF_PAYLOAD_REG_MODIFY); 358 358 359 359 impl RegModifyPayload { ··· 381 381 382 382 /// Wrapper for GSP sequencer register poll payload. 383 383 #[repr(transparent)] 384 - #[derive(Copy, Clone)] 384 + #[derive(Copy, Clone, Debug)] 385 385 pub(crate) struct RegPollPayload(bindings::GSP_SEQ_BUF_PAYLOAD_REG_POLL); 386 386 387 387 impl RegPollPayload { ··· 414 414 415 415 /// Wrapper for GSP sequencer delay payload. 416 416 #[repr(transparent)] 417 - #[derive(Copy, Clone)] 417 + #[derive(Copy, Clone, Debug)] 418 418 pub(crate) struct DelayUsPayload(bindings::GSP_SEQ_BUF_PAYLOAD_DELAY_US); 419 419 420 420 impl DelayUsPayload { ··· 432 432 433 433 /// Wrapper for GSP sequencer register store payload. 434 434 #[repr(transparent)] 435 - #[derive(Copy, Clone)] 435 + #[derive(Copy, Clone, Debug)] 436 436 pub(crate) struct RegStorePayload(bindings::GSP_SEQ_BUF_PAYLOAD_REG_STORE); 437 437 438 438 impl RegStorePayload {
+1
drivers/gpu/nova-core/gsp/sequencer.rs
··· 67 67 /// GSP Sequencer Command types with payload data. 68 68 /// Commands have an opcode and an opcode-dependent struct. 69 69 #[allow(clippy::enum_variant_names)] 70 + #[derive(Debug)] 70 71 pub(crate) enum GspSeqCmd { 71 72 RegWrite(fw::RegWritePayload), 72 73 RegModify(fw::RegModifyPayload),