diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-12-23 18:33:33 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-12-28 19:51:27 -0500 |
commit | b1cd916ab96e5fcd16e2009410af2e8edfae2962 (patch) | |
tree | bdacd0667d133053b9c9c91465b42de89fbd251d /drivers/gpu/drm/nouveau/nvc0_graph.c | |
parent | 8e91182bbdb8591be4835907d825a5b9a80495a9 (diff) |
drm/nvc0: kill off a couple more magics
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvc0_graph.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_graph.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.c b/drivers/gpu/drm/nouveau/nvc0_graph.c index cf2f6aa920b4..f03c17a10ab9 100644 --- a/drivers/gpu/drm/nouveau/nvc0_graph.c +++ b/drivers/gpu/drm/nouveau/nvc0_graph.c | |||
@@ -334,8 +334,6 @@ nvc0_graph_create(struct drm_device *dev) | |||
334 | case 0xc0: | 334 | case 0xc0: |
335 | if (priv->tp_total == 11) { /* 465, 3/4/4/0, 4 */ | 335 | if (priv->tp_total == 11) { /* 465, 3/4/4/0, 4 */ |
336 | priv->magic_not_rop_nr = 0x07; | 336 | priv->magic_not_rop_nr = 0x07; |
337 | priv->magic419bd0 = 0x0a360000; | ||
338 | priv->magic419be4 = 0x04c33a54; | ||
339 | /* filled values up to tp_total, the rest 0 */ | 337 | /* filled values up to tp_total, the rest 0 */ |
340 | priv->magicgpc980[0] = 0x22111000; | 338 | priv->magicgpc980[0] = 0x22111000; |
341 | priv->magicgpc980[1] = 0x00000233; | 339 | priv->magicgpc980[1] = 0x00000233; |
@@ -345,8 +343,6 @@ nvc0_graph_create(struct drm_device *dev) | |||
345 | } else | 343 | } else |
346 | if (priv->tp_total == 14) { /* 470, 3/3/4/4, 5 */ | 344 | if (priv->tp_total == 14) { /* 470, 3/3/4/4, 5 */ |
347 | priv->magic_not_rop_nr = 0x05; | 345 | priv->magic_not_rop_nr = 0x05; |
348 | priv->magic419bd0 = 0x043c0000; | ||
349 | priv->magic419be4 = 0x09041208; | ||
350 | priv->magicgpc980[0] = 0x11110000; | 346 | priv->magicgpc980[0] = 0x11110000; |
351 | priv->magicgpc980[1] = 0x00233222; | 347 | priv->magicgpc980[1] = 0x00233222; |
352 | priv->magicgpc980[2] = 0x00000000; | 348 | priv->magicgpc980[2] = 0x00000000; |
@@ -355,8 +351,6 @@ nvc0_graph_create(struct drm_device *dev) | |||
355 | } else | 351 | } else |
356 | if (priv->tp_total == 15) { /* 480, 3/4/4/4, 6 */ | 352 | if (priv->tp_total == 15) { /* 480, 3/4/4/4, 6 */ |
357 | priv->magic_not_rop_nr = 0x06; | 353 | priv->magic_not_rop_nr = 0x06; |
358 | priv->magic419bd0 = 0x023e0000; | ||
359 | priv->magic419be4 = 0x10414104; | ||
360 | priv->magicgpc980[0] = 0x11110000; | 354 | priv->magicgpc980[0] = 0x11110000; |
361 | priv->magicgpc980[1] = 0x03332222; | 355 | priv->magicgpc980[1] = 0x03332222; |
362 | priv->magicgpc980[2] = 0x00000000; | 356 | priv->magicgpc980[2] = 0x00000000; |
@@ -366,8 +360,6 @@ nvc0_graph_create(struct drm_device *dev) | |||
366 | break; | 360 | break; |
367 | case 0xc3: /* 450, 4/0/0/0, 2 */ | 361 | case 0xc3: /* 450, 4/0/0/0, 2 */ |
368 | priv->magic_not_rop_nr = 0x03; | 362 | priv->magic_not_rop_nr = 0x03; |
369 | priv->magic419bd0 = 0x00500000; | ||
370 | priv->magic419be4 = 0x00000000; | ||
371 | priv->magicgpc980[0] = 0x00003210; | 363 | priv->magicgpc980[0] = 0x00003210; |
372 | priv->magicgpc980[1] = 0x00000000; | 364 | priv->magicgpc980[1] = 0x00000000; |
373 | priv->magicgpc980[2] = 0x00000000; | 365 | priv->magicgpc980[2] = 0x00000000; |
@@ -376,8 +368,6 @@ nvc0_graph_create(struct drm_device *dev) | |||
376 | break; | 368 | break; |
377 | case 0xc4: /* 460, 3/4/0/0, 4 */ | 369 | case 0xc4: /* 460, 3/4/0/0, 4 */ |
378 | priv->magic_not_rop_nr = 0x01; | 370 | priv->magic_not_rop_nr = 0x01; |
379 | priv->magic419bd0 = 0x045c0000; | ||
380 | priv->magic419be4 = 0x09041208; | ||
381 | priv->magicgpc980[0] = 0x02321100; | 371 | priv->magicgpc980[0] = 0x02321100; |
382 | priv->magicgpc980[1] = 0x00000000; | 372 | priv->magicgpc980[1] = 0x00000000; |
383 | priv->magicgpc980[2] = 0x00000000; | 373 | priv->magicgpc980[2] = 0x00000000; |
@@ -386,14 +376,12 @@ nvc0_graph_create(struct drm_device *dev) | |||
386 | break; | 376 | break; |
387 | } | 377 | } |
388 | 378 | ||
389 | if (!priv->magic419bd0) { | 379 | if (!priv->magic_not_rop_nr) { |
390 | NV_ERROR(dev, "PGRAPH: unknown config: %d/%d/%d/%d, %d\n", | 380 | NV_ERROR(dev, "PGRAPH: unknown config: %d/%d/%d/%d, %d\n", |
391 | priv->tp_nr[0], priv->tp_nr[1], priv->tp_nr[2], | 381 | priv->tp_nr[0], priv->tp_nr[1], priv->tp_nr[2], |
392 | priv->tp_nr[3], priv->rop_nr); | 382 | priv->tp_nr[3], priv->rop_nr); |
393 | /* use 0xc3's values... */ | 383 | /* use 0xc3's values... */ |
394 | priv->magic_not_rop_nr = 0x03; | 384 | priv->magic_not_rop_nr = 0x03; |
395 | priv->magic419bd0 = 0x00500000; | ||
396 | priv->magic419be4 = 0x00000000; | ||
397 | priv->magicgpc980[0] = 0x00003210; | 385 | priv->magicgpc980[0] = 0x00003210; |
398 | priv->magicgpc980[1] = 0x00000000; | 386 | priv->magicgpc980[1] = 0x00000000; |
399 | priv->magicgpc980[2] = 0x00000000; | 387 | priv->magicgpc980[2] = 0x00000000; |