Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3590768rwd; Sat, 3 Jun 2023 08:03:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ740W95zz2ihMBHOeF/DWBB/vxq6/v6Ttqk8v0jR0yo54VXy1J44tB0bAMqrKzHm0tBpRRZ X-Received: by 2002:a05:6a00:1509:b0:64c:ef3a:407f with SMTP id q9-20020a056a00150900b0064cef3a407fmr13430124pfu.29.1685804636802; Sat, 03 Jun 2023 08:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685804636; cv=none; d=google.com; s=arc-20160816; b=PMnypOGD+OXp7Vxs3gYr5etb8+3YY9tVpSjxShfIXC/q8U1KYgxK6bNKeNkQ//s5uE bqTJAplUwSlbqnaozJM1leD9gSnpbLF+qKK0OrbDAMU8n6EyeY3Gt/UJj1+6x6RM+hVK Y9ruRF/YdZk8/4onUTGw9zfvL64XicFk3gRDOncaTVW4+PGVDKkNSOcv9H6SyuPHuKTY BQfseGMv96SYCk2N7N8AtyHu1ZWCkZCpqFppcHg9lgWZQMVplbFgnpLlX7Kkrr2QgI+Q uuD3ZJndgw2IfNd76k9O74yXmpAYPmbZhYF11vug/2Cv1AKz5kdOGejo8VLGzxtweXB7 yrRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8IfQBsLLdgq0GrKJ0mHkeApGtke7geNAJP6FOmTpFnQ=; b=REjXqbcgudyn2cDdmlpz5Ox96RZJS7aLlO4TVBz8AnigaqDQkZdCdvo/GnwDh6U2Vm fxG07iD5vjPUwyDiMa6hw2DUnN4eX7uj56ZYThwZnieGh6fUBb4KG4uaLHs4FYMknEtW TkFcCexdA0B2Cq4UdB9xcs7nDxRw06Trqt4V7swTv0UT2kqNew1iNPpcvV0u/M4ixu8I eUytADQP1KJHHWiSX9xFna67T1rxPUMTxFWKzwsX6SNB08NLPSwBGU2bqb6nSZ9UgbbO Y+Z+KUcEKbMS0YGqa7aJeamV5NXxGPkhTZD7VTHlFJFQ+RwLr/4HerkRNdyv2Dgp+u8W iZWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lwS3uwHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s129-20020a625e87000000b0065300b42889si2529387pfb.363.2023.06.03.08.03.44; Sat, 03 Jun 2023 08:03:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lwS3uwHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230040AbjFCOo1 (ORCPT + 99 others); Sat, 3 Jun 2023 10:44:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjFCOo0 (ORCPT ); Sat, 3 Jun 2023 10:44:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F4C18D; Sat, 3 Jun 2023 07:44:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC7B160B74; Sat, 3 Jun 2023 14:44:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8A73C433D2; Sat, 3 Jun 2023 14:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685803464; bh=XpApcZx7zdf4mYjesJHskpZ0EplBEmpU50LBQLNxhHI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lwS3uwHrf56ygqpjewHnbqj3/2i2D2YtgBaglt/loS3TwJorJOCFnbFPeBk3XyQvC X4zf0RNKJvAMPpA0CQHXmDTFJ+Hmoy6pbuB5r68ADgq0PGVHjoygjYRcVha7I+35cE rORAUtJhhrgsDLMe42Cdsydk4/F6Z+UxKOTkmFnY= Date: Sat, 3 Jun 2023 16:44:21 +0200 From: Greg Kroah-Hartman To: Maxime Ripard Cc: "Rafael J. Wysocki" , Brendan Higgins , David Gow , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] drivers: base: Add tests showing devm handling inconsistencies Message-ID: <2023060313-boots-expel-07c9@gregkh> References: <20230329-kunit-devm-inconsistencies-test-v1-0-c33127048375@cerno.tech> <2023053137-leggings-grumbly-a33a@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 02, 2023 at 05:27:05PM +0200, Maxime Ripard wrote: > On Wed, May 31, 2023 at 08:20:13PM +0100, Greg Kroah-Hartman wrote: > > On Mon, Apr 17, 2023 at 06:12:26PM +0200, Maxime Ripard wrote: > > > Hi, > > > > > > On Wed, Mar 29, 2023 at 08:38:30PM +0100, Maxime Ripard wrote: > > > > Hi, > > > > > > > > This follows the discussion here: > > > > https://lore.kernel.org/linux-kselftest/20230324123157.bbwvfq4gsxnlnfwb@houat/ > > > > > > > > This shows a couple of inconsistencies with regard to how device-managed > > > > resources are cleaned up. Basically, devm resources will only be cleaned up > > > > if the device is attached to a bus and bound to a driver. Failing any of > > > > these cases, a call to device_unregister will not end up in the devm > > > > resources being released. > > > > > > > > We had to work around it in DRM to provide helpers to create a device for > > > > kunit tests, but the current discussion around creating similar, generic, > > > > helpers for kunit resumed interest in fixing this. > > > > > > > > This can be tested using the command: > > > > ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/base/test/ > > > > > > > > Let me know what you think, > > > > Maxime > > > > > > > > Signed-off-by: Maxime Ripard > > > > > > Is there any news on this? > > > > Can you resend, last I saw the kernel test robot had a problem, which > > causes any patch series like that to be ignored by me. > > Yeah, this was due to .kunitconfig being ignored by .gitignore, which > triggers a warning for the bot. > > It's now fixed (at least in next), and I just resent the patches Still triggered the bot :(