Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4830845rwb; Sun, 13 Nov 2022 15:02:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6sSdleni6UT07IUBilGXheK87TLqMhwqlq04TcB/tc38XQFunqfT1mr52+3CNR8olg8VZO X-Received: by 2002:a17:907:1256:b0:78d:8533:be13 with SMTP id wc22-20020a170907125600b0078d8533be13mr8342861ejb.716.1668380573016; Sun, 13 Nov 2022 15:02:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668380573; cv=none; d=google.com; s=arc-20160816; b=QyQZ7KFOAohiZAsD9E5Jop5RoXqFPdkXmjtGyzlJD3UWQ8t3MKAaTUTMCGy2rDvuYa kTgnTtGCN3TeHvTlVc0909NpTytRwCAMrfEdU3stLdkZ9FXYJEiIKYH2bV0GLJ/yMhQ0 JNCjtLbrI3UT/f5nAsASHNyb8vMkVctCrqIe53CTrlzy7P4Kp1ng5VpK5HfubbH0C7pP O20ZV+Oy6aW3l65/CI+EeWz9D+DMHBQN1bwhVOfBxlh16IYro5yaC3lu0XCJhcSWib35 0cEEcNTooUniSkusVklUUsQARWldyJktJMNa3356IHb9ml+lWGvK/0cJ/3Xtzx3PQoxb o37g== 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=Oas9F0wtXybTRTTzPZachjZwGtcIAX+ns8IXE6OPciY=; b=hKa6y4SezBNRnd9eZxmS1iTxcYX2cFWKHG1QT/wcjcrtx1ChNPGXLhBmtYtar1XNWE OppZxWhVSqH+8HywL3JRij8NqJxtB+FJh01E8g6pRYwMbXKyA4bLTDjr6WihLc882APn 5rYUTa0fR5DK/GjuKrwB65m/HQCstKWkCzJMYPQONbDCXBjnShOy0PSLY2Zu3mxdcv8B aT2addrKvN8rjdyPfmQqMDPDSvRRWbDposyYMgNSNn3Raa7sVP+RyFogslL4nNmmoU+0 NAHtiisVze/2LoC53wZ4VvBGKub0bIVxshhP1J9Iz5o9reADpQkcHYigzGvqxMPO86s5 B/BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=j9IPFGYK; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb26-20020a170907961a00b007ae61d89b28si7143259ejc.977.2022.11.13.15.02.31; Sun, 13 Nov 2022 15:02:52 -0800 (PST) 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=@alien8.de header.s=dkim header.b=j9IPFGYK; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235440AbiKMW72 (ORCPT + 90 others); Sun, 13 Nov 2022 17:59:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235416AbiKMW71 (ORCPT ); Sun, 13 Nov 2022 17:59:27 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87353DED3; Sun, 13 Nov 2022 14:59:25 -0800 (PST) Received: from zn.tnic (p200300ea9733e773329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e773:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1AC381EC02DD; Sun, 13 Nov 2022 23:59:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1668380364; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Oas9F0wtXybTRTTzPZachjZwGtcIAX+ns8IXE6OPciY=; b=j9IPFGYKPrOyhh97vec2lylSkfCbCmfRNuL+mZhywfUIVkPh/DZRIxTGzZYXY8p1SknfRt oihJkFMwTq/fBy/1DSV//OFCuCKgb0pxQQEf0Ds3lsdwOFWNkZK4yVV+RcAeMlcRZuqUYg EDpt1udJMTXwX0ZV7bBYmjzUN+kvIZg= Date: Sun, 13 Nov 2022 23:59:23 +0100 From: Borislav Petkov To: Thiago Macieira Cc: Ashok Raj , "gregkh@linuxfoundation.org" , "Luck, Tony" , "Joseph, Jithu" , "hdegoede@redhat.com" , "markgross@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "linux-kernel@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "patches@lists.linux.dev" , "Shankar, Ravi V" , "Jimenez Gonzalez, Athenas" , "Mehta, Sohil" Subject: Re: [PATCH v2 12/14] platform/x86/intel/ifs: Add current_batch sysfs entry Message-ID: References: <20221021203413.1220137-1-jithu.joseph@intel.com> <1745359.VLH7GnMWUR@tjmaciei-mobl5> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1745359.VLH7GnMWUR@tjmaciei-mobl5> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 On Sun, Nov 13, 2022 at 01:40:56PM -0800, Thiago Macieira wrote: > On Sunday, 13 November 2022 07:58:52 PST Borislav Petkov wrote: > > * simply try *all* files in a directory > > By the way, we don't want that. > > It's possible that different steppings of the same generation will have the > same test scan files, with the extended signature informing that they are valid > for this stepping too (see find_matching_signature())), because these files are > going to be pretty big, in the order of a hundred MB each. That means we will > either see symlinked or hardlinked files in the directory. > > If you blindly try them all, you're going to spend twice or three times as > long as necessary to complete the scan. With the timeout in question for at > least Sapphire Rapids, we're talking about a difference measured in hours. You either have files which are valid and which will get run on the CPU or those which will fail the header check. The header check happens in msecs. So I have no clue what "hours" you're talking about here. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette