Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4809043rwb; Sun, 13 Nov 2022 14:26:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PyYR3so8fJdpr1OyoRd8CzQ6CMYR0eaKqx8rM+tQ1abcz0giP6BCyC2hcqUHlvWlma6B5 X-Received: by 2002:a17:902:ebc2:b0:176:a880:6d72 with SMTP id p2-20020a170902ebc200b00176a8806d72mr11165980plg.127.1668378404180; Sun, 13 Nov 2022 14:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668378404; cv=none; d=google.com; s=arc-20160816; b=Mvx8XjmstpAO3TfLV37AIxQ/DxBUDTQnEoBocGgSids+9HZTqCikFEGDb4rNoDsgg2 +XyBOsT0pJRZYeNba0dfh9iM29TSA4ZanFSBgnIlmcDY1W83ZH05Cud/cgPj5Ey27PC5 Mw5vmg7f4UoFVHFQfDLYR4+VvUqMORUJdz5MK3OV1jAbppidb1nR/t+mf0Y2e0J+M1Th GT2VBlHo8Mor9KEc7n2jHiOKiEg1RSd3MRmr7j9mgUlMXEmOpgTDv7IWFUSckOehhjoT Ag1LfP/Kdj2PXGhlJuDP01Qf9i2qJzprHR3EyE98oeIm/NQfuzIq+a6DjaVoU4s8g52e B5/Q== 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:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=PqRDgUI98Rv4MOU3DNvaws5hWzFI7QA2SakpfzAFbHw=; b=Bqn1hrn463wmp1ClpPPE7jgBJBAxqmaLA++yd24B7MIN31q1RkxgWCePK3gl4G5eSt 9FyOgW7ZPjZT9/Bf/+1gGIbHPU8vAiqldF+JYJ6YPmYP+h0UKPzW0kZzoZp6OkbLqXmz 6ngYLTrvdcdOJCESq3yAWWbK/AE7hy5t2g+ouw3AhAhX0FBhLNuPRFGbRgEf4MHRvzSd WJPeVp/UudVcEmUF//e+vglLlFZJvM4s+dgxV4oDcIwuR78Aort5bN9QLdQUF8iYOiAu mjL/7DzBw8NSKlTTehVEb+5wRCmLnEN04mD9Nrqe9VhErs6iAEcwvxM6pljNWELgpi+m 818Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JE6MOspZ; 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 ja12-20020a170902efcc00b00186f2ef80bbsi7518147plb.308.2022.11.13.14.26.32; Sun, 13 Nov 2022 14:26:44 -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=@intel.com header.s=Intel header.b=JE6MOspZ; 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 S235430AbiKMVlC (ORCPT + 89 others); Sun, 13 Nov 2022 16:41:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbiKMVk7 (ORCPT ); Sun, 13 Nov 2022 16:40:59 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB35510B7B; Sun, 13 Nov 2022 13:40:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668375658; x=1699911658; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bNlNZseaZnMODtk6Zs2b51a6AGQxczkjf9fhjdYuBHg=; b=JE6MOspZT43ya54e8BoQv18oqslVa4+6JArS2ttoFtmOBZRZ5z3Wahk6 d1quU2UdGCosPVVh3arsfPkreuvVm0AuOLq8EVEgVaNWgp+qSUHp8z3Ta bLC7Kc+VM0ki+8RjbzBm/CIiIjiD9g3WIvIRfpfem4KKuLuBPwv8gJJGg jVzRsylqIn8Cume0+dzglWClDtFmNx58F8RAkoFtUtjKKGUgzhg3TMig3 pgdPoq7OtWDhsXUbDiayoNtvf4ntIGbVCGp2rwstWzNZ9g2jJu6ApcDOf 9kEDuvpO2dCNnkfp2pBohfaihQNuTstldQQ2tD8w/nmtRLiueCPZOkAwo g==; X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="292242024" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="292242024" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2022 13:40:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="780701274" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="780701274" Received: from perwin-mobl.amr.corp.intel.com (HELO tjmaciei-mobl5.localnet) ([10.212.163.208]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2022 13:40:57 -0800 From: Thiago Macieira To: Ashok Raj , Borislav Petkov Cc: "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 Date: Sun, 13 Nov 2022 13:40:56 -0800 Message-ID: <1745359.VLH7GnMWUR@tjmaciei-mobl5> Organization: Intel Corporation In-Reply-To: References: <20221021203413.1220137-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 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. -- Thiago Macieira - thiago.macieira (AT) intel.com Cloud Software Architect - Intel DCAI Cloud Engineering