Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3991845iob; Sat, 7 May 2022 23:21:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi6htJnuJfWSNyRDLA34slUJt2B3+hnhekpqxaCjE5AU5ReoMYTTeup+AFPO2L2VyI00yB X-Received: by 2002:a17:903:248:b0:155:ecb7:dfaf with SMTP id j8-20020a170903024800b00155ecb7dfafmr10908437plh.84.1651990907269; Sat, 07 May 2022 23:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651990907; cv=none; d=google.com; s=arc-20160816; b=J3gKWTH7Wf9ghyVldYd4cnKLyj4eAGb+jjIdVNrFkh5okfwTrTUESMLISe9ArEX5/3 c7SQZPljhCsp3yl1WayxKid9r3CWal2OA7r5CkjyBPgRJ4OoYIowA3wiCcLvG5ATkGel 6QBWoR7WdIUg8Ma3GPRHX8Jhlo53Pg0n7cNlY8XIToDLSRDtaQihXTyP6Y+izKnKzs/C Z1ikjoPSDIqsaUxgBpR+317ekIOuvJ1k/o9lv/jbUBunlbmuEeO56AEkZhdaGCcyDp+v rjgnj2Q0dypB+Vphs0N1QOiHydQEXBTSYApdcdURJXP049TTD72HuOYyj6S4G7XQPLqP H+uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dyTtG2vgZyaK/yYkyek2fydMXgOO8tohWnUeVEqMtH8=; b=yodd8YNflstRjgILLFIxrAlbxxZRVkdyF/uFxnR3Ds522SVQLorPHUnufqzqQbLyg7 kZfY7Z4PGRejFexxnrPW2/NvlidIJqo3ChJMeP1r6FoXjPOf532GTOIQEqzTqT3nYYxN 4xxheJWOxKBG6wrRzDQAPRu+vm+MH3S6TRi2ZwCEi1VIp1iMEyvgU9YmpEDiuSJ1mPks H3Ki/5q1Z87AFSgK5iZPpzG603WIIoHBohdnwyy+r/z7cT7t7pyHV+NdYcyHp3LaRsY3 B5g1j1JhoFjhTbp+0C32MXSgxe/JGxipBlSu2uRc/g6QiVt7r+zC8gb6XTez/HTwuXIa ApTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jOgsvdFO; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a631642000000b003c604c0e2fcsi9549784pgw.633.2022.05.07.23.21.05; Sat, 07 May 2022 23:21:47 -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=@intel.com header.s=Intel header.b=jOgsvdFO; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388110AbiEFBpM (ORCPT + 99 others); Thu, 5 May 2022 21:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388005AbiEFBoa (ORCPT ); Thu, 5 May 2022 21:44:30 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131E75DBEC; Thu, 5 May 2022 18:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651801249; x=1683337249; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Y6AdNcL23AXH/PwccmO/lGBoL6djloRm+NY0sn6Dk+I=; b=jOgsvdFOLIODfxTXzMlTi7oi18OBWd7nGL/6tdSw/GvHxEG3eTxmgns+ OjLkbHRtxJU16Myy1d+t2/gCylqUfKufMC1TN88lJrsb73pjqO/FYHo1Q WMv8796DIVz+buuTEN58Ai43pYZbK1KtZ6AdsKth46EZCox7qu13rVEDB bZOjz1SAkxwVnm8C8DCw7Scn8Cre+lMsFIbvA4GNlvj+HdiJTEhr4Acmr DT9e0yw5JXjHyoP9uGqMFMTXH2hVmQJf4/6VD3hy5g8DNyD5re/3CAh0U SFDOeV45tDFek5AMkPVgaEfn6ddo27ZmTJOTFCC/m7ZpN4TiG/6XWwHVx A==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="267915785" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="267915785" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 18:40:48 -0700 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="537645062" Received: from agluck-desk3.sc.intel.com ([172.25.222.78]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 18:40:48 -0700 From: Tony Luck To: hdegoede@redhat.com, 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, 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: [PATCH v6 11/11] platform/x86/intel/ifs: add ABI documentation for IFS Date: Thu, 5 May 2022 18:40:35 -0700 Message-Id: <20220506014035.1173578-12-tony.luck@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220506014035.1173578-1-tony.luck@intel.com> References: <20220428153849.295779-1-tony.luck@intel.com> <20220506014035.1173578-1-tony.luck@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 From: Jithu Joseph Add the sysfs attributes in ABI/testing for In-Field Scan. Reviewed-by: Dan Williams Signed-off-by: Jithu Joseph Co-developed-by: Tony Luck Signed-off-by: Tony Luck Acked-by: Hans de Goede Reviewed-off-by: Greg Kroah-Hartman --- .../ABI/testing/sysfs-platform-intel-ifs | 39 +++++++++++++++++++ 1 file changed, 39 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..486d6d2ff8a0 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-platform-intel-ifs @@ -0,0 +1,39 @@ +What: /sys/devices/virtual/misc/intel_ifs_/run_test +Date: April 21 2022 +KernelVersion: 5.19 +Contact: "Jithu Joseph" +Description: Write to trigger IFS test for one online core. + Note that the test is per core. The cpu# can be + for any thread on the core. Running on one thread + completes the test for the core containing that thread. + Example: to test the core containing cpu5: echo 5 > + /sys/devices/platform/intel_ifs./run_test + +What: /sys/devices/virtual/misc/intel_ifs_/status +Date: April 21 2022 +KernelVersion: 5.19 +Contact: "Jithu Joseph" +Description: The status of the last test. It can be one of "pass", "fail" + or "untested". + +What: /sys/devices/virtual/misc/intel_ifs_/details +Date: April 21 2022 +KernelVersion: 5.19 +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/virtual/misc/intel_ifs_/image_version +Date: April 21 2022 +KernelVersion: 5.19 +Contact: "Jithu Joseph" +Description: Version (hexadecimal) of loaded IFS binary image. If no scan image + is loaded reports "none". + +What: /sys/devices/virtual/misc/intel_ifs_/reload +Date: April 21 2022 +KernelVersion: 5.19 +Contact: "Jithu Joseph" +Description: Write "1" (or "y" or "Y") to reload the IFS image from + /lib/firmware/intel/ifs/ff-mm-ss.scan. -- 2.35.1