Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1372932rwi; Wed, 26 Oct 2022 14:35:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ftrHIeNyUaeVCcbCTDe421jeqynK9pf1y3HIBM4CRPGFsM45qlJORoyeY/7WIsMVIRQJz X-Received: by 2002:a17:907:a40f:b0:790:540c:b6e3 with SMTP id sg15-20020a170907a40f00b00790540cb6e3mr39348366ejc.41.1666820131728; Wed, 26 Oct 2022 14:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666820131; cv=none; d=google.com; s=arc-20160816; b=pPpAxI+ZS9BxC/NTuODjr6E2LtDxmX754tLwvOVtcAD2K/y6YMYqICMNdpjZKASofe Vu2SXcqkr8dzjTTNGZ4c9auMGy3/PNaOsg8gXqs9tVTqhNXrsSvAV6i3JxzQnQXZQPf8 0tqkkwUHo7NN+9OD4ayQ6hSX4ZiepOkMgc2NDi/8KKMFYUVZlVQzYVtYVYXHTerv2aJu pj7gKfOxERRIFpuKHtvOKQjXuVjKCrSSH+uwpdyx5kGcCYcE0mRZs74gtQPU2UNP08oE GyJIJUCwbFE8kSj3j4KMvjNZ3I086Ysj1ILuLMBur6wYKDQc1i1iAGSFaCSFzEGT3TTr 7P4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Db6jCId2W4S/aVsBen3gZgcCTndUFtjdZCV58LsmENo=; b=LG5YvDBA6mWDXLRnOVmf0jIlhR5MFah+nZx8FBNKL6s0cQiugb5H+V+YgCGg3FMy6w rvJPTBbgoEec3IqroUdi0rR1RzyFK/IEQxLklIqTUQUFf/PvwWtbo2VrtyktFYlTe8xn Ehyvz+/YFoLxyxVHS9sRC0qvgQqHWT0Hun2ql3GoLlOLFHSW1IC55sfYZc+mPoa/Knqk X/bam9LAiKYF0QIelTbxvU010W7irIg4txhXIDmC7BRf14Lyp/yQlBizd7dsHAxxma6W 5BmvVfwaLAwZ69o6dr09dDMf0WCCEYFfFuA0Fvw6no8Lks4iE9ZHQZ/ZSsR9M5RsyoBU s8WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=Ra9lX8oC; 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=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a05640234c600b0045cd68a2bc5si7556911edc.17.2022.10.26.14.35.05; Wed, 26 Oct 2022 14:35:31 -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=@riseup.net header.s=squak header.b=Ra9lX8oC; 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=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234154AbiJZVPN (ORCPT + 99 others); Wed, 26 Oct 2022 17:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233698AbiJZVPL (ORCPT ); Wed, 26 Oct 2022 17:15:11 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D02682859 for ; Wed, 26 Oct 2022 14:15:10 -0700 (PDT) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MyM5p2hhWzDqXT; Wed, 26 Oct 2022 21:15:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1666818910; bh=APYOM4y7kgiXVNJBM6mveeMKzmAiEbIw4YkLWM5pJZo=; h=From:To:Cc:Subject:Date:From; b=Ra9lX8oCSmzSTdW7tjYozHU8DsdSPwtjywDlyTrJQd3Lm77LyEcmbd78BmJwo1lCD OEyLozx7JbGxsnWlxng8o1D6aB5HAf/6LuMpr+syZcjdrfrkRtGcACqbT/laEpT8cT c6qi8l6KbiJL7Jb/ozxtq+pSAF5NJ5k9MALtHdcQ= X-Riseup-User-ID: B8985AC8A5ACF8A065AFF6B3A5F7E11411B5160F54633E5E622691687DA7D7C4 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4MyM5k2VGXz5vS7; Wed, 26 Oct 2022 21:15:06 +0000 (UTC) From: Arthur Grillo To: David Airlie , Daniel Vetter , Javier Martinez Canillas , =?UTF-8?q?Ma=C3=ADra=20Canal?= , =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , "Jason A. Donenfeld" Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, David Gow , Daniel Latypov , andrealmeid@riseup.net, melissa.srw@gmail.com, Arthur Grillo , =?UTF-8?q?Micha=C5=82=20Winiarski?= Subject: [PATCH] drm/tests: Add back seed value information Date: Wed, 26 Oct 2022 18:14:58 -0300 Message-Id: <20221026211458.68432-1-arthurgrillo@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, 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 As reported by Michał the drm_mm and drm_buddy unit tests lost the printk with seed value after they being refactored into kunit. This patch adds back this important information to assure reproducibility converting them to use the kunit api. Signed-off-by: Arthur Grillo Reported-by: Michał Winiarski --- drivers/gpu/drm/tests/drm_buddy_test.c | 3 +++ drivers/gpu/drm/tests/drm_mm_test.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c b/drivers/gpu/drm/tests/drm_buddy_test.c index 62f69589a72d..83c8863bc643 100644 --- a/drivers/gpu/drm/tests/drm_buddy_test.c +++ b/drivers/gpu/drm/tests/drm_buddy_test.c @@ -731,6 +731,9 @@ static int drm_buddy_init_test(struct kunit *test) while (!random_seed) random_seed = get_random_u32(); + kunit_info("Testing DRM buddy manager (struct drm_buddy), with random_seed=0x%x\n", + random_seed); + return 0; } diff --git a/drivers/gpu/drm/tests/drm_mm_test.c b/drivers/gpu/drm/tests/drm_mm_test.c index c4b66eeae203..492347069d58 100644 --- a/drivers/gpu/drm/tests/drm_mm_test.c +++ b/drivers/gpu/drm/tests/drm_mm_test.c @@ -2214,6 +2214,9 @@ static int drm_mm_init_test(struct kunit *test) while (!random_seed) random_seed = get_random_u32(); + kunit_info("Testing DRM range manager (struct drm_mm), with random_seed=0x%x max_iterations=%u max_prime=%u\n", + random_seed, max_iterations, max_prime); + return 0; } @@ -2251,6 +2254,5 @@ static struct kunit_suite drm_mm_test_suite = { }; kunit_test_suite(drm_mm_test_suite); - MODULE_AUTHOR("Intel Corporation"); MODULE_LICENSE("GPL"); -- 2.37.3