On Tue Nov 24, 2026 at 10:58 PM JST, Alok Kumar wrote: > From: Zhi Wang <[email protected]> > > GSP boot uses the detected vGPU mode to size firmware resources and > populate GSP_INIT. Carrying the whole manager in the boot and unload > context couples these operations to its runtime interface. > > The boot code only needs read access to the mode, and unloading does > not use the manager. A short state borrow is sufficient for both > context construction sites. > > Make GspBootContext borrow VgpuState directly and read it in the > VRAM and GSP_INIT helpers. Return a state reference from the > manager without changing mode detection or the values passed to firmware. > > No functional change is intended. > > Cc: Alexandre Courbot <[email protected]> > Signed-off-by: Zhi Wang <[email protected]> > Signed-off-by: Alok Kumar <[email protected]> > ---
Suggest squashing patch 4 into this patch and storing VgpuState by value instead of by reference in GspBootContext (it's Copy anyway).
