From: Paul Kocialkowski Subject: [PATCH v6 0/4] drm/vc4: Binner BO management improvements Date: Tue, 23 Apr 2019 16:40:24 +0200 Message-ID: <20190423144028.30036-1-paul.kocialkowski@bootlin.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Eric Anholt , David Airlie , Daniel Vetter , Maxime Ripard , Eben Upton , Thomas Petazzoni , Paul Kocialkowski List-Id: dri-devel@lists.freedesktop.org Changes since v5: * Fix more locking mistakes; * Introduce get/put helpers; * Grabbed a reference when submitting an exec job with a binner slot. * Addressed misc comments. Changes since v4: * Used a kref on the binner bo instead of firstopen/lastclose; * Added a mutex to prevent race conditions; * Took care of enabling the OOM interrupt when we have a binner BO allocated. Changes since v3: * Split changes into more commits when possible; * Reworked binner bo alloc condition as discussed. Changes since v2: * Removed deprecated sentence about fristopen; * Added collected Reviewed-By tags. Changes since v1: * Squashed the two final patches into one. Paul Kocialkowski (4): drm/vc4: Reformat and the binner bo allocation helper drm/vc4: Check for V3D before binner bo alloc drm/vc4: Check for the binner bo before handling OOM interrupt drm/vc4: Allocate binner bo when starting to use the V3D drivers/gpu/drm/vc4/vc4_bo.c | 45 +++++++++++++++++++++-- drivers/gpu/drm/vc4/vc4_drv.c | 6 ++++ drivers/gpu/drm/vc4/vc4_drv.h | 14 ++++++++ drivers/gpu/drm/vc4/vc4_gem.c | 13 +++++++ drivers/gpu/drm/vc4/vc4_irq.c | 20 ++++++++--- drivers/gpu/drm/vc4/vc4_v3d.c | 68 ++++++++++++++++++++++++++--------- 6 files changed, 142 insertions(+), 24 deletions(-) -- 2.21.0