From: Rob Clark Date: Wed, 11 Sep 2013 21:34:07 +0000 (-0400) Subject: drm/msm: return -EBUSY if bo still active X-Git-Tag: v3.12-rc2~3^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f816f272437f3a2be0c9254d4ab8f917950d86a0;p=pandora-kernel.git drm/msm: return -EBUSY if bo still active When we CPU_PREP a bo with NOSYNC flag (for example, to implement PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE), an -EBUSY return indicates to userspace that the bo is still busy. Previously it was incorrectly returning 0 in this case. And while we're in there throw in an bit of extra sanity checking in case userspace tries to wait for a bogus fence. Signed-off-by: Rob Clark --- Reading git-diff-tree failed