]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Unwind conversion to i915_gem_phys_ops on failure
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 16:39:00 +0000 (16:39 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 16 Feb 2017 20:31:13 +0000 (20:31 +0000)
commit5502f39016d1c4a4ef479961f79f06fae6baeed7
tree7c614c4e7f1303a11d1e3927ab0cb8d69bcd367b
parent14cfaed3ce37603fc4b126c6bdacb8af4b1f0646
drm/i915: Unwind conversion to i915_gem_phys_ops on failure

The physical object is treated as permanently pinned. If we fail to take
this initial pin during i915_gem_object_attach_phys() we need to revert
it back to an ordinary shmemfs object before reporting the failure.

v2: git-add

Reported-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170215163900.11606-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem.c