Hello all, This series adds support for the GV11B GPU on the Tegra194 SoC.
- Patches 1-2 fix GV100 fault decoding. - Patches 3-5 address programming of non-VRAM aperture IDs. - Patches 6-10 update CPU coherency setup and allow use of coherent memory for USERD. - Patches 11-13 are related to GV11B having no CPU-visible BAR2. - Patch 14 adds the GV11B chipset and MMU configuration and lets the Tegra suspend and resume callbacks skip devfreq on GV11B. - Patches 15-17 boot the ACR loader and PMU firmware, and have the FECS/GPCCS/GR setup. - Patches 18-19 complete the Tegra platform configuration for GV11B. Tested on Jetson AGX Xavier with vkcube. The series has a runtime dependency on Sasha Levin's Nouveau fuse-clock patch (6/6): https://lore.kernel.org/r/[email protected]/ For now firmware is available at https://gitlab.com/cyndis/linux-firmware/-/commit/d8f2e44ba9ab4902eaf50adcaee5f0716bb08c5f Signed-off-by: Mikko Perttunen <[email protected]> --- Mikko Perttunen (17): drm/nouveau/fault: Mask off instance aperture bits in GV100 fault-buffer entries drm/nouveau: Add helpers for getting memory target's aperture drm/nouveau: Supply aperture to FECS context methods drm/nouveau/mmu: Set cpu_coherent flag at runtime for Tegra drm/nouveau/instmem: Use the coherent aperture for DMA-coherent Tegra allocations drm/nouveau: Use coherent firmware mappings on coherent Tegra devices drm/nouveau/fifo: Allow coherent host pages for USERD drm/nouveau: Allocate Volta USERD in host memory on VRAM-less GPUs drm/nouveau/bar: Add a GPU-only BAR2 address space for GV11B drm/nouveau/fifo: Map Volta copy-engine method buffers in GPU-only BAR2 drm/nouveau/fault: Support physical addresses for GV100 fault buffers drm/nouveau: Add GV11B chipset/MMU/devfreq configuration data drm/nouveau: Add ACR loader and PMU firmware boot on GV11B drm/nouveau/gr: Wait for FECS watchdog timeout init completion drm/nouveau: Add GR firmware and context support for GV11B drm/nouveau/tegra: Separate DMA mask width from the IOMMU address bit drm/nouveau/tegra: Add device tree compatible for GV11B Thierry Reding (2): drm/nouveau/fault: Widen engine field drm/nouveau: Program aperture field where necessary drivers/gpu/drm/nouveau/include/nvkm/core/device.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/core/memory.h | 6 + drivers/gpu/drm/nouveau/include/nvkm/core/tegra.h | 1 + drivers/gpu/drm/nouveau/include/nvkm/engine/gr.h | 1 + drivers/gpu/drm/nouveau/include/nvkm/subdev/acr.h | 1 + drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h | 1 + .../gpu/drm/nouveau/include/nvkm/subdev/fault.h | 2 +- drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h | 1 + drivers/gpu/drm/nouveau/include/nvkm/subdev/pmu.h | 1 + drivers/gpu/drm/nouveau/nouveau_chan.c | 4 +- drivers/gpu/drm/nouveau/nouveau_platform.c | 11 ++ drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 4 +- drivers/gpu/drm/nouveau/nvkm/core/memory.c | 25 +++ drivers/gpu/drm/nouveau/nvkm/engine/device/base.c | 28 +++- drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c | 2 +- drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c | 11 +- drivers/gpu/drm/nouveau/nvkm/engine/fifo/cgrp.c | 4 + drivers/gpu/drm/nouveau/nvkm/engine/fifo/cgrp.h | 1 + drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c | 8 +- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 15 +- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c | 28 +++- drivers/gpu/drm/nouveau/nvkm/engine/gr/Kbuild | 1 + drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c | 5 +- drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h | 1 + drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c | 2 +- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c | 15 +- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h | 1 + drivers/gpu/drm/nouveau/nvkm/engine/gr/gv11b.c | 113 +++++++++++++ drivers/gpu/drm/nouveau/nvkm/falcon/gm200.c | 11 +- drivers/gpu/drm/nouveau/nvkm/subdev/acr/Kbuild | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c | 11 +- drivers/gpu/drm/nouveau/nvkm/subdev/acr/gv11b.c | 71 ++++++++ drivers/gpu/drm/nouveau/nvkm/subdev/acr/priv.h | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c | 15 +- drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.h | 2 + drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm107.c | 2 +- drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm20b.c | 28 ++++ drivers/gpu/drm/nouveau/nvkm/subdev/bar/priv.h | 1 + .../drm/nouveau/nvkm/subdev/clk/gk20a_devfreq.c | 12 +- drivers/gpu/drm/nouveau/nvkm/subdev/fault/base.c | 1 - drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c | 19 ++- .../gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c | 17 +- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c | 3 +- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gv100.c | 17 ++ drivers/gpu/drm/nouveau/nvkm/subdev/mmu/mem.c | 63 +++++++ drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c | 35 +--- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c | 42 ++--- drivers/gpu/drm/nouveau/nvkm/subdev/pmu/Kbuild | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c | 6 +- drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gp10b.c | 3 +- drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gv11b.c | 185 +++++++++++++++++++++ drivers/gpu/drm/nouveau/nvkm/subdev/pmu/priv.h | 5 + 52 files changed, 726 insertions(+), 121 deletions(-) --- base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f change-id: 20261201-nouveau-gv11b-8de78df84c99 prerequisite-patch-id: 63109ac7ec03625c7ffdaf4ae9fbefa215a7a591
