Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3767572pxy; Mon, 26 Apr 2021 09:15:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHYWBI2ZwT3W2dESdLzBU6XMxJkSCESZ7wvQbEJV5gkyf/OUuaZtaHYYSiN8CUqtd5fWjS X-Received: by 2002:a63:9d0d:: with SMTP id i13mr5618572pgd.197.1619453711984; Mon, 26 Apr 2021 09:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619453711; cv=none; d=google.com; s=arc-20160816; b=M8S45ZzzGStN06DpHQjai2c6yp/ONm0ou/NgRlU2RL2UI6W0xCNW8GH1CVw5O8jv57 YQDws1iU7I9bFuoKI2TcNmig7lgSs272IaBXpKr3Xz23jW1HWEBIOAjbx0iMUDEPHol8 yvhD/mQHXamScExZrZpDDhBYHl0XQpHjYytOI3y6fhOFgapr1jK/BnYWWobKnA2km3xp FucTh9ztciWRG1qkCszkQ69ZBc3B1WYvUd4Dh7cy3XE/WY0xQ5PQ9Muw34U0MTSEZUpO wb2gOWW1Fei8ivH1d+d1NyAYHrbfaU5fM1rVWl2/xHKI/SMKCeRteK6WBfdmrNCARRIO ce6g== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=APZZ6iMd3oL2xnAjid/SY0AJWrk/HIYM/kBZNFzgdYY=; b=bynWCLHFGSDPLc55Ri62ynvOk0D9YHSZclkX8NtXKN7qOLtXCyLRIAAtXNU4VNey4g CmcVwNZM8OsnZK+lVlxbpXS+Fu5TJwVyKrU99oPTa3LGWSjAdSJK/coM90zHnOzZBaZ9 zrI73KpO4bFHu2gIjfqnffyHAyhz1yM86k+0QayIs1HnLHIv4hlSVol1LjwZHp2fbdvk 9WwoTl/LtxmTUUHYHlukgOngk27UgOEJDN0lfa+dpRhy7jQ0aXlkJu1Y22Yy1EEw+uSu 4/TwbcjDimJlHTBe12Phf9IexAJABxgOCq27RGbrrbCYwGAwmBI/mVglEIH6u2NlvyeK iXmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m4u2GksT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mt3si238003pjb.18.2021.04.26.09.14.59; Mon, 26 Apr 2021 09:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m4u2GksT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234148AbhDZQPH (ORCPT + 99 others); Mon, 26 Apr 2021 12:15:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:37458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233736AbhDZQPH (ORCPT ); Mon, 26 Apr 2021 12:15:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9854E61158; Mon, 26 Apr 2021 16:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619453665; bh=+xeH23F0LE10Sm4HM5AJUDBLOGxtR3c+xAcE/Eoah6A=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=m4u2GksTqGVmk3gn47Y4HlPGnGwUwS3hYSKfXjLx7gcf8hWeRaqzW3dnjG+t5Hggk IZb3baUpSGWyDhP8Mgb69yFsG/ec2P0pOPvmH5xoYsoM+U2BuIDqfuk3Pf4YHgbJDh a4Vcctg/eUixCLLKRyAJbk+YSr2NI5HIsLKkR4trn5N2U30p4EO9wwFOgI5SK8Lj0X Ma7tfWfEwUBKtthat+RdL/mZd18Eob0Qwcb6umhBQqWTv5FlebxLy5pPr9JIGaxRCC fxhdzOVTIKFn0mwluZMGrpPph+L5vCOrz3Pzrc2XAuGs1kCZme+glEQrhVR+e9/dhI w7eJMbetwe0+A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 438AA5C0191; Mon, 26 Apr 2021 09:14:25 -0700 (PDT) Date: Mon, 26 Apr 2021 09:14:25 -0700 From: "Paul E. McKenney" To: Andi Kleen Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, john.stultz@linaro.org, sboyd@kernel.org, corbet@lwn.net, Mark.Rutland@arm.com, maz@kernel.org, kernel-team@fb.com, neeraju@codeaurora.org, feng.tang@intel.com, zhengjun.xing@intel.com, Chris Mason Subject: Re: [PATCH v10 clocksource 1/7] clocksource: Provide module parameters to inject delays in watchdog Message-ID: <20210426161425.GC975577@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20210425224540.GA1312438@paulmck-ThinkPad-P17-Gen-1> <20210425224709.1312655-1-paulmck@kernel.org> <20210426040736.GS1401198@tassilo.jf.intel.com> <20210426152801.GY975577@paulmck-ThinkPad-P17-Gen-1> <20210426160008.GY1401198@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210426160008.GY1401198@tassilo.jf.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 09:00:08AM -0700, Andi Kleen wrote: > > Boot-time coverage is important, as we saw in kbuild test robot testing > > of v9 of this patchset, which triggered clocksource_tsc_early, but not > > clocksource_tsc. Note that v10 avoids this triggering. > > Not sure how that could happen, I didn't think the kbuild bot knows > how to set these options. It didn't need to. My initial choice of maximum skew in the v9 patch series exceeded what clocksource_tsc_early could remain within, given its quick calibration. In v10 of this patch series, clocksource_tsc_early is given special dispensation. > Overall I think you should follow the existing frame works instead > of inventing your own so that things can be later tested in an > uniform manner. > > Perhaps the fault injection framework needs boot options, but > they should be generic. From Documentation/fault-injection/fault-injection.rst: ------------------------------------------------------------------------ - module parameters If the scope of the fault injection capability is limited to a single kernel module, it is better to provide module parameters to configure the fault attributes. ------------------------------------------------------------------------ And in this case, the fault injection capability is in fact limited to kernel/clocksource.c. Thanx, Paul