Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp249931pxm; Wed, 2 Mar 2022 14:34:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMXKdFIl1Q8KrerD1hdwywv97mVCueoLONKvY4UIT6MO6C0mx1fqmrnN74BOQhL/TN5ae8 X-Received: by 2002:a17:902:ecca:b0:151:92a1:ce5 with SMTP id a10-20020a170902ecca00b0015192a10ce5mr6786817plh.79.1646260493100; Wed, 02 Mar 2022 14:34:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646260493; cv=none; d=google.com; s=arc-20160816; b=R+9nBV97RzEW73Sy/UdJQX4kfpuMwDwFynSKExjRwnLThhHNBkKaUsaK4BFvfdxM2i Ue0K9gDXpzNsANm1koEJyePK6DLTi+SwYMuxRIWs6MrnHuKCD/otF+b+V5y7LcEzg8AL tt8eYhL/6tgbZNjYEGSVoj7lEmRkdK+NhXbuRfXsZfQOcE0HZoO0IrPlbseW/a/SiujU aeN5PmCHaq7zocPigyPAwn+DbRYQ5ojbXjBWrTEsu/OM8Edl0G6adUZRwWkbLB/oYncQ bKf3Wf6gR25X5DzLws9xQs9KXHNpxE3V6W/Wgj6vP+BMAhU0oUntmMp0SlCsHk1SJBEf g/6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature; bh=esr7nyjHkso4gLnMZOjg5Kr0/tEu5vSI4aIsWV5zOgk=; b=bOiOWNTV3tfRL6utbGPK1plcZdH0ogZm/L3o4b1dEYIzhQXJRGKHMYcP7sgUEfIaQd A6PnepWYN719r1GYugKKOd7iPw1qjKAcFWr2KGEaLQSkTXmdOyOp+Hls13NipSOYtrvr thebsBlUPBi1X94K29HASGAfXI8JNZZxjP5Ihw0eCDrL43Atn8uBL4CqdiKH9FPYrGf8 fREKeTMU3XJAV/QkGv5DWKCQTncglPluZlWavBHzbCDx5bl0JPJPj+YFC+5MeeYdysah HyKC5gVNcJ+AyOPH4vJLN0a9dDrKgrJM4T3QNgOdDczAqueanN92JU31zj5JR4OCHpAI OqLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SseMZuIi; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a15-20020a63e40f000000b00373ac53c72bsi264774pgi.801.2022.03.02.14.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 14:34:53 -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=@kernel.org header.s=k20201202 header.b=SseMZuIi; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BFAD470F53; Wed, 2 Mar 2022 14:32:25 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245000AbiCBVTs (ORCPT + 99 others); Wed, 2 Mar 2022 16:19:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244789AbiCBVTq (ORCPT ); Wed, 2 Mar 2022 16:19:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B20747071; Wed, 2 Mar 2022 13:19:03 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id DE29C61987; Wed, 2 Mar 2022 21:19:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2756EC004E1; Wed, 2 Mar 2022 21:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646255942; bh=QWYFjNcvQTfY+YtFSmf2UYt24f74I0kgvcEW3PVNDe4=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=SseMZuIiTPsEeEDa3QNFuu2ZOTjdw0dANmwff1gUa6ZxUv1Phonwc4xJ0rSPa8lwV LcVc+sYZJmXZ5nwiLavTRtzdagq2DpIrdaNAQKPSbtJ3elKd5GZq60spHeByKeFcpl 6PezJIStDXAri37/cAr6sqALiUQk4rcn4ilMnhJzS7bR/6J3M8PWUVu8Zo8pZK4+YF NlQ91kGACn4vmspgq4AP7ZpCoP8IRpaFMtkAKYAJT4nsgHKmmMX+RBP4UgpOunL9+C tGlFwKA18DW8l4JV+X8Pjjizyk2pEfZUdxCVcdajejdBPWs998JT4GxhCzshTC3Z+k GTxkJtRnslO8w== Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id D3B2D27C0054; Wed, 2 Mar 2022 16:18:59 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute5.internal (MEProxy); Wed, 02 Mar 2022 16:18:59 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddtgedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehn ugihucfnuhhtohhmihhrshhkihdfuceolhhuthhosehkvghrnhgvlhdrohhrgheqnecugg ftrfgrthhtvghrnheptdfhheettddvtedvtedugfeuuefhtddugedvleevleefvdetleff gfefvdekgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheprghnugihodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduudeiudek heeifedvqddvieefudeiiedtkedqlhhuthhopeepkhgvrhhnvghlrdhorhhgsehlihhnuh igrdhluhhtohdruhhs X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0232121E006E; Wed, 2 Mar 2022 16:18:58 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4778-g14fba9972e-fm-20220217.001-g14fba997 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20220301195457.21152-1-jithu.joseph@intel.com> <1b793ead-a47c-4719-b7b5-cba7d49633f2@www.fastmail.com> Date: Wed, 02 Mar 2022 13:18:37 -0800 From: "Andy Lutomirski" To: "Tony Luck" 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 Content-Type: text/plain X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 2, 2022, at 12:29 PM, Luck, Tony wrote: > 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. > How does this work? Is there an Intel IFS blob v1.17 that is expected to be *the* blob for a given CPU until an update happens? Or is the expectation that several different blobs might all useful on the same system and operators might want to run different blobs under different circumstances? >> >> 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