diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-08-31 19:51:21 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-09-20 19:10:40 +0200 |
commit | 7a083293c16bb334945fff8b33e3018fd375b33f (patch) | |
tree | dfc49876a8dc663daf2d16da04ad3444e4f7e358 /drivers/gpu/drm/radeon/ni.c | |
parent | drm/radeon: make page table updates async v2 (diff) | |
download | linux-7a083293c16bb334945fff8b33e3018fd375b33f.tar.xz linux-7a083293c16bb334945fff8b33e3018fd375b33f.zip |
drm/radeon: document async VM changes in ni.c
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/ni.c')
-rw-r--r-- | drivers/gpu/drm/radeon/ni.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index c803328c0cf9..e09d3a84a656 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -1517,6 +1517,13 @@ uint32_t cayman_vm_page_flags(struct radeon_device *rdev, uint32_t flags) return r600_flags; } +/** + * cayman_vm_set_page - update the page tables using the CP + * + * @rdev: radeon_device pointer + * + * Update the page tables using the CP (cayman-si). + */ void cayman_vm_set_page(struct radeon_device *rdev, struct radeon_vm *vm, unsigned pfn, struct ttm_mem_reg *mem, unsigned npages, uint32_t flags) @@ -1541,6 +1548,14 @@ void cayman_vm_set_page(struct radeon_device *rdev, struct radeon_vm *vm, } } +/** + * cayman_vm_flush - vm flush using the CP + * + * @rdev: radeon_device pointer + * + * Update the page table base and flush the VM TLB + * using the CP (cayman-si). + */ void cayman_vm_flush(struct radeon_device *rdev, struct radeon_ib *ib) { struct radeon_ring *ring = &rdev->ring[ib->ring]; |