Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp6661pxw; Thu, 7 Apr 2022 22:35:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0BYPV30nRYHpYXYlW6agqopzGsgMTQM0EetI/WcG26EVlmnYp2LFRPOnzIQO85CWDjnaR X-Received: by 2002:a17:90b:1805:b0:1c7:ba88:9550 with SMTP id lw5-20020a17090b180500b001c7ba889550mr20082425pjb.16.1649396147439; Thu, 07 Apr 2022 22:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649396147; cv=none; d=google.com; s=arc-20160816; b=gOxDD4JAmNQRT7cJ4MVL6RBj9brVIFWYBXWYoSbxBj6TCJopOhTipxea4S5eCbrDaq pwMLziVT5ooG94PUyDfsYdgfAI1UyDjJSTGB5dxIJLNCns2wEDUF9Fc8QD57eR2xl0Dy QoqtuEG11T3iYbyWj+BuhylCuAmcr63DuJR8+eJLBR3s7GM+80i14A+J5fW6ZwEFupL4 XJ0ljlnUUexzJ01/rEgIZLHAhhOdfxjMHP238Z1EOEzY66dvvn62hdHaQFX/VhNbYe+S a2vDtAtbP7ErxAN+fk5R6sT9rLm7uUWI9PvANZYEKSPQ9bR3+P2tCc1OHAfhfo5KdAiY K4mw== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=qGb6wYNrJRPGbsg8rDQmO8mvCcm2H13KmLMfcOuBVsg=; b=iJenjzPqAH7MaSdMsHFUd9S4qRGW3OSC+bdcJS5bR7HHZPhYK4zGVycxzP8oQ646zS S+QRKjksyQB61U+k+ElwyFbRNp7eH1eZhbArNXACiI0NtDFdjcRXo8/re0qzMkSaN07A FAPlhCLaVzkKdCAsg3EvBZ/uXdnRBuLi7OZSk3cx33erZTBsKPacfXe14VnsYR+IdsPZ 3y+2JBAK5lw8HO81yMAtvuPiWz37Yv4F6Fuqy16qafNJtIHg2XS8YxddFp6ko9INFL+I 1AYEtOvhtGHMtFtbi4UTH2h1QHUF4KGIfmCHC8cmUhBsmjrvvuAFhBd0rvPgN6G09OMj 6meQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1ejXQHol; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f187-20020a636ac4000000b0038182140602si361628pgc.283.2022.04.07.22.35.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 22:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1ejXQHol; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C4ED1F3A5A; Thu, 7 Apr 2022 22:02:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234592AbiDHFEY (ORCPT + 99 others); Fri, 8 Apr 2022 01:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234570AbiDHFET (ORCPT ); Fri, 8 Apr 2022 01:04:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F01D11ED075; Thu, 7 Apr 2022 22:02:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 45413B8299F; Fri, 8 Apr 2022 05:02:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F015C385A1; Fri, 8 Apr 2022 05:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649394131; bh=8Me5S15U2F7dvfg9grdHqoSj3D7p+UN1Je6bZ9/30xQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1ejXQHolNEw61TXM0OE4CIyklLuxg9JFPBmpT1uzODSwUvl7OLGDDC1ayaKzwItrt Yr++lY1imkBXSlDamHgCnlIjP2f237tfE3jXojGbYltzJswhf8AtTkhJBEjKRnhgCl w00S1Yq6d7zHp0plWsG8KD8zTPwuPVn+BuyXtWqM= Date: Fri, 8 Apr 2022 07:02:08 +0200 From: Greg KH To: Jithu Joseph Cc: hdegoede@redhat.com, markgross@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, corbet@lwn.net, andriy.shevchenko@linux.intel.com, ashok.raj@intel.com, tony.luck@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 v2 09/10] platform/x86/intel/ifs: add ABI documentation for IFS Message-ID: References: <20220407191347.9681-1-jithu.joseph@intel.com> <20220407191347.9681-10-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407191347.9681-10-jithu.joseph@intel.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Thu, Apr 07, 2022 at 12:13:46PM -0700, Jithu Joseph wrote: > Add the sysfs attributes in ABI/testing for In-Field Scan. > > Reviewed-by: Tony Luck > Signed-off-by: Jithu Joseph > --- > .../ABI/testing/sysfs-platform-intel-ifs | 54 +++++++++++++++++++ > 1 file changed, 54 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-platform-intel-ifs > > diff --git a/Documentation/ABI/testing/sysfs-platform-intel-ifs b/Documentation/ABI/testing/sysfs-platform-intel-ifs > new file mode 100644 > index 000000000000..54dc6cd75484 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-platform-intel-ifs > @@ -0,0 +1,54 @@ > +What: /sys/devices/platform/intel_ifs/run_test > +Date: April 07, 2022 > +KernelVersion: 5.19.0 No need for ".0" > +Contact: "Jithu Joseph" > +Description: echo to trigger ifs test for all online cores. > + For e.g to test cpu5 do echo 5 > /sys/devices/platform/intel_ifs/run_test So core numbers are different than cpu numbers here? How are users going to map them? > + > +What: /sys/devices/platform/intel_ifs/status > +Date: April 07, 2022 > +KernelVersion: 5.19.0 > +Contact: "Jithu Joseph" > +Description: The status of the last test. It can be one of "pass", "fail" > + or "untested". > + > +What: /sys/devices/system/cpu/cpu#/ifs/details > +Date: April 07, 2022 > +KernelVersion: 5.19.0 > +Contact: "Jithu Joseph" > +Description: Additional information regarding the last test. The details file reports > + the hex value of the SCAN_STATUS MSR. Note that the error_code field > + may contain driver defined software code not defined in the Intel SDM. > + > +What: /sys/devices/platform/intel_ifs/image_version > +Date: April 07, 2022 > +KernelVersion: 5.19.0 > +Contact: "Jithu Joseph" > +Description: Version of loaded IFS binary image. In what format? > + > +What: /sys/bus/platform/drivers/intel_ifs/bind > +Date: April 07, 2022 > +KernelVersion: 5.19.0 > +Contact: "Jithu Joseph" > +Description: echo "intel_ifs" to reload IFS image. Huh? Why are you using a common sysfs file for this type of attribute? Please do not do so, make it "reload" or something like that. > + > +What: /sys/module/intel_ifs/parameters/noirq > +Date: April 07, 2022 > +KernelVersion: 5.19.0 > +Contact: "Jithu Joseph" > +Description: IFS tunable parameter that user can modify before > + the scan run if they wish to override default value. And where are those parameters documented? What are valid values here? > + When set, system interrupts are not allowed to interrupt an IFS. The > + default state for this parameter is set. set to what? > + > +What: /sys/module/intel_ifs/parameters/retry > +Date: April 07, 2022 > +KernelVersion: 5.19.0 > +Contact: "Jithu Joseph" > +Description: IFS tunable parameter that user can modify before scan run > + if they wish to override default value. > + > + Maximum retry counter when the test is not executed due to an > + event such as interrupt. The default value is 5, it can be set to any > + value from 1 to 20. Why would anyone ever want to change this value? Why doesn't it "just work" without needing anything tuned? thanks, greg k-h