Commit 0e55453f authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie

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

- (temporarily) disable if GSP-RM detected, will be added later
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-24-skeggsb@gmail.com
parent 426cce57
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
*/ */
#include "priv.h" #include "priv.h"
#include <subdev/gsp.h>
#include <subdev/vfn.h> #include <subdev/vfn.h>
#include <nvif/class.h> #include <nvif/class.h>
...@@ -88,5 +89,8 @@ int ...@@ -88,5 +89,8 @@ int
ga100_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, ga100_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_engine **pengine) struct nvkm_engine **pengine)
{ {
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_engine_new_(&ga100_ce, device, type, inst, true, pengine); return nvkm_engine_new_(&ga100_ce, device, type, inst, true, pengine);
} }
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
*/ */
#include "priv.h" #include "priv.h"
#include <subdev/gsp.h>
#include <nvif/class.h> #include <nvif/class.h>
static const struct nvkm_engine_func static const struct nvkm_engine_func
...@@ -41,5 +43,8 @@ int ...@@ -41,5 +43,8 @@ int
ga102_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, ga102_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_engine **pengine) struct nvkm_engine **pengine)
{ {
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_engine_new_(&ga102_ce, device, type, inst, true, pengine); return nvkm_engine_new_(&ga102_ce, device, type, inst, true, pengine);
} }
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
*/ */
#include "priv.h" #include "priv.h"
#include <subdev/gsp.h>
#include <nvif/class.h> #include <nvif/class.h>
static const struct nvkm_engine_func static const struct nvkm_engine_func
...@@ -37,5 +39,8 @@ int ...@@ -37,5 +39,8 @@ int
tu102_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, tu102_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_engine **pengine) struct nvkm_engine **pengine)
{ {
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_engine_new_(&tu102_ce, device, type, inst, true, pengine); return nvkm_engine_new_(&tu102_ce, device, type, inst, true, pengine);
} }
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