From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C4C8606A32C for ; Thu, 3 Dec 2026 14:03:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=I2dbzL/c Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AAC4010E75C; Thu, 3 Dec 2026 14:03:24 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 003371128CF for ; Thu, 3 Dec 2026 14:03:17 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id A664C40D78; Thu, 3 Dec 2026 14:03:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 030881F00893; Thu, 3 Dec 2026 14:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796306597; bh=l/EQxb9Qx37PyLVQkRn2PkVwt5hJPOD65WhmztjKDzQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=I2dbzL/cTN0sDehfYs1D6eozY5HwWitk9jYsofHJdkeScbMJwi2lmZS5lieycVYv2 U4R/ODtzH1rnwJhl/RGObbLs3omb4SaPFAv+ugReVyFsUoZUY/4oewgQIxFmWE0PsU rc0Kq2cvWsfAK1Ax8jSnqIxO/GK9U9vQjTiVb1BZS+QGRUwqLU1+28jgaU/nfh/Qc9 pa/Mvd5haXLT+l4sb93GPcVs3OcMn9FalLMw63OwCRikyIYQHLbhZAjROwCBdUS61S lsFyzIcN742x1ln/zikvrxLDhiIzcx/QtXhOEH/uBu+bNd2CJTbJZgNmYcUh8bsdUm GGDgJqp3OKD8w== Date: Thu, 3 Dec 2026 15:03:14 +0100 From: Maxime Ripard To: Alexandre Courbot Cc: Danilo Krummrich , Alice Ryhl , David Airlie , Simona Vetter , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Tamir Duberstein , Onur =?utf-8?B?w5Z6a2Fu?= , Maarten Lankhorst , Thomas Zimmermann , Jonathan Corbet , Shuah Khan , Randy Dunlap , John Hubbard , Alistair Popple , Timur Tabi , Eliot Courtney , Zhi Wang , Alok Kumar , nova-gpu@lists.linux.dev, dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/15] gpu: nova-core: gsp: populate VF information in GSP_INIT Message-ID: References: <20261203-b4-r000-switch-v1-0-b1463ec6dae2@nvidia.com> <20261203-b4-r000-switch-v1-3-b1463ec6dae2@nvidia.com> X-Archived-By: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="x3v66ggg6smdmdhv" Content-Disposition: inline In-Reply-To: <20261203-b4-r000-switch-v1-3-b1463ec6dae2@nvidia.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --x3v66ggg6smdmdhv Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 03/15] gpu: nova-core: gsp: populate VF information in GSP_INIT MIME-Version: 1.0 Hi Alex, On Thu, Dec 03, 2026 at 09:09:20PM +0900, Alexandre Courbot wrote: > From: Zhi Wang >=20 > GSP firmware requires the VF BAR layout to route interrupts and doorbell > events to individual virtual functions. >=20 > When vGPU mode is enabled, read the VF topology from the typed PCI > SR-IOV extended capability and populate the existing NVKV VF information > schema in GSP_INIT. >=20 > Signed-off-by: Zhi Wang > Signed-off-by: Alok Kumar > [acourbot: also add `RMSetSriovMode` regkey here.] > [acourbot: avoid double-match of `VgpuState`.] > [acourbot: use `bitfield!` for `VfInfo::flags`.] > [acourbot: document more returned errors.] > Co-developed-by: Alexandre Courbot > Signed-off-by: Alexandre Courbot > --- > drivers/gpu/nova-core/gsp/commands/gmc.rs | 13 +++++-- > drivers/gpu/nova-core/gsp/fw/commands.rs | 65 +++++++++++++++++++++++++= +++--- > 2 files changed, 70 insertions(+), 8 deletions(-) >=20 > diff --git a/drivers/gpu/nova-core/gsp/commands/gmc.rs b/drivers/gpu/nova= -core/gsp/commands/gmc.rs > index f74ada78f7ac..f0a0a6798d6b 100644 > --- a/drivers/gpu/nova-core/gsp/commands/gmc.rs > +++ b/drivers/gpu/nova-core/gsp/commands/gmc.rs > @@ -37,6 +37,7 @@ > }, > }, > sbuffer::SBufferIter, > + vgpu::VgpuState, // It looks like you have a spurious comment here? Maxime --x3v66ggg6smdmdhv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCaxF2mQAKCRAnX84Zoj2+ drgUAYD/AYKh+SPrLkouxHkZfKAsTdQyZCzzF8y3aRyjK+oRR5ewk4BnYf+zUOrg nVyMdGUBf1wtX4HkEONjmAPr959bcRYSe0r5EeoA6uEuilU/uOJej/7q1GZV/cdS ougM0sBJ4g== =zNWl -----END PGP SIGNATURE----- --x3v66ggg6smdmdhv--