Skip to content

Commit c41aebc

Browse files
Ben Skeggsairlied
authored andcommitted
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
1 parent 834a712 commit c41aebc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • drivers/gpu/drm/nouveau/nvkm/subdev/fuse

drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*/
2424
#include "priv.h"
2525

26+
#include <subdev/gsp.h>
27+
2628
static u32
2729
gm107_fuse_read(struct nvkm_fuse *fuse, u32 addr)
2830
{
@@ -39,5 +41,8 @@ int
3941
gm107_fuse_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
4042
struct nvkm_fuse **pfuse)
4143
{
44+
if (nvkm_gsp_rm(device->gsp))
45+
return -ENODEV;
46+
4247
return nvkm_fuse_new_(&gm107_fuse, device, type, inst, pfuse);
4348
}

0 commit comments

Comments
 (0)