|
@@ -21,16 +21,28 @@
|
|
*
|
|
*
|
|
* Authors: Ben Skeggs
|
|
* Authors: Ben Skeggs
|
|
*/
|
|
*/
|
|
-
|
|
|
|
-#include "nvc0.h"
|
|
|
|
-#include "ctxnvc0.h"
|
|
|
|
|
|
+#include "gf100.h"
|
|
|
|
+#include "ctxgf100.h"
|
|
|
|
+#include "fuc/os.h"
|
|
|
|
+
|
|
|
|
+#include <core/client.h>
|
|
|
|
+#include <core/device.h>
|
|
|
|
+#include <core/handle.h>
|
|
|
|
+#include <core/option.h>
|
|
|
|
+#include <engine/fifo.h>
|
|
|
|
+#include <subdev/fb.h>
|
|
|
|
+#include <subdev/mc.h>
|
|
|
|
+#include <subdev/timer.h>
|
|
|
|
+
|
|
|
|
+#include <nvif/class.h>
|
|
|
|
+#include <nvif/unpack.h>
|
|
|
|
|
|
/*******************************************************************************
|
|
/*******************************************************************************
|
|
* Zero Bandwidth Clear
|
|
* Zero Bandwidth Clear
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_zbc_clear_color(struct nvc0_gr_priv *priv, int zbc)
|
|
|
|
|
|
+gf100_gr_zbc_clear_color(struct gf100_gr_priv *priv, int zbc)
|
|
{
|
|
{
|
|
if (priv->zbc_color[zbc].format) {
|
|
if (priv->zbc_color[zbc].format) {
|
|
nv_wr32(priv, 0x405804, priv->zbc_color[zbc].ds[0]);
|
|
nv_wr32(priv, 0x405804, priv->zbc_color[zbc].ds[0]);
|
|
@@ -44,10 +56,10 @@ nvc0_gr_zbc_clear_color(struct nvc0_gr_priv *priv, int zbc)
|
|
}
|
|
}
|
|
|
|
|
|
static int
|
|
static int
|
|
-nvc0_gr_zbc_color_get(struct nvc0_gr_priv *priv, int format,
|
|
|
|
- const u32 ds[4], const u32 l2[4])
|
|
|
|
|
|
+gf100_gr_zbc_color_get(struct gf100_gr_priv *priv, int format,
|
|
|
|
+ const u32 ds[4], const u32 l2[4])
|
|
{
|
|
{
|
|
- struct nouveau_ltc *ltc = nouveau_ltc(priv);
|
|
|
|
|
|
+ struct nvkm_ltc *ltc = nvkm_ltc(priv);
|
|
int zbc = -ENOSPC, i;
|
|
int zbc = -ENOSPC, i;
|
|
|
|
|
|
for (i = ltc->zbc_min; i <= ltc->zbc_max; i++) {
|
|
for (i = ltc->zbc_min; i <= ltc->zbc_max; i++) {
|
|
@@ -75,12 +87,12 @@ nvc0_gr_zbc_color_get(struct nvc0_gr_priv *priv, int format,
|
|
memcpy(priv->zbc_color[zbc].l2, l2, sizeof(priv->zbc_color[zbc].l2));
|
|
memcpy(priv->zbc_color[zbc].l2, l2, sizeof(priv->zbc_color[zbc].l2));
|
|
priv->zbc_color[zbc].format = format;
|
|
priv->zbc_color[zbc].format = format;
|
|
ltc->zbc_color_get(ltc, zbc, l2);
|
|
ltc->zbc_color_get(ltc, zbc, l2);
|
|
- nvc0_gr_zbc_clear_color(priv, zbc);
|
|
|
|
|
|
+ gf100_gr_zbc_clear_color(priv, zbc);
|
|
return zbc;
|
|
return zbc;
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_zbc_clear_depth(struct nvc0_gr_priv *priv, int zbc)
|
|
|
|
|
|
+gf100_gr_zbc_clear_depth(struct gf100_gr_priv *priv, int zbc)
|
|
{
|
|
{
|
|
if (priv->zbc_depth[zbc].format)
|
|
if (priv->zbc_depth[zbc].format)
|
|
nv_wr32(priv, 0x405818, priv->zbc_depth[zbc].ds);
|
|
nv_wr32(priv, 0x405818, priv->zbc_depth[zbc].ds);
|
|
@@ -90,10 +102,10 @@ nvc0_gr_zbc_clear_depth(struct nvc0_gr_priv *priv, int zbc)
|
|
}
|
|
}
|
|
|
|
|
|
static int
|
|
static int
|
|
-nvc0_gr_zbc_depth_get(struct nvc0_gr_priv *priv, int format,
|
|
|
|
- const u32 ds, const u32 l2)
|
|
|
|
|
|
+gf100_gr_zbc_depth_get(struct gf100_gr_priv *priv, int format,
|
|
|
|
+ const u32 ds, const u32 l2)
|
|
{
|
|
{
|
|
- struct nouveau_ltc *ltc = nouveau_ltc(priv);
|
|
|
|
|
|
+ struct nvkm_ltc *ltc = nvkm_ltc(priv);
|
|
int zbc = -ENOSPC, i;
|
|
int zbc = -ENOSPC, i;
|
|
|
|
|
|
for (i = ltc->zbc_min; i <= ltc->zbc_max; i++) {
|
|
for (i = ltc->zbc_min; i <= ltc->zbc_max; i++) {
|
|
@@ -119,7 +131,7 @@ nvc0_gr_zbc_depth_get(struct nvc0_gr_priv *priv, int format,
|
|
priv->zbc_depth[zbc].ds = ds;
|
|
priv->zbc_depth[zbc].ds = ds;
|
|
priv->zbc_depth[zbc].l2 = l2;
|
|
priv->zbc_depth[zbc].l2 = l2;
|
|
ltc->zbc_depth_get(ltc, zbc, l2);
|
|
ltc->zbc_depth_get(ltc, zbc, l2);
|
|
- nvc0_gr_zbc_clear_depth(priv, zbc);
|
|
|
|
|
|
+ gf100_gr_zbc_clear_depth(priv, zbc);
|
|
return zbc;
|
|
return zbc;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -128,9 +140,9 @@ nvc0_gr_zbc_depth_get(struct nvc0_gr_priv *priv, int format,
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
|
|
|
|
static int
|
|
static int
|
|
-nvc0_fermi_mthd_zbc_color(struct nouveau_object *object, void *data, u32 size)
|
|
|
|
|
|
+gf100_fermi_mthd_zbc_color(struct nvkm_object *object, void *data, u32 size)
|
|
{
|
|
{
|
|
- struct nvc0_gr_priv *priv = (void *)object->engine;
|
|
|
|
|
|
+ struct gf100_gr_priv *priv = (void *)object->engine;
|
|
union {
|
|
union {
|
|
struct fermi_a_zbc_color_v0 v0;
|
|
struct fermi_a_zbc_color_v0 v0;
|
|
} *args = data;
|
|
} *args = data;
|
|
@@ -157,9 +169,9 @@ nvc0_fermi_mthd_zbc_color(struct nouveau_object *object, void *data, u32 size)
|
|
case FERMI_A_ZBC_COLOR_V0_FMT_AU8BU8GU8RU8:
|
|
case FERMI_A_ZBC_COLOR_V0_FMT_AU8BU8GU8RU8:
|
|
case FERMI_A_ZBC_COLOR_V0_FMT_A2R10G10B10:
|
|
case FERMI_A_ZBC_COLOR_V0_FMT_A2R10G10B10:
|
|
case FERMI_A_ZBC_COLOR_V0_FMT_BF10GF11RF11:
|
|
case FERMI_A_ZBC_COLOR_V0_FMT_BF10GF11RF11:
|
|
- ret = nvc0_gr_zbc_color_get(priv, args->v0.format,
|
|
|
|
- args->v0.ds,
|
|
|
|
- args->v0.l2);
|
|
|
|
|
|
+ ret = gf100_gr_zbc_color_get(priv, args->v0.format,
|
|
|
|
+ args->v0.ds,
|
|
|
|
+ args->v0.l2);
|
|
if (ret >= 0) {
|
|
if (ret >= 0) {
|
|
args->v0.index = ret;
|
|
args->v0.index = ret;
|
|
return 0;
|
|
return 0;
|
|
@@ -174,9 +186,9 @@ nvc0_fermi_mthd_zbc_color(struct nouveau_object *object, void *data, u32 size)
|
|
}
|
|
}
|
|
|
|
|
|
static int
|
|
static int
|
|
-nvc0_fermi_mthd_zbc_depth(struct nouveau_object *object, void *data, u32 size)
|
|
|
|
|
|
+gf100_fermi_mthd_zbc_depth(struct nvkm_object *object, void *data, u32 size)
|
|
{
|
|
{
|
|
- struct nvc0_gr_priv *priv = (void *)object->engine;
|
|
|
|
|
|
+ struct gf100_gr_priv *priv = (void *)object->engine;
|
|
union {
|
|
union {
|
|
struct fermi_a_zbc_depth_v0 v0;
|
|
struct fermi_a_zbc_depth_v0 v0;
|
|
} *args = data;
|
|
} *args = data;
|
|
@@ -185,9 +197,9 @@ nvc0_fermi_mthd_zbc_depth(struct nouveau_object *object, void *data, u32 size)
|
|
if (nvif_unpack(args->v0, 0, 0, false)) {
|
|
if (nvif_unpack(args->v0, 0, 0, false)) {
|
|
switch (args->v0.format) {
|
|
switch (args->v0.format) {
|
|
case FERMI_A_ZBC_DEPTH_V0_FMT_FP32:
|
|
case FERMI_A_ZBC_DEPTH_V0_FMT_FP32:
|
|
- ret = nvc0_gr_zbc_depth_get(priv, args->v0.format,
|
|
|
|
- args->v0.ds,
|
|
|
|
- args->v0.l2);
|
|
|
|
|
|
+ ret = gf100_gr_zbc_depth_get(priv, args->v0.format,
|
|
|
|
+ args->v0.ds,
|
|
|
|
+ args->v0.l2);
|
|
return (ret >= 0) ? 0 : -ENOSPC;
|
|
return (ret >= 0) ? 0 : -ENOSPC;
|
|
default:
|
|
default:
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
@@ -198,33 +210,33 @@ nvc0_fermi_mthd_zbc_depth(struct nouveau_object *object, void *data, u32 size)
|
|
}
|
|
}
|
|
|
|
|
|
static int
|
|
static int
|
|
-nvc0_fermi_mthd(struct nouveau_object *object, u32 mthd, void *data, u32 size)
|
|
|
|
|
|
+gf100_fermi_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size)
|
|
{
|
|
{
|
|
switch (mthd) {
|
|
switch (mthd) {
|
|
case FERMI_A_ZBC_COLOR:
|
|
case FERMI_A_ZBC_COLOR:
|
|
- return nvc0_fermi_mthd_zbc_color(object, data, size);
|
|
|
|
|
|
+ return gf100_fermi_mthd_zbc_color(object, data, size);
|
|
case FERMI_A_ZBC_DEPTH:
|
|
case FERMI_A_ZBC_DEPTH:
|
|
- return nvc0_fermi_mthd_zbc_depth(object, data, size);
|
|
|
|
|
|
+ return gf100_fermi_mthd_zbc_depth(object, data, size);
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
-struct nouveau_ofuncs
|
|
|
|
-nvc0_fermi_ofuncs = {
|
|
|
|
- .ctor = _nouveau_object_ctor,
|
|
|
|
- .dtor = nouveau_object_destroy,
|
|
|
|
- .init = nouveau_object_init,
|
|
|
|
- .fini = nouveau_object_fini,
|
|
|
|
- .mthd = nvc0_fermi_mthd,
|
|
|
|
|
|
+struct nvkm_ofuncs
|
|
|
|
+gf100_fermi_ofuncs = {
|
|
|
|
+ .ctor = _nvkm_object_ctor,
|
|
|
|
+ .dtor = nvkm_object_destroy,
|
|
|
|
+ .init = nvkm_object_init,
|
|
|
|
+ .fini = nvkm_object_fini,
|
|
|
|
+ .mthd = gf100_fermi_mthd,
|
|
};
|
|
};
|
|
|
|
|
|
static int
|
|
static int
|
|
-nvc0_gr_set_shader_exceptions(struct nouveau_object *object, u32 mthd,
|
|
|
|
- void *pdata, u32 size)
|
|
|
|
|
|
+gf100_gr_set_shader_exceptions(struct nvkm_object *object, u32 mthd,
|
|
|
|
+ void *pdata, u32 size)
|
|
{
|
|
{
|
|
- struct nvc0_gr_priv *priv = (void *)nv_engine(object);
|
|
|
|
|
|
+ struct gf100_gr_priv *priv = (void *)nv_engine(object);
|
|
if (size >= sizeof(u32)) {
|
|
if (size >= sizeof(u32)) {
|
|
u32 data = *(u32 *)pdata ? 0xffffffff : 0x00000000;
|
|
u32 data = *(u32 *)pdata ? 0xffffffff : 0x00000000;
|
|
nv_wr32(priv, 0x419e44, data);
|
|
nv_wr32(priv, 0x419e44, data);
|
|
@@ -234,24 +246,24 @@ nvc0_gr_set_shader_exceptions(struct nouveau_object *object, u32 mthd,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
-struct nouveau_omthds
|
|
|
|
-nvc0_gr_9097_omthds[] = {
|
|
|
|
- { 0x1528, 0x1528, nvc0_gr_set_shader_exceptions },
|
|
|
|
|
|
+struct nvkm_omthds
|
|
|
|
+gf100_gr_9097_omthds[] = {
|
|
|
|
+ { 0x1528, 0x1528, gf100_gr_set_shader_exceptions },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-struct nouveau_omthds
|
|
|
|
-nvc0_gr_90c0_omthds[] = {
|
|
|
|
- { 0x1528, 0x1528, nvc0_gr_set_shader_exceptions },
|
|
|
|
|
|
+struct nvkm_omthds
|
|
|
|
+gf100_gr_90c0_omthds[] = {
|
|
|
|
+ { 0x1528, 0x1528, gf100_gr_set_shader_exceptions },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-struct nouveau_oclass
|
|
|
|
-nvc0_gr_sclass[] = {
|
|
|
|
- { 0x902d, &nouveau_object_ofuncs },
|
|
|
|
- { 0x9039, &nouveau_object_ofuncs },
|
|
|
|
- { FERMI_A, &nvc0_fermi_ofuncs, nvc0_gr_9097_omthds },
|
|
|
|
- { FERMI_COMPUTE_A, &nouveau_object_ofuncs, nvc0_gr_90c0_omthds },
|
|
|
|
|
|
+struct nvkm_oclass
|
|
|
|
+gf100_gr_sclass[] = {
|
|
|
|
+ { 0x902d, &nvkm_object_ofuncs },
|
|
|
|
+ { 0x9039, &nvkm_object_ofuncs },
|
|
|
|
+ { FERMI_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
|
|
|
|
+ { FERMI_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
@@ -260,22 +272,21 @@ nvc0_gr_sclass[] = {
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
|
|
|
|
int
|
|
int
|
|
-nvc0_gr_context_ctor(struct nouveau_object *parent,
|
|
|
|
- struct nouveau_object *engine,
|
|
|
|
- struct nouveau_oclass *oclass, void *args, u32 size,
|
|
|
|
- struct nouveau_object **pobject)
|
|
|
|
|
|
+gf100_gr_context_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
|
|
|
|
+ struct nvkm_oclass *oclass, void *args, u32 size,
|
|
|
|
+ struct nvkm_object **pobject)
|
|
{
|
|
{
|
|
- struct nouveau_vm *vm = nouveau_client(parent)->vm;
|
|
|
|
- struct nvc0_gr_priv *priv = (void *)engine;
|
|
|
|
- struct nvc0_gr_data *data = priv->mmio_data;
|
|
|
|
- struct nvc0_gr_mmio *mmio = priv->mmio_list;
|
|
|
|
- struct nvc0_gr_chan *chan;
|
|
|
|
|
|
+ struct nvkm_vm *vm = nvkm_client(parent)->vm;
|
|
|
|
+ struct gf100_gr_priv *priv = (void *)engine;
|
|
|
|
+ struct gf100_gr_data *data = priv->mmio_data;
|
|
|
|
+ struct gf100_gr_mmio *mmio = priv->mmio_list;
|
|
|
|
+ struct gf100_gr_chan *chan;
|
|
int ret, i;
|
|
int ret, i;
|
|
|
|
|
|
/* allocate memory for context, and fill with default values */
|
|
/* allocate memory for context, and fill with default values */
|
|
- ret = nouveau_gr_context_create(parent, engine, oclass, NULL,
|
|
|
|
- priv->size, 0x100,
|
|
|
|
- NVOBJ_FLAG_ZERO_ALLOC, &chan);
|
|
|
|
|
|
+ ret = nvkm_gr_context_create(parent, engine, oclass, NULL,
|
|
|
|
+ priv->size, 0x100,
|
|
|
|
+ NVOBJ_FLAG_ZERO_ALLOC, &chan);
|
|
*pobject = nv_object(chan);
|
|
*pobject = nv_object(chan);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
@@ -284,26 +295,26 @@ nvc0_gr_context_ctor(struct nouveau_object *parent,
|
|
* fuc to modify some per-context register settings on first load
|
|
* fuc to modify some per-context register settings on first load
|
|
* of the context.
|
|
* of the context.
|
|
*/
|
|
*/
|
|
- ret = nouveau_gpuobj_new(nv_object(chan), NULL, 0x1000, 0x100, 0,
|
|
|
|
- &chan->mmio);
|
|
|
|
|
|
+ ret = nvkm_gpuobj_new(nv_object(chan), NULL, 0x1000, 0x100, 0,
|
|
|
|
+ &chan->mmio);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
- ret = nouveau_gpuobj_map_vm(nv_gpuobj(chan->mmio), vm,
|
|
|
|
- NV_MEM_ACCESS_RW | NV_MEM_ACCESS_SYS,
|
|
|
|
- &chan->mmio_vma);
|
|
|
|
|
|
+ ret = nvkm_gpuobj_map_vm(nv_gpuobj(chan->mmio), vm,
|
|
|
|
+ NV_MEM_ACCESS_RW | NV_MEM_ACCESS_SYS,
|
|
|
|
+ &chan->mmio_vma);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
/* allocate buffers referenced by mmio list */
|
|
/* allocate buffers referenced by mmio list */
|
|
for (i = 0; data->size && i < ARRAY_SIZE(priv->mmio_data); i++) {
|
|
for (i = 0; data->size && i < ARRAY_SIZE(priv->mmio_data); i++) {
|
|
- ret = nouveau_gpuobj_new(nv_object(chan), NULL, data->size,
|
|
|
|
- data->align, 0, &chan->data[i].mem);
|
|
|
|
|
|
+ ret = nvkm_gpuobj_new(nv_object(chan), NULL, data->size,
|
|
|
|
+ data->align, 0, &chan->data[i].mem);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
- ret = nouveau_gpuobj_map_vm(chan->data[i].mem, vm, data->access,
|
|
|
|
- &chan->data[i].vma);
|
|
|
|
|
|
+ ret = nvkm_gpuobj_map_vm(chan->data[i].mem, vm, data->access,
|
|
|
|
+ &chan->data[i].vma);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
@@ -347,28 +358,28 @@ nvc0_gr_context_ctor(struct nouveau_object *parent,
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-nvc0_gr_context_dtor(struct nouveau_object *object)
|
|
|
|
|
|
+gf100_gr_context_dtor(struct nvkm_object *object)
|
|
{
|
|
{
|
|
- struct nvc0_gr_chan *chan = (void *)object;
|
|
|
|
|
|
+ struct gf100_gr_chan *chan = (void *)object;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(chan->data); i++) {
|
|
for (i = 0; i < ARRAY_SIZE(chan->data); i++) {
|
|
- nouveau_gpuobj_unmap(&chan->data[i].vma);
|
|
|
|
- nouveau_gpuobj_ref(NULL, &chan->data[i].mem);
|
|
|
|
|
|
+ nvkm_gpuobj_unmap(&chan->data[i].vma);
|
|
|
|
+ nvkm_gpuobj_ref(NULL, &chan->data[i].mem);
|
|
}
|
|
}
|
|
|
|
|
|
- nouveau_gpuobj_unmap(&chan->mmio_vma);
|
|
|
|
- nouveau_gpuobj_ref(NULL, &chan->mmio);
|
|
|
|
|
|
+ nvkm_gpuobj_unmap(&chan->mmio_vma);
|
|
|
|
+ nvkm_gpuobj_ref(NULL, &chan->mmio);
|
|
|
|
|
|
- nouveau_gr_context_destroy(&chan->base);
|
|
|
|
|
|
+ nvkm_gr_context_destroy(&chan->base);
|
|
}
|
|
}
|
|
|
|
|
|
/*******************************************************************************
|
|
/*******************************************************************************
|
|
* PGRAPH register lists
|
|
* PGRAPH register lists
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_main_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_main_0[] = {
|
|
{ 0x400080, 1, 0x04, 0x003083c2 },
|
|
{ 0x400080, 1, 0x04, 0x003083c2 },
|
|
{ 0x400088, 1, 0x04, 0x00006fe7 },
|
|
{ 0x400088, 1, 0x04, 0x00006fe7 },
|
|
{ 0x40008c, 1, 0x04, 0x00000000 },
|
|
{ 0x40008c, 1, 0x04, 0x00000000 },
|
|
@@ -383,53 +394,53 @@ nvc0_gr_init_main_0[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_fe_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_fe_0[] = {
|
|
{ 0x40415c, 1, 0x04, 0x00000000 },
|
|
{ 0x40415c, 1, 0x04, 0x00000000 },
|
|
{ 0x404170, 1, 0x04, 0x00000000 },
|
|
{ 0x404170, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_pri_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_pri_0[] = {
|
|
{ 0x404488, 2, 0x04, 0x00000000 },
|
|
{ 0x404488, 2, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_rstr2d_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_rstr2d_0[] = {
|
|
{ 0x407808, 1, 0x04, 0x00000000 },
|
|
{ 0x407808, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_pd_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_pd_0[] = {
|
|
{ 0x406024, 1, 0x04, 0x00000000 },
|
|
{ 0x406024, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_ds_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_ds_0[] = {
|
|
{ 0x405844, 1, 0x04, 0x00ffffff },
|
|
{ 0x405844, 1, 0x04, 0x00ffffff },
|
|
{ 0x405850, 1, 0x04, 0x00000000 },
|
|
{ 0x405850, 1, 0x04, 0x00000000 },
|
|
{ 0x405908, 1, 0x04, 0x00000000 },
|
|
{ 0x405908, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_scc_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_scc_0[] = {
|
|
{ 0x40803c, 1, 0x04, 0x00000000 },
|
|
{ 0x40803c, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_prop_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_prop_0[] = {
|
|
{ 0x4184a0, 1, 0x04, 0x00000000 },
|
|
{ 0x4184a0, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_gpc_unk_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_gpc_unk_0[] = {
|
|
{ 0x418604, 1, 0x04, 0x00000000 },
|
|
{ 0x418604, 1, 0x04, 0x00000000 },
|
|
{ 0x418680, 1, 0x04, 0x00000000 },
|
|
{ 0x418680, 1, 0x04, 0x00000000 },
|
|
{ 0x418714, 1, 0x04, 0x80000000 },
|
|
{ 0x418714, 1, 0x04, 0x80000000 },
|
|
@@ -437,20 +448,20 @@ nvc0_gr_init_gpc_unk_0[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_setup_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_setup_0[] = {
|
|
{ 0x418814, 3, 0x04, 0x00000000 },
|
|
{ 0x418814, 3, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_crstr_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_crstr_0[] = {
|
|
{ 0x418b04, 1, 0x04, 0x00000000 },
|
|
{ 0x418b04, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_setup_1[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_setup_1[] = {
|
|
{ 0x4188c8, 1, 0x04, 0x80000000 },
|
|
{ 0x4188c8, 1, 0x04, 0x80000000 },
|
|
{ 0x4188cc, 1, 0x04, 0x00000000 },
|
|
{ 0x4188cc, 1, 0x04, 0x00000000 },
|
|
{ 0x4188d0, 1, 0x04, 0x00010000 },
|
|
{ 0x4188d0, 1, 0x04, 0x00010000 },
|
|
@@ -458,8 +469,8 @@ nvc0_gr_init_setup_1[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_zcull_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_zcull_0[] = {
|
|
{ 0x418910, 1, 0x04, 0x00010001 },
|
|
{ 0x418910, 1, 0x04, 0x00010001 },
|
|
{ 0x418914, 1, 0x04, 0x00000301 },
|
|
{ 0x418914, 1, 0x04, 0x00000301 },
|
|
{ 0x418918, 1, 0x04, 0x00800000 },
|
|
{ 0x418918, 1, 0x04, 0x00800000 },
|
|
@@ -468,15 +479,15 @@ nvc0_gr_init_zcull_0[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_gpm_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_gpm_0[] = {
|
|
{ 0x418c04, 1, 0x04, 0x00000000 },
|
|
{ 0x418c04, 1, 0x04, 0x00000000 },
|
|
{ 0x418c88, 1, 0x04, 0x00000000 },
|
|
{ 0x418c88, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_gpc_unk_1[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_gpc_unk_1[] = {
|
|
{ 0x418d00, 1, 0x04, 0x00000000 },
|
|
{ 0x418d00, 1, 0x04, 0x00000000 },
|
|
{ 0x418f08, 1, 0x04, 0x00000000 },
|
|
{ 0x418f08, 1, 0x04, 0x00000000 },
|
|
{ 0x418e00, 1, 0x04, 0x00000050 },
|
|
{ 0x418e00, 1, 0x04, 0x00000050 },
|
|
@@ -484,30 +495,30 @@ nvc0_gr_init_gpc_unk_1[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_gcc_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_gcc_0[] = {
|
|
{ 0x41900c, 1, 0x04, 0x00000000 },
|
|
{ 0x41900c, 1, 0x04, 0x00000000 },
|
|
{ 0x419018, 1, 0x04, 0x00000000 },
|
|
{ 0x419018, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_tpccs_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_tpccs_0[] = {
|
|
{ 0x419d08, 2, 0x04, 0x00000000 },
|
|
{ 0x419d08, 2, 0x04, 0x00000000 },
|
|
{ 0x419d10, 1, 0x04, 0x00000014 },
|
|
{ 0x419d10, 1, 0x04, 0x00000014 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_tex_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_tex_0[] = {
|
|
{ 0x419ab0, 1, 0x04, 0x00000000 },
|
|
{ 0x419ab0, 1, 0x04, 0x00000000 },
|
|
{ 0x419ab8, 1, 0x04, 0x000000e7 },
|
|
{ 0x419ab8, 1, 0x04, 0x000000e7 },
|
|
{ 0x419abc, 2, 0x04, 0x00000000 },
|
|
{ 0x419abc, 2, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_pe_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_pe_0[] = {
|
|
{ 0x41980c, 3, 0x04, 0x00000000 },
|
|
{ 0x41980c, 3, 0x04, 0x00000000 },
|
|
{ 0x419844, 1, 0x04, 0x00000000 },
|
|
{ 0x419844, 1, 0x04, 0x00000000 },
|
|
{ 0x41984c, 1, 0x04, 0x00005bc5 },
|
|
{ 0x41984c, 1, 0x04, 0x00005bc5 },
|
|
@@ -515,8 +526,8 @@ nvc0_gr_init_pe_0[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_l1c_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_l1c_0[] = {
|
|
{ 0x419c98, 1, 0x04, 0x00000000 },
|
|
{ 0x419c98, 1, 0x04, 0x00000000 },
|
|
{ 0x419ca8, 1, 0x04, 0x80000000 },
|
|
{ 0x419ca8, 1, 0x04, 0x80000000 },
|
|
{ 0x419cb4, 1, 0x04, 0x00000000 },
|
|
{ 0x419cb4, 1, 0x04, 0x00000000 },
|
|
@@ -526,27 +537,27 @@ nvc0_gr_init_l1c_0[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_wwdx_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_wwdx_0[] = {
|
|
{ 0x419bd4, 1, 0x04, 0x00800000 },
|
|
{ 0x419bd4, 1, 0x04, 0x00800000 },
|
|
{ 0x419bdc, 1, 0x04, 0x00000000 },
|
|
{ 0x419bdc, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_tpccs_1[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_tpccs_1[] = {
|
|
{ 0x419d2c, 1, 0x04, 0x00000000 },
|
|
{ 0x419d2c, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_mpc_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_mpc_0[] = {
|
|
{ 0x419c0c, 1, 0x04, 0x00000000 },
|
|
{ 0x419c0c, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-static const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_sm_0[] = {
|
|
|
|
|
|
+static const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_sm_0[] = {
|
|
{ 0x419e00, 1, 0x04, 0x00000000 },
|
|
{ 0x419e00, 1, 0x04, 0x00000000 },
|
|
{ 0x419ea0, 1, 0x04, 0x00000000 },
|
|
{ 0x419ea0, 1, 0x04, 0x00000000 },
|
|
{ 0x419ea4, 1, 0x04, 0x00000100 },
|
|
{ 0x419ea4, 1, 0x04, 0x00000100 },
|
|
@@ -563,8 +574,8 @@ nvc0_gr_init_sm_0[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_be_0[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_be_0[] = {
|
|
{ 0x40880c, 1, 0x04, 0x00000000 },
|
|
{ 0x40880c, 1, 0x04, 0x00000000 },
|
|
{ 0x408910, 9, 0x04, 0x00000000 },
|
|
{ 0x408910, 9, 0x04, 0x00000000 },
|
|
{ 0x408950, 1, 0x04, 0x00000000 },
|
|
{ 0x408950, 1, 0x04, 0x00000000 },
|
|
@@ -575,47 +586,47 @@ nvc0_gr_init_be_0[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_fe_1[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_fe_1[] = {
|
|
{ 0x4040f0, 1, 0x04, 0x00000000 },
|
|
{ 0x4040f0, 1, 0x04, 0x00000000 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-const struct nvc0_gr_init
|
|
|
|
-nvc0_gr_init_pe_1[] = {
|
|
|
|
|
|
+const struct gf100_gr_init
|
|
|
|
+gf100_gr_init_pe_1[] = {
|
|
{ 0x419880, 1, 0x04, 0x00000002 },
|
|
{ 0x419880, 1, 0x04, 0x00000002 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-static const struct nvc0_gr_pack
|
|
|
|
-nvc0_gr_pack_mmio[] = {
|
|
|
|
- { nvc0_gr_init_main_0 },
|
|
|
|
- { nvc0_gr_init_fe_0 },
|
|
|
|
- { nvc0_gr_init_pri_0 },
|
|
|
|
- { nvc0_gr_init_rstr2d_0 },
|
|
|
|
- { nvc0_gr_init_pd_0 },
|
|
|
|
- { nvc0_gr_init_ds_0 },
|
|
|
|
- { nvc0_gr_init_scc_0 },
|
|
|
|
- { nvc0_gr_init_prop_0 },
|
|
|
|
- { nvc0_gr_init_gpc_unk_0 },
|
|
|
|
- { nvc0_gr_init_setup_0 },
|
|
|
|
- { nvc0_gr_init_crstr_0 },
|
|
|
|
- { nvc0_gr_init_setup_1 },
|
|
|
|
- { nvc0_gr_init_zcull_0 },
|
|
|
|
- { nvc0_gr_init_gpm_0 },
|
|
|
|
- { nvc0_gr_init_gpc_unk_1 },
|
|
|
|
- { nvc0_gr_init_gcc_0 },
|
|
|
|
- { nvc0_gr_init_tpccs_0 },
|
|
|
|
- { nvc0_gr_init_tex_0 },
|
|
|
|
- { nvc0_gr_init_pe_0 },
|
|
|
|
- { nvc0_gr_init_l1c_0 },
|
|
|
|
- { nvc0_gr_init_wwdx_0 },
|
|
|
|
- { nvc0_gr_init_tpccs_1 },
|
|
|
|
- { nvc0_gr_init_mpc_0 },
|
|
|
|
- { nvc0_gr_init_sm_0 },
|
|
|
|
- { nvc0_gr_init_be_0 },
|
|
|
|
- { nvc0_gr_init_fe_1 },
|
|
|
|
- { nvc0_gr_init_pe_1 },
|
|
|
|
|
|
+static const struct gf100_gr_pack
|
|
|
|
+gf100_gr_pack_mmio[] = {
|
|
|
|
+ { gf100_gr_init_main_0 },
|
|
|
|
+ { gf100_gr_init_fe_0 },
|
|
|
|
+ { gf100_gr_init_pri_0 },
|
|
|
|
+ { gf100_gr_init_rstr2d_0 },
|
|
|
|
+ { gf100_gr_init_pd_0 },
|
|
|
|
+ { gf100_gr_init_ds_0 },
|
|
|
|
+ { gf100_gr_init_scc_0 },
|
|
|
|
+ { gf100_gr_init_prop_0 },
|
|
|
|
+ { gf100_gr_init_gpc_unk_0 },
|
|
|
|
+ { gf100_gr_init_setup_0 },
|
|
|
|
+ { gf100_gr_init_crstr_0 },
|
|
|
|
+ { gf100_gr_init_setup_1 },
|
|
|
|
+ { gf100_gr_init_zcull_0 },
|
|
|
|
+ { gf100_gr_init_gpm_0 },
|
|
|
|
+ { gf100_gr_init_gpc_unk_1 },
|
|
|
|
+ { gf100_gr_init_gcc_0 },
|
|
|
|
+ { gf100_gr_init_tpccs_0 },
|
|
|
|
+ { gf100_gr_init_tex_0 },
|
|
|
|
+ { gf100_gr_init_pe_0 },
|
|
|
|
+ { gf100_gr_init_l1c_0 },
|
|
|
|
+ { gf100_gr_init_wwdx_0 },
|
|
|
|
+ { gf100_gr_init_tpccs_1 },
|
|
|
|
+ { gf100_gr_init_mpc_0 },
|
|
|
|
+ { gf100_gr_init_sm_0 },
|
|
|
|
+ { gf100_gr_init_be_0 },
|
|
|
|
+ { gf100_gr_init_fe_1 },
|
|
|
|
+ { gf100_gr_init_pe_1 },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
@@ -624,7 +635,7 @@ nvc0_gr_pack_mmio[] = {
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
|
|
|
|
void
|
|
void
|
|
-nvc0_gr_zbc_init(struct nvc0_gr_priv *priv)
|
|
|
|
|
|
+gf100_gr_zbc_init(struct gf100_gr_priv *priv)
|
|
{
|
|
{
|
|
const u32 zero[] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
|
const u32 zero[] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000 };
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000 };
|
|
@@ -634,29 +645,29 @@ nvc0_gr_zbc_init(struct nvc0_gr_priv *priv)
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000 };
|
|
0x00000000, 0x00000000, 0x00000000, 0x00000000 };
|
|
const u32 f32_1[] = { 0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000,
|
|
const u32 f32_1[] = { 0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000,
|
|
0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000 };
|
|
0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000 };
|
|
- struct nouveau_ltc *ltc = nouveau_ltc(priv);
|
|
|
|
|
|
+ struct nvkm_ltc *ltc = nvkm_ltc(priv);
|
|
int index;
|
|
int index;
|
|
|
|
|
|
if (!priv->zbc_color[0].format) {
|
|
if (!priv->zbc_color[0].format) {
|
|
- nvc0_gr_zbc_color_get(priv, 1, & zero[0], &zero[4]);
|
|
|
|
- nvc0_gr_zbc_color_get(priv, 2, & one[0], &one[4]);
|
|
|
|
- nvc0_gr_zbc_color_get(priv, 4, &f32_0[0], &f32_0[4]);
|
|
|
|
- nvc0_gr_zbc_color_get(priv, 4, &f32_1[0], &f32_1[4]);
|
|
|
|
- nvc0_gr_zbc_depth_get(priv, 1, 0x00000000, 0x00000000);
|
|
|
|
- nvc0_gr_zbc_depth_get(priv, 1, 0x3f800000, 0x3f800000);
|
|
|
|
|
|
+ gf100_gr_zbc_color_get(priv, 1, & zero[0], &zero[4]);
|
|
|
|
+ gf100_gr_zbc_color_get(priv, 2, & one[0], &one[4]);
|
|
|
|
+ gf100_gr_zbc_color_get(priv, 4, &f32_0[0], &f32_0[4]);
|
|
|
|
+ gf100_gr_zbc_color_get(priv, 4, &f32_1[0], &f32_1[4]);
|
|
|
|
+ gf100_gr_zbc_depth_get(priv, 1, 0x00000000, 0x00000000);
|
|
|
|
+ gf100_gr_zbc_depth_get(priv, 1, 0x3f800000, 0x3f800000);
|
|
}
|
|
}
|
|
|
|
|
|
for (index = ltc->zbc_min; index <= ltc->zbc_max; index++)
|
|
for (index = ltc->zbc_min; index <= ltc->zbc_max; index++)
|
|
- nvc0_gr_zbc_clear_color(priv, index);
|
|
|
|
|
|
+ gf100_gr_zbc_clear_color(priv, index);
|
|
for (index = ltc->zbc_min; index <= ltc->zbc_max; index++)
|
|
for (index = ltc->zbc_min; index <= ltc->zbc_max; index++)
|
|
- nvc0_gr_zbc_clear_depth(priv, index);
|
|
|
|
|
|
+ gf100_gr_zbc_clear_depth(priv, index);
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-nvc0_gr_mmio(struct nvc0_gr_priv *priv, const struct nvc0_gr_pack *p)
|
|
|
|
|
|
+gf100_gr_mmio(struct gf100_gr_priv *priv, const struct gf100_gr_pack *p)
|
|
{
|
|
{
|
|
- const struct nvc0_gr_pack *pack;
|
|
|
|
- const struct nvc0_gr_init *init;
|
|
|
|
|
|
+ const struct gf100_gr_pack *pack;
|
|
|
|
+ const struct gf100_gr_init *init;
|
|
|
|
|
|
pack_for_each_init(init, pack, p) {
|
|
pack_for_each_init(init, pack, p) {
|
|
u32 next = init->addr + init->count * init->pitch;
|
|
u32 next = init->addr + init->count * init->pitch;
|
|
@@ -669,10 +680,10 @@ nvc0_gr_mmio(struct nvc0_gr_priv *priv, const struct nvc0_gr_pack *p)
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-nvc0_gr_icmd(struct nvc0_gr_priv *priv, const struct nvc0_gr_pack *p)
|
|
|
|
|
|
+gf100_gr_icmd(struct gf100_gr_priv *priv, const struct gf100_gr_pack *p)
|
|
{
|
|
{
|
|
- const struct nvc0_gr_pack *pack;
|
|
|
|
- const struct nvc0_gr_init *init;
|
|
|
|
|
|
+ const struct gf100_gr_pack *pack;
|
|
|
|
+ const struct gf100_gr_init *init;
|
|
u32 data = 0;
|
|
u32 data = 0;
|
|
|
|
|
|
nv_wr32(priv, 0x400208, 0x80000000);
|
|
nv_wr32(priv, 0x400208, 0x80000000);
|
|
@@ -697,10 +708,10 @@ nvc0_gr_icmd(struct nvc0_gr_priv *priv, const struct nvc0_gr_pack *p)
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-nvc0_gr_mthd(struct nvc0_gr_priv *priv, const struct nvc0_gr_pack *p)
|
|
|
|
|
|
+gf100_gr_mthd(struct gf100_gr_priv *priv, const struct gf100_gr_pack *p)
|
|
{
|
|
{
|
|
- const struct nvc0_gr_pack *pack;
|
|
|
|
- const struct nvc0_gr_init *init;
|
|
|
|
|
|
+ const struct gf100_gr_pack *pack;
|
|
|
|
+ const struct gf100_gr_init *init;
|
|
u32 data = 0;
|
|
u32 data = 0;
|
|
|
|
|
|
pack_for_each_init(init, pack, p) {
|
|
pack_for_each_init(init, pack, p) {
|
|
@@ -721,9 +732,9 @@ nvc0_gr_mthd(struct nvc0_gr_priv *priv, const struct nvc0_gr_pack *p)
|
|
}
|
|
}
|
|
|
|
|
|
u64
|
|
u64
|
|
-nvc0_gr_units(struct nouveau_gr *gr)
|
|
|
|
|
|
+gf100_gr_units(struct nvkm_gr *gr)
|
|
{
|
|
{
|
|
- struct nvc0_gr_priv *priv = (void *)gr;
|
|
|
|
|
|
+ struct gf100_gr_priv *priv = (void *)gr;
|
|
u64 cfg;
|
|
u64 cfg;
|
|
|
|
|
|
cfg = (u32)priv->gpc_nr;
|
|
cfg = (u32)priv->gpc_nr;
|
|
@@ -733,7 +744,7 @@ nvc0_gr_units(struct nouveau_gr *gr)
|
|
return cfg;
|
|
return cfg;
|
|
}
|
|
}
|
|
|
|
|
|
-static const struct nouveau_enum nve0_sked_error[] = {
|
|
|
|
|
|
+static const struct nvkm_enum gk104_sked_error[] = {
|
|
{ 7, "CONSTANT_BUFFER_SIZE" },
|
|
{ 7, "CONSTANT_BUFFER_SIZE" },
|
|
{ 9, "LOCAL_MEMORY_SIZE_POS" },
|
|
{ 9, "LOCAL_MEMORY_SIZE_POS" },
|
|
{ 10, "LOCAL_MEMORY_SIZE_NEG" },
|
|
{ 10, "LOCAL_MEMORY_SIZE_NEG" },
|
|
@@ -748,7 +759,7 @@ static const struct nouveau_enum nve0_sked_error[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-static const struct nouveau_enum nvc0_gpc_rop_error[] = {
|
|
|
|
|
|
+static const struct nvkm_enum gf100_gpc_rop_error[] = {
|
|
{ 1, "RT_PITCH_OVERRUN" },
|
|
{ 1, "RT_PITCH_OVERRUN" },
|
|
{ 4, "RT_WIDTH_OVERRUN" },
|
|
{ 4, "RT_WIDTH_OVERRUN" },
|
|
{ 5, "RT_HEIGHT_OVERRUN" },
|
|
{ 5, "RT_HEIGHT_OVERRUN" },
|
|
@@ -759,7 +770,7 @@ static const struct nouveau_enum nvc0_gpc_rop_error[] = {
|
|
};
|
|
};
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_trap_gpc_rop(struct nvc0_gr_priv *priv, int gpc)
|
|
|
|
|
|
+gf100_gr_trap_gpc_rop(struct gf100_gr_priv *priv, int gpc)
|
|
{
|
|
{
|
|
u32 trap[4];
|
|
u32 trap[4];
|
|
int i;
|
|
int i;
|
|
@@ -774,7 +785,7 @@ nvc0_gr_trap_gpc_rop(struct nvc0_gr_priv *priv, int gpc)
|
|
if (!(trap[0] & (1 << i)))
|
|
if (!(trap[0] & (1 << i)))
|
|
continue;
|
|
continue;
|
|
pr_cont(" ");
|
|
pr_cont(" ");
|
|
- nouveau_enum_print(nvc0_gpc_rop_error, i);
|
|
|
|
|
|
+ nvkm_enum_print(gf100_gpc_rop_error, i);
|
|
}
|
|
}
|
|
pr_cont("\n");
|
|
pr_cont("\n");
|
|
|
|
|
|
@@ -784,7 +795,7 @@ nvc0_gr_trap_gpc_rop(struct nvc0_gr_priv *priv, int gpc)
|
|
nv_wr32(priv, GPC_UNIT(gpc, 0x0420), 0xc0000000);
|
|
nv_wr32(priv, GPC_UNIT(gpc, 0x0420), 0xc0000000);
|
|
}
|
|
}
|
|
|
|
|
|
-static const struct nouveau_enum nvc0_mp_warp_error[] = {
|
|
|
|
|
|
+static const struct nvkm_enum gf100_mp_warp_error[] = {
|
|
{ 0x00, "NO_ERROR" },
|
|
{ 0x00, "NO_ERROR" },
|
|
{ 0x01, "STACK_MISMATCH" },
|
|
{ 0x01, "STACK_MISMATCH" },
|
|
{ 0x05, "MISALIGNED_PC" },
|
|
{ 0x05, "MISALIGNED_PC" },
|
|
@@ -797,23 +808,23 @@ static const struct nouveau_enum nvc0_mp_warp_error[] = {
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
-static const struct nouveau_bitfield nvc0_mp_global_error[] = {
|
|
|
|
|
|
+static const struct nvkm_bitfield gf100_mp_global_error[] = {
|
|
{ 0x00000004, "MULTIPLE_WARP_ERRORS" },
|
|
{ 0x00000004, "MULTIPLE_WARP_ERRORS" },
|
|
{ 0x00000008, "OUT_OF_STACK_SPACE" },
|
|
{ 0x00000008, "OUT_OF_STACK_SPACE" },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_trap_mp(struct nvc0_gr_priv *priv, int gpc, int tpc)
|
|
|
|
|
|
+gf100_gr_trap_mp(struct gf100_gr_priv *priv, int gpc, int tpc)
|
|
{
|
|
{
|
|
u32 werr = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x648));
|
|
u32 werr = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x648));
|
|
u32 gerr = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x650));
|
|
u32 gerr = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x650));
|
|
|
|
|
|
nv_error(priv, "GPC%i/TPC%i/MP trap:", gpc, tpc);
|
|
nv_error(priv, "GPC%i/TPC%i/MP trap:", gpc, tpc);
|
|
- nouveau_bitfield_print(nvc0_mp_global_error, gerr);
|
|
|
|
|
|
+ nvkm_bitfield_print(gf100_mp_global_error, gerr);
|
|
if (werr) {
|
|
if (werr) {
|
|
pr_cont(" ");
|
|
pr_cont(" ");
|
|
- nouveau_enum_print(nvc0_mp_warp_error, werr & 0xffff);
|
|
|
|
|
|
+ nvkm_enum_print(gf100_mp_warp_error, werr & 0xffff);
|
|
}
|
|
}
|
|
pr_cont("\n");
|
|
pr_cont("\n");
|
|
|
|
|
|
@@ -822,7 +833,7 @@ nvc0_gr_trap_mp(struct nvc0_gr_priv *priv, int gpc, int tpc)
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_trap_tpc(struct nvc0_gr_priv *priv, int gpc, int tpc)
|
|
|
|
|
|
+gf100_gr_trap_tpc(struct gf100_gr_priv *priv, int gpc, int tpc)
|
|
{
|
|
{
|
|
u32 stat = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x0508));
|
|
u32 stat = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x0508));
|
|
|
|
|
|
@@ -834,7 +845,7 @@ nvc0_gr_trap_tpc(struct nvc0_gr_priv *priv, int gpc, int tpc)
|
|
}
|
|
}
|
|
|
|
|
|
if (stat & 0x00000002) {
|
|
if (stat & 0x00000002) {
|
|
- nvc0_gr_trap_mp(priv, gpc, tpc);
|
|
|
|
|
|
+ gf100_gr_trap_mp(priv, gpc, tpc);
|
|
stat &= ~0x00000002;
|
|
stat &= ~0x00000002;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -858,13 +869,13 @@ nvc0_gr_trap_tpc(struct nvc0_gr_priv *priv, int gpc, int tpc)
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_trap_gpc(struct nvc0_gr_priv *priv, int gpc)
|
|
|
|
|
|
+gf100_gr_trap_gpc(struct gf100_gr_priv *priv, int gpc)
|
|
{
|
|
{
|
|
u32 stat = nv_rd32(priv, GPC_UNIT(gpc, 0x2c90));
|
|
u32 stat = nv_rd32(priv, GPC_UNIT(gpc, 0x2c90));
|
|
int tpc;
|
|
int tpc;
|
|
|
|
|
|
if (stat & 0x00000001) {
|
|
if (stat & 0x00000001) {
|
|
- nvc0_gr_trap_gpc_rop(priv, gpc);
|
|
|
|
|
|
+ gf100_gr_trap_gpc_rop(priv, gpc);
|
|
stat &= ~0x00000001;
|
|
stat &= ~0x00000001;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -892,7 +903,7 @@ nvc0_gr_trap_gpc(struct nvc0_gr_priv *priv, int gpc)
|
|
for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) {
|
|
for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) {
|
|
u32 mask = 0x00010000 << tpc;
|
|
u32 mask = 0x00010000 << tpc;
|
|
if (stat & mask) {
|
|
if (stat & mask) {
|
|
- nvc0_gr_trap_tpc(priv, gpc, tpc);
|
|
|
|
|
|
+ gf100_gr_trap_tpc(priv, gpc, tpc);
|
|
nv_wr32(priv, GPC_UNIT(gpc, 0x2c90), mask);
|
|
nv_wr32(priv, GPC_UNIT(gpc, 0x2c90), mask);
|
|
stat &= ~mask;
|
|
stat &= ~mask;
|
|
}
|
|
}
|
|
@@ -904,7 +915,7 @@ nvc0_gr_trap_gpc(struct nvc0_gr_priv *priv, int gpc)
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_trap_intr(struct nvc0_gr_priv *priv)
|
|
|
|
|
|
+gf100_gr_trap_intr(struct gf100_gr_priv *priv)
|
|
{
|
|
{
|
|
u32 trap = nv_rd32(priv, 0x400108);
|
|
u32 trap = nv_rd32(priv, 0x400108);
|
|
int rop, gpc, i;
|
|
int rop, gpc, i;
|
|
@@ -965,7 +976,7 @@ nvc0_gr_trap_intr(struct nvc0_gr_priv *priv)
|
|
if (!(stat & (1 << i)))
|
|
if (!(stat & (1 << i)))
|
|
continue;
|
|
continue;
|
|
pr_cont(" ");
|
|
pr_cont(" ");
|
|
- nouveau_enum_print(nve0_sked_error, i);
|
|
|
|
|
|
+ nvkm_enum_print(gk104_sked_error, i);
|
|
}
|
|
}
|
|
pr_cont("\n");
|
|
pr_cont("\n");
|
|
|
|
|
|
@@ -980,7 +991,7 @@ nvc0_gr_trap_intr(struct nvc0_gr_priv *priv)
|
|
for (gpc = 0; stat && gpc < priv->gpc_nr; gpc++) {
|
|
for (gpc = 0; stat && gpc < priv->gpc_nr; gpc++) {
|
|
u32 mask = 0x00000001 << gpc;
|
|
u32 mask = 0x00000001 << gpc;
|
|
if (stat & mask) {
|
|
if (stat & mask) {
|
|
- nvc0_gr_trap_gpc(priv, gpc);
|
|
|
|
|
|
+ gf100_gr_trap_gpc(priv, gpc);
|
|
nv_wr32(priv, 0x400118, mask);
|
|
nv_wr32(priv, 0x400118, mask);
|
|
stat &= ~mask;
|
|
stat &= ~mask;
|
|
}
|
|
}
|
|
@@ -1009,7 +1020,7 @@ nvc0_gr_trap_intr(struct nvc0_gr_priv *priv)
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_ctxctl_debug_unit(struct nvc0_gr_priv *priv, u32 base)
|
|
|
|
|
|
+gf100_gr_ctxctl_debug_unit(struct gf100_gr_priv *priv, u32 base)
|
|
{
|
|
{
|
|
nv_error(priv, "%06x - done 0x%08x\n", base,
|
|
nv_error(priv, "%06x - done 0x%08x\n", base,
|
|
nv_rd32(priv, base + 0x400));
|
|
nv_rd32(priv, base + 0x400));
|
|
@@ -1022,18 +1033,18 @@ nvc0_gr_ctxctl_debug_unit(struct nvc0_gr_priv *priv, u32 base)
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-nvc0_gr_ctxctl_debug(struct nvc0_gr_priv *priv)
|
|
|
|
|
|
+gf100_gr_ctxctl_debug(struct gf100_gr_priv *priv)
|
|
{
|
|
{
|
|
u32 gpcnr = nv_rd32(priv, 0x409604) & 0xffff;
|
|
u32 gpcnr = nv_rd32(priv, 0x409604) & 0xffff;
|
|
u32 gpc;
|
|
u32 gpc;
|
|
|
|
|
|
- nvc0_gr_ctxctl_debug_unit(priv, 0x409000);
|
|
|
|
|
|
+ gf100_gr_ctxctl_debug_unit(priv, 0x409000);
|
|
for (gpc = 0; gpc < gpcnr; gpc++)
|
|
for (gpc = 0; gpc < gpcnr; gpc++)
|
|
- nvc0_gr_ctxctl_debug_unit(priv, 0x502000 + (gpc * 0x8000));
|
|
|
|
|
|
+ gf100_gr_ctxctl_debug_unit(priv, 0x502000 + (gpc * 0x8000));
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_ctxctl_isr(struct nvc0_gr_priv *priv)
|
|
|
|
|
|
+gf100_gr_ctxctl_isr(struct gf100_gr_priv *priv)
|
|
{
|
|
{
|
|
u32 stat = nv_rd32(priv, 0x409c18);
|
|
u32 stat = nv_rd32(priv, 0x409c18);
|
|
|
|
|
|
@@ -1059,26 +1070,26 @@ nvc0_gr_ctxctl_isr(struct nvc0_gr_priv *priv)
|
|
|
|
|
|
if (stat & 0x00080000) {
|
|
if (stat & 0x00080000) {
|
|
nv_error(priv, "FECS watchdog timeout\n");
|
|
nv_error(priv, "FECS watchdog timeout\n");
|
|
- nvc0_gr_ctxctl_debug(priv);
|
|
|
|
|
|
+ gf100_gr_ctxctl_debug(priv);
|
|
nv_wr32(priv, 0x409c20, 0x00080000);
|
|
nv_wr32(priv, 0x409c20, 0x00080000);
|
|
stat &= ~0x00080000;
|
|
stat &= ~0x00080000;
|
|
}
|
|
}
|
|
|
|
|
|
if (stat) {
|
|
if (stat) {
|
|
nv_error(priv, "FECS 0x%08x\n", stat);
|
|
nv_error(priv, "FECS 0x%08x\n", stat);
|
|
- nvc0_gr_ctxctl_debug(priv);
|
|
|
|
|
|
+ gf100_gr_ctxctl_debug(priv);
|
|
nv_wr32(priv, 0x409c20, stat);
|
|
nv_wr32(priv, 0x409c20, stat);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_intr(struct nouveau_subdev *subdev)
|
|
|
|
|
|
+gf100_gr_intr(struct nvkm_subdev *subdev)
|
|
{
|
|
{
|
|
- struct nouveau_fifo *pfifo = nouveau_fifo(subdev);
|
|
|
|
- struct nouveau_engine *engine = nv_engine(subdev);
|
|
|
|
- struct nouveau_object *engctx;
|
|
|
|
- struct nouveau_handle *handle;
|
|
|
|
- struct nvc0_gr_priv *priv = (void *)subdev;
|
|
|
|
|
|
+ struct nvkm_fifo *pfifo = nvkm_fifo(subdev);
|
|
|
|
+ struct nvkm_engine *engine = nv_engine(subdev);
|
|
|
|
+ struct nvkm_object *engctx;
|
|
|
|
+ struct nvkm_handle *handle;
|
|
|
|
+ struct gf100_gr_priv *priv = (void *)subdev;
|
|
u64 inst = nv_rd32(priv, 0x409b00) & 0x0fffffff;
|
|
u64 inst = nv_rd32(priv, 0x409b00) & 0x0fffffff;
|
|
u32 stat = nv_rd32(priv, 0x400100);
|
|
u32 stat = nv_rd32(priv, 0x400100);
|
|
u32 addr = nv_rd32(priv, 0x400704);
|
|
u32 addr = nv_rd32(priv, 0x400704);
|
|
@@ -1089,18 +1100,18 @@ nvc0_gr_intr(struct nouveau_subdev *subdev)
|
|
u32 class = nv_rd32(priv, 0x404200 + (subc * 4));
|
|
u32 class = nv_rd32(priv, 0x404200 + (subc * 4));
|
|
int chid;
|
|
int chid;
|
|
|
|
|
|
- engctx = nouveau_engctx_get(engine, inst);
|
|
|
|
|
|
+ engctx = nvkm_engctx_get(engine, inst);
|
|
chid = pfifo->chid(pfifo, engctx);
|
|
chid = pfifo->chid(pfifo, engctx);
|
|
|
|
|
|
if (stat & 0x00000010) {
|
|
if (stat & 0x00000010) {
|
|
- handle = nouveau_handle_get_class(engctx, class);
|
|
|
|
|
|
+ handle = nvkm_handle_get_class(engctx, class);
|
|
if (!handle || nv_call(handle->object, mthd, data)) {
|
|
if (!handle || nv_call(handle->object, mthd, data)) {
|
|
nv_error(priv,
|
|
nv_error(priv,
|
|
"ILLEGAL_MTHD ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n",
|
|
"ILLEGAL_MTHD ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n",
|
|
- chid, inst << 12, nouveau_client_name(engctx),
|
|
|
|
|
|
+ chid, inst << 12, nvkm_client_name(engctx),
|
|
subc, class, mthd, data);
|
|
subc, class, mthd, data);
|
|
}
|
|
}
|
|
- nouveau_handle_put(handle);
|
|
|
|
|
|
+ nvkm_handle_put(handle);
|
|
nv_wr32(priv, 0x400100, 0x00000010);
|
|
nv_wr32(priv, 0x400100, 0x00000010);
|
|
stat &= ~0x00000010;
|
|
stat &= ~0x00000010;
|
|
}
|
|
}
|
|
@@ -1108,7 +1119,7 @@ nvc0_gr_intr(struct nouveau_subdev *subdev)
|
|
if (stat & 0x00000020) {
|
|
if (stat & 0x00000020) {
|
|
nv_error(priv,
|
|
nv_error(priv,
|
|
"ILLEGAL_CLASS ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n",
|
|
"ILLEGAL_CLASS ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n",
|
|
- chid, inst << 12, nouveau_client_name(engctx), subc,
|
|
|
|
|
|
+ chid, inst << 12, nvkm_client_name(engctx), subc,
|
|
class, mthd, data);
|
|
class, mthd, data);
|
|
nv_wr32(priv, 0x400100, 0x00000020);
|
|
nv_wr32(priv, 0x400100, 0x00000020);
|
|
stat &= ~0x00000020;
|
|
stat &= ~0x00000020;
|
|
@@ -1116,9 +1127,9 @@ nvc0_gr_intr(struct nouveau_subdev *subdev)
|
|
|
|
|
|
if (stat & 0x00100000) {
|
|
if (stat & 0x00100000) {
|
|
nv_error(priv, "DATA_ERROR [");
|
|
nv_error(priv, "DATA_ERROR [");
|
|
- nouveau_enum_print(nv50_data_error_names, code);
|
|
|
|
|
|
+ nvkm_enum_print(nv50_data_error_names, code);
|
|
pr_cont("] ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n",
|
|
pr_cont("] ch %d [0x%010llx %s] subc %d class 0x%04x mthd 0x%04x data 0x%08x\n",
|
|
- chid, inst << 12, nouveau_client_name(engctx), subc,
|
|
|
|
|
|
+ chid, inst << 12, nvkm_client_name(engctx), subc,
|
|
class, mthd, data);
|
|
class, mthd, data);
|
|
nv_wr32(priv, 0x400100, 0x00100000);
|
|
nv_wr32(priv, 0x400100, 0x00100000);
|
|
stat &= ~0x00100000;
|
|
stat &= ~0x00100000;
|
|
@@ -1126,14 +1137,14 @@ nvc0_gr_intr(struct nouveau_subdev *subdev)
|
|
|
|
|
|
if (stat & 0x00200000) {
|
|
if (stat & 0x00200000) {
|
|
nv_error(priv, "TRAP ch %d [0x%010llx %s]\n", chid, inst << 12,
|
|
nv_error(priv, "TRAP ch %d [0x%010llx %s]\n", chid, inst << 12,
|
|
- nouveau_client_name(engctx));
|
|
|
|
- nvc0_gr_trap_intr(priv);
|
|
|
|
|
|
+ nvkm_client_name(engctx));
|
|
|
|
+ gf100_gr_trap_intr(priv);
|
|
nv_wr32(priv, 0x400100, 0x00200000);
|
|
nv_wr32(priv, 0x400100, 0x00200000);
|
|
stat &= ~0x00200000;
|
|
stat &= ~0x00200000;
|
|
}
|
|
}
|
|
|
|
|
|
if (stat & 0x00080000) {
|
|
if (stat & 0x00080000) {
|
|
- nvc0_gr_ctxctl_isr(priv);
|
|
|
|
|
|
+ gf100_gr_ctxctl_isr(priv);
|
|
nv_wr32(priv, 0x400100, 0x00080000);
|
|
nv_wr32(priv, 0x400100, 0x00080000);
|
|
stat &= ~0x00080000;
|
|
stat &= ~0x00080000;
|
|
}
|
|
}
|
|
@@ -1144,12 +1155,12 @@ nvc0_gr_intr(struct nouveau_subdev *subdev)
|
|
}
|
|
}
|
|
|
|
|
|
nv_wr32(priv, 0x400500, 0x00010001);
|
|
nv_wr32(priv, 0x400500, 0x00010001);
|
|
- nouveau_engctx_put(engctx);
|
|
|
|
|
|
+ nvkm_engctx_put(engctx);
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-nvc0_gr_init_fw(struct nvc0_gr_priv *priv, u32 fuc_base,
|
|
|
|
- struct nvc0_gr_fuc *code, struct nvc0_gr_fuc *data)
|
|
|
|
|
|
+gf100_gr_init_fw(struct gf100_gr_priv *priv, u32 fuc_base,
|
|
|
|
+ struct gf100_gr_fuc *code, struct gf100_gr_fuc *data)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
|
|
|
|
@@ -1170,12 +1181,12 @@ nvc0_gr_init_fw(struct nvc0_gr_priv *priv, u32 fuc_base,
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_init_csdata(struct nvc0_gr_priv *priv,
|
|
|
|
- const struct nvc0_gr_pack *pack,
|
|
|
|
- u32 falcon, u32 starstar, u32 base)
|
|
|
|
|
|
+gf100_gr_init_csdata(struct gf100_gr_priv *priv,
|
|
|
|
+ const struct gf100_gr_pack *pack,
|
|
|
|
+ u32 falcon, u32 starstar, u32 base)
|
|
{
|
|
{
|
|
- const struct nvc0_gr_pack *iter;
|
|
|
|
- const struct nvc0_gr_init *init;
|
|
|
|
|
|
+ const struct gf100_gr_pack *iter;
|
|
|
|
+ const struct gf100_gr_init *init;
|
|
u32 addr = ~0, prev = ~0, xfer = 0;
|
|
u32 addr = ~0, prev = ~0, xfer = 0;
|
|
u32 star, temp;
|
|
u32 star, temp;
|
|
|
|
|
|
@@ -1211,20 +1222,20 @@ nvc0_gr_init_csdata(struct nvc0_gr_priv *priv,
|
|
}
|
|
}
|
|
|
|
|
|
int
|
|
int
|
|
-nvc0_gr_init_ctxctl(struct nvc0_gr_priv *priv)
|
|
|
|
|
|
+gf100_gr_init_ctxctl(struct gf100_gr_priv *priv)
|
|
{
|
|
{
|
|
- struct nvc0_gr_oclass *oclass = (void *)nv_object(priv)->oclass;
|
|
|
|
- struct nvc0_grctx_oclass *cclass = (void *)nv_engine(priv)->cclass;
|
|
|
|
|
|
+ struct gf100_gr_oclass *oclass = (void *)nv_object(priv)->oclass;
|
|
|
|
+ struct gf100_grctx_oclass *cclass = (void *)nv_engine(priv)->cclass;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
if (priv->firmware) {
|
|
if (priv->firmware) {
|
|
/* load fuc microcode */
|
|
/* load fuc microcode */
|
|
- nouveau_mc(priv)->unk260(nouveau_mc(priv), 0);
|
|
|
|
- nvc0_gr_init_fw(priv, 0x409000, &priv->fuc409c,
|
|
|
|
- &priv->fuc409d);
|
|
|
|
- nvc0_gr_init_fw(priv, 0x41a000, &priv->fuc41ac,
|
|
|
|
- &priv->fuc41ad);
|
|
|
|
- nouveau_mc(priv)->unk260(nouveau_mc(priv), 1);
|
|
|
|
|
|
+ nvkm_mc(priv)->unk260(nvkm_mc(priv), 0);
|
|
|
|
+ gf100_gr_init_fw(priv, 0x409000, &priv->fuc409c,
|
|
|
|
+ &priv->fuc409d);
|
|
|
|
+ gf100_gr_init_fw(priv, 0x41a000, &priv->fuc41ac,
|
|
|
|
+ &priv->fuc41ad);
|
|
|
|
+ nvkm_mc(priv)->unk260(nvkm_mc(priv), 1);
|
|
|
|
|
|
/* start both of them running */
|
|
/* start both of them running */
|
|
nv_wr32(priv, 0x409840, 0xffffffff);
|
|
nv_wr32(priv, 0x409840, 0xffffffff);
|
|
@@ -1297,7 +1308,7 @@ nvc0_gr_init_ctxctl(struct nvc0_gr_priv *priv)
|
|
}
|
|
}
|
|
|
|
|
|
if (priv->data == NULL) {
|
|
if (priv->data == NULL) {
|
|
- int ret = nvc0_grctx_generate(priv);
|
|
|
|
|
|
+ int ret = gf100_grctx_generate(priv);
|
|
if (ret) {
|
|
if (ret) {
|
|
nv_error(priv, "failed to construct context\n");
|
|
nv_error(priv, "failed to construct context\n");
|
|
return ret;
|
|
return ret;
|
|
@@ -1311,7 +1322,7 @@ nvc0_gr_init_ctxctl(struct nvc0_gr_priv *priv)
|
|
}
|
|
}
|
|
|
|
|
|
/* load HUB microcode */
|
|
/* load HUB microcode */
|
|
- nouveau_mc(priv)->unk260(nouveau_mc(priv), 0);
|
|
|
|
|
|
+ nvkm_mc(priv)->unk260(nvkm_mc(priv), 0);
|
|
nv_wr32(priv, 0x4091c0, 0x01000000);
|
|
nv_wr32(priv, 0x4091c0, 0x01000000);
|
|
for (i = 0; i < oclass->fecs.ucode->data.size / 4; i++)
|
|
for (i = 0; i < oclass->fecs.ucode->data.size / 4; i++)
|
|
nv_wr32(priv, 0x4091c4, oclass->fecs.ucode->data.data[i]);
|
|
nv_wr32(priv, 0x4091c4, oclass->fecs.ucode->data.data[i]);
|
|
@@ -1334,26 +1345,26 @@ nvc0_gr_init_ctxctl(struct nvc0_gr_priv *priv)
|
|
nv_wr32(priv, 0x41a188, i >> 6);
|
|
nv_wr32(priv, 0x41a188, i >> 6);
|
|
nv_wr32(priv, 0x41a184, oclass->gpccs.ucode->code.data[i]);
|
|
nv_wr32(priv, 0x41a184, oclass->gpccs.ucode->code.data[i]);
|
|
}
|
|
}
|
|
- nouveau_mc(priv)->unk260(nouveau_mc(priv), 1);
|
|
|
|
|
|
+ nvkm_mc(priv)->unk260(nvkm_mc(priv), 1);
|
|
|
|
|
|
/* load register lists */
|
|
/* load register lists */
|
|
- nvc0_gr_init_csdata(priv, cclass->hub, 0x409000, 0x000, 0x000000);
|
|
|
|
- nvc0_gr_init_csdata(priv, cclass->gpc, 0x41a000, 0x000, 0x418000);
|
|
|
|
- nvc0_gr_init_csdata(priv, cclass->tpc, 0x41a000, 0x004, 0x419800);
|
|
|
|
- nvc0_gr_init_csdata(priv, cclass->ppc, 0x41a000, 0x008, 0x41be00);
|
|
|
|
|
|
+ gf100_gr_init_csdata(priv, cclass->hub, 0x409000, 0x000, 0x000000);
|
|
|
|
+ gf100_gr_init_csdata(priv, cclass->gpc, 0x41a000, 0x000, 0x418000);
|
|
|
|
+ gf100_gr_init_csdata(priv, cclass->tpc, 0x41a000, 0x004, 0x419800);
|
|
|
|
+ gf100_gr_init_csdata(priv, cclass->ppc, 0x41a000, 0x008, 0x41be00);
|
|
|
|
|
|
/* start HUB ucode running, it'll init the GPCs */
|
|
/* start HUB ucode running, it'll init the GPCs */
|
|
nv_wr32(priv, 0x40910c, 0x00000000);
|
|
nv_wr32(priv, 0x40910c, 0x00000000);
|
|
nv_wr32(priv, 0x409100, 0x00000002);
|
|
nv_wr32(priv, 0x409100, 0x00000002);
|
|
if (!nv_wait(priv, 0x409800, 0x80000000, 0x80000000)) {
|
|
if (!nv_wait(priv, 0x409800, 0x80000000, 0x80000000)) {
|
|
nv_error(priv, "HUB_INIT timed out\n");
|
|
nv_error(priv, "HUB_INIT timed out\n");
|
|
- nvc0_gr_ctxctl_debug(priv);
|
|
|
|
|
|
+ gf100_gr_ctxctl_debug(priv);
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
}
|
|
}
|
|
|
|
|
|
priv->size = nv_rd32(priv, 0x409804);
|
|
priv->size = nv_rd32(priv, 0x409804);
|
|
if (priv->data == NULL) {
|
|
if (priv->data == NULL) {
|
|
- int ret = nvc0_grctx_generate(priv);
|
|
|
|
|
|
+ int ret = gf100_grctx_generate(priv);
|
|
if (ret) {
|
|
if (ret) {
|
|
nv_error(priv, "failed to construct context\n");
|
|
nv_error(priv, "failed to construct context\n");
|
|
return ret;
|
|
return ret;
|
|
@@ -1364,17 +1375,17 @@ nvc0_gr_init_ctxctl(struct nvc0_gr_priv *priv)
|
|
}
|
|
}
|
|
|
|
|
|
int
|
|
int
|
|
-nvc0_gr_init(struct nouveau_object *object)
|
|
|
|
|
|
+gf100_gr_init(struct nvkm_object *object)
|
|
{
|
|
{
|
|
- struct nvc0_gr_oclass *oclass = (void *)object->oclass;
|
|
|
|
- struct nvc0_gr_priv *priv = (void *)object;
|
|
|
|
|
|
+ struct gf100_gr_oclass *oclass = (void *)object->oclass;
|
|
|
|
+ struct gf100_gr_priv *priv = (void *)object;
|
|
const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, priv->tpc_total);
|
|
const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, priv->tpc_total);
|
|
u32 data[TPC_MAX / 8] = {};
|
|
u32 data[TPC_MAX / 8] = {};
|
|
u8 tpcnr[GPC_MAX];
|
|
u8 tpcnr[GPC_MAX];
|
|
int gpc, tpc, rop;
|
|
int gpc, tpc, rop;
|
|
int ret, i;
|
|
int ret, i;
|
|
|
|
|
|
- ret = nouveau_gr_init(&priv->base);
|
|
|
|
|
|
+ ret = nvkm_gr_init(&priv->base);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
@@ -1387,7 +1398,7 @@ nvc0_gr_init(struct nouveau_object *object)
|
|
nv_wr32(priv, GPC_BCAST(0x08b4), priv->unk4188b4->addr >> 8);
|
|
nv_wr32(priv, GPC_BCAST(0x08b4), priv->unk4188b4->addr >> 8);
|
|
nv_wr32(priv, GPC_BCAST(0x08b8), priv->unk4188b8->addr >> 8);
|
|
nv_wr32(priv, GPC_BCAST(0x08b8), priv->unk4188b8->addr >> 8);
|
|
|
|
|
|
- nvc0_gr_mmio(priv, oclass->mmio);
|
|
|
|
|
|
+ gf100_gr_mmio(priv, oclass->mmio);
|
|
|
|
|
|
memcpy(tpcnr, priv->tpc_nr, sizeof(priv->tpc_nr));
|
|
memcpy(tpcnr, priv->tpc_nr, sizeof(priv->tpc_nr));
|
|
for (i = 0, gpc = -1; i < priv->tpc_total; i++) {
|
|
for (i = 0, gpc = -1; i < priv->tpc_total; i++) {
|
|
@@ -1470,23 +1481,23 @@ nvc0_gr_init(struct nouveau_object *object)
|
|
|
|
|
|
nv_wr32(priv, 0x400054, 0x34ce3464);
|
|
nv_wr32(priv, 0x400054, 0x34ce3464);
|
|
|
|
|
|
- nvc0_gr_zbc_init(priv);
|
|
|
|
|
|
+ gf100_gr_zbc_init(priv);
|
|
|
|
|
|
- return nvc0_gr_init_ctxctl(priv);
|
|
|
|
|
|
+ return gf100_gr_init_ctxctl(priv);
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-nvc0_gr_dtor_fw(struct nvc0_gr_fuc *fuc)
|
|
|
|
|
|
+gf100_gr_dtor_fw(struct gf100_gr_fuc *fuc)
|
|
{
|
|
{
|
|
kfree(fuc->data);
|
|
kfree(fuc->data);
|
|
fuc->data = NULL;
|
|
fuc->data = NULL;
|
|
}
|
|
}
|
|
|
|
|
|
int
|
|
int
|
|
-nvc0_gr_ctor_fw(struct nvc0_gr_priv *priv, const char *fwname,
|
|
|
|
- struct nvc0_gr_fuc *fuc)
|
|
|
|
|
|
+gf100_gr_ctor_fw(struct gf100_gr_priv *priv, const char *fwname,
|
|
|
|
+ struct gf100_gr_fuc *fuc)
|
|
{
|
|
{
|
|
- struct nouveau_device *device = nv_device(priv);
|
|
|
|
|
|
+ struct nvkm_device *device = nv_device(priv);
|
|
const struct firmware *fw;
|
|
const struct firmware *fw;
|
|
char f[32];
|
|
char f[32];
|
|
int ret;
|
|
int ret;
|
|
@@ -1509,65 +1520,65 @@ nvc0_gr_ctor_fw(struct nvc0_gr_priv *priv, const char *fwname,
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-nvc0_gr_dtor(struct nouveau_object *object)
|
|
|
|
|
|
+gf100_gr_dtor(struct nvkm_object *object)
|
|
{
|
|
{
|
|
- struct nvc0_gr_priv *priv = (void *)object;
|
|
|
|
|
|
+ struct gf100_gr_priv *priv = (void *)object;
|
|
|
|
|
|
kfree(priv->data);
|
|
kfree(priv->data);
|
|
|
|
|
|
- nvc0_gr_dtor_fw(&priv->fuc409c);
|
|
|
|
- nvc0_gr_dtor_fw(&priv->fuc409d);
|
|
|
|
- nvc0_gr_dtor_fw(&priv->fuc41ac);
|
|
|
|
- nvc0_gr_dtor_fw(&priv->fuc41ad);
|
|
|
|
|
|
+ gf100_gr_dtor_fw(&priv->fuc409c);
|
|
|
|
+ gf100_gr_dtor_fw(&priv->fuc409d);
|
|
|
|
+ gf100_gr_dtor_fw(&priv->fuc41ac);
|
|
|
|
+ gf100_gr_dtor_fw(&priv->fuc41ad);
|
|
|
|
|
|
- nouveau_gpuobj_ref(NULL, &priv->unk4188b8);
|
|
|
|
- nouveau_gpuobj_ref(NULL, &priv->unk4188b4);
|
|
|
|
|
|
+ nvkm_gpuobj_ref(NULL, &priv->unk4188b8);
|
|
|
|
+ nvkm_gpuobj_ref(NULL, &priv->unk4188b4);
|
|
|
|
|
|
- nouveau_gr_destroy(&priv->base);
|
|
|
|
|
|
+ nvkm_gr_destroy(&priv->base);
|
|
}
|
|
}
|
|
|
|
|
|
int
|
|
int
|
|
-nvc0_gr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
|
|
|
|
- struct nouveau_oclass *bclass, void *data, u32 size,
|
|
|
|
- struct nouveau_object **pobject)
|
|
|
|
|
|
+gf100_gr_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
|
|
|
|
+ struct nvkm_oclass *bclass, void *data, u32 size,
|
|
|
|
+ struct nvkm_object **pobject)
|
|
{
|
|
{
|
|
- struct nvc0_gr_oclass *oclass = (void *)bclass;
|
|
|
|
- struct nouveau_device *device = nv_device(parent);
|
|
|
|
- struct nvc0_gr_priv *priv;
|
|
|
|
|
|
+ struct gf100_gr_oclass *oclass = (void *)bclass;
|
|
|
|
+ struct nvkm_device *device = nv_device(parent);
|
|
|
|
+ struct gf100_gr_priv *priv;
|
|
bool use_ext_fw, enable;
|
|
bool use_ext_fw, enable;
|
|
int ret, i, j;
|
|
int ret, i, j;
|
|
|
|
|
|
- use_ext_fw = nouveau_boolopt(device->cfgopt, "NvGrUseFW",
|
|
|
|
- oclass->fecs.ucode == NULL);
|
|
|
|
|
|
+ use_ext_fw = nvkm_boolopt(device->cfgopt, "NvGrUseFW",
|
|
|
|
+ oclass->fecs.ucode == NULL);
|
|
enable = use_ext_fw || oclass->fecs.ucode != NULL;
|
|
enable = use_ext_fw || oclass->fecs.ucode != NULL;
|
|
|
|
|
|
- ret = nouveau_gr_create(parent, engine, bclass, enable, &priv);
|
|
|
|
|
|
+ ret = nvkm_gr_create(parent, engine, bclass, enable, &priv);
|
|
*pobject = nv_object(priv);
|
|
*pobject = nv_object(priv);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
nv_subdev(priv)->unit = 0x08001000;
|
|
nv_subdev(priv)->unit = 0x08001000;
|
|
- nv_subdev(priv)->intr = nvc0_gr_intr;
|
|
|
|
|
|
+ nv_subdev(priv)->intr = gf100_gr_intr;
|
|
|
|
|
|
- priv->base.units = nvc0_gr_units;
|
|
|
|
|
|
+ priv->base.units = gf100_gr_units;
|
|
|
|
|
|
if (use_ext_fw) {
|
|
if (use_ext_fw) {
|
|
nv_info(priv, "using external firmware\n");
|
|
nv_info(priv, "using external firmware\n");
|
|
- if (nvc0_gr_ctor_fw(priv, "fuc409c", &priv->fuc409c) ||
|
|
|
|
- nvc0_gr_ctor_fw(priv, "fuc409d", &priv->fuc409d) ||
|
|
|
|
- nvc0_gr_ctor_fw(priv, "fuc41ac", &priv->fuc41ac) ||
|
|
|
|
- nvc0_gr_ctor_fw(priv, "fuc41ad", &priv->fuc41ad))
|
|
|
|
|
|
+ if (gf100_gr_ctor_fw(priv, "fuc409c", &priv->fuc409c) ||
|
|
|
|
+ gf100_gr_ctor_fw(priv, "fuc409d", &priv->fuc409d) ||
|
|
|
|
+ gf100_gr_ctor_fw(priv, "fuc41ac", &priv->fuc41ac) ||
|
|
|
|
+ gf100_gr_ctor_fw(priv, "fuc41ad", &priv->fuc41ad))
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
priv->firmware = true;
|
|
priv->firmware = true;
|
|
}
|
|
}
|
|
|
|
|
|
- ret = nouveau_gpuobj_new(nv_object(priv), NULL, 0x1000, 256, 0,
|
|
|
|
- &priv->unk4188b4);
|
|
|
|
|
|
+ ret = nvkm_gpuobj_new(nv_object(priv), NULL, 0x1000, 256, 0,
|
|
|
|
+ &priv->unk4188b4);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
- ret = nouveau_gpuobj_new(nv_object(priv), NULL, 0x1000, 256, 0,
|
|
|
|
- &priv->unk4188b8);
|
|
|
|
|
|
+ ret = nvkm_gpuobj_new(nv_object(priv), NULL, 0x1000, 256, 0,
|
|
|
|
+ &priv->unk4188b8);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
@@ -1630,38 +1641,38 @@ nvc0_gr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-#include "fuc/hubnvc0.fuc3.h"
|
|
|
|
|
|
+#include "fuc/hubgf100.fuc3.h"
|
|
|
|
|
|
-struct nvc0_gr_ucode
|
|
|
|
-nvc0_gr_fecs_ucode = {
|
|
|
|
- .code.data = nvc0_grhub_code,
|
|
|
|
- .code.size = sizeof(nvc0_grhub_code),
|
|
|
|
- .data.data = nvc0_grhub_data,
|
|
|
|
- .data.size = sizeof(nvc0_grhub_data),
|
|
|
|
|
|
+struct gf100_gr_ucode
|
|
|
|
+gf100_gr_fecs_ucode = {
|
|
|
|
+ .code.data = gf100_grhub_code,
|
|
|
|
+ .code.size = sizeof(gf100_grhub_code),
|
|
|
|
+ .data.data = gf100_grhub_data,
|
|
|
|
+ .data.size = sizeof(gf100_grhub_data),
|
|
};
|
|
};
|
|
|
|
|
|
-#include "fuc/gpcnvc0.fuc3.h"
|
|
|
|
|
|
+#include "fuc/gpcgf100.fuc3.h"
|
|
|
|
|
|
-struct nvc0_gr_ucode
|
|
|
|
-nvc0_gr_gpccs_ucode = {
|
|
|
|
- .code.data = nvc0_grgpc_code,
|
|
|
|
- .code.size = sizeof(nvc0_grgpc_code),
|
|
|
|
- .data.data = nvc0_grgpc_data,
|
|
|
|
- .data.size = sizeof(nvc0_grgpc_data),
|
|
|
|
|
|
+struct gf100_gr_ucode
|
|
|
|
+gf100_gr_gpccs_ucode = {
|
|
|
|
+ .code.data = gf100_grgpc_code,
|
|
|
|
+ .code.size = sizeof(gf100_grgpc_code),
|
|
|
|
+ .data.data = gf100_grgpc_data,
|
|
|
|
+ .data.size = sizeof(gf100_grgpc_data),
|
|
};
|
|
};
|
|
|
|
|
|
-struct nouveau_oclass *
|
|
|
|
-nvc0_gr_oclass = &(struct nvc0_gr_oclass) {
|
|
|
|
|
|
+struct nvkm_oclass *
|
|
|
|
+gf100_gr_oclass = &(struct gf100_gr_oclass) {
|
|
.base.handle = NV_ENGINE(GR, 0xc0),
|
|
.base.handle = NV_ENGINE(GR, 0xc0),
|
|
- .base.ofuncs = &(struct nouveau_ofuncs) {
|
|
|
|
- .ctor = nvc0_gr_ctor,
|
|
|
|
- .dtor = nvc0_gr_dtor,
|
|
|
|
- .init = nvc0_gr_init,
|
|
|
|
- .fini = _nouveau_gr_fini,
|
|
|
|
|
|
+ .base.ofuncs = &(struct nvkm_ofuncs) {
|
|
|
|
+ .ctor = gf100_gr_ctor,
|
|
|
|
+ .dtor = gf100_gr_dtor,
|
|
|
|
+ .init = gf100_gr_init,
|
|
|
|
+ .fini = _nvkm_gr_fini,
|
|
},
|
|
},
|
|
- .cclass = &nvc0_grctx_oclass,
|
|
|
|
- .sclass = nvc0_gr_sclass,
|
|
|
|
- .mmio = nvc0_gr_pack_mmio,
|
|
|
|
- .fecs.ucode = &nvc0_gr_fecs_ucode,
|
|
|
|
- .gpccs.ucode = &nvc0_gr_gpccs_ucode,
|
|
|
|
|
|
+ .cclass = &gf100_grctx_oclass,
|
|
|
|
+ .sclass = gf100_gr_sclass,
|
|
|
|
+ .mmio = gf100_gr_pack_mmio,
|
|
|
|
+ .fecs.ucode = &gf100_gr_fecs_ucode,
|
|
|
|
+ .gpccs.ucode = &gf100_gr_gpccs_ucode,
|
|
}.base;
|
|
}.base;
|