[PATCH 2/2] backup

Matthew Auld matthew.auld at intel.com
Thu Dec 8 18:21:00 UTC 2022


---
 drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c
index 07e49f22f2de..e7e07e5a9182 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c
@@ -78,6 +78,13 @@ static int i915_ttm_backup(struct i915_gem_apply_to_region *apply,
 	if (err)
 		goto out_no_populate;
 
+	/*
+	 * XXX: can we get here with userspace object? This thing ignores ccs
+	 * stuff it seems, so hopefully this is kernel internal only. Something
+	 * pinned for scanout???
+	 */
+	WARN_ON_ONCE(obj->flags & I915_BO_ALLOC_USER);
+
 	err = i915_gem_obj_copy_ttm(backup, obj, pm_apply->allow_gpu, false);
 	if (err) {
 		drm_err(&i915->drm,
-- 
2.38.1



More information about the Intel-gfx-trybot mailing list