diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-08-09 14:10:30 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-09 15:28:16 -0400 |
commit | e887377338ff1f04b4c56249f3947a642e4029bf (patch) | |
tree | 28190ceeeaca5781a961a42849c49df2a53bfa5b | |
parent | 67cfbfdfec9fade9886ff23717023e3149926a49 (diff) |
drm/gf100-/gr: remove some broken ltc bashing, for now
... and hope that the defaults are good enough. This was always
supposed to be a read/modify/write thing anyway, so we're writing
very wrong stuff for some boards already.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
13 files changed, 0 insertions, 58 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxgk110b.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxgk110b.c index 6b903c9ee0fb..3adb7fe91772 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxgk110b.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxgk110b.c | |||
@@ -82,7 +82,6 @@ gk110b_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
82 | .wr32 = _nouveau_graph_context_wr32, | 82 | .wr32 = _nouveau_graph_context_wr32, |
83 | }, | 83 | }, |
84 | .main = nve4_grctx_generate_main, | 84 | .main = nve4_grctx_generate_main, |
85 | .mods = nve4_grctx_generate_mods, | ||
86 | .unkn = nve4_grctx_generate_unkn, | 85 | .unkn = nve4_grctx_generate_unkn, |
87 | .hub = nvf0_grctx_pack_hub, | 86 | .hub = nvf0_grctx_pack_hub, |
88 | .gpc = nvf0_grctx_pack_gpc, | 87 | .gpc = nvf0_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxgk20a.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxgk20a.c index f336fe38a32a..36fc9831cc93 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxgk20a.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxgk20a.c | |||
@@ -41,7 +41,6 @@ gk20a_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
41 | .wr32 = _nouveau_graph_context_wr32, | 41 | .wr32 = _nouveau_graph_context_wr32, |
42 | }, | 42 | }, |
43 | .main = nve4_grctx_generate_main, | 43 | .main = nve4_grctx_generate_main, |
44 | .mods = nve4_grctx_generate_mods, | ||
45 | .unkn = nve4_grctx_generate_unkn, | 44 | .unkn = nve4_grctx_generate_unkn, |
46 | .hub = nve4_grctx_pack_hub, | 45 | .hub = nve4_grctx_pack_hub, |
47 | .gpc = nve4_grctx_pack_gpc, | 46 | .gpc = nve4_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxgm107.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxgm107.c index dfd92fa5f374..62e918b9fa81 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxgm107.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxgm107.c | |||
@@ -929,11 +929,6 @@ gm107_grctx_generate_attrib(struct nvc0_grctx *info) | |||
929 | } | 929 | } |
930 | } | 930 | } |
931 | 931 | ||
932 | void | ||
933 | gm107_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | ||
934 | { | ||
935 | } | ||
936 | |||
937 | static void | 932 | static void |
938 | gm107_grctx_generate_tpcid(struct nvc0_graph_priv *priv) | 933 | gm107_grctx_generate_tpcid(struct nvc0_graph_priv *priv) |
939 | { | 934 | { |
@@ -971,7 +966,6 @@ gm107_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | |||
971 | oclass->bundle(info); | 966 | oclass->bundle(info); |
972 | oclass->pagepool(info); | 967 | oclass->pagepool(info); |
973 | oclass->attrib(info); | 968 | oclass->attrib(info); |
974 | oclass->mods(priv, info); | ||
975 | oclass->unkn(priv); | 969 | oclass->unkn(priv); |
976 | 970 | ||
977 | gm107_grctx_generate_tpcid(priv); | 971 | gm107_grctx_generate_tpcid(priv); |
@@ -1016,7 +1010,6 @@ gm107_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
1016 | .wr32 = _nouveau_graph_context_wr32, | 1010 | .wr32 = _nouveau_graph_context_wr32, |
1017 | }, | 1011 | }, |
1018 | .main = gm107_grctx_generate_main, | 1012 | .main = gm107_grctx_generate_main, |
1019 | .mods = gm107_grctx_generate_mods, | ||
1020 | .unkn = nve4_grctx_generate_unkn, | 1013 | .unkn = nve4_grctx_generate_unkn, |
1021 | .hub = gm107_grctx_pack_hub, | 1014 | .hub = gm107_grctx_pack_hub, |
1022 | .gpc = gm107_grctx_pack_gpc, | 1015 | .gpc = gm107_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnv108.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnv108.c index f32241800f8e..ce252adbef81 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnv108.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnv108.c | |||
@@ -531,13 +531,6 @@ nv108_grctx_pack_ppc[] = { | |||
531 | * PGRAPH context implementation | 531 | * PGRAPH context implementation |
532 | ******************************************************************************/ | 532 | ******************************************************************************/ |
533 | 533 | ||
534 | static void | ||
535 | nv108_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | ||
536 | { | ||
537 | mmio_list(0x17e91c, 0x0b040a0b, 0, 0); | ||
538 | mmio_list(0x17e920, 0x00090d08, 0, 0); | ||
539 | } | ||
540 | |||
541 | struct nouveau_oclass * | 534 | struct nouveau_oclass * |
542 | nv108_grctx_oclass = &(struct nvc0_grctx_oclass) { | 535 | nv108_grctx_oclass = &(struct nvc0_grctx_oclass) { |
543 | .base.handle = NV_ENGCTX(GR, 0x08), | 536 | .base.handle = NV_ENGCTX(GR, 0x08), |
@@ -550,7 +543,6 @@ nv108_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
550 | .wr32 = _nouveau_graph_context_wr32, | 543 | .wr32 = _nouveau_graph_context_wr32, |
551 | }, | 544 | }, |
552 | .main = nve4_grctx_generate_main, | 545 | .main = nve4_grctx_generate_main, |
553 | .mods = nv108_grctx_generate_mods, | ||
554 | .unkn = nve4_grctx_generate_unkn, | 546 | .unkn = nve4_grctx_generate_unkn, |
555 | .hub = nv108_grctx_pack_hub, | 547 | .hub = nv108_grctx_pack_hub, |
556 | .gpc = nv108_grctx_pack_gpc, | 548 | .gpc = nv108_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c index 46905a48f00a..b8e5fe60a1eb 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c | |||
@@ -1074,11 +1074,6 @@ nvc0_grctx_generate_attrib(struct nvc0_grctx *info) | |||
1074 | } | 1074 | } |
1075 | 1075 | ||
1076 | void | 1076 | void |
1077 | nvc0_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | ||
1078 | { | ||
1079 | } | ||
1080 | |||
1081 | void | ||
1082 | nvc0_grctx_generate_unkn(struct nvc0_graph_priv *priv) | 1077 | nvc0_grctx_generate_unkn(struct nvc0_graph_priv *priv) |
1083 | { | 1078 | { |
1084 | } | 1079 | } |
@@ -1247,7 +1242,6 @@ nvc0_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | |||
1247 | oclass->bundle(info); | 1242 | oclass->bundle(info); |
1248 | oclass->pagepool(info); | 1243 | oclass->pagepool(info); |
1249 | oclass->attrib(info); | 1244 | oclass->attrib(info); |
1250 | oclass->mods(priv, info); | ||
1251 | oclass->unkn(priv); | 1245 | oclass->unkn(priv); |
1252 | 1246 | ||
1253 | nvc0_grctx_generate_tpcid(priv); | 1247 | nvc0_grctx_generate_tpcid(priv); |
@@ -1375,7 +1369,6 @@ nvc0_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
1375 | .wr32 = _nouveau_graph_context_wr32, | 1369 | .wr32 = _nouveau_graph_context_wr32, |
1376 | }, | 1370 | }, |
1377 | .main = nvc0_grctx_generate_main, | 1371 | .main = nvc0_grctx_generate_main, |
1378 | .mods = nvc0_grctx_generate_mods, | ||
1379 | .unkn = nvc0_grctx_generate_unkn, | 1372 | .unkn = nvc0_grctx_generate_unkn, |
1380 | .hub = nvc0_grctx_pack_hub, | 1373 | .hub = nvc0_grctx_pack_hub, |
1381 | .gpc = nvc0_grctx_pack_gpc, | 1374 | .gpc = nvc0_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.h b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.h index fe3fcb99c69c..c776cd715e33 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.h +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.h | |||
@@ -15,9 +15,6 @@ struct nvc0_grctx { | |||
15 | int nvc0_grctx_mmio_data(struct nvc0_grctx *, u32 size, u32 align, u32 access); | 15 | int nvc0_grctx_mmio_data(struct nvc0_grctx *, u32 size, u32 align, u32 access); |
16 | void nvc0_grctx_mmio_item(struct nvc0_grctx *, u32 addr, u32 data, int s, int); | 16 | void nvc0_grctx_mmio_item(struct nvc0_grctx *, u32 addr, u32 data, int s, int); |
17 | 17 | ||
18 | #define mmio_data(a,b,c) nvc0_grctx_mmio_data(info, (a), (b), (c)) | ||
19 | #define mmio_list(a,b,c,d) nvc0_grctx_mmio_item(info, (a), (b), (c), (d)) | ||
20 | |||
21 | #define mmio_vram(a,b,c,d) nvc0_grctx_mmio_data((a), (b), (c), (d)) | 18 | #define mmio_vram(a,b,c,d) nvc0_grctx_mmio_data((a), (b), (c), (d)) |
22 | #define mmio_refn(a,b,c,d,e) nvc0_grctx_mmio_item((a), (b), (c), (d), (e)) | 19 | #define mmio_refn(a,b,c,d,e) nvc0_grctx_mmio_item((a), (b), (c), (d), (e)) |
23 | #define mmio_skip(a,b,c) mmio_refn((a), (b), (c), -1, -1) | 20 | #define mmio_skip(a,b,c) mmio_refn((a), (b), (c), -1, -1) |
@@ -28,7 +25,6 @@ struct nvc0_grctx_oclass { | |||
28 | /* main context generation function */ | 25 | /* main context generation function */ |
29 | void (*main)(struct nvc0_graph_priv *, struct nvc0_grctx *); | 26 | void (*main)(struct nvc0_graph_priv *, struct nvc0_grctx *); |
30 | /* context-specific modify-on-first-load list generation function */ | 27 | /* context-specific modify-on-first-load list generation function */ |
31 | void (*mods)(struct nvc0_graph_priv *, struct nvc0_grctx *); | ||
32 | void (*unkn)(struct nvc0_graph_priv *); | 28 | void (*unkn)(struct nvc0_graph_priv *); |
33 | /* mmio context data */ | 29 | /* mmio context data */ |
34 | const struct nvc0_graph_pack *hub; | 30 | const struct nvc0_graph_pack *hub; |
@@ -67,7 +63,6 @@ void nvc0_grctx_generate_main(struct nvc0_graph_priv *, struct nvc0_grctx *); | |||
67 | void nvc0_grctx_generate_bundle(struct nvc0_grctx *); | 63 | void nvc0_grctx_generate_bundle(struct nvc0_grctx *); |
68 | void nvc0_grctx_generate_pagepool(struct nvc0_grctx *); | 64 | void nvc0_grctx_generate_pagepool(struct nvc0_grctx *); |
69 | void nvc0_grctx_generate_attrib(struct nvc0_grctx *); | 65 | void nvc0_grctx_generate_attrib(struct nvc0_grctx *); |
70 | void nvc0_grctx_generate_mods(struct nvc0_graph_priv *, struct nvc0_grctx *); | ||
71 | void nvc0_grctx_generate_unkn(struct nvc0_graph_priv *); | 66 | void nvc0_grctx_generate_unkn(struct nvc0_graph_priv *); |
72 | void nvc0_grctx_generate_tpcid(struct nvc0_graph_priv *); | 67 | void nvc0_grctx_generate_tpcid(struct nvc0_graph_priv *); |
73 | void nvc0_grctx_generate_r406028(struct nvc0_graph_priv *); | 68 | void nvc0_grctx_generate_r406028(struct nvc0_graph_priv *); |
@@ -77,7 +72,6 @@ void nvc0_grctx_generate_r406800(struct nvc0_graph_priv *); | |||
77 | 72 | ||
78 | extern struct nouveau_oclass *nvc1_grctx_oclass; | 73 | extern struct nouveau_oclass *nvc1_grctx_oclass; |
79 | void nvc1_grctx_generate_attrib(struct nvc0_grctx *); | 74 | void nvc1_grctx_generate_attrib(struct nvc0_grctx *); |
80 | void nvc1_grctx_generate_mods(struct nvc0_graph_priv *, struct nvc0_grctx *); | ||
81 | void nvc1_grctx_generate_unkn(struct nvc0_graph_priv *); | 75 | void nvc1_grctx_generate_unkn(struct nvc0_graph_priv *); |
82 | 76 | ||
83 | extern struct nouveau_oclass *nvc4_grctx_oclass; | 77 | extern struct nouveau_oclass *nvc4_grctx_oclass; |
@@ -93,7 +87,6 @@ extern struct nouveau_oclass *gk20a_grctx_oclass; | |||
93 | void nve4_grctx_generate_main(struct nvc0_graph_priv *, struct nvc0_grctx *); | 87 | void nve4_grctx_generate_main(struct nvc0_graph_priv *, struct nvc0_grctx *); |
94 | void nve4_grctx_generate_bundle(struct nvc0_grctx *); | 88 | void nve4_grctx_generate_bundle(struct nvc0_grctx *); |
95 | void nve4_grctx_generate_pagepool(struct nvc0_grctx *); | 89 | void nve4_grctx_generate_pagepool(struct nvc0_grctx *); |
96 | void nve4_grctx_generate_mods(struct nvc0_graph_priv *, struct nvc0_grctx *); | ||
97 | void nve4_grctx_generate_unkn(struct nvc0_graph_priv *); | 90 | void nve4_grctx_generate_unkn(struct nvc0_graph_priv *); |
98 | void nve4_grctx_generate_r418bb8(struct nvc0_graph_priv *); | 91 | void nve4_grctx_generate_r418bb8(struct nvc0_graph_priv *); |
99 | 92 | ||
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc1.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc1.c index d9b8f981096f..c6ba8fed18f1 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc1.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc1.c | |||
@@ -764,11 +764,6 @@ nvc1_grctx_generate_attrib(struct nvc0_grctx *info) | |||
764 | } | 764 | } |
765 | 765 | ||
766 | void | 766 | void |
767 | nvc1_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | ||
768 | { | ||
769 | } | ||
770 | |||
771 | void | ||
772 | nvc1_grctx_generate_unkn(struct nvc0_graph_priv *priv) | 767 | nvc1_grctx_generate_unkn(struct nvc0_graph_priv *priv) |
773 | { | 768 | { |
774 | nv_mask(priv, 0x418c6c, 0x00000001, 0x00000001); | 769 | nv_mask(priv, 0x418c6c, 0x00000001, 0x00000001); |
@@ -791,7 +786,6 @@ nvc1_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
791 | .wr32 = _nouveau_graph_context_wr32, | 786 | .wr32 = _nouveau_graph_context_wr32, |
792 | }, | 787 | }, |
793 | .main = nvc0_grctx_generate_main, | 788 | .main = nvc0_grctx_generate_main, |
794 | .mods = nvc1_grctx_generate_mods, | ||
795 | .unkn = nvc1_grctx_generate_unkn, | 789 | .unkn = nvc1_grctx_generate_unkn, |
796 | .hub = nvc1_grctx_pack_hub, | 790 | .hub = nvc1_grctx_pack_hub, |
797 | .gpc = nvc1_grctx_pack_gpc, | 791 | .gpc = nvc1_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc4.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc4.c index 8d84dff9fe1f..41705c60cc47 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc4.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc4.c | |||
@@ -92,7 +92,6 @@ nvc4_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
92 | .wr32 = _nouveau_graph_context_wr32, | 92 | .wr32 = _nouveau_graph_context_wr32, |
93 | }, | 93 | }, |
94 | .main = nvc0_grctx_generate_main, | 94 | .main = nvc0_grctx_generate_main, |
95 | .mods = nvc0_grctx_generate_mods, | ||
96 | .unkn = nvc0_grctx_generate_unkn, | 95 | .unkn = nvc0_grctx_generate_unkn, |
97 | .hub = nvc0_grctx_pack_hub, | 96 | .hub = nvc0_grctx_pack_hub, |
98 | .gpc = nvc0_grctx_pack_gpc, | 97 | .gpc = nvc0_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc8.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc8.c index 93f9b60ef871..8f804cd8f9c7 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc8.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc8.c | |||
@@ -343,7 +343,6 @@ nvc8_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
343 | .wr32 = _nouveau_graph_context_wr32, | 343 | .wr32 = _nouveau_graph_context_wr32, |
344 | }, | 344 | }, |
345 | .main = nvc0_grctx_generate_main, | 345 | .main = nvc0_grctx_generate_main, |
346 | .mods = nvc0_grctx_generate_mods, | ||
347 | .unkn = nvc0_grctx_generate_unkn, | 346 | .unkn = nvc0_grctx_generate_unkn, |
348 | .hub = nvc0_grctx_pack_hub, | 347 | .hub = nvc0_grctx_pack_hub, |
349 | .gpc = nvc8_grctx_pack_gpc, | 348 | .gpc = nvc8_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd7.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd7.c index 05b76538a06f..fcf534fd9e65 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd7.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd7.c | |||
@@ -214,12 +214,6 @@ nvd7_grctx_generate_attrib(struct nvc0_grctx *info) | |||
214 | } | 214 | } |
215 | } | 215 | } |
216 | 216 | ||
217 | static void | ||
218 | nvd7_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | ||
219 | { | ||
220 | mmio_list(0x17e91c, 0x03060609, 0, 0); /* different from kepler */ | ||
221 | } | ||
222 | |||
223 | void | 217 | void |
224 | nvd7_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | 218 | nvd7_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) |
225 | { | 219 | { |
@@ -239,7 +233,6 @@ nvd7_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | |||
239 | oclass->bundle(info); | 233 | oclass->bundle(info); |
240 | oclass->pagepool(info); | 234 | oclass->pagepool(info); |
241 | oclass->attrib(info); | 235 | oclass->attrib(info); |
242 | oclass->mods(priv, info); | ||
243 | oclass->unkn(priv); | 236 | oclass->unkn(priv); |
244 | 237 | ||
245 | nvc0_grctx_generate_tpcid(priv); | 238 | nvc0_grctx_generate_tpcid(priv); |
@@ -269,7 +262,6 @@ nvd7_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
269 | .wr32 = _nouveau_graph_context_wr32, | 262 | .wr32 = _nouveau_graph_context_wr32, |
270 | }, | 263 | }, |
271 | .main = nvd7_grctx_generate_main, | 264 | .main = nvd7_grctx_generate_main, |
272 | .mods = nvd7_grctx_generate_mods, | ||
273 | .unkn = nve4_grctx_generate_unkn, | 265 | .unkn = nve4_grctx_generate_unkn, |
274 | .hub = nvd7_grctx_pack_hub, | 266 | .hub = nvd7_grctx_pack_hub, |
275 | .gpc = nvd7_grctx_pack_gpc, | 267 | .gpc = nvd7_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd9.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd9.c index e5808a82ba4d..b9a301b6fd9f 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd9.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd9.c | |||
@@ -511,7 +511,6 @@ nvd9_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
511 | .wr32 = _nouveau_graph_context_wr32, | 511 | .wr32 = _nouveau_graph_context_wr32, |
512 | }, | 512 | }, |
513 | .main = nvc0_grctx_generate_main, | 513 | .main = nvc0_grctx_generate_main, |
514 | .mods = nvc1_grctx_generate_mods, | ||
515 | .unkn = nvc1_grctx_generate_unkn, | 514 | .unkn = nvc1_grctx_generate_unkn, |
516 | .hub = nvd9_grctx_pack_hub, | 515 | .hub = nvd9_grctx_pack_hub, |
517 | .gpc = nvd9_grctx_pack_gpc, | 516 | .gpc = nvd9_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c index 22de56b39a88..ccac2ee1a1cb 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c | |||
@@ -870,13 +870,6 @@ nve4_grctx_generate_pagepool(struct nvc0_grctx *info) | |||
870 | } | 870 | } |
871 | 871 | ||
872 | void | 872 | void |
873 | nve4_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | ||
874 | { | ||
875 | mmio_list(0x17e91c, 0x06060609, 0, 0); | ||
876 | mmio_list(0x17e920, 0x00090a05, 0, 0); | ||
877 | } | ||
878 | |||
879 | void | ||
880 | nve4_grctx_generate_unkn(struct nvc0_graph_priv *priv) | 873 | nve4_grctx_generate_unkn(struct nvc0_graph_priv *priv) |
881 | { | 874 | { |
882 | nv_mask(priv, 0x418c6c, 0x00000001, 0x00000001); | 875 | nv_mask(priv, 0x418c6c, 0x00000001, 0x00000001); |
@@ -964,7 +957,6 @@ nve4_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info) | |||
964 | oclass->bundle(info); | 957 | oclass->bundle(info); |
965 | oclass->pagepool(info); | 958 | oclass->pagepool(info); |
966 | oclass->attrib(info); | 959 | oclass->attrib(info); |
967 | oclass->mods(priv, info); | ||
968 | oclass->unkn(priv); | 960 | oclass->unkn(priv); |
969 | 961 | ||
970 | nvc0_grctx_generate_tpcid(priv); | 962 | nvc0_grctx_generate_tpcid(priv); |
@@ -1006,7 +998,6 @@ nve4_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
1006 | .wr32 = _nouveau_graph_context_wr32, | 998 | .wr32 = _nouveau_graph_context_wr32, |
1007 | }, | 999 | }, |
1008 | .main = nve4_grctx_generate_main, | 1000 | .main = nve4_grctx_generate_main, |
1009 | .mods = nve4_grctx_generate_mods, | ||
1010 | .unkn = nve4_grctx_generate_unkn, | 1001 | .unkn = nve4_grctx_generate_unkn, |
1011 | .hub = nve4_grctx_pack_hub, | 1002 | .hub = nve4_grctx_pack_hub, |
1012 | .gpc = nve4_grctx_pack_gpc, | 1003 | .gpc = nve4_grctx_pack_gpc, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvf0.c b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvf0.c index 4400b1dcd73e..e9b0dcf95a49 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvf0.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/ctxnvf0.c | |||
@@ -821,7 +821,6 @@ nvf0_grctx_oclass = &(struct nvc0_grctx_oclass) { | |||
821 | .wr32 = _nouveau_graph_context_wr32, | 821 | .wr32 = _nouveau_graph_context_wr32, |
822 | }, | 822 | }, |
823 | .main = nve4_grctx_generate_main, | 823 | .main = nve4_grctx_generate_main, |
824 | .mods = nve4_grctx_generate_mods, | ||
825 | .unkn = nve4_grctx_generate_unkn, | 824 | .unkn = nve4_grctx_generate_unkn, |
826 | .hub = nvf0_grctx_pack_hub, | 825 | .hub = nvf0_grctx_pack_hub, |
827 | .gpc = nvf0_grctx_pack_gpc, | 826 | .gpc = nvf0_grctx_pack_gpc, |