On Thu, Mar 9, 2017 at 6:57 PM, Mikko Perttunen <mperttunen@xxxxxxxxxx> wrote: > Hi everyone, > > this series adds support for using sync fences as prefences and > postfences for host1x job submissions. The patches are available > as a git repository at > > https://github.com/cyndis/linux/tree/host1x-fence-1 > > and testing code is available at > > https://github.com/cyndis/host1x_test > > though you may want to edit the main function to disable the > timeout tests for now as they cause a deadlock (not caused > by this series; fix upcoming). > > Verified on a Jetson TX1; should go on top of the earlier > VIC series. > > Some additional points: > * I noticed that the waitchk_mask field in the submit UAPI is completely > useless, and has never had any effect in the upstream kernel. > It has also not existed in the downstream kernel for many years. > We could replace it with the flags field if that is deemed > acceptable, though of course it is possible there exists some > application that fills it with some non-zero value. If open source userspace (nouveau_dri.so) never used it, then you can freely change it. Backwards compat guarantee in drm is only for open source userspace (and by implication ofc anything that uses the ioctl the same way). See: https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#open-source-userspace-requirements On that topic, do we have the nouveau patches to enable the egl_android extension for this already published? > * Signaling is enabled for all host1x fences, not just those for > which enable_signaling has been called. This is because > enable_signaling is called from atomic context and we cannot set > up an action waiter in atomic context. Yeah, this was some good fun getting it all sorted in i915 too :-) -Daniel > > Thanks, > Mikko > > Mikko Perttunen (3): > gpu: host1x: Add support for DMA fences > drm/tegra: Add sync file support to submit interface > drm/tegra: Support for sync file-based fences in submit > > drivers/gpu/drm/tegra/drm.c | 69 +++++++++++-- > drivers/gpu/host1x/Kconfig | 1 + > drivers/gpu/host1x/Makefile | 1 + > drivers/gpu/host1x/dev.h | 12 ++- > drivers/gpu/host1x/fence.c | 202 +++++++++++++++++++++++++++++++++++++ > drivers/gpu/host1x/fence.h | 28 +++++ > drivers/gpu/host1x/hw/channel_hw.c | 36 +++++-- > drivers/gpu/host1x/intr.c | 11 +- > drivers/gpu/host1x/intr.h | 8 +- > drivers/gpu/host1x/syncpt.c | 2 + > include/linux/host1x.h | 12 ++- > include/uapi/drm/tegra_drm.h | 8 +- > 12 files changed, 367 insertions(+), 23 deletions(-) > create mode 100644 drivers/gpu/host1x/fence.c > create mode 100644 drivers/gpu/host1x/fence.h > > -- > 2.11.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html