]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Modify reset func to handle per engine resets
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 16 Mar 2016 15:54:00 +0000 (17:54 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Thu, 17 Mar 2016 13:01:15 +0000 (15:01 +0200)
commit547db74c7c3b70045d0221657e275e4f3fd7af10
tree707cb7ef50d009ff3481f9d36ed2eab0d758c22c
parent4190bd1feabca2ff4e62b489a57f3e66e80159cd
drm/i915: Modify reset func to handle per engine resets

In full gpu reset we prime all engines and reset domains corresponding to
each engine. Per engine reset is just a special case of this process
wherein only a single engine is reset. This change is aimed to modify
relevant functions to achieve this. There are some other steps we carry out
in case of engine reset which are addressed in later patches.

Reset func now accepts a mask of all engines that need to be reset. Where
per engine resets are supported, error handler populates the mask
accordingly otherwise all engines are specified.

v2: ALL_ENGINES mask fixup, better for_each_ring_masked (Chris)
v3: Whitespace fixes (Chris)
v4: Rebase due to s/ring/engine

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1458143640-20563-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_uncore.c