Re: [PATCH 1/6] drm/vc4: bo: Add a managed action to cleanup the cache

2020-10-30 Thread Daniel Vetter
On Thu, Oct 29, 2020 at 08:00:59PM +0100, Maxime Ripard wrote: > The BO cache needs to be cleaned up using vc4_bo_cache_destroy, but it's > not used consistently (vc4_drv's bind calls it in its error path, but > doesn't in unbind), and we can make that automatic through a managed > action. Let's re

[PATCH 1/6] drm/vc4: bo: Add a managed action to cleanup the cache

2020-10-30 Thread Maxime Ripard
The BO cache needs to be cleaned up using vc4_bo_cache_destroy, but it's not used consistently (vc4_drv's bind calls it in its error path, but doesn't in unbind), and we can make that automatic through a managed action. Let's remove the requirement to call vc4_bo_cache_destroy. Fixes: c826a6e10644