Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2972349rdb; Tue, 12 Sep 2023 19:32:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtnVUGrbiQ+h/C8tHrMmZcJx6pnG0fyV5dF6MVg1uoCPE5B7MuiX/rCbu7KjBml0id+qnq X-Received: by 2002:a17:90a:7486:b0:263:f36e:d610 with SMTP id p6-20020a17090a748600b00263f36ed610mr985469pjk.0.1694572378318; Tue, 12 Sep 2023 19:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694572378; cv=none; d=google.com; s=arc-20160816; b=vvPsOAyBaj4VWnidNVw/z5e6R1xf47R+yuXYW1qyL/ANMm1+gqHX9kkWcp2gr86Azv +5ElF+ihxc7pavVtKL1JD4w05gw5jBg6plXIhKiRPnkASCFZTqTTluh4h2hYcF87fSBx d0jah89i5Ln8ew5dEXBpnhXuVRnP31Y1aMwv/kz3/3KaqmjwbLpYEt/9zqtK+augua/L V+K0uGOqhb03CN+W0cJcd8t9kwnosRfSKYHqrOTEQAiS1ymohXBeWuuT0nZSYsL+f97g Tp+kNPABUTovCiHTPc0ZbwGOSd+V1cD+Eev4D2i3Kh7T/+JH/CzDwV9wvL5kdrl4qhWr hg7w== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=M+grCUostfIpNDbJCtZATyVfp717UCSAOFrm4GuSqa4=; fh=PNQR4XjkPfDpXpUS3hE9Leyy+P1WM1MU6pdJEsVUAaM=; b=aRNsKwnmcTigh1iy7WRha46vbDELXxwLUcdzqD8c2h3SXfZD8nPNPappivFolNBUBR y5bpbmomCRagXPW+nf4Tg24aweIns9T31ijy0CneFL7E28uB7LfH7BhS+w/ZUqpb3IPR OX6BpvZu88hWVMFskTCRp6EOUcm1x7m9zNFFf+A9Wla+wx/DjTgjo0mgl71JF9h4tWuy iHd/q4ILz8TfZe7aeoLU/Ru7Nd22WAf2b3803wTl4pr/+cIwK2g62xGYoEVxN3WwSyk7 j2tlp+0zL+CpeDXBH7vYH3Y9T67wxRyAedF+YJyarI+7PyvStnFJkSLI1kbnlST/Ntfj 84LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Zi6Ovxxq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l3-20020a17090a72c300b00268067839c9si559214pjk.106.2023.09.12.19.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 19:32:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Zi6Ovxxq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id DF51580CBDDC; Tue, 12 Sep 2023 00:36:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231638AbjILHgY (ORCPT + 99 others); Tue, 12 Sep 2023 03:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbjILHgV (ORCPT ); Tue, 12 Sep 2023 03:36:21 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E1D6E78 for ; Tue, 12 Sep 2023 00:36:17 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3159b524c56so739293f8f.1 for ; Tue, 12 Sep 2023 00:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1694504175; x=1695108975; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=M+grCUostfIpNDbJCtZATyVfp717UCSAOFrm4GuSqa4=; b=Zi6OvxxqPSYGMupXReZWbsSk1pSc16kc4OftahhHWPL1n7PvMwoivfdyoVwEIgyHw+ Y5K2UV1owEK8GmmcsrWP7TABUv1NIIBE4eFXXtmvrjFqusMyZVWNrvpWtAMxE+PbBK6Y 53mrBKWMvKUSvxMA2mHqexUkRmWpqaVTpomoE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694504175; x=1695108975; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=M+grCUostfIpNDbJCtZATyVfp717UCSAOFrm4GuSqa4=; b=cXy7fDYnGX65Y9qIBj6XKMKobbw8I6tK8meWRZ3aVzZpFapV5Wp0v1c86fEmkm+lip x/7FfuGbS02Qq9mbf68x+XFY28x3+Uayid21GAgu8aVuEqUXvzBjS7hvm4bcDb79Yi2N FrQHd0ovYa6lAPPu6TDENAF+HzO8rdySmWFdA0NcVF6eaQ9zk8/U/ZsOOq4gDbxUI+xl BJKMptPtdQwaliO2M5V1vX7KWgcKBeLH8is6Mi61Mv67qcGatDLONsfNFoz9YAhK3byJ ou5l0RbmoJB7ke5aqZawgjqupfdFdlcVqcZ00mJkUGv3dkZP+v+lHc4ymzwcu33ecUF/ U/3A== X-Gm-Message-State: AOJu0YxECvGIgpJqpLoup7Ewu0ZR42ENbroyAX8M55Tl/lDStRlAkSfR zsg7PO5SSlNRWT24oveoPQRhLw== X-Received: by 2002:a05:6000:70a:b0:31f:84c9:d75f with SMTP id bs10-20020a056000070a00b0031f84c9d75fmr8444826wrb.4.1694504175484; Tue, 12 Sep 2023 00:36:15 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id d6-20020adfef86000000b00317ddccb0d1sm12118428wro.24.2023.09.12.00.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 00:36:14 -0700 (PDT) Date: Tue, 12 Sep 2023 09:36:12 +0200 From: Daniel Vetter To: Maxime Ripard Cc: Brendan Higgins , David Gow , David Airlie , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , =?iso-8859-1?Q?Ma=EDra?= Canal , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 2/2] drm/tests: Flag slow tests as such Message-ID: Mail-Followup-To: Maxime Ripard , Brendan Higgins , David Gow , David Airlie , Maarten Lankhorst , Thomas Zimmermann , =?iso-8859-1?Q?Ma=EDra?= Canal , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20230911-kms-slow-tests-v1-0-d3800a69a1a1@kernel.org> <20230911-kms-slow-tests-v1-2-d3800a69a1a1@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230911-kms-slow-tests-v1-2-d3800a69a1a1@kernel.org> X-Operating-System: Linux phenom 6.4.0-3-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 00:36:30 -0700 (PDT) On Mon, Sep 11, 2023 at 11:51:06AM +0200, Maxime Ripard wrote: > Kunit recently gained a speed attribute that allows to filter out slow > tests. A slow test is defined in the documentation as a test taking more > than a second to execute. > > Let's flag the few tests that are doing so on my machine when running: > > ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/tests \ > --cross_compile aarch64-linux-gnu- --arch arm64 > > Suggested-by: David Gow > Signed-off-by: Maxime Ripard Ugh ... not a fan. igt has a really bad habit of making disastrously combinatorial tests with impossible runtimes, and then just filtering these out so it's still fast. Maybe some stress tests for overall system make sense like this, but absolutely not for unit tests. And I did spot check some of these, they're just combinatorial explosions with large repetition counts and some fun stuff like going through prime numbers because surely that's a good idea. Imo delete them all, and if that causes a real gap in coverage, ask the authors to write some actual good unit tests for these corner cases. Cheers, Sima > --- > drivers/gpu/drm/tests/drm_buddy_test.c | 2 +- > drivers/gpu/drm/tests/drm_mm_test.c | 14 +++++++------- > 2 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c b/drivers/gpu/drm/tests/drm_buddy_test.c > index 09ee6f6af896..6f79cde2df55 100644 > --- a/drivers/gpu/drm/tests/drm_buddy_test.c > +++ b/drivers/gpu/drm/tests/drm_buddy_test.c > @@ -742,7 +742,7 @@ static struct kunit_case drm_buddy_tests[] = { > KUNIT_CASE(drm_test_buddy_alloc_range), > KUNIT_CASE(drm_test_buddy_alloc_optimistic), > KUNIT_CASE(drm_test_buddy_alloc_pessimistic), > - KUNIT_CASE(drm_test_buddy_alloc_smoke), > + KUNIT_CASE_SLOW(drm_test_buddy_alloc_smoke), > KUNIT_CASE(drm_test_buddy_alloc_pathological), > {} > }; > diff --git a/drivers/gpu/drm/tests/drm_mm_test.c b/drivers/gpu/drm/tests/drm_mm_test.c > index 186b28dc7038..c1e662c2a76c 100644 > --- a/drivers/gpu/drm/tests/drm_mm_test.c > +++ b/drivers/gpu/drm/tests/drm_mm_test.c > @@ -2228,23 +2228,23 @@ module_param(max_prime, uint, 0400); > static struct kunit_case drm_mm_tests[] = { > KUNIT_CASE(drm_test_mm_init), > KUNIT_CASE(drm_test_mm_debug), > - KUNIT_CASE(drm_test_mm_reserve), > - KUNIT_CASE(drm_test_mm_insert), > - KUNIT_CASE(drm_test_mm_replace), > - KUNIT_CASE(drm_test_mm_insert_range), > + KUNIT_CASE_SLOW(drm_test_mm_reserve), > + KUNIT_CASE_SLOW(drm_test_mm_insert), > + KUNIT_CASE_SLOW(drm_test_mm_replace), > + KUNIT_CASE_SLOW(drm_test_mm_insert_range), > KUNIT_CASE(drm_test_mm_frag), > KUNIT_CASE(drm_test_mm_align), > KUNIT_CASE(drm_test_mm_align32), > KUNIT_CASE(drm_test_mm_align64), > - KUNIT_CASE(drm_test_mm_evict), > + KUNIT_CASE_SLOW(drm_test_mm_evict), > KUNIT_CASE(drm_test_mm_evict_range), > KUNIT_CASE(drm_test_mm_topdown), > KUNIT_CASE(drm_test_mm_bottomup), > KUNIT_CASE(drm_test_mm_lowest), > KUNIT_CASE(drm_test_mm_highest), > KUNIT_CASE(drm_test_mm_color), > - KUNIT_CASE(drm_test_mm_color_evict), > - KUNIT_CASE(drm_test_mm_color_evict_range), > + KUNIT_CASE_SLOW(drm_test_mm_color_evict), > + KUNIT_CASE_SLOW(drm_test_mm_color_evict_range), > {} > }; > > > -- > 2.41.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch