Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8498410rwr; Thu, 11 May 2023 02:01:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qu/7C+SxnEnCI9KqkiXnF44P756NRZ/Sf/w2QE0J6YrkAqujghhqt4G79AfTcoRfFZ74K X-Received: by 2002:a05:6870:a403:b0:196:27ad:510c with SMTP id m3-20020a056870a40300b0019627ad510cmr5200581oal.41.1683795695674; Thu, 11 May 2023 02:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683795695; cv=none; d=google.com; s=arc-20160816; b=UO6VODdIBJ44tjPGNqFmUKlazzA9FkNiBdZiOqe1fNapDHtixS/D18jZeKIqp/JUaM 4KKWjHDXtIT248Dxj5sWdGVrXDHZ6kvgXHY5s3OnYL9+AV14hV3lMCN5AAT/Ji5sWLov 80DFieO/tbY6i5qaRR1GCo7sV/Ff0e0r1+vCtTu5OoVWyEsHz+lJiQpoMjmrz11xrk0+ xOF1iVT/ooflgWxxrouoXgn/czAawBY3agh9LF+EW9mWx6XHSA2f6Xn4oSADxcgqwIEO tB+snrTDHes76FVWrYrLW4gJczOgq7B5fSSBWoNhrNf6vbZvmGdOLhKH2+S0k/doENq6 kdNg== 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=R9VqD6wzJ9+2S9ieidssv+Mz4v5L702oFUBmV8sB3YQ=; b=J+i9Kiu07O569icNIy449bOvRGZZw3mIKiwKoTalYuekfciJCOrN78kdpIrh4w9xCH gHzG05c7zQNgLxEgnWOojNvWUbsnR0kaUMIVs7D22823smdI4tkosPBiukcz0JYlF/aG axHlV1csgcplfxq09KtONAeETQ+OWatGagBCeykaaDqicqBPPv94O9PQoiCtUD4HbLqV SPAnnIG0K7Ww9HC/ykaRnitRzpKGo+kCcQGKC8jn4wVhdOJawQLneacjUQSZl5YnUKLl h2Zgy82lQPOho8S44uMWY8Jrt/2z7MpVmWzXoStozsqNjVLKkhO55/cYNm99PogyExix KX1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=wdKxKXYE; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=iPfuyBRl; 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 j5-20020a4ad2c5000000b0054f930ee0c9si5173217oos.27.2023.05.11.02.01.21; Thu, 11 May 2023 02:01:35 -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=fm2 header.b=wdKxKXYE; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=iPfuyBRl; 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 S232333AbjEKIoT (ORCPT + 99 others); Thu, 11 May 2023 04:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjEKIoR (ORCPT ); Thu, 11 May 2023 04:44:17 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 432A7269D; Thu, 11 May 2023 01:44:16 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5DA2D5C012C; Thu, 11 May 2023 04:44:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 11 May 2023 04:44:12 -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=fm2; t=1683794652; x=1683881052; bh=R9 VqD6wzJ9+2S9ieidssv+Mz4v5L702oFUBmV8sB3YQ=; b=wdKxKXYE4wa5dQwAkp AOzpijAFw9Y3TsrXoW74T9fkj64KyMGfie1hT3Zl+/prXuNGxrkG/IgDUICnpkDI XXGdG/S5OOAoBqZwzRnCO0RH9AiZwhDgyFItQnvtdusNtcj3Yzs5Bqxi9mztZpp0 tVUy75KatFaWOpeHiPR0vvVyVn/RWYAVHSbpdm5qDMlNhxTUov6txAhmml/Z/Agw iVexPmLtGJHwdWpkKgj21165Vlgze4z41uW8cBrnLqr83cMBLzpEZQXbAnM3Qpe2 CN20N7GtJjmIxJlshZzOMcTCClwCOFbJpuy9fq786egA0A2C1v4Z3V/h0sN/o97r uFWQ== 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=fm3; t=1683794652; x=1683881052; bh=R9VqD6wzJ9+2S 9ieidssv+Mz4v5L702oFUBmV8sB3YQ=; b=iPfuyBRlzRQHD6Jt/uxdIGBQDJvnT y1TakYZyQbzyKERHzGZr4BPu7/WEHcwTQB6y7jjCfDxDyFWQakjbCikeZR33KN05 Gzkn1EryxMFDPPKZXn5zsjRdxDjSa6+YeovuqECwJINMXLmNtVcL6TGjWoQcHq2V 4tTuk1VcQXk9MtHzXGNOwcNtBPBC5RdpT+32Lk7Go6HAEyX4te1wUeGmZpogQ2sj sTWIohiT40eN4ZOprOMXsYmv+Ew4DFJtUKTfqJxnP1M2F0JhGui0jmvuuqSCJZEP Le8HKGTwhnb/UFPsuqIWYIXR8t+UaDZyNpwR+ZVtKffJZKiAPkk1H7WvA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeegkedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtsfertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpedtgfdukeeigeeuhfelheeftdfhgfegfefgudeuiefhueeuleekveetvdei tddvieenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 May 2023 04:44:11 -0400 (EDT) Date: Thu, 11 May 2023 10:44:09 +0200 From: Maxime Ripard To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: 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: <7rjlinncexvux7qyx5ochk23tstalslfmh6rpqtz7dofuk3jwk@q3bsgi3lixzk> References: <20230329-kunit-devm-inconsistencies-test-v1-0-c33127048375@cerno.tech> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dku4l7aigas53bcw" Content-Disposition: inline In-Reply-To: <20230329-kunit-devm-inconsistencies-test-v1-0-c33127048375@cerno.tech> 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 --dku4l7aigas53bcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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.bbwvfq4gsxnlnfwb@h= ouat/ >=20 > 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. >=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, generic, > 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 Ping? How can we move this forward? Maxime --dku4l7aigas53bcw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZFyq2QAKCRDj7w1vZxhR xcMUAQC9f1QhkLHDTh90PoFdTg2i2y/lG81SGyKT80FhMSOrpQD/eTIPWIEaLIF4 81G+f9EVTurUgMO5DP+xDigDeiqx+wA= =szW3 -----END PGP SIGNATURE----- --dku4l7aigas53bcw--