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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 4A49BC433F5 for ; Wed, 15 Sep 2021 16:33:11 +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 DFF7261029 for ; Wed, 15 Sep 2021 16:33:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DFF7261029 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.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 079B06E97A; Wed, 15 Sep 2021 16:33:10 +0000 (UTC) Received: from fanzine.igalia.com (fanzine.igalia.com [178.60.130.6]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2783C6E97A for ; Wed, 15 Sep 2021 16:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID; bh=1IvY6W1kCaZ/7cNV5Mq82RQUjxWZBdhNyLxLUOJ7onE=; b=LHPB1HxcSt+Famsx6Vi9OmRHg0heLRPKS9lBVqKufI/tf7PBf54SLDHzMIkwnKOsB1jAjIBD0Ibd9sZyHOw13dIsK3VjJZEd0U6BIwg+VJJqADo59EXeTXWIF9CW6byzjImuXxy8pelQEqyQ0CNmTM3Qe9OMqtEHwrfkHZxn59qQ7Fk5LN26/XcpPnMcLky/XlDB1G4DDSBvfgijah3Iv9b0odrSkwdVvz10BwU53Zf4DBABqAILua+StG4xvSsZf6nSG1OKs1wWYtjZJSaajnEaBRHpMU4aLY+pvb7ch9i2m/a8QoMP0B0vCB1iU1vCk1kw5GbnmvDRFNn00ItAuA==; Received: from 191.49.165.83.dynamic.reverse-mundo-r.com ([83.165.49.191] helo=zeus) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1mQXqN-0000tp-Bh; Wed, 15 Sep 2021 18:33:07 +0200 Message-ID: Subject: Re: [PATCH 2/3] drm/v3d: add generic ioctl extension From: Iago Toral To: Melissa Wen Cc: dri-devel@lists.freedesktop.org, Emma Anholt , David Airlie , Daniel Vetter , Maxime Ripard , Boris Brezillon Date: Wed, 15 Sep 2021 18:32:57 +0200 In-Reply-To: <20210915162855.flblzgphxcf6f24h@mail.igalia.com> References: <633623ded6ffc8c6021648452f171f9da38a02ab.camel@igalia.com> <20210915162855.flblzgphxcf6f24h@mail.igalia.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Wed, 2021-09-15 at 17:28 +0100, Melissa Wen wrote: > On 09/15, Iago Toral wrote: > > On Wed, 2021-08-18 at 18:56 +0100, Melissa Wen wrote: (...) > > > > > > /** > > > @@ -248,6 +266,15 @@ struct drm_v3d_submit_tfu { > > > __u32 in_sync; > > > /* Sync object to signal when the TFU job is done. */ > > > __u32 out_sync; > > > + > > > + /* Number of extensions*/ > > > + __u32 extension_count; > > > + > > > + /* Pointer to an array of ioctl extensions*/ > > > + __u64 extensions; > > > + > > > + /* DRM_V3D_SUBMIT_* properties */ > > > + __u32 flags; > > > > A silly nit: maybe put flags before the extension fields above for > > consistency with the CSD and CL submission commands. > > hmm.. I arranged it that way for alignment reasons (afaiu), but I can > (or should) include a _u32 pad right after out_sync to set these in > the > same sequence. Ah, that's fine, my suggestion was just for style, let's keep it as is. Iago