Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4347866pxk; Tue, 8 Sep 2020 18:19:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrYvjv7jDg+lEHU05Fzbu8ftOMAJBopjcoE7nWZ39Kzt2nIltrgurHVYTbsoK+/KRwnIh6 X-Received: by 2002:a17:906:a98a:: with SMTP id jr10mr1172173ejb.229.1599614396440; Tue, 08 Sep 2020 18:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599614396; cv=none; d=google.com; s=arc-20160816; b=bqEcBThG9hm+e9aNzDaqHpK1mi5OlDlThkrZRBz9oFHGbsdq/ObH7/stI7cCtQZhtr Pqvba3v0AxgP+N0q01quIUCWPx1K35q7OVec75xEtx63zrKNPhgl1YGCHeIfn+EcMAJg J6JseNGlVu+WM4ECkxsCOO37KGIS/4iF8L9cQ7rPE86Uqit6Azhmfn6JJh2d1iD8BGVf CuW0jaNmyLw7SRjZozmdd5srd3bttkl+tAyC+Sn+cF690J/y7DX/KAaacJmF60OUykt9 p39Nbjc/kokLsjsr9nTUJRPQZmTSGhgaS7wkxBK2vTA+lZxsoDU7EllGoICIhNUnTMpS nvQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=MIYTcp/Op5a10KklY/9ieZKoD7aXDcPKvRlgBCiIESA=; b=XVi35brj8Kg+toSWu3SN//KXyrAotyZ5ykW9bK6Pr239Ie3u9hI4PZtfR/ss4P85mA xbsI+gFmvXto5aDrERHAyyUymsCwmOJvRHtHyZLZkUTZa4Fcl/vj8YObnXWesdnZ68Tp 55lIyddiTk/WZy+lhiLJjG4lqkyCcgzXY6GJhrd7l+sK/GjThU0PlsN7NJizhXhCcuNr 0hgO0gqUhZ57TiVSDVWNhca5WgzAZc2LmXe2Ot5arm7UZWwnyNwDtVaeFdUMSipwmSbm pubzf/oLdhi/k6SI3tYUa8GR7asOz4aiptLwww7EX8xaQLAFBFB6JPbd704Sz7T50AZo BfhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=EF5YLArF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si485627edx.303.2020.09.08.18.19.33; Tue, 08 Sep 2020 18:19:56 -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=@linuxfoundation.org header.s=google header.b=EF5YLArF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726660AbgIIBPk (ORCPT + 99 others); Tue, 8 Sep 2020 21:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbgIIBPk (ORCPT ); Tue, 8 Sep 2020 21:15:40 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79D27C061573 for ; Tue, 8 Sep 2020 18:15:25 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id j2so1418061ioj.7 for ; Tue, 08 Sep 2020 18:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MIYTcp/Op5a10KklY/9ieZKoD7aXDcPKvRlgBCiIESA=; b=EF5YLArF/ZZbYoNcsVGDMKeApLvzBwIidiprPDtO4wMqS4GKYVy9dr3Cuv3OEuMvge 1VLfjlj6S9pZZ48ioAhUxcdnt74utdncO/zYjUhAOt7v8mLUgzewYMGZa/V9YJ/rJEZp TdWKayXHXEokzzVc3d9T/07lJxfWKs/8MlzUQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MIYTcp/Op5a10KklY/9ieZKoD7aXDcPKvRlgBCiIESA=; b=Hnfz5mABKCt0ZGk1XsZ0fZwLVtZ5LKKvq1Pef5AOjHGKOXnSJoYDmbX9/luGY4TtDU CMTaJCugnFDULrIVREG3N1+0HwkiN8q3u0Gvfx1Xva8OVmrlneQ4VV8hGoRD5CbTQ8RT 7IkLoun1OH9E9vVn3Had1Ire6ad1X6R8FUpkOjdjxDqAhdXne6Q1lM96UXqKMTtO897g 50ZQ6hjE2X1rNIeUejYzhbxk2Y00TUXWOvoZOdYx/5TDd0n/zVXFRuoNoIxudZ1oMER3 GQZUrD5Pws5IU0JvuFC/i7Zi2VBt+l7eIDnVQZVtNMFJrOaT3iAPHu2k51n+KFk+iuuu nJ8Q== X-Gm-Message-State: AOAM531IpOopW7EjJSwILAM8UO+8S48x+HhTANDFhLKnZgE70fJ+9UTf dyxV5LBofGikeR4rHRD7GJwrSQ== X-Received: by 2002:a05:6602:2c07:: with SMTP id w7mr1509605iov.53.1599614124651; Tue, 08 Sep 2020 18:15:24 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id i1sm460613ilk.39.2020.09.08.18.15.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Sep 2020 18:15:24 -0700 (PDT) Subject: Re: [PATCH v6 00/20] gpio: cdev: add uAPI v2 To: Kent Gibson Cc: Bartosz Golaszewski , Bamvor Jian Zhang , Shuah Khan , LKML , linux-gpio , Linus Walleij , Shuah Khan References: <20200831032006.1019978-1-warthog618@gmail.com> <20200903083750.GA17445@sol> <20200904125250.GA323947@sol> <9db62b42-9a1e-0264-e88c-e636004cb629@linuxfoundation.org> <20200909010900.GA8496@sol> From: Shuah Khan Message-ID: Date: Tue, 8 Sep 2020 19:15:22 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200909010900.GA8496@sol> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/8/20 7:09 PM, Kent Gibson wrote: > On Tue, Sep 08, 2020 at 10:04:05AM -0600, Shuah Khan wrote: >> On 9/8/20 9:54 AM, Bartosz Golaszewski wrote: >>> On Tue, Sep 8, 2020 at 5:24 PM Shuah Khan wrote: >>>> >>>> On 9/4/20 7:02 AM, Bartosz Golaszewski wrote: >>>>> On Fri, Sep 4, 2020 at 2:52 PM Kent Gibson wrote: >>>>>> >>>>>> On Thu, Sep 03, 2020 at 04:37:50PM +0800, Kent Gibson wrote: >>>>>>> On Thu, Sep 03, 2020 at 10:02:04AM +0200, Bartosz Golaszewski wrote: >>>>>>>> On Mon, Aug 31, 2020 at 5:21 AM Kent Gibson wrote: >>>>>>>>> >>>>>> [snip] >>>>>>>> >>>>>>>> To me it looks good, just a couple nits here and there and some questions. >>>>>>>> >>>>>>>> I think it's worth deciding whether we want to keep the selftests in >>>>>>>> tools/testing/selftests/gpio/ and then maybe consider porting >>>>>>>> gpio-mockup-chardev.c to V2 or simply outsource it entirely to >>>>>>>> libgpiod. >>>>>>>> >>>>>>> >>>>>>> Ooops - I wasn't even aware they existed - though it had crossed my mind >>>>>>> that the kernel should have some selftests somewhere - I use the libgpiod >>>>>>> tests, from my libgpiod port, and my own Go based test suite for my testing, >>>>>>> as well as some smoke tests with the tools/gpio. >>>>>>> >>>>>>> The libgpiod tests only cover v1 equivalent functionality, while my Go >>>>>>> tests cover the complete uAPI, and both v1 and v2. >>>>>>> >>>>>>> It would be good for the kernel to at least have some smoke tests to >>>>>>> confirm basic functionality, even thorough testing is left to a >>>>>>> userspace library. So the existing tests should be ported to v2, though >>>>>>> should also retain the v1 tests if v1 is still compiled in. >>>>>>> >>>>>> >>>>>> I've got a v7 ready to submit that includes a couple of patches for the >>>>>> gpio-mockup selftests (their primary purpose appears to be testing the >>>>>> mockup module, rather than the GPIO ABI), but I now notice that the >>>>>> selftests/gpio section of the tree has a different maintainer: >>>>>> >>>>>> scripts/get_maintainer.pl 0021-selftests-gpio-port-to-GPIO-uAPI-v2.patch >>>>>> Bamvor Jian Zhang (maintainer:GPIO MOCKUP DRIVER) >>>>>> Shuah Khan (maintainer:KERNEL SELFTEST FRAMEWORK) >>>>>> linux-gpio@vger.kernel.org (open list:GPIO MOCKUP DRIVER) >>>>>> linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK) >>>>>> linux-kernel@vger.kernel.org (open list) >>>>> >>>>> Bamvor, Shuah: do you still have interest in maintaining these, or can >>>>> we update MAINTAINERS? >>>>> >>>> >>>> I maintain kselftests and gpio selftest falls under that. Please send >>>> selftest patches to me so I can review them. >>>> >>>> As for the gpio mock driver and test itself, you will have to wait for >>>> Bamvor to respond. >>>> >>> >>> Hi Shuah, >>> >>> I've been de facto maintaining gpio-mockup for a couple years now. >>> Bamvor has been quite inactive as far as gpio testing goes. I think >>> it's fine if you ack the selftests changes. >>> >> >> That is fine. I can do quick review and Ack so you can take them >> through gpio tree. >> >>> In fact: I don't want selftests to block getting V2 uAPI upstream so >>> if that'll look like it's going to take more time then I'm for merging >>> V2 without any changes to selftests - in the end we have tests in >>> user-space already. >>> >> >> Tests and features go through subsystem trees to avoid delays. Please >> make sure the test doesn't break the default kselftest build/run. >> >> In the future it would help if you include all the maintainers on the >> patch series, so I can review the tests from the framework angle to >> see if they build/run correctly. >> > > To clarify, the patches have been submitted to the correct maintainers. > While this v6, and those before, inadvertently broke the gpio selftests > by removing code they depend on, there have been no code changes in the > selftest tree, and so nothing for you to review. The v7 of this series > restored the functions that the selftests use so that they again build > and run - still nothing for you to review. > > While I had patches for the selftests available for v7, I pulled them > from the patch series as I didn't want to bother you or Bamvor with the > other patches that you wouldn't be interested in. Further, the gpio > selftests are intended to test the gpio-mockup, as evidenced by Bamvor > being their maintainer and the code itself. There have been no changes > to the mockup here, and the existing selftests remain valid without being > ported to the latest GPIO uAPI. Porting them to the latest uAPI, and then > removing the resulting dead code from tools/gpio, is a nice to have that > can wait and shouldn't block getting the uAPI changes in tree. > Thanks for the clarification. -- Shuah