Skip to content

Commit

Permalink
drm/nouveau/bus/tu102-: prepare for GSP-RM
Browse files Browse the repository at this point in the history
- disable BUS 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-8-skeggsb@gmail.com
  • Loading branch information
Ben Skeggs authored and Dave Airlie committed Oct 31, 2023
1 parent 45655ff commit 6a0fd03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/nouveau/nvkm/subdev/bus/gf100.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
*/
#include "priv.h"

#include <subdev/gsp.h>

static void
gf100_bus_intr(struct nvkm_bus *bus)
{
Expand Down Expand Up @@ -72,5 +74,8 @@ int
gf100_bus_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_bus **pbus)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;

return nvkm_bus_new_(&gf100_bus, device, type, inst, pbus);
}

0 comments on commit 6a0fd03

Please sign in to comment.