[PATCH v2 2/4] drm/etnaviv: submit support for in-fences

Gustavo Padovan gustavo at padovan.org
Fri Mar 17 17:59:17 UTC 2017


Hi Philipp,

2017-03-17 Philipp Zabel <p.zabel at pengutronix.de>:

> Loosely based on commit f0a42bb5423a ("drm/msm: submit support for
> in-fences"). Unfortunately, struct drm_etnaviv_gem_submit doesn't have
> a flags field yet, so we have to extend the structure and trust that
> drm_ioctl will clear the flags for us if an older userspace only submits
> part of the struct.
> 
> Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
> ---
> v2: Use dma_fence_match_context to skip waiting if all in-fences are ours.
> ---
>  drivers/gpu/drm/etnaviv/Kconfig              |  1 +
>  drivers/gpu/drm/etnaviv/etnaviv_gem.h        |  1 +
>  drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 34 +++++++++++++++++++++++++++-
>  drivers/gpu/drm/etnaviv/etnaviv_gpu.c        |  5 +++-
>  drivers/gpu/drm/etnaviv/etnaviv_gpu.h        |  2 +-
>  include/uapi/drm/etnaviv_drm.h               |  6 +++++
>  6 files changed, 46 insertions(+), 3 deletions(-)

Reviewed-by: Gustavo Padovan <gustavo.padovan at collabora.com>

Gustavo


More information about the etnaviv mailing list