Commit a613e7f3 authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie

drm/nouveau/fault/tu102-: prepare for GSP-RM

- disable FAULT completely when GSP-RM detected
- SVM support will be disabled when running on RM because of this
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-10-skeggsb@gmail.com
parent 15740541
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "priv.h" #include "priv.h"
#include <core/memory.h> #include <core/memory.h>
#include <subdev/gsp.h>
#include <subdev/mc.h> #include <subdev/mc.h>
#include <subdev/mmu.h> #include <subdev/mmu.h>
#include <subdev/vfn.h> #include <subdev/vfn.h>
...@@ -175,7 +176,12 @@ int ...@@ -175,7 +176,12 @@ int
tu102_fault_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, tu102_fault_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_fault **pfault) struct nvkm_fault **pfault)
{ {
int ret = nvkm_fault_new_(&tu102_fault, device, type, inst, pfault); int ret;
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
ret = nvkm_fault_new_(&tu102_fault, device, type, inst, pfault);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment