search for: r535_fifo_chid_total

Displaying 1 result from an estimated 1 matches for "r535_fifo_chid_total".

2023 Nov 20
1
[PATCH] nouveau/gsp: fix getting max channel id for GSP
...b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c index b374d72fd1c1..1e9c0b113cb5 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c @@ -641,6 +641,12 @@ r535_fifo_dtor(struct nvkm_fifo *fifo) kfree(fifo->func); } +static int +r535_fifo_chid_total(struct nvkm_fifo *fifo) +{ + return fifo->chid->nr * CHID_PER_USERD; +} + int r535_fifo_new(const struct nvkm_fifo_func *hw, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_fifo **pfifo) @@ -652,6 +658,7 @@ r535_fifo_new(const struct nvkm_fifo_func *hw,...