diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-05-06 01:27:44 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-06-30 23:50:36 -0400 |
commit | 507cd5b553d88216a8d74ac9f2c73caceb3cd236 (patch) | |
tree | 6d6f567ac6a542f9434e11ababd549bf9c529123 | |
parent | 99bd5537bd22256866d83033e0aab2586616bcc2 (diff) |
drm/nve7/gr: update initial register/context values
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
4 files changed, 12 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnve0.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnve0.c index d4e54745876b..f884ffbd408e 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnve0.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnve0.c | |||
@@ -750,6 +750,7 @@ nve0_grctx_generate_icmd(struct nvc0_graph_priv *priv) | |||
750 | nv_icmd(priv, 0x000842, 0x00400008); | 750 | nv_icmd(priv, 0x000842, 0x00400008); |
751 | nv_icmd(priv, 0x000843, 0x08000080); | 751 | nv_icmd(priv, 0x000843, 0x08000080); |
752 | switch (nv_device(priv)->chipset) { | 752 | switch (nv_device(priv)->chipset) { |
753 | case 0xe7: | ||
753 | case 0xe6: | 754 | case 0xe6: |
754 | break; | 755 | break; |
755 | default: | 756 | default: |
@@ -869,6 +870,7 @@ nve0_grctx_generate_icmd(struct nvc0_graph_priv *priv) | |||
869 | nv_icmd(priv, 0x000814, 0x00000008); | 870 | nv_icmd(priv, 0x000814, 0x00000008); |
870 | nv_icmd(priv, 0x000957, 0x00000003); | 871 | nv_icmd(priv, 0x000957, 0x00000003); |
871 | switch (nv_device(priv)->chipset) { | 872 | switch (nv_device(priv)->chipset) { |
873 | case 0xe7: | ||
872 | case 0xe6: | 874 | case 0xe6: |
873 | break; | 875 | break; |
874 | default: | 876 | default: |
@@ -2178,6 +2180,7 @@ nve0_grctx_generate_902d(struct nvc0_graph_priv *priv) | |||
2178 | case 0xe6: | 2180 | case 0xe6: |
2179 | nv_mthd(priv, 0x902d, 0x3410, 0x80002006); | 2181 | nv_mthd(priv, 0x902d, 0x3410, 0x80002006); |
2180 | break; | 2182 | break; |
2183 | case 0xe7: | ||
2181 | default: | 2184 | default: |
2182 | nv_mthd(priv, 0x902d, 0x3410, 0x00000000); | 2185 | nv_mthd(priv, 0x902d, 0x3410, 0x00000000); |
2183 | break; | 2186 | break; |
@@ -2547,6 +2550,7 @@ nve0_graph_generate_tpc(struct nvc0_graph_priv *priv) | |||
2547 | nv_wr32(priv, 0x419e94, 0x0); | 2550 | nv_wr32(priv, 0x419e94, 0x0); |
2548 | nv_wr32(priv, 0x419e98, 0x0); | 2551 | nv_wr32(priv, 0x419e98, 0x0); |
2549 | switch (nv_device(priv)->chipset) { | 2552 | switch (nv_device(priv)->chipset) { |
2553 | case 0xe7: | ||
2550 | case 0xe6: | 2554 | case 0xe6: |
2551 | nv_wr32(priv, 0x419eac, 0x1f8f); | 2555 | nv_wr32(priv, 0x419eac, 0x1f8f); |
2552 | break; | 2556 | break; |
@@ -2566,6 +2570,7 @@ nve0_graph_generate_tpc(struct nvc0_graph_priv *priv) | |||
2566 | nv_wr32(priv, 0x419f4c, 0x0); | 2570 | nv_wr32(priv, 0x419f4c, 0x0); |
2567 | nv_wr32(priv, 0x419f58, 0x0); | 2571 | nv_wr32(priv, 0x419f58, 0x0); |
2568 | switch (nv_device(priv)->chipset) { | 2572 | switch (nv_device(priv)->chipset) { |
2573 | case 0xe7: | ||
2569 | case 0xe6: | 2574 | case 0xe6: |
2570 | nv_wr32(priv, 0x419f70, 0x0); | 2575 | nv_wr32(priv, 0x419f70, 0x0); |
2571 | break; | 2576 | break; |
@@ -2574,6 +2579,7 @@ nve0_graph_generate_tpc(struct nvc0_graph_priv *priv) | |||
2574 | } | 2579 | } |
2575 | nv_wr32(priv, 0x419f78, 0xb); | 2580 | nv_wr32(priv, 0x419f78, 0xb); |
2576 | switch (nv_device(priv)->chipset) { | 2581 | switch (nv_device(priv)->chipset) { |
2582 | case 0xe7: | ||
2577 | case 0xe6: | 2583 | case 0xe6: |
2578 | nv_wr32(priv, 0x419f7c, 0x27a); | 2584 | nv_wr32(priv, 0x419f7c, 0x27a); |
2579 | break; | 2585 | break; |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc index f58c4d0762d3..2aed9a54062d 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc +++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc | |||
@@ -55,8 +55,8 @@ chipsets: | |||
55 | .b8 0xe7 0 0 0 | 55 | .b8 0xe7 0 0 0 |
56 | .b16 #nve4_gpc_mmio_head | 56 | .b16 #nve4_gpc_mmio_head |
57 | .b16 #nve4_gpc_mmio_tail | 57 | .b16 #nve4_gpc_mmio_tail |
58 | .b16 #nve4_tpc_mmio_head | 58 | .b16 #nve6_tpc_mmio_head |
59 | .b16 #nve4_tpc_mmio_tail | 59 | .b16 #nve6_tpc_mmio_tail |
60 | .b8 0xe6 0 0 0 | 60 | .b8 0xe6 0 0 0 |
61 | .b16 #nve4_gpc_mmio_head | 61 | .b16 #nve4_gpc_mmio_head |
62 | .b16 #nve4_gpc_mmio_tail | 62 | .b16 #nve4_gpc_mmio_tail |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h index 321834f15311..1f33a66f96af 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h +++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnve0.fuc.h | |||
@@ -38,7 +38,7 @@ uint32_t nve0_grgpc_data[] = { | |||
38 | 0x01580110, | 38 | 0x01580110, |
39 | 0x000000e7, | 39 | 0x000000e7, |
40 | 0x0110008c, | 40 | 0x0110008c, |
41 | 0x01580110, | 41 | 0x01a40158, |
42 | 0x000000e6, | 42 | 0x000000e6, |
43 | 0x0110008c, | 43 | 0x0110008c, |
44 | 0x01a40158, | 44 | 0x01a40158, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/nve0.c b/drivers/gpu/drm/nouveau/core/engine/graph/nve0.c index b7324138df02..c80132c8f01e 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/nve0.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/nve0.c | |||
@@ -709,6 +709,7 @@ nve0_graph_init_units(struct nvc0_graph_priv *priv) | |||
709 | nv_wr32(priv, 0x409ffc, 0x00000000); | 709 | nv_wr32(priv, 0x409ffc, 0x00000000); |
710 | nv_wr32(priv, 0x409c14, 0x00003e3e); | 710 | nv_wr32(priv, 0x409c14, 0x00003e3e); |
711 | switch (nv_device(priv)->chipset) { | 711 | switch (nv_device(priv)->chipset) { |
712 | case 0xe7: | ||
712 | case 0xe6: | 713 | case 0xe6: |
713 | nv_wr32(priv, 0x409c24, 0x000f0001); | 714 | nv_wr32(priv, 0x409c24, 0x000f0001); |
714 | break; | 715 | break; |
@@ -723,6 +724,7 @@ nve0_graph_init_units(struct nvc0_graph_priv *priv) | |||
723 | nv_wr32(priv, 0x404490, 0xc0000000); | 724 | nv_wr32(priv, 0x404490, 0xc0000000); |
724 | nv_wr32(priv, 0x406018, 0xc0000000); | 725 | nv_wr32(priv, 0x406018, 0xc0000000); |
725 | switch (nv_device(priv)->chipset) { | 726 | switch (nv_device(priv)->chipset) { |
727 | case 0xe7: | ||
726 | case 0xe6: | 728 | case 0xe6: |
727 | nv_wr32(priv, 0x407020, 0x40000000); | 729 | nv_wr32(priv, 0x407020, 0x40000000); |
728 | break; | 730 | break; |
@@ -967,6 +969,7 @@ nve0_graph_init(struct nouveau_object *object) | |||
967 | nve0_graph_init_regs(priv); | 969 | nve0_graph_init_regs(priv); |
968 | 970 | ||
969 | switch (nv_device(priv)->chipset) { | 971 | switch (nv_device(priv)->chipset) { |
972 | case 0xe7: | ||
970 | case 0xe6: | 973 | case 0xe6: |
971 | nve0_graph_init_unk40xx(priv); | 974 | nve0_graph_init_unk40xx(priv); |
972 | nve0_graph_init_unk44xx(priv); | 975 | nve0_graph_init_unk44xx(priv); |