From: Chris Wilson Date: Thu, 2 May 2013 13:48:07 +0000 (+0300) Subject: drm/i915: put context upon switching X-Git-Tag: v3.11-rc1~65^2~131^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=112522f6789581824903f6f72082b5b841a7f0f9;p=pandora-kernel.git drm/i915: put context upon switching In order to be notified of when the context and all of its associated objects is idle (for if the context maps to a ppgtt) we need a callback from the retire handler. We can arrange this by using the kref_get/put of the context for request tracking and by inserting a request to demarque the switch away from the old context. [Ben: fixed minor error to patch compile, AND s/last_context/from/] Signed-off-by: Ben Widawsky Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed