]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/i915: Use i915_hw_context to set reset stats
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 30 Jan 2014 14:01:15 +0000 (16:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 30 Jan 2014 16:24:36 +0000 (17:24 +0100)
commit44e2c0705a19e09d7b0f30a591f92e473e5ef89e
tree1a16f579170009cd0bad8aaf421d74c5f9279b9f
parent116f2b6da868dec7539103574d0421cd6221e931
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 <ben@bwidawsk.net>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> (v2)
Reviewed-by: Ben Widawsky <ben@bwidawsk.net> (v2)
[danvet: s/BUG/WARN/]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c