From: Thomas Hellstrom Date: Wed, 31 Aug 2011 07:42:54 +0000 (+0000) Subject: vmwgfx: Fix potential execbuf deadlocks X-Git-Tag: v3.2-rc1~135^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be38ab6ea7b0de0542a0ff78690d63bb22f66a4d;p=pandora-kernel.git vmwgfx: Fix potential execbuf deadlocks Perform all command stream validation in a bounce buffer separate from the fifo. This makes the fifo available to all validation-generated commands, which would otherwise attempt to grab the fifo recursively, causing a deadlock. This is in preparation for GMR2 and swappable surfaces. Also maintain references to all surfaces in the command stream until the command stream has been fired in order to avoid racing with surface destruction taking place after validation but before submission. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz Signed-off-by: Dave Airlie --- Reading git-diff-tree failed