[Bug 45018] [bisected] rendering regression since added support for virtual address space on cayman v11

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 31 18:18:00 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=45018

--- Comment #71 from awaters1 at gmail.com <awaters1 at gmail.com> 2012-08-01 01:18:00 UTC ---
I have been having this same issue with respect to rendering regressions, I
have also experienced the error relating to va conflicts.  I investigated it a
bit and I think the cause of the rendering regression is when a va is freed
through radeon_bomgr_free_va and subsequently used again in
radeon_bomgr_find_va the GPU isn't done with the memory and it gets overwritten
before the GPU is done.

I experimented with this a bit and by not reusing any va_holes in
radeon_bomgr_find_va the rendering regression goes away, at the expense of
continually eating up the memory.  So I looked around a way to make it so the
va was only freed when it wasn't used any more, and it turns out that worked as
well.

In order to test this I placed a call to radeon_bo_wait before
radeon_bomgr_free_va is called within radeon_bo_destroy, the code looks
something like in radeon_drm_bo.c
    if (mgr->va) {
        radeon_bo_wait(bo, RADEON_USAGE_READWRITE);
        radeon_bomgr_free_va(mgr, bo->va, bo->va_size);
    }

It causes busy waiting currently and could be improved by tracking the
destroyed bos that need to be freed from va when they are not busy, if this is
ultimately the way to solve it.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list