summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@intel.com>2022-05-25 11:59:55 +0200
committerMatthew Auld <matthew.auld@intel.com>2022-05-27 14:18:36 +0100
commit420a07b841d03f6a436d8c06571c69aa5c783897 (patch)
treea35fd2c1edb3a86304a99a8b9be10dd87e130fc4 /block
parent69d6bf5c3754ffc491896632438417d1cedc2c68 (diff)
downloadlinux-stable-420a07b841d03f6a436d8c06571c69aa5c783897.tar.gz
linux-stable-420a07b841d03f6a436d8c06571c69aa5c783897.tar.bz2
linux-stable-420a07b841d03f6a436d8c06571c69aa5c783897.zip
drm/i915: Individualize fences before adding to dma_resv obj
_i915_vma_move_to_active() can receive > 1 fences for multiple batch buffers submission. Because dma_resv_add_fence() can only accept one fence at a time, change _i915_vma_move_to_active() to be aware of multiple fences so that it can add individual fences to the dma resv object. v6: fix multi-line comment. v5: remove double fence reservation for batch VMAs. v4: Reserve fences for composite_fence on multi-batch contexts and also reserve fence slots to composite_fence for each VMAs. v3: dma_resv_reserve_fences is not cumulative so pass num_fences. v2: make sure to reserve enough fence slots before adding. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5614 Fixes: 544460c33821 ("drm/i915: Multi-BB execbuf") Cc: <stable@vger.kernel.org> # v5.16+ Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220525095955.15371-1-nirmoy.das@intel.com
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions