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

- disable TOP 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-22-skeggsb@gmail.com
This commit is contained in:
Ben Skeggs 2023-09-19 06:21:26 +10:00 committed by Dave Airlie
parent f2b76a1825
commit d4c9cd346f
2 changed files with 10 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}