Commit 890c85f3 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/core: increase maximum number of copy engines to 9

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 2ce7f386
...@@ -38,7 +38,10 @@ enum nvkm_devidx { ...@@ -38,7 +38,10 @@ enum nvkm_devidx {
NVKM_ENGINE_CE3, NVKM_ENGINE_CE3,
NVKM_ENGINE_CE4, NVKM_ENGINE_CE4,
NVKM_ENGINE_CE5, NVKM_ENGINE_CE5,
NVKM_ENGINE_CE_LAST = NVKM_ENGINE_CE5, NVKM_ENGINE_CE6,
NVKM_ENGINE_CE7,
NVKM_ENGINE_CE8,
NVKM_ENGINE_CE_LAST = NVKM_ENGINE_CE8,
NVKM_ENGINE_CIPHER, NVKM_ENGINE_CIPHER,
NVKM_ENGINE_DISP, NVKM_ENGINE_DISP,
...@@ -145,7 +148,7 @@ struct nvkm_device { ...@@ -145,7 +148,7 @@ struct nvkm_device {
struct nvkm_volt *volt; struct nvkm_volt *volt;
struct nvkm_engine *bsp; struct nvkm_engine *bsp;
struct nvkm_engine *ce[6]; struct nvkm_engine *ce[9];
struct nvkm_engine *cipher; struct nvkm_engine *cipher;
struct nvkm_disp *disp; struct nvkm_disp *disp;
struct nvkm_dma *dma; struct nvkm_dma *dma;
...@@ -217,7 +220,7 @@ struct nvkm_device_chip { ...@@ -217,7 +220,7 @@ struct nvkm_device_chip {
int (*volt )(struct nvkm_device *, int idx, struct nvkm_volt **); int (*volt )(struct nvkm_device *, int idx, struct nvkm_volt **);
int (*bsp )(struct nvkm_device *, int idx, struct nvkm_engine **); int (*bsp )(struct nvkm_device *, int idx, struct nvkm_engine **);
int (*ce[6] )(struct nvkm_device *, int idx, struct nvkm_engine **); int (*ce[9] )(struct nvkm_device *, int idx, struct nvkm_engine **);
int (*cipher )(struct nvkm_device *, int idx, struct nvkm_engine **); int (*cipher )(struct nvkm_device *, int idx, struct nvkm_engine **);
int (*disp )(struct nvkm_device *, int idx, struct nvkm_disp **); int (*disp )(struct nvkm_device *, int idx, struct nvkm_disp **);
int (*dma )(struct nvkm_device *, int idx, struct nvkm_dma **); int (*dma )(struct nvkm_device *, int idx, struct nvkm_dma **);
......
...@@ -61,6 +61,9 @@ nvkm_subdev_name[NVKM_SUBDEV_NR] = { ...@@ -61,6 +61,9 @@ nvkm_subdev_name[NVKM_SUBDEV_NR] = {
[NVKM_ENGINE_CE3 ] = "ce3", [NVKM_ENGINE_CE3 ] = "ce3",
[NVKM_ENGINE_CE4 ] = "ce4", [NVKM_ENGINE_CE4 ] = "ce4",
[NVKM_ENGINE_CE5 ] = "ce5", [NVKM_ENGINE_CE5 ] = "ce5",
[NVKM_ENGINE_CE6 ] = "ce6",
[NVKM_ENGINE_CE7 ] = "ce7",
[NVKM_ENGINE_CE8 ] = "ce8",
[NVKM_ENGINE_CIPHER ] = "cipher", [NVKM_ENGINE_CIPHER ] = "cipher",
[NVKM_ENGINE_DISP ] = "disp", [NVKM_ENGINE_DISP ] = "disp",
[NVKM_ENGINE_DMAOBJ ] = "dma", [NVKM_ENGINE_DMAOBJ ] = "dma",
......
...@@ -2471,6 +2471,9 @@ nvkm_device_engine(struct nvkm_device *device, int index) ...@@ -2471,6 +2471,9 @@ nvkm_device_engine(struct nvkm_device *device, int index)
_(CE3 , device->ce[3] , device->ce[3]); _(CE3 , device->ce[3] , device->ce[3]);
_(CE4 , device->ce[4] , device->ce[4]); _(CE4 , device->ce[4] , device->ce[4]);
_(CE5 , device->ce[5] , device->ce[5]); _(CE5 , device->ce[5] , device->ce[5]);
_(CE6 , device->ce[6] , device->ce[6]);
_(CE7 , device->ce[7] , device->ce[7]);
_(CE8 , device->ce[8] , device->ce[8]);
_(CIPHER , device->cipher , device->cipher); _(CIPHER , device->cipher , device->cipher);
_(DISP , device->disp , &device->disp->engine); _(DISP , device->disp , &device->disp->engine);
_(DMAOBJ , device->dma , &device->dma->engine); _(DMAOBJ , device->dma , &device->dma->engine);
...@@ -2925,6 +2928,9 @@ nvkm_device_ctor(const struct nvkm_device_func *func, ...@@ -2925,6 +2928,9 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
_(NVKM_ENGINE_CE3 , ce[3]); _(NVKM_ENGINE_CE3 , ce[3]);
_(NVKM_ENGINE_CE4 , ce[4]); _(NVKM_ENGINE_CE4 , ce[4]);
_(NVKM_ENGINE_CE5 , ce[5]); _(NVKM_ENGINE_CE5 , ce[5]);
_(NVKM_ENGINE_CE6 , ce[6]);
_(NVKM_ENGINE_CE7 , ce[7]);
_(NVKM_ENGINE_CE8 , ce[8]);
_(NVKM_ENGINE_CIPHER , cipher); _(NVKM_ENGINE_CIPHER , cipher);
_(NVKM_ENGINE_DISP , disp); _(NVKM_ENGINE_DISP , disp);
_(NVKM_ENGINE_DMAOBJ , dma); _(NVKM_ENGINE_DMAOBJ , dma);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment