On Thu Dec 3, 2026 at 9:09 PM JST, Alexandre Courbot wrote: > From: John Hubbard <[email protected]> > > The r000 firmware suspends GSP-RM on a GSP_SUSPEND request, a GMC > command whose payload is one word of flags. GSP-RM sends no response on > the message queue, and reports the completed suspend in the GSP falcon's > MAILBOX0 register instead. > > Signed-off-by: John Hubbard <[email protected]> > [acourbot: set GMCAPI_GSP_SUSPEND_FLAGS_HIBERNATE for Level7.] > [acourbot: use bitfield and drop the FromBytes/AsBytes impls.] > Co-developed-by: Alexandre Courbot <[email protected]> > Signed-off-by: Alexandre Courbot <[email protected]> > --- > drivers/gpu/nova-core/gsp/commands/gmc.rs | 42 > ++++++++++++++++++++++++++++--- > drivers/gpu/nova-core/gsp/fw/commands.rs | 19 ++++++++++++++ > 2 files changed, 57 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/nova-core/gsp/commands/gmc.rs > b/drivers/gpu/nova-core/gsp/commands/gmc.rs > index f0a0a6798d6b..cec66b80c489 100644 > --- a/drivers/gpu/nova-core/gsp/commands/gmc.rs > +++ b/drivers/gpu/nova-core/gsp/commands/gmc.rs > @@ -16,12 +16,19 @@ > use crate::{ > gpu::Chipset, > gsp::{ > - cmdq::gmc::{ > - CommandToGsp, > - MessageFromGsp, // > + cmdq::{ > + gmc::{ > + CommandToGsp, > + MessageFromGsp, // > + }, > + NoReply, // > + }, > + commands::{ > + GspStaticInfo, > + PowerStateLevel, // > }, > - commands::GspStaticInfo, > fw::{ > + self,
nit: just import GspSuspendFlags normally like the rest? Reviewed-by: Eliot Courtney <[email protected]>
