We want to be able to build both nova and nouveau and maintain the status quo for now of nouveau binding to all GSP enabled GPUs.
In the future we may suggest switching the default to nova, but for now the default is to let users use command line options for testing and developers building their own kernel can set the kconfig. This version isn't exactly what Danilo asked for, but I think it does the same thing, a single option that is NOVA only, and nouveau still respects it. Signed-off-by: Dave Airlie <[email protected]> --- Changes in v4: - use a single Kconfig option (Danilo) - Link to v3: https://lore.kernel.org/r/[email protected] Changes in v3: - back to single nouveau patch - fixes ctor teardown path (Danilo) - fixes passing bind_gsp flag (John) - nova - move to using a function (Danilo) - Link to v2: https://lore.kernel.org/r/[email protected] Changes in v2: - nouveau dtor path is broken, so fix that before adding the new code. (Sashiko) - Link to v1: https://lore.kernel.org/r/[email protected] --- Dave Airlie (2): drm/nouveau: leave GSP-capable GPUs to nova-core when requested nova-core: only bind to GPUs when explicitly requested drivers/gpu/drm/nouveau/include/nvkm/core/pci.h | 6 +- drivers/gpu/drm/nouveau/nouveau_drm.c | 10 +++- drivers/gpu/drm/nouveau/nvkm/engine/device/base.c | 67 ++++++++++++++++++----- drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c | 11 +++- drivers/gpu/nova-core/Kconfig | 21 +++++++ drivers/gpu/nova-core/driver.rs | 4 ++ drivers/gpu/nova-core/nova_core.rs | 24 ++++++++ 7 files changed, 124 insertions(+), 19 deletions(-) --- base-commit: bf3cac4a67a95ccd99763cf6e367fcbff93e0142 change-id: 20261119-nova-nouveau-gsp-10f8782498e4 Best regards, -- Dave Airlie <[email protected]>
