Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2383645rwd; Fri, 2 Jun 2023 08:41:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jz3Xygh0FTG3HXaL+0c9nEyhc5Zw1SxevipG960L1r1jY/V/FSvmRFFJesGnUlolg6kWt X-Received: by 2002:a17:902:e886:b0:1ae:4553:edfa with SMTP id w6-20020a170902e88600b001ae4553edfamr382219plg.29.1685720462251; Fri, 02 Jun 2023 08:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685720462; cv=none; d=google.com; s=arc-20160816; b=CRVw1QV17pAj6kn/hfyR/lRs2yIlgpwEVgiCHJhf1Q9eULcYZPzrfyN+IWim7wwsf7 D4cGhQhwHmNdhHeV29REgtTso7u68cW4/oyIdoMuBI3vrPpRdYs0cofc+Xleki94LwR8 HuGbyvTooTaw5oOOIt2knKQeSwxFDTlfr1i7VgELjGv/NYHFEOzfsVBnXbOcWVTZUKQw Wb0i7wK3XEiWsYMjv6TpAvMiTZx3CX71LXREytPjV1mWzhdpTi2KLRBzn/tJoEEAVfha JZQQqM/TZUMyHQ+u/MD6xRCIV9nm546wVK2RNiARJsLfg+fzBtfFUe5beWlvDnGbiN5i jZxQ== 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:feedback-id :dkim-signature:dkim-signature; bh=EAn509B42z4RvrXjkGuSHFSke8zfjodcTwhfhG1xSoQ=; b=HbqzOM9jAv1NY70Y2Q1I3hRtabJCHQh7llOB2t/ruqGSxi5V5DmjgLgcrPuvjcmoA0 XA/LYvJZY5fALR02fHvZgHNrYV6CPPdkJYcjSB8wHQ3zCwjs/SUy4jkQ+aT9XEdt4Qkx 43NGmT6nzHU31dd7G1o4uIr/lJZsbNYBEwPZOuNFr9MnHvabVFB5DOqPRYVuxg14Fc0A 64H2W/eIbZ5kL6aWp5hIMQjNk2oBlWzQRtXVXyAsZ6xpQFN4ee8U/1kXTNJM2EWTRMAx pdhKSI0x4n7CIqex7+eRRXQsW9kzIv//lpvAGPSHVZtvQY3tixf/WRzhr9qiHL+MMirk qgIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=MLGBdaGh; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="GgG+/rYD"; 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=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020a17090322c400b001ae5e5c275asi1062121plg.364.2023.06.02.08.40.49; Fri, 02 Jun 2023 08:41:02 -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=@cerno.tech header.s=fm3 header.b=MLGBdaGh; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="GgG+/rYD"; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236725AbjFBP1v (ORCPT + 99 others); Fri, 2 Jun 2023 11:27:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236722AbjFBP1j (ORCPT ); Fri, 2 Jun 2023 11:27:39 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E95A170A; Fri, 2 Jun 2023 08:27:10 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 861935C0107; Fri, 2 Jun 2023 11:27:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 02 Jun 2023 11:27:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1685719628; x=1685806028; bh=EA n509B42z4RvrXjkGuSHFSke8zfjodcTwhfhG1xSoQ=; b=MLGBdaGhzZiVYaNICr q9ianAiGmqejNg9pm7QFamLBy5qiYeqW/vJXKV1wf67fKYEl2WF34QojYxL5XTwp mXKgdnj3MwroNZuBRgWCmcw332bI5FHG96JmFXV5+nWQ8kKDnLdHpFPgtUmTTnOm FJVY14ATK+f1YKMb4KEY8GO5QL+mwwzqOSFPtbTzTfdGVL7x2aK4Q1rxzDGsYOXh zegp5M7H49Tpon6SBm2P04tncdD8tLNNvlmyGCErH0tAZpQLBPtUFOMAAo/L3bOa 7Lu7QLCwXkNXlu0VjVq8POE02RYQEmb5QoS8jUfCMRv28hBTpl9ceHaqnjdetwYK LJWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1685719628; x=1685806028; bh=EAn509B42z4Rv rXjkGuSHFSke8zfjodcTwhfhG1xSoQ=; b=GgG+/rYDns3+9qvAfUByIbOhe5Ljn wYtsPmlwcT4TdOyfoHmiGywqQhI8uBAKOAjHbd8cKzvUmbe4QD3ZH9Q8QqMmp8AG 2QxnrK5363OQZP3vL+cb7bPZHXVqsMr2SuRb6zMWHq6x9z7JAuE58GDGI9j0CqA/ /RGlEztBp30bUPVwGf+Y7yOZOMhGTEn05NOsLdJKPW9Q5FKlZ7j7JSjnMTofVG0E PBUUT/wDH6kjtYHv4BJc21Qvs0k0CngXgYRhKnAlNbTACEwbj+AVsrHyzzZkdQ60 ksdWsn6k1zRLTxqtZh38oEky/o6mfHvTrejRR8yU1QgU5Qbtoa0ZKIw+Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelfedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtsfertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpedtgfdukeeigeeuhfelheeftdfhgfegfefgudeuiefhueeuleekveetvdei tddvieenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Jun 2023 11:27:07 -0400 (EDT) Date: Fri, 2 Jun 2023 17:27:05 +0200 From: Maxime Ripard To: Greg Kroah-Hartman 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: References: <20230329-kunit-devm-inconsistencies-test-v1-0-c33127048375@cerno.tech> <2023053137-leggings-grumbly-a33a@gregkh> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4a5e5qpdgsdrrqyo" Content-Disposition: inline In-Reply-To: <2023053137-leggings-grumbly-a33a@gregkh> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 --4a5e5qpdgsdrrqyo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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, > >=20 > > On Wed, Mar 29, 2023 at 08:38:30PM +0100, Maxime Ripard wrote: > > > Hi, > > >=20 > > > This follows the discussion here: > > > https://lore.kernel.org/linux-kselftest/20230324123157.bbwvfq4gsxnlnf= wb@houat/ > > >=20 > > > This shows a couple of inconsistencies with regard to how device-mana= ged > > > resources are cleaned up. Basically, devm resources will only be clea= ned 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. > > >=20 > > > 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, gene= ric, > > > helpers for kunit resumed interest in fixing this. > > >=20 > > > This can be tested using the command: > > > ./tools/testing/kunit/kunit.py run --kunitconfig=3Ddrivers/base/test/ > > >=20 > > > Let me know what you think, > > > Maxime > > >=20 > > > Signed-off-by: Maxime Ripard > >=20 > > Is there any news on this? >=20 > 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 Thanks! Maxime --4a5e5qpdgsdrrqyo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZHoKSQAKCRDj7w1vZxhR xXI0AP92qZlvkY6tZTf/o96Lk7z7mgalTkrKk3lDwB+Y2+jYnAEA/uqb5/rYKIDu y4MSGyib4QSms9nvdN7YIC53SV364wQ= =m7wS -----END PGP SIGNATURE----- --4a5e5qpdgsdrrqyo--