]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Use hw_engine_masks as reset_domains
authorTejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Mon, 6 Dec 2021 08:10:26 +0000 (13:40 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 8 Dec 2021 23:27:05 +0000 (18:27 -0500)
commitd94050d81431e4f1ab75cf1f88fb74903def4e3f
tree4b043960510ffb836f7aea3e4e0d78d463d2a0da
parent4733297234ce58945f25053472e34a9d3ce488d3
drm/i915/gt: Use hw_engine_masks as reset_domains

We need a way to reset engines by their reset domains.
This change sets up way to fetch reset domains of each
engine globally.

Changes since V1:
- Use static reset domain array - Ville and Tvrtko
- Use BUG_ON at appropriate place - Tvrtko

Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211206081026.4024401-1-tejaskumarx.surendrakumar.upadhyay@intel.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/intel_reset.c