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

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

parent f2b76a18
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
}
+5 −0
Original line number Diff line number Diff line
@@ -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);
}