Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp157087ybi; Tue, 18 Jun 2019 19:46:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9JWk46s4yKzMDT7NaLCCrUG57oUFB/m0HSglc4WFhVyraRTDNF4w/pNtsNL4tg1xlsfMB X-Received: by 2002:a65:4506:: with SMTP id n6mr5457879pgq.283.1560912394775; Tue, 18 Jun 2019 19:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560912394; cv=none; d=google.com; s=arc-20160816; b=P+mGl2pi+nm+inMhi3xDSo9RH8VeywzqR6qrbdCpVRxqfOGz/rWXdwOmy4hcfUe/h/ ykdv8QGVHL0PAO0kqkEn8Fq2BcdjgubV+7uK9FxnIqKM3YBy+6uLVDnPtkejXD905iWm mM0AZmE8QZCyDfcuw0bylXQ3EO906943cL/QuC2e7l8fgt10FZKgBmNj9fjGkpPH93SA ifGt5o+OZg+l+CTOXjHzj8K5BCazDcKJ31BW+SugkgPHle/1MEIYvsrNOL2MeRQUa0B7 Y5mqRDThMLCmkAWoYtRlAmlaDRPaTQH64u9LGeqtdqzQq0afvie7dugH0Q8phNzUI8li 2zcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id :user-agent:mime-version:in-reply-to:references:cc:to:subject:from :date:dkim-signature; bh=TlBSQBBbAV1ASMn6rzwZURJx1pQSgW8qwxXIhe/O8Wc=; b=mh5cb1dvaIMvs4g604H1NzJou2993eTsLQGYsqlGTW+8W6cl9QsOIMkdzBERnk/olB Oe/bdk8SxxP1xkuC5Lbr1IMey20GCrLjdshVGiUgBBcgwJ6wTJkfUew5+I4qjCDv+6CG oJPf1RF6RIcMl4zL01Xrxeko3JL55nL9fAKvZdbpXpm8pY9WM+1fvTbOxA5GXsZWdFOi Cl4ZBI9ZaPcS9xq6J7/eo36Qlm8CeHUa1qki0Y7um7CobTi9WA/UQ11OieB7bWl7TqEF W7WwOVGs7G7GHj197keG5qJQ39SpS/HLY7xXyy9AbxLwceS8ry4C172fE4uDBrCazQlL a2xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RtkrZat4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si1835449pgb.234.2019.06.18.19.46.19; Tue, 18 Jun 2019 19:46:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RtkrZat4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730164AbfFSCpr (ORCPT + 99 others); Tue, 18 Jun 2019 22:45:47 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41244 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfFSCpr (ORCPT ); Tue, 18 Jun 2019 22:45:47 -0400 Received: by mail-pg1-f195.google.com with SMTP id 83so8739658pgg.8 for ; Tue, 18 Jun 2019 19:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :user-agent:message-id:content-transfer-encoding; bh=TlBSQBBbAV1ASMn6rzwZURJx1pQSgW8qwxXIhe/O8Wc=; b=RtkrZat4svUDkERDmBCRdYfZTYBRhqeEvZtnZrluvk2S2dWqGO2E/i1PaHBeCdvVBs nnR3pNuyzAlqBWvh5NbZ5HH6Ns0zwwMLUxXXBHBBrglFeF2qzY9S6CMA8kMO3d8cl4ym 8ImfN0MtMr4d68uV9Bxjy2zLFiHhDLrtgf2mh7ZSu4LMzdCRjf+Pc31oh3IKLv0IouXi Ic5wFJWEUuia+zSvxHf1flDkbroKAdVrjj4byR52XcXnuaqCEBF5HaWjlvWEy93qtXSR JG81i0V8b+EHAK5mN7LMGSVvGvjceKHDqycEY7ePNLeZyWqEOF+Ulb8ki/cFMKfgvrLe 5zXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=TlBSQBBbAV1ASMn6rzwZURJx1pQSgW8qwxXIhe/O8Wc=; b=cHEVMlakA87eolDsFM657bZjcIow38NKisb2QBf6nYq6wcIfxON3c9/t4BvIF2e7j8 ttxzMNchFL3TMJNrh9xiQwhMCLAhCNBNCjXuvxvCttjFAGEoLVU7M7fz/Z4taqTvRa4u YrBN5Sk+ru5UiIUJehMjXbUKDtvbWo3/AQlSV4lnjURJ0g6IX4D2v6eEo/efIXa9A2k5 N+56cWMzmZgmC2DPBWb17SclUNiIM8FNq0YbY+PJN8Dkhb2Byl0AxonP/ae/CU1SqTcX UD3WuYM8bOU05ruKcHew2gGfZg7N77uMI+SvtevTiGrz9DmDJHAmIaAhtGp7ViBgYXvg 8dgg== X-Gm-Message-State: APjAAAXsTgypmDrBHhYMP/N6BGKdtVgIHnEktJ9+b9WE3Vj2bqax9ONx zkDrJ3ykwHz7HXxYDAYpMlo= X-Received: by 2002:a63:a61:: with SMTP id z33mr5616295pgk.154.1560912346821; Tue, 18 Jun 2019 19:45:46 -0700 (PDT) Received: from localhost (193-116-92-108.tpgi.com.au. [193.116.92.108]) by smtp.gmail.com with ESMTPSA id 27sm13036087pgt.6.2019.06.18.19.45.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 19:45:45 -0700 (PDT) Date: Wed, 19 Jun 2019 12:40:42 +1000 From: Nicholas Piggin Subject: Re: [PATCH] kernel/isolation: Asset that a housekeeping CPU comes up at boot time To: Frederic Weisbecker , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Ingo Molnar References: <20190601113919.2678-1-npiggin@gmail.com> <1560151344.y4aukciain.astroid@bobo.none> <20190617155931.GK3436@hirez.programming.kicks-ass.net> <20190617190552.GA10264@lerouge> In-Reply-To: <20190617190552.GA10264@lerouge> MIME-Version: 1.0 User-Agent: astroid/0.14.0 (https://github.com/astroidmail/astroid) Message-Id: <1560911342.i8093fttpc.astroid@bobo.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Frederic Weisbecker's on June 18, 2019 5:05 am: > On Mon, Jun 17, 2019 at 05:59:31PM +0200, Peter Zijlstra wrote: >> On Mon, Jun 10, 2019 at 05:24:32PM +1000, Nicholas Piggin wrote: >> > Nicholas Piggin's on June 1, 2019 9:39 pm: >> > > With the change to allow the boot CPU0 to be isolated, it is possibl= e >> > > to specify command line options that result in no housekeeping CPU >> > > online at boot. >> > >=20 >> > > An 8 CPU system booted with "nohz_full=3D0-6 maxcpus=3D4", for examp= le. >> > >=20 >> > > It is not easily possible at housekeeping init time to know all the >> > > various SMP options that will result in an invalid configuration, so >> > > this patch adds a sanity check after SMP init, to ensure that a >> > > housekeeping CPU has been onlined. >> > >=20 >> > > The panic is undesirable, but it's better than the alternative of an >> > > obscure non deterministic failure. The panic will reliably happen >> > > when advanced parameters are used incorrectly. >> >=20 >> > Ping on this one? This should resolve Frederic's remaining objection >> > to the series (at least until he solves it more generally). >> >=20 >> > As the series has already been merged, should we get this upstream >> > before release? >>=20 >> I was hoping for feedback from Frederic, lacking that, I've queued it >> now. >>=20 >=20 > Sorry I just came back from vacation. Any chance we can use a WARN() inst= ead? > I prefer to use panic() only when data is really threatened or such. I thought it was decided to panic here, because we don't assign a house keeping CPU so the system is unlikely to behave properly. A warn might scroll off the screen by the time things grind to a halt. This is a one-time boot parameter misconfiguration, many cases of which can cause a panic and boot stop. No question if we can make this more dynamic that would be better, but for near term at least can we go with this? Thanks, Nick =