]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop obj.page_pin_count after a failed vma->set_pages()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Oct 2019 09:39:15 +0000 (10:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Oct 2019 10:46:40 +0000 (11:46 +0100)
commit386e835f4ac0b75fcbc95fad99b155baf7a29aa7
treeec56d8129bb995a12a69cf8addf375c803ed28b5
parent109aef72c3dc2931560c45cf6333c842f5e0878a
drm/i915: Drop obj.page_pin_count after a failed vma->set_pages()

Before we attempt to set_pages on the vma, we claim a
obj.pages_pin_count for it. If we subsequently fail to set the pages on
the vma, we need to drop our pinning before returning the error.

Reported-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191015093915.3995-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c