]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/radeon/kms: free ib pool on module unloading
authorJerome Glisse <jglisse@redhat.com>
Wed, 6 Jul 2011 18:30:09 +0000 (18:30 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 3 Aug 2011 19:42:22 +0000 (12:42 -0700)
commit ccd6895d401efad0c0e41d0e93fba4ef3085e268 upstream.

ib pool weren't free for various newer asic on module unload.
This doesn't cause much arm but still could be candidate for
stable.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/rv770.c

index 296e6ecf067b07bae6d5c8ff71c7785738637022..c130ed8819012e2d887f84864c992c8767376553 100644 (file)
@@ -3150,6 +3150,7 @@ void evergreen_fini(struct radeon_device *rdev)
        r700_cp_fini(rdev);
        r600_irq_fini(rdev);
        radeon_wb_fini(rdev);
+       radeon_ib_pool_fini(rdev);
        radeon_irq_kms_fini(rdev);
        evergreen_pcie_gart_fini(rdev);
        radeon_gem_fini(rdev);
index b205ba1cdd8f9b562a2033c9fec000a7b0b83e7e..58f5070fc7ba808ab30f1e0c3c6c2e33d9befc65 100644 (file)
@@ -1584,6 +1584,7 @@ void cayman_fini(struct radeon_device *rdev)
        cayman_cp_fini(rdev);
        r600_irq_fini(rdev);
        radeon_wb_fini(rdev);
+       radeon_ib_pool_fini(rdev);
        radeon_irq_kms_fini(rdev);
        cayman_pcie_gart_fini(rdev);
        radeon_gem_fini(rdev);
index 6f27593901c7110752b9b2f39267f04546f544eb..068cc85e059ec403d21ab649068a50d683575642 100644 (file)
@@ -2613,6 +2613,7 @@ void r600_fini(struct radeon_device *rdev)
        r600_cp_fini(rdev);
        r600_irq_fini(rdev);
        radeon_wb_fini(rdev);
+       radeon_ib_pool_fini(rdev);
        radeon_irq_kms_fini(rdev);
        r600_pcie_gart_fini(rdev);
        radeon_agp_fini(rdev);
index 05aa6749802ccc937d1ff4e34248f6bb149e374d..33b856bd5e350222bacdc313ff3de6fbb38a9d40 100644 (file)
@@ -1365,6 +1365,7 @@ void rv770_fini(struct radeon_device *rdev)
        r700_cp_fini(rdev);
        r600_irq_fini(rdev);
        radeon_wb_fini(rdev);
+       radeon_ib_pool_fini(rdev);
        radeon_irq_kms_fini(rdev);
        rv770_pcie_gart_fini(rdev);
        rv770_vram_scratch_fini(rdev);