drm/i915: audit bo->resource usage v3
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Thu, 1 Sep 2022 12:49:30 +0000 (13:49 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 25 Jan 2023 08:58:38 +0000 (09:58 +0100)
commit516198d317d81f33839ca850e83f6717b0d80e80
tree51d9ccb1d5ca787cbcc8d0bee61c133a30fd66a0
parent51affef35bb39f186aef7eeeb4a7f9ceccd3e65e
drm/i915: audit bo->resource usage v3

Make sure we can at least move and alloc TT objects without backing store.

v2: clear the tt object even when no resource is allocated.
v3: add Matthews changes for i915 as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230124125726.13323-1-christian.koenig@amd.com
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c