From: Imre Deak Date: Tue, 11 Feb 2014 19:39:06 +0000 (+0200) Subject: drm/i915: vlv: reserve GT power context early X-Git-Tag: v3.14-rc6~25^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17b0c1f7865d8bf4f5e5aa94e2aeafb35d23e4e9;p=pandora-kernel.git drm/i915: vlv: reserve GT power context early We reserve the space for the power context in stolen memory at a fixed address from a delayed work. This races with the subsequent driver init/resume code which could allocate something at that address, so the reservation for the power context fails. Reserve the space up-front, so this can't happen. This also adds a missing struct_mutex lock around the stolen allocation, which wasn't taken in the delayed work path. Signed-off-by: Imre Deak Reviewed-by: Jesse Barnes Cc: stable@vger.kernel.org Signed-off-by: Jani Nikula --- Reading git-diff-tree failed