From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796306598; b=sHaiqJDnSz9XZD/oWGWAucu81Ymsvxf+ZtsFYe/0Z2/asWi/Cp//gKjukkltKQUlzdXM ZB4C/qQ80HhP7AzVBBVudWrQv6R6CkeJj91Djy4AV2bSaxVGKbmkfuZ0X33VPabpnfJLR ODYVu10yw2c8IexoNu6a/57kDLOYeXe/OYBL8+F080il0ENOXtrNfiRSRoTdHM5wBicPE wfaV8LSNmDEv1FkM1f+YvvbuphHGhYFAhSDoEudXDR62QHaAkIcin9e7fTEmJaesnvFHZ 4cU3OVkQQoSyUiWXHQIe+slxUYCuGQUEygYLLsHU/aMjBafEN1vrmsVgbohhX1rysyg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796306598; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=l/EQxb9Qx37PyLVQkRn2PkVwt5hJPOD65WhmztjKDzQ=; b=lK10jufneD5dUBpY9DDVN8GeFiEiAHFNyxlLuc4hWwgbdqbCHV8Y5VH6AENuiIs2TjNM bF+HGSJfIObW+Psi6BPubJvqzdkeh/+xLVkcxcfHwLtmJ/5om6chwL44q8KTSOqNo/nZP Yee0h7XzXUHDmtF3OsAewAnHEvbDsoQJ6lqYpB4Kgb9db/YqrMxAp0QmYc/PvWDe9sKDw rUyDUTSHP/9rRaXnaREqE+iY/tqbfysGjeVPpFu9LCTZD9Ct0xFEKLuiNAJIelKEdf5wJ QmF6DAcU0i9Dsdtk5R32hwhJztjCP39T87EtMtpIqgvZg81awaRvQnEB6ZZIdJ3CEHQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="I2dbzL/c"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F286B606A330; Thu, 3 Dec 2026 14:03:17 +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: 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-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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> --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--