Re: [PATCH 05/15] gpu: nova-core: gsp: add the GSP_SUSPEND request

From: Eliot Courtney

Date: Thu Dec 03 2026 - 23:40:03 EST


On Thu Dec 3, 2026 at 9:09 PM JST, Alexandre Courbot wrote:
> From: John Hubbard <jhubbard@xxxxxxxxxx>
>
> 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 <jhubbard@xxxxxxxxxx>
> [acourbot: set GMCAPI_GSP_SUSPEND_FLAGS_HIBERNATE for Level7.]
> [acourbot: use bitfield and drop the FromBytes/AsBytes impls.]
> Co-developed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> ---
> 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 <ecourtney@xxxxxxxxxx>