From: Jerome Glisse Date: Mon, 15 Feb 2010 20:36:33 +0000 (+0100) Subject: drm/radeon/kms: fix bo's fence association X-Git-Tag: v2.6.33~33^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94429bb6c8343722544e282d89dc4638672e49b4;p=pandora-kernel.git drm/radeon/kms: fix bo's fence association Previous code did associate fence to bo before the fence was emited and it also didn't lock protected access to ttm sync_obj member. Both of this flaw leads to possible race between different code path. This patch fix this by associating fence only once the fence is emitted and properly lock protect access to sync_obj member of ttm. Fix: https://bugs.freedesktop.org/show_bug.cgi?id=26438 and likely similar others bugs Signed-off-by: Jerome Glisse Signed-off-by: Dave Airlie --- Reading git-diff-tree failed