]> git.hungrycats.org Git - linux/commit
drm/radeon: fence virtual address and free it once idle v4
authorJerome Glisse <jglisse@redhat.com>
Mon, 6 Aug 2012 16:32:21 +0000 (12:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:40 +0000 (10:39 -0700)
commit209568409a933a4041d0fd47992c10e53473fb0e
tree4125ff7f0e23e360b5ad1e14b158afe84010bcef
parent02472191d07a0af5cad86c9f9ea406c8c2918395
drm/radeon: fence virtual address and free it once idle v4

commit e43b5ec05afdc232be25aa481315035c1888d389 upstream.

Virtual address need to be fenced to know when we can safely remove it.
This patch also properly clear the pagetable. Previously it was
serouisly broken.

Kernel 3.5/3.4 need a similar patch but adapted for difference in mutex locking.

v2: For to update pagetable when unbinding bo (don't bailout if
    bo_va->valid is true).
v3: Add kernel 3.5/3.4 comment.
v4: Fix compilation warnings.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_cs.c
drivers/gpu/drm/radeon/radeon_gart.c
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_object.c