projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab724be
)
drm/nouveau/privring/tu102-: prepare for GSP-RM
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 18 Sep 2023 20:21:24 +0000
(06:21 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 31 Oct 2023 05:08:13 +0000
(15:08 +1000)
- disable PRIVRING completely when GSP-RM detected
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-20-skeggsb@gmail.com
drivers/gpu/drm/nouveau/nvkm/subdev/privring/gm200.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/privring/gm200.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/privring/gm200.c
index b4eaf6db36d728fda55143f85d5ab61b9212beb9..b4530073bfdc44ed8f9b3abe6935cf8b533b8026 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/privring/gm200.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/privring/gm200.c
@@
-23,6
+23,8
@@
*/
#include "priv.h"
+#include <subdev/gsp.h>
+
static const struct nvkm_subdev_func
gm200_privring = {
.intr = gk104_privring_intr,
@@
-32,5
+34,8
@@
int
gm200_privring_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_subdev **pprivring)
{
+ if (nvkm_gsp_rm(device->gsp))
+ return -ENODEV;
+
return nvkm_subdev_new_(&gm200_privring, device, type, inst, pprivring);
}