Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35019488rwd; Mon, 10 Jul 2023 01:05:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWG0rOgsLbHwxAMXjHMbkQVsMo/ACjpbDTQ/kIz50y+WlOkS/2PlrGFxExKbzjC39Stuwc X-Received: by 2002:a05:6358:768c:b0:134:e5ce:be2 with SMTP id e12-20020a056358768c00b00134e5ce0be2mr10145530rwg.30.1688976339004; Mon, 10 Jul 2023 01:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688976338; cv=none; d=google.com; s=arc-20160816; b=Ta3BrEHAkCkDwV0VZPx2Igrj4MdFdnoupgQdKVPV3arr7RuY6l3scgKOzSXTjd4eaS 6cjzFG4xz3Vi/f7npnU/Fayhkpt8isegoDzRL4XXZa/Yq5vZt6ymTMknXUKHx+NQa42h 1MKXaiy8qEadVvoLEKCAAcwf425tUtjnmoo/ViGBoFFDmt4zT50rfbyUuLhavdvBTWxQ 3C+sHV2WhcujC3Cx5Am+P0NZE2mEs1QfPd9xKimwv6c4jrhZ8+EuEat2mBfsdpErW/G5 e5aezVFqychIhxuK+DwjNsFC8SJZVKanXk6GiNZavmDU1gnTwWxGGDl9cBSqjd+cjJ2i F6nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=qjlUlWGuq/ZlWZ76ItixfShUNPTpZBONpbJvJwPr9v0=; fh=hv+BGfRnZKm/Mx7Um70Asy2r1y7Zqr2lNnN/bFBL5yk=; b=OFKEXUDxHdFmleZgKqzHKo2bRAQXrRcqyH8nhZDx4JX4Lq/ketcwoMo5ES3kmR/r+E hwxjRNz/UNi28eF/fRXqftqE7oBowWCwBLVzBksWKIhGR38P5mBKVTSjzfloZPvrrFXq p6/gqJ47ld+paO4Xqb4LPdavJ0O9f1ox1gmWTg49sBvApWgohrVM9nkIqPnN+8mV2y1d K2ly+JOZ3Ys/ZDZl2qwWpQ63eCTPuq/8I9wFJY/LAaTFilo86+LZuJD9YOXfghonrzTs s38uoIJPJwi99cNAvHnHXIVvUUS2ozgQNJoOOoATHwkmr53qdGVpRnU1vrsNm20QGp7s 2pTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mXu/fCWj"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020a056a001a0d00b0067eeaacd277si8969201pfv.124.2023.07.10.01.05.27; Mon, 10 Jul 2023 01:05:38 -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=@kernel.org header.s=k20201202 header.b="mXu/fCWj"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231540AbjGJHsJ (ORCPT + 99 others); Mon, 10 Jul 2023 03:48:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231643AbjGJHrn (ORCPT ); Mon, 10 Jul 2023 03:47:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70879138 for ; Mon, 10 Jul 2023 00:47:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9A65260EBC for ; Mon, 10 Jul 2023 07:47:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9583AC433C8; Mon, 10 Jul 2023 07:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688975260; bh=ZnLegZTYWh/K3X7JD0kwUhEN9oYU73+PSH8syt7K1KQ=; h=From:Subject:Date:To:Cc:From; b=mXu/fCWjx4EQJSzByv2tfYtKaUeHkfU7FsYzu3TtjvXErSsm7G26ov3owDBIlpKWM tFJr3f18Ke39fl8gnpjqMB/BEeXLEKdB6Lb8LvfVxdJWSHpeGaCWgrGFfwxOByz0Dy O/K6rFMt5DJsggm4otvFIra2XQDjfnvoEfxY/JoFfa0kuGQaOEkUQzRFoiJ8pyHMql 27h94eft41cxiXkuj8ij36US5efSIevgP69uWVz2BZ6CJ3jUVzBUDDU+aobsbyH2FL +1EWWPdVlAXvJXKoOiGzTYRNH8ZytP94D570g/RpUOekKbc4GsXpaelhqVVkc9vuVt teZYcoyyZqc9Q== From: Maxime Ripard Subject: [PATCH 00/11] drm: kunit: Switch to kunit actions Date: Mon, 10 Jul 2023 09:47:31 +0200 Message-Id: <20230710-kms-kunit-actions-rework-v1-0-722c58d72c72@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJO3q2QC/x2MywqDQAwAf0VyNrAPquiviAdd0xoWV0lsFcR/d +lxYGYuUBImhba4QOjHymvKYMsCwjykDyFPmcEZ501tDcZFMX4T7ziEPcuKQscqEV+TrXxdudD 4EXK+Cb35/K+7/r4fwuGer2oAAAA= To: David Airlie , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , Emma Anholt Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Maxime Ripard X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1769; i=mripard@kernel.org; h=from:subject:message-id; bh=ZnLegZTYWh/K3X7JD0kwUhEN9oYU73+PSH8syt7K1KQ=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCmrt0+XteKUMWCXL9ks+PSJ7vm9M1ras87eNVplZ6IeZeBQ GKjZUcrCIMbFICumyBIjbL4k7tSs151sfPNg5rAygQxh4OIUgIl0xDEyvLmVVf2LwTttRrfNsZmTyy M3LPo13+b5+3bdmQcLGbQF1BgZvkiZ+TyYa/Hdfm6qdvfR8B+vjeMez83JenFUhEvvn/dKHgA= X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 Hi, Since v6.5-rc1, kunit gained a devm/drmm-like mechanism that makes tests resources much easier to cleanup. This series converts the existing tests to use those new actions were relevant. Let me know what you think, Maxime Signed-off-by: Maxime Ripard --- Maxime Ripard (11): drm/tests: helpers: Switch to kunit actions drm/tests: client-modeset: Remove call to drm_kunit_helper_free_device() drm/tests: modes: Remove call to drm_kunit_helper_free_device() drm/tests: probe-helper: Remove call to drm_kunit_helper_free_device() drm/tests: helpers: Create an helper to allocate a locking ctx drm/tests: helpers: Create an helper to allocate an atomic state drm/vc4: tests: pv-muxing: Remove call to drm_kunit_helper_free_device() drm/vc4: tests: mock: Use a kunit action to unregister DRM device drm/vc4: tests: pv-muxing: Switch to managed locking init drm/vc4: tests: Switch to atomic state allocation helper drm/vc4: tests: pv-muxing: Document test scenario drivers/gpu/drm/tests/drm_client_modeset_test.c | 8 -- drivers/gpu/drm/tests/drm_kunit_helpers.c | 112 ++++++++++++++++++++++- drivers/gpu/drm/tests/drm_modes_test.c | 8 -- drivers/gpu/drm/tests/drm_probe_helper_test.c | 8 -- drivers/gpu/drm/vc4/tests/vc4_mock.c | 5 ++ drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c | 115 +++++++++--------------- include/drm/drm_kunit_helpers.h | 7 ++ 7 files changed, 162 insertions(+), 101 deletions(-) --- base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 change-id: 20230710-kms-kunit-actions-rework-5d163762c93b Best regards, -- Maxime Ripard