From: Mika Kuoppala Date: Thu, 30 Jan 2014 14:01:15 +0000 (+0200) Subject: drm/i915: Use i915_hw_context to set reset stats X-Git-Tag: v3.15-rc1~51^2~62^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e2c0705a19e09d7b0f30a591f92e473e5ef89e;p=pandora-kernel.git drm/i915: Use i915_hw_context to set reset stats With full ppgtt support drm_i915_file_private gained knowledge about the default context. Also reset stats are now inside i915_hw_context so we can use proper abstraction. v2: Move BUG_ON and WARN_ON to more proper locations (Ben) v3: Pass dev directly to i915_context_is_banned to avoid the need to dereference ctx->last_ring. Spotted by Mika when checking my s/BUG/WARN/ change, I've missed this ->last_ring dereference. Suggested-by: Ben Widawsky Signed-off-by: Mika Kuoppala (v2) Reviewed-by: Ben Widawsky (v2) [danvet: s/BUG/WARN/] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed