drm: Add helpers for setting up an array of dma_fence dependencies.
authorEric Anholt <eric@anholt.net>
Mon, 1 Apr 2019 22:26:33 +0000 (15:26 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Apr 2019 22:32:20 +0000 (15:32 -0700)
commit5d5a179d3e90a8385b115e4bd19826ea0bcc6d11
tree498a12878d4de2308f1cc88f23ffeb4a509f8a51
parentc8f005684c98f4d9942baec13ad98054dbf312a0
drm: Add helpers for setting up an array of dma_fence dependencies.

I needed to add implicit dependency support for v3d, and Rob Herring
has been working on it for panfrost, and I had recently looked at the
lima implementation so I think this will be a good intersection of
what we all want and simplify our scheduler implementations.

v2: Rebase on xa_limit_32b API change, and tiny checkpatch cleanups on
    the way in (unsigned int vs unsigned, extra return before
    EXPORT_SYMBOL_GPL)

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190401222635.25013-6-eric@anholt.net
Reviewed-and-tested-by: Qiang Yu <yuq825@gmail.com> (v1)
drivers/gpu/drm/drm_gem.c
include/drm/drm_gem.h