Re: [RFC PATCH v2 09/17] gpu: host1x: DMA fences and userspace fence creation

2020-09-11 Thread Dmitry Osipenko
05.09.2020 13:34, Mikko Perttunen пишет: ... > > +static void action_signal_fence(struct host1x_waitlist *waiter) > +{ > + struct host1x_syncpt_fence *f = waiter->data; > + > + host1x_fence_signal(f); > +} > + > typedef void (*action_handler)(struct host1x_waitlist *waiter); > > stati

Re: [RFC PATCH v2 09/17] gpu: host1x: DMA fences and userspace fence creation

2020-09-11 Thread Mikko Perttunen
On 9/11/20 1:00 AM, Dmitry Osipenko wrote: 05.09.2020 13:34, Mikko Perttunen пишет: ... +static void action_signal_fence(struct host1x_waitlist *waiter) +{ + struct host1x_syncpt_fence *f = waiter->data; + + host1x_fence_signal(f); +} + typedef void (*action_handler)(struct host

[RFC PATCH v2 09/17] gpu: host1x: DMA fences and userspace fence creation

2020-09-05 Thread Mikko Perttunen
Add an implementation of dma_fences based on syncpoints. Syncpoint interrupts are used to signal fences. Additionally, after software signaling has been enabled, a 30 second timeout is started. If the syncpoint threshold is not reached within this period, the fence is signalled with an -ETIMEDOUT e