Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1117693rwo; Sat, 22 Jul 2023 07:00:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlGC2y8uoRkMWkfcLZQov5seKazgylxth6XBBEPHvstxF0974ggcGbJKppjde/PyMmmweq1D X-Received: by 2002:a17:902:ecc1:b0:1b8:c6f8:d9b with SMTP id a1-20020a170902ecc100b001b8c6f80d9bmr6600464plh.34.1690034400023; Sat, 22 Jul 2023 07:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690034400; cv=none; d=google.com; s=arc-20160816; b=OZCXatLp2zU9DS0WKZ/Jt4GI/Obs3TVSso0Wtm6MxvXw5QjNwWTHHUVEIlLxTGOEdr zRmt8Fd3aTd76dBbLVvUn05GH+G4yWG+fooqUsqjGp38VVRPOwgSDzRLqmujcXa3eOMf AflFHG1e/Uzc+Xdj1+bZtnEim0hkHr6hvDYTzeaaggYjGejrpBU0yRgc2SUKGiciqshD rU3Pkxbc/HPfI4LsCpUNrnlBzCwh9JvVzoQonZyMVFVfyEDqXEeZCjLFsDNnv0XtLxiV Ug7Hl4sNKYzY1m3eJS1jM8MpePQBD6Y5ygGAtlz2JW+D54Vh9Dqw/r5E2uTFI4nyceac u1Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+Iriq1Mn1vCrK0ttg37vMN0vpKfKjnMqmwQlU/FozHk=; fh=ujwW7c4tbJyQEFqfHDIuJXTy68vjNzYK6N7f8YmL270=; b=a7IxCkDLLMIF/aETkMO1GB2Nk04Ey/YS4yXiasdLALWgcR/aGMEOeUjAWPkVAF+5qm xztZy9Vyt6xCdMRqKyMlbmMsziOO3Pcvoe/j/60jh4jxChMMqVubqzzBsEAreKSIoN1k jdrvYfrFgyymREbtjmrJWlWD4Le5ICYNeKCKgA4bxezxuuNRto5VPv2BXCeS3wd1zBwI AHeq7KEf9sCBbxoV29eujYyZJMdQ4rkMbdYM2nSbh1nnIoubDpfXKrtjyk4tWKfS383F pSXKavu7+B+3CU4/F0SdufiQWI6Qz3B14IfguJDe8kcOXpAD4gtjaLIHjjhToCQO9/uk TGtg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a170902650900b001b7f4696a2csi4770630plk.347.2023.07.22.06.59.45; Sat, 22 Jul 2023 07:00:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbjGVNRj (ORCPT + 99 others); Sat, 22 Jul 2023 09:17:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbjGVNRi (ORCPT ); Sat, 22 Jul 2023 09:17:38 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 13EA41A7; Sat, 22 Jul 2023 06:17:36 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 36MDHS8F017483; Sat, 22 Jul 2023 15:17:28 +0200 Date: Sat, 22 Jul 2023 15:17:28 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: thomas@t-8ch.de, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 14/14] selftests/nolibc: tinyconfig: add support for 32/64-bit powerpc Message-ID: <20230722131728.GM17311@1wt.eu> References: <15b47c6901f79a22b985a53efeae71dc7b172a5f.1689759351.git.falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15b47c6901f79a22b985a53efeae71dc7b172a5f.1689759351.git.falcon@tinylab.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 On Wed, Jul 19, 2023 at 09:32:46PM +0800, Zhangjin Wu wrote: > Firstly, add extra config files for powerpc, powerpc64le and powerpc64. > > Second, QEMU_TIMEOUT is configured as 60 seconds for powerpc to allow > quit qemu-system-ppc even if poweroff fails. In normal host machine, ~20 > seconds may be enough for boot+test+poweroff, but 60 seconds is used > here to gurantee it at least finish even in a very slow host machine or > the host machine is too busy. Both powerpc64le and powerpc64 can > poweroff normally, no need to configure QEMU_TIMEOUT for them. Hmmm call me annoying, but this started with tinyconfig "in order to save build time" and now it's enforcing a 1-minute timeout on a single test. When I run the tests, they hardly last more than a few seconds and sometimes even just about one second. If some tests last too long doing nothing, we should adjust their config (e.g. useless probe of a driver). If they can't power off due to a config option we need to fix that option. If it can't power off due to the architecture, we can also try the reboot (qemu is started with --no-reboot to stop instead of rebooting), and as a last resort we should rely on the timeout in case everything else fails. But then this timeout should be quite short because we'll then have guaranteed from the choice of config options that it boots and executes fast by default. Finally, if we need to implement a timeout enforcement for at least one arch because we do not control every failure case, then there's no reason for considering that certain archs are safe against this and others not. This means that we can (should?) implement the timeout by default for every arch, and make sure that the timeout is never hit by default, unless there's really absolutely no way to fix the arch that cannot power down nor reboot, in which case the timeout should remain short enough. What's your opinion ? Willy