Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4729362iob; Sun, 8 May 2022 23:31:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy73V5MGM5xNyKTta8LWHAHBC/mCVIEFjp7AXNj1vf1ECqh3VzWC5kRp37rjoxCHLDmjJWy X-Received: by 2002:a17:90b:1b01:b0:1dc:46ed:90de with SMTP id nu1-20020a17090b1b0100b001dc46ed90demr25159807pjb.107.1652077860081; Sun, 08 May 2022 23:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652077860; cv=none; d=google.com; s=arc-20160816; b=nO+eRanCMq7FYnLeBpDlwEaPiNIhRi/4976bj61pwYQIQ5xCx6AtGHQ8KDiMLG6fD9 DXWkhjtwVwg8LaZex39RbO/fh7UhMvvJUFUbC0U6vtp+8byPki32iVe6zw5uixdiWVPv iU7+dVzeT4GiTwtzaI8LnKpCBKVUdujnKrDmojL1NWVE356ndOXfwY5z0jgRG9+tpfoZ H8pRBjXHBjqU2OasuBaqS+97Tug7YCsB98rbILT2RdXM2LnA3sW63lKCf7vp0MW8DXiI Ap1A1vihcMS7YsHqADQUW6kClW6Yj0zJhfg1nO9yNeBJKIq9pm8PBfRC7R+FjcnSTASK Cfhw== 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=fCcxaOvcPgfqZ7X5WaRUp99HcbRjqfvz7BykkRc8WLPawSulbkPelr+3DLuHHtKWxQ A/fJLS4lEx8qb9yzyeSQhKtIi3ET4r92Dabb5xuz+ZMpIXM3p7XsdMp8PNIcuEFuKRxe vUAILak8ZZVGh6JIwcgSofvrhU34/0L0chgdPj6ILAgSFffLkfWukWkR9GIVazjkhwlP CycNDLJlWhQx4Bl1veLKGwxQQ6wXYMCMRG4/uF8mGZ1ysUYh8goVMf3aL8nFqLXvBXvc P7vTRjo9m2y+y87U9tvpGd8lgN7C5uMhQ6CNZTJmJHYWhmxNmbNOU8QG35W5ksBWoit4 g6Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d3p+pljm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v63-20020a638942000000b003c606c79e4csi12538287pgd.522.2022.05.08.23.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:31:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d3p+pljm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51BA411923F; Sun, 8 May 2022 23:26:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1445119AbiEFW7I (ORCPT + 99 others); Fri, 6 May 2022 18:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444833AbiEFW6J (ORCPT ); Fri, 6 May 2022 18:58:09 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 876FB6D384; Fri, 6 May 2022 15:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651877662; x=1683413662; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Y6AdNcL23AXH/PwccmO/lGBoL6djloRm+NY0sn6Dk+I=; b=d3p+pljmgabS3M4D9wAHh1Dz1nvuPZkOt/zqgq7to0SdT1yJgXp4Hn9D bnOa9gGtcF9qhCTLD9rMmYMo3+NJjNVCOrKmum3Rj2T2TXFDqsPF15Ic/ T2OXOtNPXzq0HWvFvijKnv559b0s1YEqB73Z+2jVctoTYIEyX0hAyLIpn jSbKlCIFEvq68wmBQry+5gDzVBHLKAaaF1kseU25/u/IpY27peiWETwMm gGP3yVhCS4t9xLEye93Fe4rIr+jLGFop6HsBFhQMwb3Pfq4Z3luFyERkC Mimgmjv/O1VArCZ1yluxaY9bUpBW+zeaWDffxoKxlHSG/Ty3bnYWV2we1 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10339"; a="256080809" X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="256080809" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 15:54:21 -0700 X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="695383650" Received: from agluck-desk3.sc.intel.com ([172.25.222.78]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 15:54:21 -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 v7 11/12] platform/x86/intel/ifs: add ABI documentation for IFS Date: Fri, 6 May 2022 15:54:09 -0700 Message-Id: <20220506225410.1652287-12-tony.luck@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220506225410.1652287-1-tony.luck@intel.com> References: <20220506014035.1173578-1-tony.luck@intel.com> <20220506225410.1652287-1-tony.luck@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 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 autolearn=unavailable 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