mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eliot Courtney <ecourtney@nvidia.com>
To: Danilo Krummrich <dakr@kernel.org>,
	Alice Ryhl <aliceryhl@google.com>,
	 Alexandre Courbot <acourbot@nvidia.com>,
	David Airlie <airlied@gmail.com>,
	 Simona Vetter <simona@ffwll.ch>
Cc: John Hubbard <jhubbard@nvidia.com>,
	 Alistair Popple <apopple@nvidia.com>,
	Timur Tabi <ttabi@nvidia.com>,  Zhi Wang <zhiw@nvidia.com>,
	nova-gpu@lists.linux.dev,  dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org,
	 Eliot Courtney <ecourtney@nvidia.com>
Subject: [PATCH 10/14] gpu: nova-core: gsp: fix resume_gsp_rm()'s error messages
Date: Mon, 30 Nov 2026 18:28:34 +0900	[thread overview]
Message-ID: <20261130-falcon-v1-10-cb94f87b5674@nvidia.com> (raw)
In-Reply-To: <20261130-falcon-v1-0-cb94f87b5674@nvidia.com>

From: John Hubbard <jhubbard@nvidia.com>

resume_gsp_rm()'s error messages have two problems:

* Both messages open with "Sequencer:", which assumes that the function
  knows which code is calling it, and that this will never change. This
  kind of tight coupling is almost never desirable in well-structured
  code.

* One message prints the SEC2 mailbox value in decimal. That needlessly
  complicates looking up the error code, given that Open RM documents
  those values in hex.

Remove the sequencer's name from both messages and name the GSP-RM
resume instead, and print the SEC2 mailbox value in hexadecimal.

Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
---
 drivers/gpu/nova-core/gsp/load_exec.rs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/nova-core/gsp/load_exec.rs b/drivers/gpu/nova-core/gsp/load_exec.rs
index 68bca8c87a36..ac5eb8b7edd7 100644
--- a/drivers/gpu/nova-core/gsp/load_exec.rs
+++ b/drivers/gpu/nova-core/gsp/load_exec.rs
@@ -55,7 +55,11 @@ pub(super) fn resume_gsp_rm(
     // Verify SEC2 completed successfully by checking its mailbox for errors.
     let mbox0 = sec2_falcon.read_mailbox0();
     if mbox0 != 0 {
-        dev_err!(dev, "Sequencer: sec2 errors: {:?}\n", mbox0);
+        dev_err!(
+            dev,
+            "SEC2 reported an error while resuming GSP-RM: {:#x}\n",
+            mbox0
+        );
         return Err(EIO);
     }
 
@@ -64,7 +68,7 @@ pub(super) fn resume_gsp_rm(
 
     // Verify the GSP's RISC-V core is active indicating successful GSP boot.
     if !gsp_falcon.is_riscv_active() {
-        dev_err!(dev, "Sequencer: RISC-V core is not active\n");
+        dev_err!(dev, "GSP RISC-V core is not active after resuming GSP-RM\n");
         return Err(EIO);
     }
     Ok(())

-- 
2.56.1


  parent reply	other threads:[~2026-11-30  9:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  9:28 [PATCH 00/14] gpu: nova-core: merge `load` and `boot` for falcons, add load+exec handlers Eliot Courtney
2026-11-30  9:28 ` [PATCH 01/14] gpu: nova-core: falcon: program BROM and BOOTVEC in `boot` Eliot Courtney
2026-11-30  9:28 ` [PATCH 02/14] gpu: nova-core: use correct offset for imem in `BooterFirmware` Eliot Courtney
2026-11-30  9:28 ` [PATCH 03/14] gpu: nova-core: remove some dependencies on FalconDmaLoadTarget Eliot Courtney
2026-11-30  9:28 ` [PATCH 04/14] gpu: nova-core: falcon: separate staging data for DMA from its location Eliot Courtney
2026-11-30  9:28 ` [PATCH 05/14] gpu: nova-core: falcon: add `FalconImage` for `FalconFirmware` trait Eliot Courtney
2026-11-30  9:28 ` [PATCH 06/14] gpu: nova-core: falcon: load the firmware image in Falcon::boot Eliot Courtney
2026-11-30  9:28 ` [PATCH 07/14] gpu: nova-core: firmware: use `zerocopy` for `BootloaderDmemDescV2` Eliot Courtney
2026-11-30  9:28 ` [PATCH 08/14] gpu: nova-core: falcon: factor out the wait for the GSP suspend Eliot Courtney
2026-11-30  9:28 ` [PATCH 09/14] gpu: nova-core: gsp: factor out the core resume Eliot Courtney
2026-11-30  9:28 ` Eliot Courtney [this message]
2026-11-30  9:28 ` [PATCH 11/14] gpu: nova-core: falcon: select the BAR2 engine ID for framebuffer DMA Eliot Courtney
2026-11-30  9:28 ` [PATCH 12/14] gpu: nova-core: gsp: add the r000 load-and-execute HS binary handler Eliot Courtney
2026-11-30  9:28 ` [PATCH 13/14] gpu: nova-core: gsp: add the r000 load-and-execute bootloader handler Eliot Courtney
2026-11-30  9:28 ` [PATCH 14/14] gpu: nova-core: gsp: add the load-and-execute event dispatcher Eliot Courtney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130-falcon-v1-10-cb94f87b5674@nvidia.com \
    --to=ecourtney@nvidia.com \
    --cc=acourbot@nvidia.com \
    --cc=airlied@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=apopple@nvidia.com \
    --cc=dakr@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jhubbard@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nova-gpu@lists.linux.dev \
    --cc=simona@ffwll.ch \
    --cc=ttabi@nvidia.com \
    --cc=zhiw@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®