Skip to content

Commit 6a0fd03

Browse files
Ben Skeggsairlied
authored andcommitted
drm/nouveau/bus/tu102-: prepare for GSP-RM
- disable BUS 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]
1 parent 45655ff commit 6a0fd03

File tree

1 file changed

+5
-0
lines changed
  • drivers/gpu/drm/nouveau/nvkm/subdev/bus

1 file changed

+5
-0
lines changed

drivers/gpu/drm/nouveau/nvkm/subdev/bus/gf100.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*/
2525
#include "priv.h"
2626

27+
#include <subdev/gsp.h>
28+
2729
static void
2830
gf100_bus_intr(struct nvkm_bus *bus)
2931
{
@@ -72,5 +74,8 @@ int
7274
gf100_bus_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
7375
struct nvkm_bus **pbus)
7476
{
77+
if (nvkm_gsp_rm(device->gsp))
78+
return -ENODEV;
79+
7580
return nvkm_bus_new_(&gf100_bus, device, type, inst, pbus);
7681
}

0 commit comments

Comments
 (0)