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

- (temporarily) disable if GSP-RM detected, will be added later

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-24-skeggsb@gmail.com
This commit is contained in:
Ben Skeggs 2023-09-19 06:21:28 +10:00 committed by Dave Airlie
parent 426cce5705
commit 0e55453fc8
3 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,7 @@
*/
#include "priv.h"
#include <subdev/gsp.h>
#include <subdev/vfn.h>
#include <nvif/class.h>
@ -88,5 +89,8 @@ int
ga100_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_engine **pengine)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_engine_new_(&ga100_ce, device, type, inst, true, pengine);
}

View File

@ -21,6 +21,8 @@
*/
#include "priv.h"
#include <subdev/gsp.h>
#include <nvif/class.h>
static const struct nvkm_engine_func
@ -41,5 +43,8 @@ int
ga102_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_engine **pengine)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_engine_new_(&ga102_ce, device, type, inst, true, pengine);
}

View File

@ -21,6 +21,8 @@
*/
#include "priv.h"
#include <subdev/gsp.h>
#include <nvif/class.h>
static const struct nvkm_engine_func
@ -37,5 +39,8 @@ int
tu102_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_engine **pengine)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_engine_new_(&tu102_ce, device, type, inst, true, pengine);
}