Re: [PATCH 22/26] dma-buf: add enum dma_resv_usage

2021-11-30 Thread Daniel Vetter
On Mon, Nov 29, 2021 at 01:19:11PM +0100, Christian König wrote: > Am 25.11.21 um 16:59 schrieb Daniel Vetter: > > [SNIP] > > > + * > > > + * For example when asking for WRITE fences then the KERNEL fences are > > > returned > > > + * as well. Similar when asked for READ fences then both WRITE and

Re: [PATCH 22/26] dma-buf: add enum dma_resv_usage

2021-11-29 Thread Christian König
Am 25.11.21 um 16:59 schrieb Daniel Vetter: [SNIP] + * + * For example when asking for WRITE fences then the KERNEL fences are returned + * as well. Similar when asked for READ fences then both WRITE and KERNEL + * fences are returned as well. + */ +enum dma_resv_usage { + /** +* @

Re: [PATCH 22/26] dma-buf: add enum dma_resv_usage

2021-11-25 Thread Daniel Vetter
On Tue, Nov 23, 2021 at 03:21:07PM +0100, Christian König wrote: > This change adds the dma_resv_usage enum and allows us to specify why a > dma_resv object is queried for its containing fences. > > Additional to that a dma_resv_usage_rw() helper function is added to aid > retrieving the fences fo

Re: [PATCH 22/26] dma-buf: add enum dma_resv_usage

2021-11-25 Thread Daniel Vetter
On Tue, Nov 23, 2021 at 03:21:07PM +0100, Christian König wrote: > This change adds the dma_resv_usage enum and allows us to specify why a > dma_resv object is queried for its containing fences. > > Additional to that a dma_resv_usage_rw() helper function is added to aid > retrieving the fences fo

[PATCH 22/26] dma-buf: add enum dma_resv_usage

2021-11-23 Thread Christian König
This change adds the dma_resv_usage enum and allows us to specify why a dma_resv object is queried for its containing fences. Additional to that a dma_resv_usage_rw() helper function is added to aid retrieving the fences for a read or write userspace submission. This is then deployed to the diffe