diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2022-06-01 20:47:21 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2022-11-09 10:44:46 +1000 |
commit | 8c18138c7633f7f9e609be6b11e48bb33a8dfb75 (patch) | |
tree | d131ee093930938fd5e6bf066fb05be6faa3e925 /drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c | |
parent | 973b32443b090870903ad8346adfc911e7c0f188 (diff) |
drm/nouveau/fifo: add chid_nr()
- reads channel count from GPU from gm200 onwards
- removes gm20b/gp10b (they become identical to gm200/gp100)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c index f56369d59219..0be50120476f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c @@ -287,6 +287,7 @@ gv100_fifo_fault_access[] = { static const struct gk104_fifo_func gv100_fifo = { + .chid_nr = gm200_fifo_chid_nr, .pbdma = &gm200_fifo_pbdma, .fault.access = gv100_fifo_fault_access, .fault.engine = gv100_fifo_fault_engine, @@ -302,5 +303,5 @@ int gv100_fifo_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_fifo **pfifo) { - return gk104_fifo_new_(&gv100_fifo, device, type, inst, 4096, pfifo); + return gk104_fifo_new_(&gv100_fifo, device, type, inst, 0, pfifo); } |