projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834a712
)
drm/nouveau/fuse/tu102-: prepare for GSP-RM
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 18 Sep 2023 20:21:16 +0000
(06:21 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 31 Oct 2023 05:08:11 +0000
(15:08 +1000)
- 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
drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c
index 7dc99492f536e7c90f5d16fc3c1bcd3c77ecd6b9..d621edbdff9d9ec90bd8656a58b46c4625a5dddb 100644
(file)
--- 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);
}