diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2023-09-18 23:21:22 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2023-10-31 08:08:12 +0300 |
commit | f5a533a81e51d963bd267acc08dd1924bd93503e (patch) | |
tree | be331e53e6b8009dcc635295b6bdbdfd4e8d768d /drivers/gpu | |
parent | 3cd7924e0eddfd525ea532397932005d0ff2686b (diff) | |
download | linux-f5a533a81e51d963bd267acc08dd1924bd93503e.tar.xz |
drm/nouveau/mmu/tu102-: prepare for GSP-RM
- (temporarily) disable if GSP-RM detected, will be added later
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-18-skeggsb@gmail.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c index 8d060ce47f86..87979952df4b 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c @@ -24,6 +24,7 @@ #include "vmm.h" #include <core/option.h> +#include <subdev/gsp.h> #include <nvif/class.h> @@ -54,5 +55,8 @@ int tu102_mmu_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mmu **pmmu) { + if (nvkm_gsp_rm(device->gsp)) + return -ENODEV; + return nvkm_mmu_new_(&tu102_mmu, device, type, inst, pmmu); } |