]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Take pinning into account in __i915_gem_object_is_lmem
authorMatthew Brost <matthew.brost@intel.com>
Thu, 16 Sep 2021 16:28:19 +0000 (09:28 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 20 Sep 2021 19:35:46 +0000 (12:35 -0700)
commit91160c8398243228dce619330fee600b4ad3a0f2
tree21e7b6d064014f5f3ee0041f921a1889d7bddfb0
parent9175ffff5ea9f2b9e956f7458d3fa38eec8f6ec8
drm/i915: Take pinning into account in __i915_gem_object_is_lmem

Don't blow up on a GEM_WARN_ON in __i915_gem_object_is_lmem if the
object is pinned (not evictable).

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210916162819.27848-6-matthew.brost@intel.com
drivers/gpu/drm/i915/gem/i915_gem_lmem.c