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