Re: [PATCH v5 4/4] drm/vc4: Allocate binner bo when starting to use the V3D

2019-04-23 Thread Paul Kocialkowski
Hi, On Mon, 2019-04-15 at 13:50 -0700, Eric Anholt wrote: > Paul Kocialkowski writes: > > > The binner bo is not required until the V3D is in use, so avoid > > allocating it at probe and do it on the first non-dumb BO allocation. > > Keep track of which clients are using the V3D and liberate the

Re: [PATCH v5 4/4] drm/vc4: Allocate binner bo when starting to use the V3D

2019-04-15 Thread Eric Anholt
Paul Kocialkowski writes: > The binner bo is not required until the V3D is in use, so avoid > allocating it at probe and do it on the first non-dumb BO allocation. > Keep track of which clients are using the V3D and liberate the buffer > when there is none left (through a kref) and protect it wit

[PATCH v5 4/4] drm/vc4: Allocate binner bo when starting to use the V3D

2019-04-15 Thread Paul Kocialkowski
The binner bo is not required until the V3D is in use, so avoid allocating it at probe and do it on the first non-dumb BO allocation. Keep track of which clients are using the V3D and liberate the buffer when there is none left (through a kref) and protect it with a mutex to avoid race conditions.