On Fri, 29 Nov 2019 15:48:15 +0000 Steven Price <steven.price@xxxxxxx> wrote: > On 29/11/2019 13:59, Boris Brezillon wrote: > > Userspace might tag a BO purgeable while it's still referenced by GPU > > jobs. We need to make sure the shrinker does not purge such BOs until > > all jobs referencing it are finished. > > > > Fixes: 013b65101315 ("drm/panfrost: Add madvise and shrinker support") > > Cc: <stable@xxxxxxxxxxxxxxx> > > Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> > > I'm happy with this, but I would also argue that it was previously user > space's job not to mark a BO purgeable while it's in use by the GPU. I was not aware of this design choice. > This is in some ways an ABI change so we should be sure this is > something that we want to support "forever" more. Well, in that case, the ABI change is bringing extra robustness, with AFAICT, no downside for those that were taking care of that in userspace. > But if Mesa has > 'always' been assuming this behaviour we might as well match. I think so, and VC4 seems to have the same expectations. > > Reviewed-by: Steven Price <steven.price@xxxxxxx> Thanks for the review. _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel