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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09383C433EF for ; Fri, 8 Oct 2021 07:08:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9BB9661073 for ; Fri, 8 Oct 2021 07:08:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9BB9661073 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D98036E0AA; Fri, 8 Oct 2021 07:08:54 +0000 (UTC) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id A67C76E0AA; Fri, 8 Oct 2021 07:08:53 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10130"; a="287332827" X-IronPort-AV: E=Sophos;i="5.85,356,1624345200"; d="scan'208";a="287332827" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2021 00:08:53 -0700 X-IronPort-AV: E=Sophos;i="5.85,356,1624345200"; d="scan'208";a="484913901" Received: from lenovo-x280.ger.corp.intel.com (HELO [10.249.254.98]) ([10.249.254.98]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2021 00:08:51 -0700 Message-ID: <5b8767c6-74f3-b35c-ca98-25ecfcec031a@linux.intel.com> Date: Fri, 8 Oct 2021 09:08:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Content-Language: en-US To: =?UTF-8?Q?Christian_K=c3=b6nig?= Cc: DRI Development , Intel Graphics Development From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Intel-gfx] Interface additions to dma_fence_array? X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi, Christian, We have a use-case in i915 with async evictions where we'd like to use dma-fence-array in the following way *Create in commit mode *Add context and seqno, *Publish (signaling critical section starts) *Add fence pointers to the arrary *Commit (signaling critical section ends, fence can now signal) With a patch series I have, we use the i915 data structure dma_fence_work for this, but it'd be better to use dma_fence_array for various reasons. Would it be OK to add interfaces to dma-fence-array to facilitate this? Basic idea would be to defer the actions done by enable_signaling until commit is called. Thanks, /Thomas