Skip to content

Commit

Permalink
drm/nouveau/privring/tu102-: prepare for GSP-RM
Browse files Browse the repository at this point in the history
- disable PRIVRING completely when GSP-RM detected

Signed-off-by: Ben Skeggs <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
Ben Skeggs authored and airlied committed Oct 31, 2023
1 parent ab724be commit fd7d598
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/nouveau/nvkm/subdev/privring/gm200.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
#include "priv.h"

#include <subdev/gsp.h>

static const struct nvkm_subdev_func
gm200_privring = {
.intr = gk104_privring_intr,
Expand All @@ -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);
}

0 comments on commit fd7d598

Please sign in to comment.