OSDN Git Service

drm: Add helpers for locking an array of BO reservations.
authorEric Anholt <eric@anholt.net>
Fri, 8 Mar 2019 16:17:13 +0000 (08:17 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 14 Mar 2019 16:22:57 +0000 (09:22 -0700)
commit7edc3e3b975b5b3b1de313f43670738acbcc8e1d
tree6638e02736531cf213248528b8362277c83fa72a
parentf435fe83d56b8b804c4204246bccba7749f605f9
drm: Add helpers for locking an array of BO reservations.

Now that we have the reservation object in the GEM object, it's easy
to provide a helper for this common case.  Noticed while reviewing
panfrost and lima drivers.  This particular version came out of v3d,
which in turn was a copy from vc4.

v2: Fix kerneldoc warnings.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190308161716.2466-2-eric@anholt.net
Acked-by: Rob Herring <robh@kernel.org> (v1)
drivers/gpu/drm/drm_gem.c
include/drm/drm_gem.h