Thomas Hellström 8b1f7f92e5 drm/i915/ttm: Drop region reference counting
There is an interesting refcounting loop:
struct intel_memory_region has a struct ttm_resource_manager,
ttm_resource_manager->move may hold a reference to i915_request,
i915_request may hold a reference to intel_context,
intel_context may hold a reference to drm_i915_gem_object,
drm_i915_gem_object may hold a reference to intel_memory_region.

Break this loop by dropping region reference counting.

In addition, Have regions with a manager moving fence make sure
that all region objects are released before freeing the region.

v6:
- Fix a code comment.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211122214554.371864-4-thomas.hellstrom@linux.intel.com
2021-11-25 09:36:16 +01:00
..
2021-11-17 23:04:57 -05:00
2021-10-28 14:59:38 +10:00
2021-10-04 12:06:14 +02:00
2021-07-30 14:52:00 +10:00
2021-08-10 20:14:01 +02:00
2021-11-03 17:00:52 -07:00
2021-11-05 13:50:15 +10:00
2021-11-05 13:50:15 +10:00
2021-10-28 14:59:38 +10:00
2021-10-28 14:59:38 +10:00
2021-11-12 13:06:41 +10:00
2021-11-05 11:15:14 +01:00
2021-10-28 14:59:38 +10:00
2021-08-12 21:41:10 +02:00
2021-08-10 20:14:01 +02:00
2021-11-12 12:11:07 -08:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-10-28 14:59:38 +10:00
2021-08-02 10:19:43 +02:00
2021-10-28 17:20:45 +10:00
2021-08-02 10:19:43 +02:00
2021-08-28 19:00:20 +02:00
2021-08-10 20:14:01 +02:00
2021-10-01 15:55:47 +02:00
2021-01-07 13:40:20 +01:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-11-12 09:23:16 +10:00
2021-05-17 21:19:48 +02:00
2021-08-02 10:19:43 +02:00
2021-11-12 12:11:07 -08:00
2021-08-19 09:02:55 +09:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-10 20:14:01 +02:00
2021-08-02 10:19:43 +02:00