drm/i915: Handle all GTs on driver (un)load paths
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 15 Sep 2022 23:26:54 +0000 (16:26 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 16 Sep 2022 14:58:20 +0000 (07:58 -0700)
commitf569ae759472fbe1f6fdddc7398360d43fdcc199
tree4316ceb41709d94649f6bdd18a90d7e5c0d4e0e4
parent4b3823ff7fa5bd000aa73384ec1f611980d00855
drm/i915: Handle all GTs on driver (un)load paths

This, along with the changes already landed in commit 1c66a12ab431
("drm/i915: Handle each GT on init/release and suspend/resume") makes
engines from all GTs actually known to the driver.

To accomplish this we need to sprinkle a lot of for_each_gt calls around
but is otherwise pretty un-eventuful.

v2:
 - Consolidate adjacent GT loops in a couple places.  (Daniele)

Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220915232654.3283095-5-matthew.d.roper@intel.com
drivers/gpu/drm/i915/i915_driver.c
drivers/gpu/drm/i915/i915_gem.c