Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2549503pxa; Mon, 17 Aug 2020 12:28:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4LEF3w/gw82jxJAZOX/lPpdwDiXozyQQgw3y+nIBRsglgxP6XlYfTUj0V5yl8FJfN1bPf X-Received: by 2002:a17:906:4081:: with SMTP id u1mr6048562ejj.318.1597692487482; Mon, 17 Aug 2020 12:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597692487; cv=none; d=google.com; s=arc-20160816; b=EYSsZeldeFwVwV3O3/rWc09TmnSSh0f/TY/erhjCo6kSF3C1cI1xJaSH6GRD/oIjcv yrfEKFMKWkcJB3/lma6/i8keq8Cvg8r/oxXqdMei5qaefUAjHIMySXAg8FHl/YRwuyir /DjUlKaWx2LaKxn8SDlS3YhYUWW5bMfCBcKtWk9CO7LkMDbMLHVBHiGktcP5RyS8e4Iq jPjMQiob4J26CJjevGs4/SPX9gB28uTWHrxsAGd/W1OniW4UbcVX92eJyaoMCM4+Ozsf r2v10AQtyBPjBALhXHu1OTVSpW462yQ86SmVdDAPIp7/Y/6qb7ZvHl+0ZjwM874p1F+P fmYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/kXuaN4AISusMlSkk2TTILtf5athEb7HHTj/BXfUUMU=; b=ZZPS+ybTWa56FvBRVQjMtnqNfHifRkVxxxmexaMV//YiIbLiw3o6vV8PFusXpHvHuY 9wMak+0Zsw0nlNHdyhrE4KYiDgFB5YUsSD/8A4geETH/7wSpswPfdVu75Bcsjfzi3z9o Ov1/WTU4jbGr7UczLrUG+G32NcFi6dYU7CDiv00JcHWyXtd9ShdSXTPn5aF9MzFSaSVF AHtu/l1NjXtfeGfJF7EHGPioa6IJNe7p9I+WvN/emZDNrHwgFOfnSjCD0ZScgtHUxIio TmsqBRn4Mgxi4zIfy1tEneeWWODjDGkUUe3ClbqXxKjFPyrhFudj2GPLYxcdYCTWOf1z 8awg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=sef5NOnE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lk1si11915926ejb.504.2020.08.17.12.27.44; Mon, 17 Aug 2020 12:28:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=sef5NOnE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732084AbgHQTZ4 (ORCPT + 99 others); Mon, 17 Aug 2020 15:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732083AbgHQTZm (ORCPT ); Mon, 17 Aug 2020 15:25:42 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD3FEC061389 for ; Mon, 17 Aug 2020 12:25:41 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id i20so1822920qkk.8 for ; Mon, 17 Aug 2020 12:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/kXuaN4AISusMlSkk2TTILtf5athEb7HHTj/BXfUUMU=; b=sef5NOnEMc5nMqLQAehSTQDhfZ46QOtS1oW9CJlK4AXP5+gkrMhCAMBEtPbqvVzKr0 yAjODdfU4JSnB5BKF062O+zy171oc4LMeifmp7mPMhAyJc0ylBp3d+TEKBmHRMxQari4 szVpFMjye/T+BFept4uUfaYCo+Hmg44nsfyBxrIA8R3yloM0ejE6Q5JtCPSwvJ1b2aLC pKBFRTtOYokNbXXiKPv4yP5068Go4iUiwMTxXTcVmPoSZ5AfIi64/BdoMxmbFqHL3p5g NcX2J40IBF8QKAMIcwzICyWcRYeRQ8TqkrXYO9jpCKWw9Ap5euwpwVptWMJFxzge4ndT bzzA== 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; bh=/kXuaN4AISusMlSkk2TTILtf5athEb7HHTj/BXfUUMU=; b=OaKzRw2GHQlSxo4Il7rLxZ+iSHzYUpcX4NAGMjUpSZodjUhqOi7wvICphGkXcHzYvK rRUeFtQoFf68uVJnZRVFX6OhLmN9K2LvPLd0sSs1sT3Wu7eVo9HPviuTqmIcyUDb9OY8 OPwAaQQtFYVZBQ9di+b0DYl0vE7P58WWQGOgzrOrC0sUGcAjG3AuKd8pl+MZD00M7PI+ MT7vHcW4k5IGlkagDC2EToY18XvgulpTANm2MeTCEyexldPXxOyy6YY/ak4hl/y5Tbf5 fPQWQJptGB6pBNOaljrjPX4hhBm//7utHnRhhgmW6U+byMqD7tUMp6uNTL1cicXTeZlA oPtA== X-Gm-Message-State: AOAM533b+r33GA1RU/CgqltQWpBBgwHWnibl150GLuzBHz1GZKEs4gxQ 5RaXS1j9Dqt67RgjtX/zOOT7vXAQvobP4dbYZjmSnA== X-Received: by 2002:a37:a495:: with SMTP id n143mr14451570qke.330.1597692341063; Mon, 17 Aug 2020 12:25:41 -0700 (PDT) MIME-Version: 1.0 References: <20200814030257.135463-1-warthog618@gmail.com> <20200817184018.GV1891694@smile.fi.intel.com> In-Reply-To: <20200817184018.GV1891694@smile.fi.intel.com> From: Bartosz Golaszewski Date: Mon, 17 Aug 2020 21:25:30 +0200 Message-ID: Subject: Re: [PATCH v4 00/20] gpio: cdev: add uAPI v2 To: Andy Shevchenko Cc: Kent Gibson , LKML , linux-gpio , Linus Walleij Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 17, 2020 at 8:40 PM Andy Shevchenko wrote: > > On Mon, Aug 17, 2020 at 08:24:24PM +0200, Bartosz Golaszewski wrote: > > On Fri, Aug 14, 2020 at 5:03 AM Kent Gibson wrote: > > > > > > This patchset defines and implements adds a new version of the > > > GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add > > > support for debounce, event sequence numbers, and allowing for requested > > > lines with different configurations. > > > It provides some future proofing by adding optional configuration fields > > > and padding reserved for future use. > > > > > > The series can be partitioned into two sets; the first eleven > > > contain the v2 uAPI implementation, and the final seven port > > > the GPIO tools to the v2 uAPI and extend them to use new uAPI features. > > > > > > The more complicated patches include their own commentary where > > > appropriate. > > > The series looks quite good to me and I think we're on track to get it > > in for v5.10. I'd love to have Andy (Cc'd) take a look as well. There > > are some nits here and there but as long as we get the ABI right, any > > implementation details can be ironed out later. > > > > I need to think about some details a bit more but I really like the > > current state of the patches. > > First of all, I apologize for being silent, I'm quite busy with internal > development / work. > > Second, I didn't hear further why we can't fix current ABI as proposed by Arnd > and see what we will have afterwards? > Sure we can get back to fixing it but it will only address a single bug and still not allow us to add new features and simplifications. Do you mind rebasing your old patch on top of v5.9-rc1? > Third, I'm not satisfied with the approach of wasting some memory for padding > and I think the proper solution for the ABI is to have versioning inside the > structures. > > What do you think? > Wasting a bit of memory is fine with me. As long as we're not copying more than a page-worth of memory between the kernel and user-space, the overhead is insignificant. I prefer to make structs extensible over adding new versions in the future. Bart