[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251209162839.51e2cf0e@inno-ThinkPad-X280>
Date: Tue, 9 Dec 2025 16:28:39 +0200
From: Zhi Wang <zhiw@...dia.com>
To: Joel Fernandes <joelagnelf@...dia.com>
CC: Timur Tabi <ttabi@...dia.com>, "linux-pci@...r.kernel.org"
<linux-pci@...r.kernel.org>, "nouveau@...ts.freedesktop.org"
<nouveau@...ts.freedesktop.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "rust-for-linux@...r.kernel.org"
<rust-for-linux@...r.kernel.org>, Kirti Wankhede <kwankhede@...dia.com>,
"a.hindborg@...nel.org" <a.hindborg@...nel.org>, "markus.probst@...teo.de"
<markus.probst@...teo.de>, "boqun.feng@...il.com" <boqun.feng@...il.com>,
"Neo Jia" <cjia@...dia.com>, "ojeda@...nel.org" <ojeda@...nel.org>, Aniket
Agashe <aniketa@...dia.com>, "tmgross@...ch.edu" <tmgross@...ch.edu>,
"alex.gaynor@...il.com" <alex.gaynor@...il.com>, "helgaas@...nel.org"
<helgaas@...nel.org>, "lossin@...nel.org" <lossin@...nel.org>,
"alex@...zbot.org" <alex@...zbot.org>, Surath Mitra <smitra@...dia.com>,
"John Hubbard" <jhubbard@...dia.com>, Ankit Agrawal <ankita@...dia.com>,
"Alexandre Courbot" <acourbot@...dia.com>, "bjorn3_gh@...tonmail.com"
<bjorn3_gh@...tonmail.com>, "Tarun Gupta (SW-GPU)" <targupta@...dia.com>,
"zhiwang@...nel.org" <zhiwang@...nel.org>, "airlied@...il.com"
<airlied@...il.com>, "aliceryhl@...gle.com" <aliceryhl@...gle.com>,
"kwilczynski@...nel.org" <kwilczynski@...nel.org>, "bhelgaas@...gle.com"
<bhelgaas@...gle.com>, "gary@...yguo.net" <gary@...yguo.net>,
"dakr@...nel.org" <dakr@...nel.org>
Subject: Re: [RFC 5/7] gpu: nova-core: set RMSetSriovMode when NVIDIA vGPU
is enabled
On Sun, 7 Dec 2025 16:57:01 +0000
Joel Fernandes <joelagnelf@...dia.com> wrote:
>
>
> > On Dec 7, 2025, at 10:55 AM, Timur Tabi <ttabi@...dia.com> wrote:
> >
> >> On Sat, 2025-12-06 at 12:42 +0000, Zhi Wang wrote:
> >> - pub(crate) fn new() -> Self {
> >> + pub(crate) fn new(vgpu_support: bool) -> Self {
> >> + let num_entries = if vgpu_support { 4 } else { 3 };
> >
> > Instead of passing a bool, and then hard-coding the length based on
> > that bool (which would require that RMSetSriovMode always be the
> > last entry in the array), you need to do what Nouveau does: if VGPU
> > is enabled, then dynamically append the entry to the array.
>
> Yeah, I agree with Timur.
>
Hey Timur and Joe:
Let me see how this could be solved dynamically. Probably need more
changes on other items as well.
Apart from this, I felt that we might need a struct GspBootConfig to
pass around the GSP booting path, while writing these patches. As we
already had coming items, like reserved memory size when vGPU is
enabled or not, vGPU enabled switch, also reserved memory size on
Hopper/Blackwell in John's patch.
It seems we need a central object to host these tuning for GSP booting
up.
Z.
> Thanks.
>
>
Powered by blists - more mailing lists