drm/nve4: fix size of POLY2ESETUP buffer (s/gpc_nr/tpc_total)
Subsystems (3)
PATCH 1/1 drm/nve4: fix size of POLY2ESETUP buffer (s/gpc_nr/tpc_total)
This fixes write faults from GPCCLIENT 5 in geometry shader tests.
For now this is just a guess from a single mmio trace, it looks like 8 large pages are being used, i.e. one per TPC.
Can we just ask NV for the correct sizes ?
--- drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c +1 -1
@@ -813,7 +813,7 @@ nve4_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)mmio_data (0x003000 ,0x0100 ,NV_MEM_ACCESS_RW |NV_MEM_ACCESS_SYS );mmio_data (0x008000 ,0x0100 ,NV_MEM_ACCESS_RW |NV_MEM_ACCESS_SYS ); -mmio_data (0x060000 ,0x1000 ,NV_MEM_ACCESS_RW ); +mmio_data (priv->tpc_total <<17 ,0x1000 ,NV_MEM_ACCESS_RW );mmio_list (0x40800c ,0x00000000 ,8 ,1 );mmio_list (0x408010 ,0x80000000 ,0 ,0 );mmio_list (0x419004 ,0x00000000 ,8 ,1 );
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1387990920-15919-1-git-send-email-e0425955-oe7qfRrRQffzPE21tAIdciO7C/[email protected]
Quoted 6 lines · Christoph Bumiller
This fixes write faults from GPCCLIENT 5 in geometry shader tests.
For now this is just a guess from a single mmio trace, it looks like 8 large pages are being used, i.e. one per TPC.
Can we just ask NV for the correct sizes ?
https://android.googlesource.com/kernel/tegra/+/android-tegra-3.10/drivers/video/tegra/host/gk20a/gr_gk20a.c
might be of some help here.
The buffer in question is the "attribute buffer"
Quoted 24 lines
--- drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c +1
-2@@ -813,7 +813,7 @@ nve4_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)mmio_data (0x003000 ,0x0100 ,NV_MEM_ACCESS_RW |NV_MEM_ACCESS_SYS );mmio_data (0x008000 ,0x0100 ,NV_MEM_ACCESS_RW |NV_MEM_ACCESS_SYS ); -mmio_data (0x060000 ,0x1000 ,NV_MEM_ACCESS_RW ); +mmio_data (priv->tpc_total <<17 ,0x1000 ,NV_MEM_ACCESS_RW );mmio_list (0x40800c ,0x00000000 ,8 ,1 );mmio_list (0x408010 ,0x80000000 ,0 ,0 );mmio_list (0x419004 ,0x00000000 ,8 ,1 ); --1.8.1.5
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau