diff options
author | Christian König <deathsimple@vodafone.de> | 2012-07-05 05:55:34 -0400 |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2012-07-17 04:32:41 -0400 |
commit | 2898c348e5caa50b31b9113726dfa45b2dfc3124 (patch) | |
tree | bc5ba4341cdc609899f28279834b3a65c9d98ecd /drivers/gpu/drm/radeon/rs690.c | |
parent | b90ca986a41b233c2fcc8c809ee4f970d2de075e (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/rs690.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rs690.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c index 159b6a43fda0..0c026b0210d4 100644 --- a/drivers/gpu/drm/radeon/rs690.c +++ b/drivers/gpu/drm/radeon/rs690.c | |||
@@ -637,9 +637,11 @@ static int rs690_startup(struct radeon_device *rdev) | |||
637 | return r; | 637 | return r; |
638 | } | 638 | } |
639 | 639 | ||
640 | r = radeon_ib_pool_start(rdev); | 640 | r = radeon_ib_pool_init(rdev); |
641 | if (r) | 641 | if (r) { |
642 | dev_err(rdev->dev, "IB initialization failed (%d).\n", r); | ||
642 | return r; | 643 | return r; |
644 | } | ||
643 | 645 | ||
644 | r = radeon_ib_ring_tests(rdev); | 646 | r = radeon_ib_ring_tests(rdev); |
645 | if (r) | 647 | if (r) |
@@ -685,7 +687,6 @@ int rs690_resume(struct radeon_device *rdev) | |||
685 | 687 | ||
686 | int rs690_suspend(struct radeon_device *rdev) | 688 | int rs690_suspend(struct radeon_device *rdev) |
687 | { | 689 | { |
688 | radeon_ib_pool_suspend(rdev); | ||
689 | r600_audio_fini(rdev); | 690 | r600_audio_fini(rdev); |
690 | r100_cp_disable(rdev); | 691 | r100_cp_disable(rdev); |
691 | radeon_wb_disable(rdev); | 692 | radeon_wb_disable(rdev); |
@@ -699,7 +700,7 @@ void rs690_fini(struct radeon_device *rdev) | |||
699 | r600_audio_fini(rdev); | 700 | r600_audio_fini(rdev); |
700 | r100_cp_fini(rdev); | 701 | r100_cp_fini(rdev); |
701 | radeon_wb_fini(rdev); | 702 | radeon_wb_fini(rdev); |
702 | r100_ib_fini(rdev); | 703 | radeon_ib_pool_fini(rdev); |
703 | radeon_gem_fini(rdev); | 704 | radeon_gem_fini(rdev); |
704 | rs400_gart_fini(rdev); | 705 | rs400_gart_fini(rdev); |
705 | radeon_irq_kms_fini(rdev); | 706 | radeon_irq_kms_fini(rdev); |
@@ -768,20 +769,14 @@ int rs690_init(struct radeon_device *rdev) | |||
768 | return r; | 769 | return r; |
769 | rs600_set_safe_registers(rdev); | 770 | rs600_set_safe_registers(rdev); |
770 | 771 | ||
771 | r = radeon_ib_pool_init(rdev); | ||
772 | rdev->accel_working = true; | 772 | rdev->accel_working = true; |
773 | if (r) { | ||
774 | dev_err(rdev->dev, "IB initialization failed (%d).\n", r); | ||
775 | rdev->accel_working = false; | ||
776 | } | ||
777 | |||
778 | r = rs690_startup(rdev); | 773 | r = rs690_startup(rdev); |
779 | if (r) { | 774 | if (r) { |
780 | /* Somethings want wront with the accel init stop accel */ | 775 | /* Somethings want wront with the accel init stop accel */ |
781 | dev_err(rdev->dev, "Disabling GPU acceleration\n"); | 776 | dev_err(rdev->dev, "Disabling GPU acceleration\n"); |
782 | r100_cp_fini(rdev); | 777 | r100_cp_fini(rdev); |
783 | radeon_wb_fini(rdev); | 778 | radeon_wb_fini(rdev); |
784 | r100_ib_fini(rdev); | 779 | radeon_ib_pool_fini(rdev); |
785 | rs400_gart_fini(rdev); | 780 | rs400_gart_fini(rdev); |
786 | radeon_irq_kms_fini(rdev); | 781 | radeon_irq_kms_fini(rdev); |
787 | rdev->accel_working = false; | 782 | rdev->accel_working = false; |