aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2021-03-02 21:36:14 +1000
committerBen Skeggs <bskeggs@redhat.com>2021-03-02 21:48:42 +1000
commit78652ff69be439f7e925067c6a61b1839e531c01 (patch)
treef42c7c948e390b872cda10ce69219a46637440cd /drivers
parentdrm/nouveau/top/ga100: initial support (diff)
downloadlinux-dev-78652ff69be439f7e925067c6a61b1839e531c01.tar.xz
linux-dev-78652ff69be439f7e925067c6a61b1839e531c01.zip
drm/nouveau/fifo/gk104-gp1xx: fix creation of sw class
Fixes: 496162037cd24191 ("drm/nouveau/fifo: add id_engine hook") Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
index 69da601f1754..e771bd519ee2 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;
}