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

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

- disable PRIVRING completely when GSP-RM detected
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-20-skeggsb@gmail.com
parent ab724be7
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
*/ */
#include "priv.h" #include "priv.h"
#include <subdev/gsp.h>
static const struct nvkm_subdev_func static const struct nvkm_subdev_func
gm200_privring = { gm200_privring = {
.intr = gk104_privring_intr, .intr = gk104_privring_intr,
...@@ -32,5 +34,8 @@ int ...@@ -32,5 +34,8 @@ int
gm200_privring_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, gm200_privring_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_subdev **pprivring) struct nvkm_subdev **pprivring)
{ {
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_subdev_new_(&gm200_privring, device, type, inst, pprivring); return nvkm_subdev_new_(&gm200_privring, device, type, inst, pprivring);
} }
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