summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/secboot
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2018-12-11 07:50:02 +0300
committerBen Skeggs <bskeggs@redhat.com>2018-12-11 08:37:44 +0300
commit936a1678f3f8b3c918185f0c5ba3a03ccedfb8d5 (patch)
treee078569212b22d3da64818ca04443d72f2a8c8ae /drivers/gpu/drm/nouveau/nvkm/subdev/secboot
parent3c7fc252b3fab080db110057d2d6d8c9a56d349b (diff)
downloadlinux-936a1678f3f8b3c918185f0c5ba3a03ccedfb8d5.tar.xz
drm/nouveau/core: support multiple nvdec instances
Turing GPUs can have more than one. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/secboot')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c b/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c
index 1f7a3c1a7f50..84a2f243ed9b 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c
@@ -59,10 +59,10 @@ gp102_run_secure_scrub(struct nvkm_secboot *sb)
nvkm_debug(subdev, "running VPR scrubber binary on NVDEC...\n");
- engine = nvkm_engine_ref(&device->nvdec->engine);
+ engine = nvkm_engine_ref(&device->nvdec[0]->engine);
if (IS_ERR(engine))
return PTR_ERR(engine);
- falcon = device->nvdec->falcon;
+ falcon = device->nvdec[0]->falcon;
nvkm_falcon_get(falcon, &sb->subdev);