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

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

- disable TOP 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-22-skeggsb@gmail.com
parent f2b76a18
......@@ -21,6 +21,8 @@
*/
#include "priv.h"
#include <subdev/gsp.h>
static int
ga100_top_parse(struct nvkm_top *top)
{
......@@ -104,5 +106,8 @@ int
ga100_top_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_top **ptop)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_top_new_(&ga100_top, device, type, inst, ptop);
}
......@@ -23,6 +23,8 @@
*/
#include "priv.h"
#include <subdev/gsp.h>
static int
gk104_top_parse(struct nvkm_top *top)
{
......@@ -115,5 +117,8 @@ int
gk104_top_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_top **ptop)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_top_new_(&gk104_top, device, type, inst, ptop);
}
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