Commit f5a533a8 authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie

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

- (temporarily) disable if GSP-RM detected, will be added later
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-18-skeggsb@gmail.com
parent 3cd7924e
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "vmm.h" #include "vmm.h"
#include <core/option.h> #include <core/option.h>
#include <subdev/gsp.h>
#include <nvif/class.h> #include <nvif/class.h>
...@@ -54,5 +55,8 @@ int ...@@ -54,5 +55,8 @@ int
tu102_mmu_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, tu102_mmu_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_mmu **pmmu) struct nvkm_mmu **pmmu)
{ {
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_mmu_new_(&tu102_mmu, device, type, inst, pmmu); return nvkm_mmu_new_(&tu102_mmu, device, type, inst, pmmu);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment