Re: [PATCH 3/3] drm/tegra: Implement correct DMA-BUF semantics

2019-12-03 Thread Daniel Vetter
On Tue, Dec 03, 2019 at 06:33:08PM +0100, Daniel Vetter wrote: > On Tue, Dec 03, 2019 at 05:32:03PM +0100, Thierry Reding wrote: > > From: Thierry Reding > > > > DMA-BUF requires that each device that accesses a DMA-BUF attaches to it > > separately. To do so the host1x_bo_pin() and host1x_bo_unp

Re: [PATCH 3/3] drm/tegra: Implement correct DMA-BUF semantics

2019-12-03 Thread Daniel Vetter
On Tue, Dec 03, 2019 at 05:32:03PM +0100, Thierry Reding wrote: > From: Thierry Reding > > DMA-BUF requires that each device that accesses a DMA-BUF attaches to it > separately. To do so the host1x_bo_pin() and host1x_bo_unpin() functions > need to be reimplemented so that they can return a mappi

[PATCH 3/3] drm/tegra: Implement correct DMA-BUF semantics

2019-12-03 Thread Thierry Reding
From: Thierry Reding DMA-BUF requires that each device that accesses a DMA-BUF attaches to it separately. To do so the host1x_bo_pin() and host1x_bo_unpin() functions need to be reimplemented so that they can return a mapping, which either represents an attachment or a map of the driver's own GEM