Re: [RFC PATCH 2/2] drm: etnaviv: Unmap gems on gem_close

2020-10-30 Thread Guido Günther
Hi, On Fri, Oct 30, 2020 at 10:19:54AM +0100, Lucas Stach wrote: > Am Donnerstag, den 29.10.2020, 19:20 +0100 schrieb Daniel Vetter: > > On Thu, Oct 29, 2020 at 03:38:21PM +0100, Lucas Stach wrote: > > > Hi Guido, > > > > > > Am Donnerstag, den 29.10.2020, 15:20 +0100 schrieb Guido Günther: > > >

Re: [RFC PATCH 2/2] drm: etnaviv: Unmap gems on gem_close

2020-10-30 Thread Lucas Stach
Am Freitag, den 30.10.2020, 10:33 +0100 schrieb Daniel Vetter: > On Fri, Oct 30, 2020 at 10:19:54AM +0100, Lucas Stach wrote: > > Am Donnerstag, den 29.10.2020, 19:20 +0100 schrieb Daniel Vetter: > > > On Thu, Oct 29, 2020 at 03:38:21PM +0100, Lucas Stach wrote: > > > > Hi Guido, > > > > > > > > A

Re: [RFC PATCH 2/2] drm: etnaviv: Unmap gems on gem_close

2020-10-30 Thread Daniel Vetter
On Fri, Oct 30, 2020 at 10:19:54AM +0100, Lucas Stach wrote: > Am Donnerstag, den 29.10.2020, 19:20 +0100 schrieb Daniel Vetter: > > On Thu, Oct 29, 2020 at 03:38:21PM +0100, Lucas Stach wrote: > > > Hi Guido, > > > > > > Am Donnerstag, den 29.10.2020, 15:20 +0100 schrieb Guido Günther: > > > > So

Re: [RFC PATCH 2/2] drm: etnaviv: Unmap gems on gem_close

2020-10-30 Thread Lucas Stach
Am Donnerstag, den 29.10.2020, 19:20 +0100 schrieb Daniel Vetter: > On Thu, Oct 29, 2020 at 03:38:21PM +0100, Lucas Stach wrote: > > Hi Guido, > > > > Am Donnerstag, den 29.10.2020, 15:20 +0100 schrieb Guido Günther: > > > So far the unmap from gpu address space only happened when dropping the > >

Re: [RFC PATCH 2/2] drm: etnaviv: Unmap gems on gem_close

2020-10-29 Thread Daniel Vetter
On Thu, Oct 29, 2020 at 03:38:21PM +0100, Lucas Stach wrote: > Hi Guido, > > Am Donnerstag, den 29.10.2020, 15:20 +0100 schrieb Guido Günther: > > So far the unmap from gpu address space only happened when dropping the > > last ref in gem_free_object_unlocked, however that is skipped if there's >

Re: [RFC PATCH 2/2] drm: etnaviv: Unmap gems on gem_close

2020-10-29 Thread Lucas Stach
Hi Guido, Am Donnerstag, den 29.10.2020, 15:20 +0100 schrieb Guido Günther: > So far the unmap from gpu address space only happened when dropping the > last ref in gem_free_object_unlocked, however that is skipped if there's > still multiple handles to the same GEM object. > > Since userspace (he

[RFC PATCH 2/2] drm: etnaviv: Unmap gems on gem_close

2020-10-29 Thread Guido Günther
So far the unmap from gpu address space only happened when dropping the last ref in gem_free_object_unlocked, however that is skipped if there's still multiple handles to the same GEM object. Since userspace (here mesa) in the case of softpin hands back the memory region to the pool of available G