[PATCH] drm/radeon/kms: free ib pool on module unloading
Alex Deucher
alexdeucher at gmail.com
Wed Jul 6 11:32:32 PDT 2011
On Wed, Jul 6, 2011 at 2:30 PM, <j.glisse at gmail.com> wrote:
> From: Jerome Glisse <jglisse at redhat.com>
>
> 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 at redhat.com>
Reviewed-by: Alex Deucher <alexdeucher at gmail.com>
> ---
> drivers/gpu/drm/radeon/evergreen.c | 1 +
> drivers/gpu/drm/radeon/ni.c | 1 +
> drivers/gpu/drm/radeon/r600.c | 1 +
> drivers/gpu/drm/radeon/rv770.c | 1 +
> 4 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
> index e8a5ffb..a2d9008 100644
> --- a/drivers/gpu/drm/radeon/evergreen.c
> +++ b/drivers/gpu/drm/radeon/evergreen.c
> @@ -3237,6 +3237,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);
> diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c
> index 16caafe..559dbd4 100644
> --- a/drivers/gpu/drm/radeon/ni.c
> +++ b/drivers/gpu/drm/radeon/ni.c
> @@ -1581,6 +1581,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);
> diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
> index f79d2cc..bc54b26 100644
> --- a/drivers/gpu/drm/radeon/r600.c
> +++ b/drivers/gpu/drm/radeon/r600.c
> @@ -2628,6 +2628,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);
> diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c
> index 8bb347d..4de5189 100644
> --- a/drivers/gpu/drm/radeon/rv770.c
> +++ b/drivers/gpu/drm/radeon/rv770.c
> @@ -1368,6 +1368,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);
> --
> 1.7.3.2
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
More information about the dri-devel
mailing list