]> git.baikalelectronics.ru Git - kernel.git/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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Aug 2012 14:50:55 +0000 (10:50 -0400)
commit09a87d213438242655a2c8f11eaadeafe0418b09
tree540dcc594d4392675bb1fc91fdebf3d09a068e9d
parent3f7bdc910dd0283602e405acdd5db5a871ad7f11
drm/radeon: fence virtual address and free it once idle v4

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>
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