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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9C77C433EF for ; Wed, 20 Oct 2021 20:32:01 +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 9C7B961374 for ; Wed, 20 Oct 2021 20:32:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9C7B961374 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr 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 04D356E3B2; Wed, 20 Oct 2021 20:32:01 +0000 (UTC) Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by gabe.freedesktop.org (Postfix) with ESMTPS id B64596E3B2 for ; Wed, 20 Oct 2021 20:31:59 +0000 (UTC) Date: Wed, 20 Oct 2021 20:31:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1634761916; bh=O82eCBs2jKxsBVGPMO4TLUmxkXbRQ0J1gDqPWEQFqMw=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=oPERsUWQUsvkFAlOSXg3K5Hm8VMamPpnqNtR4IBsb8cEaQaEyPENV8oCJaHicqV6+ 9+NPMOu2FIXQQb64TArDJi3//kR9rgrUKJDWVKGYCaGs3obubJnrUOtS3mWqPWtaIi LkT3zeIJopwzYJqVFyU4kJO8OnkMduPKMD96LfvHTwm9IKaTW/2yncKX3dn/3e+t9k Jtjwi0SqMwMec3Mkzc23r6nZwbyjnnCgCJ9heZQqC7uNoEXxVE856en/UPyFOXk2Cm eo6qY23VbAlILCc+7YSYwEi/WMVorT9BW6LNUgdj9b65LUVV9/pzjkPNPYCWY4Zmuf prDH6PEJ1omqQ== To: Jason Ekstrand From: Simon Ser Cc: dri-devel@lists.freedesktop.org, =?utf-8?Q?Christian_K=C3=B6nig?= , Daniel Vetter , Sumit Semwal , Maarten Lankhorst Subject: Re: [PATCH 4/6] dma-buf: Add an API for exporting sync files (v12) Message-ID: In-Reply-To: <20210610210925.642582-5-jason@jlekstrand.net> References: <20210610210925.642582-1-jason@jlekstrand.net> <20210610210925.642582-5-jason@jlekstrand.net> MIME-Version: 1.0 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: , Reply-To: Simon Ser Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" FWIW, I'm using this IOCTL in a wlroots patchset [1]. To detect support for this IOCTL, is there anything better than creating a DMA-BUF and checking for ENOTTY? I'd like to disable explicit sync at init-= time if this is missing. [1]: https://github.com/swaywm/wlroots/pull/3282