Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0D45CCF9F8 for ; Mon, 3 Nov 2025 14:36:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5C31B10E418; Mon, 3 Nov 2025 14:36:31 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C3AB10E40B for ; Mon, 3 Nov 2025 14:36:30 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DA6941D14 for ; Mon, 3 Nov 2025 06:36:21 -0800 (PST) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6E5393F694 for ; Mon, 3 Nov 2025 06:36:29 -0800 (PST) Date: Mon, 3 Nov 2025 14:36:25 +0000 From: Liviu Dudau To: Boris Brezillon Cc: Steven Price , =?utf-8?Q?Adri=C3=A1n?= Larumbe , dri-devel@lists.freedesktop.org, kernel@collabora.com Subject: Re: [PATCH v2 1/2] drm/panthor: Handle errors returned by drm_sched_entity_init() Message-ID: References: <20251031160318.832427-1-boris.brezillon@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20251031160318.832427-1-boris.brezillon@collabora.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri, Oct 31, 2025 at 05:03:17PM +0100, Boris Brezillon wrote: > In practice it's not going to fail because we're passing the current > sanity checks done by drm_sched_entity_init(), and that's the only > reason it would return an error, but better safe than sorry. > > v2: > - Add R-b Hi, Pushed the series to drm-misc-next but edited the commit messages to drop the v2 text. Best regards, Liviu > > Fixes: de8548813824 ("drm/panthor: Add the scheduler logical block") > Reviewed-by: Liviu Dudau > Signed-off-by: Boris Brezillon > --- > drivers/gpu/drm/panthor/panthor_sched.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/panthor/panthor_sched.c b/drivers/gpu/drm/panthor/panthor_sched.c > index 4216913ad7c9..33e04208db31 100644 > --- a/drivers/gpu/drm/panthor/panthor_sched.c > +++ b/drivers/gpu/drm/panthor/panthor_sched.c > @@ -3430,6 +3430,8 @@ group_create_queue(struct panthor_group *group, > > drm_sched = &queue->scheduler; > ret = drm_sched_entity_init(&queue->entity, 0, &drm_sched, 1, NULL); > + if (ret) > + goto err_free_queue; > > return queue; > > -- > 2.51.0 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯