Re: [PATCH v3 4/5] drm/i915/gem: Fix same-driver-another-instance dma-buf export

2021-06-29 Thread Thomas Hellström
; maarten.lankho...@linux.intel.com; Thomas Hellström ; Ruhl; Ruhl, Michael J Subject: [PATCH v3 4/5] drm/i915/gem: Fix same-driver-another-instance dma-buf export If our exported dma-bufs are imported by another instance of our driver, that instance will typically have the imported dma-bufs locked during

Re: [PATCH v3 4/5] drm/i915/gem: Fix same-driver-another-instance dma-buf export

2021-06-29 Thread Daniel Vetter
gt;maarten.lankho...@linux.intel.com; Thomas Hellström > >; Ruhl; Ruhl, Michael J > > > >Subject: [PATCH v3 4/5] drm/i915/gem: Fix same-driver-another-instance > >dma-buf export > > > >If our exported dma-bufs are imported by another instance of our driver,

RE: [PATCH v3 4/5] drm/i915/gem: Fix same-driver-another-instance dma-buf export

2021-06-28 Thread Ruhl, Michael J
ct: [PATCH v3 4/5] drm/i915/gem: Fix same-driver-another-instance >dma-buf export > >If our exported dma-bufs are imported by another instance of our driver, >that instance will typically have the imported dma-bufs locked during >map_attachment(). But the exporter also locks the s

[PATCH v3 4/5] drm/i915/gem: Fix same-driver-another-instance dma-buf export

2021-06-28 Thread Thomas Hellström
If our exported dma-bufs are imported by another instance of our driver, that instance will typically have the imported dma-bufs locked during map_attachment(). But the exporter also locks the same reservation object in the map_dma_buf() callback, which leads to recursive locking. Add a live selft