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

- disable PRIVRING 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-20-skeggsb@gmail.com
This commit is contained in:
Ben Skeggs 2023-09-19 06:21:24 +10:00 committed by Dave Airlie
parent ab724be7a3
commit fd7d598270

View File

@ -23,6 +23,8 @@
*/
#include "priv.h"
#include <subdev/gsp.h>
static const struct nvkm_subdev_func
gm200_privring = {
.intr = gk104_privring_intr,
@ -32,5 +34,8 @@ int
gm200_privring_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_subdev **pprivring)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_subdev_new_(&gm200_privring, device, type, inst, pprivring);
}