]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/ttm: Abort suspend on i915_ttm_backup failure
authorNirmoy Das <nirmoy.das@intel.com>
Thu, 1 Sep 2022 17:22:17 +0000 (19:22 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 5 Sep 2022 09:22:42 +0000 (10:22 +0100)
commitc2a6502f36248e9e17806d1342e4617d895960b0
treedfce2f4183c1e9cb7ff18f1be7fe23499015e591
parent018a7bdbb090b9155a6509a0d1a684db4afaa5b1
drm/i915/ttm: Abort suspend on i915_ttm_backup failure

On system suspend when system memory is low then i915_gem_obj_copy_ttm()
could fail trying to backup a lmem obj. GEM_WARN_ON() is not enough,
suspend shouldn't continue if i915_ttm_backup() throws an error.

v2: Keep the fdo issue till we have a igt test(Matt).
v3: Use %pe(Andrzej)

References: https://gitlab.freedesktop.org/drm/intel/-/issues/6529
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Suggested-by: Chris P Wilson <chris.p.wilson@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220901172217.18392-1-nirmoy.das@intel.com
drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c