From f09e1fcd5f3ef240cd61e7b3269facacf513a594 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Tue, 2 Mar 2021 21:36:14 +1000 Subject: [PATCH] drm/nouveau/fifo/gk104-gp1xx: fix creation of sw class Fixes: 497f5eadaeed851e ("drm/nouveau/fifo: add id_engine hook") Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c index 69da601f1754a..e771bd519ee24 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c @@ -261,6 +261,9 @@ gk104_fifo_pbdma = { struct nvkm_engine * gk104_fifo_id_engine(struct nvkm_fifo *base, int engi) { + if (engi == GK104_FIFO_ENGN_SW) + return nvkm_device_engine(base->engine.subdev.device, NVKM_ENGINE_SW, 0); + return gk104_fifo(base)->engine[engi].engine; } -- 2.39.5