aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/rs400.c
diff options
context:
space:
mode:
authorChristian König <deathsimple@vodafone.de>2012-07-05 05:55:34 -0400
committerChristian König <deathsimple@vodafone.de>2012-07-17 04:32:41 -0400
commit2898c348e5caa50b31b9113726dfa45b2dfc3124 (patch)
treebc5ba4341cdc609899f28279834b3a65c9d98ecd /drivers/gpu/drm/radeon/rs400.c
parentb90ca986a41b233c2fcc8c809ee4f970d2de075e (diff)
drm/radeon: remove ip_pool start/suspend
The IB pool is in gart memory, so it is completely superfluous to unpin / repin it on suspend / resume. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rs400.c')
-rw-r--r--drivers/gpu/drm/radeon/rs400.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/gpu/drm/radeon/rs400.c b/drivers/gpu/drm/radeon/rs400.c
index a464eb5e2df2..aa26076ff468 100644
--- a/drivers/gpu/drm/radeon/rs400.c
+++ b/drivers/gpu/drm/radeon/rs400.c
@@ -426,9 +426,11 @@ static int rs400_startup(struct radeon_device *rdev)
426 return r; 426 return r;
427 } 427 }
428 428
429 r = radeon_ib_pool_start(rdev); 429 r = radeon_ib_pool_init(rdev);
430 if (r) 430 if (r) {
431 dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
431 return r; 432 return r;
433 }
432 434
433 r = radeon_ib_ring_tests(rdev); 435 r = radeon_ib_ring_tests(rdev);
434 if (r) 436 if (r)
@@ -470,7 +472,6 @@ int rs400_resume(struct radeon_device *rdev)
470 472
471int rs400_suspend(struct radeon_device *rdev) 473int rs400_suspend(struct radeon_device *rdev)
472{ 474{
473 radeon_ib_pool_suspend(rdev);
474 r100_cp_disable(rdev); 475 r100_cp_disable(rdev);
475 radeon_wb_disable(rdev); 476 radeon_wb_disable(rdev);
476 r100_irq_disable(rdev); 477 r100_irq_disable(rdev);
@@ -482,7 +483,7 @@ void rs400_fini(struct radeon_device *rdev)
482{ 483{
483 r100_cp_fini(rdev); 484 r100_cp_fini(rdev);
484 radeon_wb_fini(rdev); 485 radeon_wb_fini(rdev);
485 r100_ib_fini(rdev); 486 radeon_ib_pool_fini(rdev);
486 radeon_gem_fini(rdev); 487 radeon_gem_fini(rdev);
487 rs400_gart_fini(rdev); 488 rs400_gart_fini(rdev);
488 radeon_irq_kms_fini(rdev); 489 radeon_irq_kms_fini(rdev);
@@ -550,20 +551,14 @@ int rs400_init(struct radeon_device *rdev)
550 return r; 551 return r;
551 r300_set_reg_safe(rdev); 552 r300_set_reg_safe(rdev);
552 553
553 r = radeon_ib_pool_init(rdev);
554 rdev->accel_working = true; 554 rdev->accel_working = true;
555 if (r) {
556 dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
557 rdev->accel_working = false;
558 }
559
560 r = rs400_startup(rdev); 555 r = rs400_startup(rdev);
561 if (r) { 556 if (r) {
562 /* Somethings want wront with the accel init stop accel */ 557 /* Somethings want wront with the accel init stop accel */
563 dev_err(rdev->dev, "Disabling GPU acceleration\n"); 558 dev_err(rdev->dev, "Disabling GPU acceleration\n");
564 r100_cp_fini(rdev); 559 r100_cp_fini(rdev);
565 radeon_wb_fini(rdev); 560 radeon_wb_fini(rdev);
566 r100_ib_fini(rdev); 561 radeon_ib_pool_fini(rdev);
567 rs400_gart_fini(rdev); 562 rs400_gart_fini(rdev);
568 radeon_irq_kms_fini(rdev); 563 radeon_irq_kms_fini(rdev);
569 rdev->accel_working = false; 564 rdev->accel_working = false;