Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4296247iob; Sun, 8 May 2022 08:32:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwabXNBi+nPsHSI0+HSc/g4WXY4hYzx0jzrghxLbcQ2JcA/4XskgyTcrHbPx2Y7c54QMwnK X-Received: by 2002:a17:902:eb87:b0:15e:a144:78ab with SMTP id q7-20020a170902eb8700b0015ea14478abmr12453369plg.55.1652023923640; Sun, 08 May 2022 08:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652023923; cv=none; d=google.com; s=arc-20160816; b=JPvgUf0kw3kyTqNXM03J6NODae5hazUK5rmIG0iq6KRQOZOWtJodhtO1JLOuEjvYh7 KxjdsG1K+1YvqmzhEPmNtdQOSvuB8TKAYFVZ/dAPgDcYyWFyInRv7sY5JccClOKnJbHw QOo3pEBGinBqp1FLxqSecrMn8oc7Ox8Q/hes/nBbWl+fmORZ7acrB9OdNxnMJZd995Fq Hnre5fftFNoRYwH/zvzzSpnkjY+hVEL4dj53iyVsG/s2e2zS6BJRR+mUbHYGXbzun6QC vZSV79bCm50M8ERUN9sRBwz0lA3DCwXyA3XowKgIck6ygg52/3ZAiSKO5hly0hrA9GON 6w1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=wxjZwQifAYdhM0J4VQYq2cjp3Wo71QrUD1AE1URfaSg=; b=xkbE+At1KEGTAFliFyZFD637mpQOxIEKpt9PH5ky1EstZjIP3HeIFdxmUJYIPGZkCO DUKTCOSMjbvwv1HoBYQ64tyrB07Ue2M/gOQ+2anqox1j2I0EZwLnv0NwH1fPmOAEJmwN Y97ujHKDRVAiTkYf4BDkbgicqp4DTdNmGJ5Rj1YMnMqB1qk2m/Oru6oGHRYgEfRGYZUi a/18oTAF754rGjAkgcjNiOSgDCwJ+A2cq6DtAZSmD536oRVkavZp+lw2Z1czJ5xOxFi3 L5vtVqvk+5houKUwNkg6+i8bNzWUqYC+YqEXs9LXdRBZOdIP+c6LcsaWwVr2tOGNrYsn d3Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="vOcUd/lm"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a170903411200b0015ea33a78cbsi7285726pld.80.2022.05.08.08.31.48; Sun, 08 May 2022 08:32:03 -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=@linutronix.de header.s=2020 header.b="vOcUd/lm"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389283AbiEFTKX (ORCPT + 99 others); Fri, 6 May 2022 15:10:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245289AbiEFTKV (ORCPT ); Fri, 6 May 2022 15:10:21 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC262FD1A; Fri, 6 May 2022 12:06:34 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651863992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wxjZwQifAYdhM0J4VQYq2cjp3Wo71QrUD1AE1URfaSg=; b=vOcUd/lmDHJJL+Wjm7RLEdKcEcChnT4ZknvyLz64mOH/YEleSdhoaACEWCfVrpMZf3A2am Xyd7ivGV3f4PUKlHc9Z46RGJK4DMUAkgmDEBZlybFFaob76fScq/QSdbFGudmcwauravCz vOS6gK9DMgTuoGviLkslDRGocC6PWKDkn9qxcoCnBMeKj/g0sbk8LAkGdlMH/YL2PQ9UUD xxd/1a/oiEv1Af2UivDg66d0eQ1XtEAIZ8ljQT9SfOwCdbCyPpdsoWol7rd2OyC3LRe1WC xhs30NLrjE0Ac4eiJCcLyftkzVrZzu7TdS8Nq0nhaHAxhMNBR+0UlZvSWdD+PQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651863992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wxjZwQifAYdhM0J4VQYq2cjp3Wo71QrUD1AE1URfaSg=; b=p8bHn1UkvG9MTT6yYjW8yIhIvMPQ05zlVK7KctnyNqRnOmtOfthHCPxamNZoKpTvMHi0N8 /B8gZ//KBFrmRQDg== To: "Luck, Tony" Cc: hdegoede@redhat.com, markgross@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, corbet@lwn.net, gregkh@linuxfoundation.org, andriy.shevchenko@linux.intel.com, jithu.joseph@intel.com, ashok.raj@intel.com, rostedt@goodmis.org, dan.j.williams@intel.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, ravi.v.shankar@intel.com Subject: Re: [PATCH v6 08/11] platform/x86/intel/ifs: Add scan test support In-Reply-To: References: <20220428153849.295779-1-tony.luck@intel.com> <20220506014035.1173578-1-tony.luck@intel.com> <20220506014035.1173578-9-tony.luck@intel.com> <87r156hjpl.ffs@tglx> Date: Fri, 06 May 2022 21:06:32 +0200 Message-ID: <87ee16h45j.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 Fri, May 06 2022 at 11:49, Luck, Tony wrote: > On Fri, May 06, 2022 at 03:30:30PM +0200, Thomas Gleixner wrote: >> 1) How is that supposed to work on a system which has HT enabled in BIOS, >> but disabled on the kernel command line or via /sys/..../smt/control or >> when a HT sibling is offlined temporarily? >> >> I assume it cannot work, but I can't see anything which handles those >> cases. > > Correct. If HT is disabled in BIOS, then there is no other thread, so > core tests just use a single thread. > > If a logical CPU is "offline" due to Linux actions, then core test will > fail. In an earlier version we did attempt to detect this before trying > to run the test. But we didn't find a simple way to determine that a > core has one thread online, and another offline. Rather than a bunch of > code to detect an operator error it seemed better to let it run & > fail. Fair enough. > GregKH wasn't a fan of this itty bitty driver cluttering up > Documentation/x86. He said: > > I don't know which is better, it's just that creating a whole new > documentation file for a single tiny driver feels very odd as it will > get out of date and is totally removed from the driver itself. > > I'd prefer that drivers be self-contained, including the documentation, > as it is much more obvious what is happening with that. Spreading stuff > around the tree only causes stuff to get out of sync easier. Well, I agree to some extent, but the documentation which I want to see is documentation for admins. I'm not sure whether we want them to search the code. Those are consumers of Documentation/ AFAICT. > So the documentation patch was dropped after v3. Last version here: > > https://lore.kernel.org/r/20220419163859.2228874-3-tony.luck@intel.com > > That doc would need pathnames updated to match the move from a platform > device to a virtual misc device. But otherwise seems still accurate. > > Does that cover what you want from documentation for this driver > (wherever it gets located in the tree)? Are you looking for more? It's pretty detailed on the inner workings, but lacks a big fat warning for the admin vs. the impact, i.e. that it makes the core go out for lunch for a while, which has consequences on workloads and interrupts directed at that core. Plus some explanation vs. the HT (SMT=off, soft offline) case above. Similar to what we have e.g. for buslocks. Thanks, tglx