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:
parent
426cce5705
commit
0e55453fc8
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user