drm/nouveau/mmu/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-18-skeggsb@gmail.com
This commit is contained in:
parent
3cd7924e0e
commit
f5a533a81e
@ -24,6 +24,7 @@
|
||||
#include "vmm.h"
|
||||
|
||||
#include <core/option.h>
|
||||
#include <subdev/gsp.h>
|
||||
|
||||
#include <nvif/class.h>
|
||||
|
||||
@ -54,5 +55,8 @@ int
|
||||
tu102_mmu_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
|
||||
struct nvkm_mmu **pmmu)
|
||||
{
|
||||
if (nvkm_gsp_rm(device->gsp))
|
||||
return -ENODEV;
|
||||
|
||||
return nvkm_mmu_new_(&tu102_mmu, device, type, inst, pmmu);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user