diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2023-09-19 06:21:16 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2023-10-31 15:08:11 +1000 |
commit | c41aebc9aca41116c40e6fabce1d52250fc91b36 (patch) | |
tree | 8e9dd217df0bc63cfcaa470892a7c7a26d99963c | |
parent | 834a712b6ed2f5ae83ad0a0b038d0a3e1782abbb (diff) | |
download | linux-stable-c41aebc9aca41116c40e6fabce1d52250fc91b36.tar.gz linux-stable-c41aebc9aca41116c40e6fabce1d52250fc91b36.tar.bz2 linux-stable-c41aebc9aca41116c40e6fabce1d52250fc91b36.zip |
drm/nouveau/fuse/tu102-: prepare for GSP-RM
- disable FUSE completely when GSP-RM detected
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-12-skeggsb@gmail.com
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c index 7dc99492f536..d621edbdff9d 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c @@ -23,6 +23,8 @@ */ #include "priv.h" +#include <subdev/gsp.h> + static u32 gm107_fuse_read(struct nvkm_fuse *fuse, u32 addr) { @@ -39,5 +41,8 @@ int gm107_fuse_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_fuse **pfuse) { + if (nvkm_gsp_rm(device->gsp)) + return -ENODEV; + return nvkm_fuse_new_(&gm107_fuse, device, type, inst, pfuse); } |