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

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

parent 1dc750da
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 void
ga100_mc_device_disable(struct nvkm_mc *mc, u32 mask)
{
@@ -72,5 +74,8 @@ ga100_mc = {
int
ga100_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc)
{
	if (nvkm_gsp_rm(device->gsp))
		return -ENODEV;

	return nvkm_mc_new_(&ga100_mc, device, type, inst, pmc);
}
+5 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@
 */
#include "priv.h"

#include <subdev/gsp.h>

const struct nvkm_intr_data
gp100_mc_intrs[] = {
	{ NVKM_ENGINE_DISP    , 0, 0, 0x04000000, true },
@@ -98,5 +100,8 @@ gp100_mc = {
int
gp100_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc)
{
	if (nvkm_gsp_rm(device->gsp))
		return -ENODEV;

	return nvkm_mc_new_(&gp100_mc, device, type, inst, pmc);
}