[Bug 27868] [r600] on new campaign, Vegastrike crashes or freezes Xorg

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 7 07:26:32 PDT 2010


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

--- Comment #4 from Bobby Weinmann <bobby.weinmann at gmail.com> 2010-05-07 07:26:32 PDT ---
Created an attachment (id=35497)
 View: https://bugs.freedesktop.org/attachment.cgi?id=35497
 Review: https://bugs.freedesktop.org/review?bug=27868&attachment=35497

PATCH for crash after "valide"

PATCH:

I have run into a crash after a "cannot valide it" warning.  The unmap function
in radeon_bo_legacy is called sometimes when the memory is no longer mapped. 
The radeon_bo_legacy->map_count goes negative which means statements like

if (radeon_bo_legacy->map_count) ...

will return true.

The attached patch prevents the count from going negative and fixes the crash
for me.

Crash was with the r200 driver (Radeon 9250SE) playing UrbanTerror using UMS. 
I made the patch using the Ubuntu Lucid 10.04 source package.

Bobby

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