Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp296935pxm; Wed, 2 Mar 2022 15:44:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPoX/+4y2txDoWHZOzK3lmqHJk3SpUm5Ne3ayB+OxNeCIqST0am57PSOGpiF80xdCszNg7 X-Received: by 2002:a17:90a:5995:b0:1bc:be7f:f5a1 with SMTP id l21-20020a17090a599500b001bcbe7ff5a1mr2379143pji.84.1646264680122; Wed, 02 Mar 2022 15:44:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646264680; cv=none; d=google.com; s=arc-20160816; b=Z1uGqpkByJq6gCi4SD7qIK4Vtwu5uwlwjpMzzICxXpDRLPltlnAlWCaANd7M2mUysG hqRtR7tmDKRIP7PcyUgtJnishaVdSxPQZjjH1g/i5vQNjY11ZP9jUuSRAEkW1TPiHlN0 cKnoFuIDzhDGGg2FcxfaB02+RZojVojqQGukOXFrz3Zmc49PnjeJiHMHZTvI/dyDsGon pjmkExdnV1+zhvk/9qzcvnZXVjAQPNHZkfP42tH8+s+OUQaWt/f1Pb/n8F/YpBbfyNl+ 0xK3uVokaz2276j+fogTzdc+mk5Rt0UguqJ8EyoAXi5FcQGIAx8ydTTR46TC2y9QKiIU B2pA== 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=iHyTyYMc863hFIvI+yj9dlRrseYl4YM6YtmrN7anA5A=; b=Xk9QVGttQ+O3weV/xXdKx2jZWb5S2kMBahSLt12dSonePcLaHwN9h6iPqyJafopWcx mBULfpyX4SvzfFyqjBbYcRrOiHZDyain3xlduf8kJ+eExiKOjBljriRgOpJcpPSz2DWe sbkU2xsfKq0S6tETrbdX4yAJuwkWGEHj/yVBL0OSiFASHegCfkuUMCXI0iwjNcSyrLow MXurnCQZc6Xg+3pwcFK8DPSen+ah5R122V4Z9FBwPRk83aOph8qHl1APGJNOXM04xfJW cAFBWot667vN6/teV4xVOVnMUZKKL2WZuBiMXvXHm1tobM9sEwUF+KmdzVbO+JC9Yeg8 ZSPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZQan8mUy; 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 g2-20020a056a001a0200b004df34dcd42asi531880pfv.141.2022.03.02.15.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:44:40 -0800 (PST) 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=ZQan8mUy; 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 3552E532DC; Wed, 2 Mar 2022 15:09:32 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243366AbiCBUaa (ORCPT + 99 others); Wed, 2 Mar 2022 15:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239422AbiCBUa3 (ORCPT ); Wed, 2 Mar 2022 15:30:29 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 696D4CA70C; Wed, 2 Mar 2022 12:29:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646252985; x=1677788985; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sDxMd+01s5O5G8NWb6aH17UKo9j/qfU5AprOjkIrVzQ=; b=ZQan8mUyTgCJ3I5sLvBsco/jUqTCkgmqylhdM3f8MPeGw66lFdOPtbJJ Da+bLWh4IRFFzanb0birS07FRtCMgMri/iC13D7wxhlIruFmvNqe8jPK+ OFubx9fMj9XO34/IYDWsTf28dqa8fZ7ZAbDPZ4DnYHWO+IDx4S3n9oW19 8dzVm4AnRFmuDFbZjnsGUPn9JgaS8ojp9fj39NuCyPW9Y7wWZdjKwFizW mIdinuKznCfCU5SbQgqxctmsBj21iVyceGrEZkkEzZe9ztpIaf1U6GO+S yaVMWj7dMsh2kK/5X7W/rccInITAdnIFvF+Z1Y6pEf1//5Joxfk2OjDR+ w==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="278175803" X-IronPort-AV: E=Sophos;i="5.90,150,1643702400"; d="scan'208";a="278175803" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 12:29:45 -0800 X-IronPort-AV: E=Sophos;i="5.90,150,1643702400"; d="scan'208";a="630534019" Received: from agluck-desk3.sc.intel.com ([172.25.222.60]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 12:29:44 -0800 Date: Wed, 2 Mar 2022 12:29:43 -0800 From: "Luck, Tony" To: Andy Lutomirski Cc: Jithu Joseph , hdegoede@redhat.com, markgross@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , the arch/x86 maintainers , "H. Peter Anvin" , Jonathan Corbet , Greg Kroah-Hartman , Andy Shevchenko , Raj Ashok , Steven Rostedt , Linux Kernel Mailing List , linux-doc@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, "Shankar, Ravi V" Subject: Re: [RFC 00/10] Introduce In Field Scan driver Message-ID: References: <20220301195457.21152-1-jithu.joseph@intel.com> <1b793ead-a47c-4719-b7b5-cba7d49633f2@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b793ead-a47c-4719-b7b5-cba7d49633f2@www.fastmail.com> X-Spam-Status: No, score=-2.4 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 On Wed, Mar 02, 2022 at 05:59:59AM -0800, Andy Lutomirski wrote: > > /sys/devices/system/cpu/ifs/reload > > Writing "1" to this file will reload the tests from > > /lib/firmware/intel/ifs/{ff-mm-ss}.scan > > IMO this interface is wrong. /lib/firmware is for firmware (or > ucode, etc) files that should be provided by a distribution and loaded, > as needed, by a driver so the hardware can function. This is not at > all what IFS does. For IFS, an administrator wants to run a specific > test, and the test blob is part of the instruction to run the test. > The distribution should not be involved, and this should work even on > systems where /lib/firmware is immutable. "so the hardware can function" Data center customers want to know which aging systems in their data centers are not functioning correctly. So this is not just a random test that people might run when they suspect they have a problem. It is expected that every core will run this test periodically (period dependent on paranoia level of the system owner ... maybe daily ... perhaps even more often). This is so that the data centre can function. > > So either the blob should be written to a file in sysfs or it should > be supplied by write or ioctl to a device node. I don't see the drive to create a new mechanism for the kernel to load from a file when the firmware loader already exists. If the problem is just immuatbility of /lib ... then make an immutable symlink from /lib/firmware/intel/ifs to some other place in the file system (which is what some OS vendors already do for microcode). -Tony