Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp186909iob; Thu, 12 May 2022 22:34:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOgaqTB66pFLbYeczqPNYLqmp6EHHu1i1eTwfMDwobioKJ+/OWT8YAOuRsfjeALJsYEYb8 X-Received: by 2002:a17:906:3ed5:b0:6f5:108c:a45 with SMTP id d21-20020a1709063ed500b006f5108c0a45mr2737624ejj.623.1652420088314; Thu, 12 May 2022 22:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652420088; cv=none; d=google.com; s=arc-20160816; b=GrOmmXjhSX9JKq5KDPpojMNSP8NzDppJlOaVKJbGHlPFnkqpLVXrsFM2hMHu52FLbA yxSmn/BZYw+kVx1IEpS8r7/CpIjYXuNnShjAazjJ5rZW36ogMPHOlsRAa6JO9ZymdUR4 rwPKm0QvT2tFJ02dB2YV/dJQi6tJobXzvGCMe7ws1sREX2aQcqImwxhtwBcGlVX7VqM0 /fGgKOiHAt1uhWq3EcUgzbbxeqLpvM4QTZCDLZOhmu490YXBtWmrBaU1m5QjUwik2/gR 5T2Oo+5H9PouXlN1BE9SdF44E5TwRB1C/DZ5bFNkDtZcHCJ+PO0ENsDrbI1YE/+/2EtU xtJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8WFUC5VmX5Q36NEiF2EwlZNMFIvqDIQQRUATmgl6MsM=; b=XSo9gmcKd1DL1DtzS9nDEt/rBstJbtRYvr28/AhPgubl03MSFgsc6ZovZtQwpz5/cs rKBHjH50fNM/JP3fxavx38Wlq7LvXFfrNnhXBmuAQawmb+496umsal9tD4SJIS+ZjpIg rFlI9wVBIVSzaLc/lQle54TRc8DlFClohPbEAxYwR+yc4wwlvJBTj2ICNWHnl2nFvN5S Ly8BUfVnPTSUa/rCJzXzzvE36AGNQ4yEinvSzovnWNbVJgurLdlJRtJgOjgflFr7+TUm EKVl7A9vueTvwoM+coX29Dz00OfEjzONXJ70ijQSpG9srI+cIbeDexIUIPXo2oei4c6W jFSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gWZy8c6j; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020aa7c04e000000b00423e3538ee2si1039323edo.335.2022.05.12.22.34.22; Thu, 12 May 2022 22:34:48 -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=@redhat.com header.s=mimecast20190719 header.b=gWZy8c6j; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344013AbiEKPwS (ORCPT + 99 others); Wed, 11 May 2022 11:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344003AbiEKPwD (ORCPT ); Wed, 11 May 2022 11:52:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8836E63BFD for ; Wed, 11 May 2022 08:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652284321; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8WFUC5VmX5Q36NEiF2EwlZNMFIvqDIQQRUATmgl6MsM=; b=gWZy8c6jtQvOfjad9VJMnHy0qHmtuO7Fk4DO/5ULFfDnbJr/UXV2kZVpRx6ZnCMLbf2Umq yrvn74PvQ0Ok7nFiGgrXeD7nfmfNQmenJOQvL63eDQj13Mrdi+IJf5jR70QsS/C9sZ6atU OunIf5A3l3LZaBaMg88cO2AI44yUn4I= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-652-3SsGlSv7NEKv_cVzYO2nmA-1; Wed, 11 May 2022 11:51:59 -0400 X-MC-Unique: 3SsGlSv7NEKv_cVzYO2nmA-1 Received: by mail-ed1-f71.google.com with SMTP id dn26-20020a05640222fa00b00425e4b8efa9so1594503edb.1 for ; Wed, 11 May 2022 08:51:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=8WFUC5VmX5Q36NEiF2EwlZNMFIvqDIQQRUATmgl6MsM=; b=bJX5m3WoCTNRQXx5E8E62/KdUgX7xySt/ysz+7kOlUXyo0XGdEwVbq4srZ+BMDSwc6 AxMowxdpgZir23355BgByArVWrRV4u0dRkrpp1YXeuh5/oShjPDpWBf4aEU5IhPMXwdY OO4u+v5E9kBddOIizoJckrfxdmT3tNQf/PlR8l1pPW6l6Dr9sQY9nb7wlXRMjqzI6P8n jfamA7VqOI+rryPHKGtRMysClV/ltEJxYP/EoZbmZLqsOPG1bO/Igbu0VtytYylbk8XB ukLuOs4tx7Z73aa3Vhx1WXO87sJFl49NN6i0mg+j29ECqlzQbhY+/aI7RqTDHaLV1TYm fYJw== X-Gm-Message-State: AOAM5300DA+53gngBcoXxBS/6dmQH4+QofY683y+oN3krqiY0oTz3hND 2YXNjfQr123qeQQeElP6gTq/esa/Z54mCkp5PdSGe27sTKfF0csAJiE8zaE5Zdg/Evcews41ySN 6/CHFklVm/0l8Zq9ZwnE9khHZ X-Received: by 2002:a05:6402:1694:b0:425:ae5e:4843 with SMTP id a20-20020a056402169400b00425ae5e4843mr30291326edv.415.1652284318721; Wed, 11 May 2022 08:51:58 -0700 (PDT) X-Received: by 2002:a05:6402:1694:b0:425:ae5e:4843 with SMTP id a20-20020a056402169400b00425ae5e4843mr30291297edv.415.1652284318525; Wed, 11 May 2022 08:51:58 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id g19-20020a170906c19300b006f3ef214e51sm1085645ejz.183.2022.05.11.08.51.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 May 2022 08:51:58 -0700 (PDT) Message-ID: <704401aa-b277-ad77-e4ee-6111d5f993c2@redhat.com> Date: Wed, 11 May 2022 17:51:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v7 00/12] Introduce In Field Scan driver Content-Language: en-US To: Tony Luck , markgross@kernel.org Cc: tglx@linutronix.de, 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 References: <20220506014035.1173578-1-tony.luck@intel.com> <20220506225410.1652287-1-tony.luck@intel.com> From: Hans de Goede In-Reply-To: <20220506225410.1652287-1-tony.luck@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,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 Hi, On 5/7/22 00:53, Tony Luck wrote: > TL;DR this driver loads scan test files that can check whether silicon > in a CPU core is still running correctly. It is expected that these tests > would be run several times per day to catch problems as silicon ages. Thank you for your patch-series, I've applied the series to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > > Changes since v6 > > Thomas Gleixner > --------------- > "struct workqueue_struct *ifs_wq; Seems to be unused." > > True. Deleted. > > "static bool oscan_enabled = true; What changes this?" > > Code that cleared it deleted. Drop this too. > > "Please add curly brackets as these are not one-line statements" > > Added > > cpumask_first(topology_sibling_cpumask(cpu)); Shouldn't that be cpu_smt_mask()?" > > Changed (and several other places) > > "take up to 200 milliseconds before it retires. 200ms per test chunk?" > > Updated comment to note that 200ms is for all chunks. > > "Documentation lost in the intertubes" > > Dredged up the version from v3 series and changed: > 1) Fixed pathnames now this is a virtual misc device instead of platform > device > 2) Put all the text into a "/** DOC:" comment section in ifs.h with just > a "kernel-doc:: drivers/platform/x86/intel/ifs/ifs.h" in the ifs.rst > file under Documentation/x86. > 3) Added a "big fat warning" (in all CAPS) pointing out that a core test > can take up to 200 milliseconds. So admins must take extra steps if they > are running latency sensitive workloads. > 4) Added note that all HT threads of a core must be online to run a > test. > > Tony Luck > --------- > Off-by-one on retries check (#define set to 5, but tried 6 times). Fixed > Fixed kerneldoc description of "integrity_cap_bit" (was missing a ":") > > Jithu Joseph (7): > x86/microcode/intel: Expose collect_cpu_info_early() for IFS > platform/x86/intel/ifs: Read IFS firmware image > platform/x86/intel/ifs: Check IFS Image sanity > platform/x86/intel/ifs: Authenticate and copy to secured memory > platform/x86/intel/ifs: Add scan test support > platform/x86/intel/ifs: Add IFS sysfs interface > platform/x86/intel/ifs: add ABI documentation for IFS > > Peter Zijlstra (1): > stop_machine: Add stop_core_cpuslocked() for per-core operations > > Tony Luck (4): > x86/msr-index: Define INTEGRITY_CAPABILITIES MSR > platform/x86/intel/ifs: Add stub driver for In-Field Scan > trace: platform/x86/intel/ifs: Add trace point to track Intel IFS > operations > Documentation: In-Field Scan > > .../ABI/testing/sysfs-platform-intel-ifs | 39 +++ > Documentation/x86/ifs.rst | 2 + > Documentation/x86/index.rst | 1 + > MAINTAINERS | 8 + > arch/x86/include/asm/cpu.h | 18 ++ > arch/x86/include/asm/msr-index.h | 7 + > arch/x86/kernel/cpu/intel.c | 32 +++ > arch/x86/kernel/cpu/microcode/intel.c | 59 +--- > drivers/platform/x86/intel/Kconfig | 1 + > drivers/platform/x86/intel/Makefile | 1 + > drivers/platform/x86/intel/ifs/Kconfig | 13 + > drivers/platform/x86/intel/ifs/Makefile | 3 + > drivers/platform/x86/intel/ifs/core.c | 73 +++++ > drivers/platform/x86/intel/ifs/ifs.h | 234 +++++++++++++++ > drivers/platform/x86/intel/ifs/load.c | 266 ++++++++++++++++++ > drivers/platform/x86/intel/ifs/runtest.c | 252 +++++++++++++++++ > drivers/platform/x86/intel/ifs/sysfs.c | 149 ++++++++++ > include/linux/stop_machine.h | 16 ++ > include/trace/events/intel_ifs.h | 41 +++ > kernel/stop_machine.c | 19 ++ > 20 files changed, 1182 insertions(+), 52 deletions(-) > create mode 100644 Documentation/ABI/testing/sysfs-platform-intel-ifs > create mode 100644 Documentation/x86/ifs.rst > create mode 100644 drivers/platform/x86/intel/ifs/Kconfig > create mode 100644 drivers/platform/x86/intel/ifs/Makefile > create mode 100644 drivers/platform/x86/intel/ifs/core.c > create mode 100644 drivers/platform/x86/intel/ifs/ifs.h > create mode 100644 drivers/platform/x86/intel/ifs/load.c > create mode 100644 drivers/platform/x86/intel/ifs/runtest.c > create mode 100644 drivers/platform/x86/intel/ifs/sysfs.c > create mode 100644 include/trace/events/intel_ifs.h > > > base-commit: 672c0c5173427e6b3e2a9bbb7be51ceeec78093a