From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FE55C47088 for ; Wed, 26 May 2021 13:12:31 +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 A77126113D for ; Wed, 26 May 2021 13:12:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A77126113D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fooishbar.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 312DC6E4F8; Wed, 26 May 2021 13:12:28 +0000 (UTC) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6AA416E4EA for ; Wed, 26 May 2021 13:12:25 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id z17so1082774wrq.7 for ; Wed, 26 May 2021 06:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+NH+U5vO/IFNZscOsXAWCP+NPUo3uYF1MTfXKjnDIYw=; b=iwUPN+Ew24Jf5bPzMRakaULMn6YXc84KAOR+tGfXxr4aqqOACrhBPUFvpvtWllnlSQ cvEJLFy6p9CSlS+f0cXuUUxRfV9zXWs2JZpRKTzMaGbqcIbTAYSvoSGyEK7LnBU1rQh3 74IljsYACyafuK/gnmfZUhiad6UiPblLjvgdoUbW60MQIhCgtN4oA5oc5bmR86MV0QA4 t/ZoMMqYGRHEG2uBbKtDM508jzZ0fvsjxtg1NHaiaO3aafbcAEmt/cnYTGgYvfkXR8zP WCBGyhdKlwSMYYWi/pM4s6MkmExwrAi3kBdTfS/M+WtkuDgpU+PRAPjP+0RQ5dUQOKj5 d9iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+NH+U5vO/IFNZscOsXAWCP+NPUo3uYF1MTfXKjnDIYw=; b=aqtwzJiqNQfaZ7lYa1W013QvhAy64gqsZ9FPSQ0K0Ab51vnVuZ6h6ynjQZmeRXGR5j Fh0Uks8LihyAMDLuu2dxUx4nekYysxEEFuSoZPl12Rdc0RIpZVbqbHgqW9KZgz5sxTAG xOUBerTgVmeTP5Th0J6epPZBJnJvi4Y2C/Ruwd8Tq2OroYGfSoodHg5fyKa1Y20Sxcv5 bj80WnnXDg5yKSQXDgnB6F62bO5jhOheCkDOb00QQb+5hGkS8UPBpghKwXB+kl3bA/w3 DZ8XBU3Jj1Nu8rKlsXUuN+kwjFQle8Jrey28IPPPaCfr+Jpw0BY4L0KWYhgOZLR1vj9U u3iw== X-Gm-Message-State: AOAM530ogsxZg7Gu+2iZZ+jRRgwJt+GbwGCrT9rpEkaA+0/ls7ml2Kro pd+G+DVJi9GGQltluszHBk8SqhGwRQ7PJWioW7UfHQ== X-Google-Smtp-Source: ABdhPJw9LA9GMJ4q5Qaip1X/LD6PP/IcCoAZEn3xFE04tMp2dqzlEsArHBvWu3ft2kb90dtgJyIQ/t2uMb9Zlnd/t0c= X-Received: by 2002:a05:6000:184a:: with SMTP id c10mr34694182wri.244.1622034744051; Wed, 26 May 2021 06:12:24 -0700 (PDT) MIME-Version: 1.0 References: <20210525211753.1086069-1-jason@jlekstrand.net> <20210525211753.1086069-6-jason@jlekstrand.net> <770eb698-1dde-9e46-da83-44911d96abec@amd.com> In-Reply-To: <770eb698-1dde-9e46-da83-44911d96abec@amd.com> From: Daniel Stone Date: Wed, 26 May 2021 14:12:11 +0100 Message-ID: Subject: Re: [Intel-gfx] [PATCH 5/7] dma-buf: Add an API for exporting sync files (v11) To: =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: Daniel Vetter , intel-gfx , dri-devel , Jason Ekstrand Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, On Wed, 26 May 2021 at 13:46, Christian K=C3=B6nig wrote: > Am 26.05.21 um 13:31 schrieb Daniel Stone: > > How would we insert a syncobj+val into a resv though? Like, if we pass > > an unmaterialised syncobj+val here to insert into the resv, then an > > implicit-only media user (or KMS) goes to sync against the resv, what > > happens? > > Well this is for exporting, not importing. So we don't need to worry > about that. > > It's just my thinking because the drm_syncobj is the backing object on > VkSemaphore implementations these days, isn't it? Yeah, I can see that to an extent. But then binary vs. timeline syncobjs are very different in use (which is unfortunate tbh), and then we have an asymmetry between syncobj export & sync_file import. You're right that we do want a syncobj though. This is probably not practical due to smashing uAPI to bits, but if we could wind the clock back a couple of years, I suspect the interface we want is that export can either export a sync_file or a binary syncobj, and further that binary syncobjs could transparently act as timeline semaphores by mapping any value (either wait or signal) to the binary signal. In hindsight, we should probably just never have had binary syncobj. Oh well. Cheers, Daniel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F9EEC47082 for ; Wed, 26 May 2021 13:12:28 +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 E484B61005 for ; Wed, 26 May 2021 13:12:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E484B61005 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fooishbar.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8FC216E4D7; Wed, 26 May 2021 13:12:27 +0000 (UTC) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 62F116E4D7 for ; Wed, 26 May 2021 13:12:25 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id j14so1087971wrq.5 for ; Wed, 26 May 2021 06:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+NH+U5vO/IFNZscOsXAWCP+NPUo3uYF1MTfXKjnDIYw=; b=iwUPN+Ew24Jf5bPzMRakaULMn6YXc84KAOR+tGfXxr4aqqOACrhBPUFvpvtWllnlSQ cvEJLFy6p9CSlS+f0cXuUUxRfV9zXWs2JZpRKTzMaGbqcIbTAYSvoSGyEK7LnBU1rQh3 74IljsYACyafuK/gnmfZUhiad6UiPblLjvgdoUbW60MQIhCgtN4oA5oc5bmR86MV0QA4 t/ZoMMqYGRHEG2uBbKtDM508jzZ0fvsjxtg1NHaiaO3aafbcAEmt/cnYTGgYvfkXR8zP WCBGyhdKlwSMYYWi/pM4s6MkmExwrAi3kBdTfS/M+WtkuDgpU+PRAPjP+0RQ5dUQOKj5 d9iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+NH+U5vO/IFNZscOsXAWCP+NPUo3uYF1MTfXKjnDIYw=; b=V2eHhqQpd/v7y7GGQ1++MD1PKmA7uLKeoCMBH4pl5AZfnpwQt/Xhmz/WF+GXlm9+Hu zpHq9oz8fiKASBdRQmVSuw3Nw84V0QMW3ALZNdyghW9nfapNmjM77VLG038XQlGcRQrS 6Keo0MU2wfxrkclbqMfTPrrRHenaZYpRQircfH74+dfYqCNMTvp2P1XbSVgL/62DfBED aYae2j2u0LvFx6+a1m6FdTi+TBWqZsqBvhRdg67x0l9I1Pw4FAY0TMRO1/FIOy0aNT0K s1r71CcLpG21JnVKfj+ruPSVYTqD6YN1oX1g9QPI4pjV4qcIBwkxeIB6jHNUb7ZgHUPM QOzg== X-Gm-Message-State: AOAM532mtqg6JR7XG7eda8vSijx2pJu7T8sqJFyN8J4ETR3T5E6n1qLg ExMnfcSBeCqH55o7SSFqX8a8EnaWUbyMtl1m2amBzQ== X-Google-Smtp-Source: ABdhPJw9LA9GMJ4q5Qaip1X/LD6PP/IcCoAZEn3xFE04tMp2dqzlEsArHBvWu3ft2kb90dtgJyIQ/t2uMb9Zlnd/t0c= X-Received: by 2002:a05:6000:184a:: with SMTP id c10mr34694182wri.244.1622034744051; Wed, 26 May 2021 06:12:24 -0700 (PDT) MIME-Version: 1.0 References: <20210525211753.1086069-1-jason@jlekstrand.net> <20210525211753.1086069-6-jason@jlekstrand.net> <770eb698-1dde-9e46-da83-44911d96abec@amd.com> In-Reply-To: <770eb698-1dde-9e46-da83-44911d96abec@amd.com> From: Daniel Stone Date: Wed, 26 May 2021 14:12:11 +0100 Message-ID: To: =?UTF-8?Q?Christian_K=C3=B6nig?= Subject: Re: [Intel-gfx] [PATCH 5/7] dma-buf: Add an API for exporting sync files (v11) 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: , Cc: Daniel Vetter , intel-gfx , dri-devel , Simon Ser , Sumit Semwal Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" SGksCgpPbiBXZWQsIDI2IE1heSAyMDIxIGF0IDEzOjQ2LCBDaHJpc3RpYW4gS8O2bmlnIDxjaHJp c3RpYW4ua29lbmlnQGFtZC5jb20+IHdyb3RlOgo+IEFtIDI2LjA1LjIxIHVtIDEzOjMxIHNjaHJp ZWIgRGFuaWVsIFN0b25lOgo+ID4gSG93IHdvdWxkIHdlIGluc2VydCBhIHN5bmNvYmordmFsIGlu dG8gYSByZXN2IHRob3VnaD8gTGlrZSwgaWYgd2UgcGFzcwo+ID4gYW4gdW5tYXRlcmlhbGlzZWQg c3luY29iait2YWwgaGVyZSB0byBpbnNlcnQgaW50byB0aGUgcmVzdiwgdGhlbiBhbgo+ID4gaW1w bGljaXQtb25seSBtZWRpYSB1c2VyIChvciBLTVMpIGdvZXMgdG8gc3luYyBhZ2FpbnN0IHRoZSBy ZXN2LCB3aGF0Cj4gPiBoYX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