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 96A02C64ED8 for ; Fri, 24 Feb 2023 21:24:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A51F010ED36; Fri, 24 Feb 2023 21:24:56 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id D064610E5D5 for ; Fri, 24 Feb 2023 21:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tFmaPs7ntwSudLQbrwIn3Ez3rmwKD+Qb4DpakrzMgPc=; b=kYSM77pcqKYvMZvrZWhnVzecPt 4RIuu0YX21tZnFiSiJNJTYyXm2syYYwvEXvTwPH93ruE2NUg1BlIoH6RIzRHDvSPJbkqB6MD14bZk 2azHrmHZnwVes/4yh6j+BDAzeCWqKynOWyRdS2lXQHgAXl0fpD4/PUwetzILqB87Jq/UQROlSk5PA 7JJMMTwaCO1Z8UdriEtG/fMkWt78s7qsdWtzM4lWYMoHy7Uua49U+ZskPngbSr6KkzkUghRtnIWSJ ovlFqQh8aIT0SoSCF647AdUoHoqsySatJd/vE5N9Bfi8emwLVXUTdYGUWkUAYJF676nvlTAN0Nefi kE9SbGLw==; Received: from [187.36.234.139] (helo=[192.168.1.195]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1pVfYT-00Du3i-K1; Fri, 24 Feb 2023 22:24:37 +0100 Message-ID: <99ae3dad-2c90-bef0-408f-ff997873b4b4@igalia.com> Date: Fri, 24 Feb 2023 18:24:26 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2 1/5] drm/sched: Create wrapper to add a syncobj dependency to job To: Luben Tuikov , David Airlie , Daniel Vetter , Sumit Semwal , =?UTF-8?Q?Christian_K=c3=b6nig?= , Qiang Yu , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Rob Clark , Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Melissa Wen References: <20230209124447.467867-1-mcanal@igalia.com> <20230209124447.467867-2-mcanal@igalia.com> Content-Language: en-US From: =?UTF-8?Q?Ma=c3=adra_Canal?= In-Reply-To: <20230209124447.467867-2-mcanal@igalia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: , Cc: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 2/9/23 09:44, Maíra Canal wrote: > In order to add a syncobj's fence as a dependency to a job, it is > necessary to call drm_syncobj_find_fence() to find the fence and then > add the dependency with drm_sched_job_add_dependency(). So, wrap these > steps in one single function, drm_sched_job_add_syncobj_dependency(). > > Reviewed-by: Christian König > Reviewed-by: Luben Tuikov > Signed-off-by: Maíra Canal > --- > drivers/gpu/drm/scheduler/sched_main.c | 29 ++++++++++++++++++++++++++ > include/drm/gpu_scheduler.h | 6 ++++++ > 2 files changed, 35 insertions(+) > Applied to drm-misc-next. Best Regards, - Maíra Canal