projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cd7924
)
drm/nouveau/mmu/tu102-: prepare for GSP-RM
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 18 Sep 2023 20:21:22 +0000
(06:21 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 31 Oct 2023 05:08:12 +0000
(15:08 +1000)
- (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
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c
index 8d060ce47f8657aeef67c7533f0f24f2d4e2930e..87979952df4b3f2f6548c64dbafba6cf0c1f294c 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c
@@
-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);
}