Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4827898rwb; Sun, 13 Nov 2022 14:59:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6BapRITuZ3ehOgpGyiXSwVIvvA2tr3axdEh38hsMD2zuIrCuUTBIuknEpD8RUorH0z1eTC X-Received: by 2002:a17:906:5453:b0:7ad:9ada:a830 with SMTP id d19-20020a170906545300b007ad9adaa830mr8326084ejp.693.1668380381632; Sun, 13 Nov 2022 14:59:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668380381; cv=none; d=google.com; s=arc-20160816; b=px4VE1vbFfXcfbWRI1pzq8N7HaDTod+MmfFh89NF/gpWo8bdKX5JHRV2WS3+3h45Gn OmrGiCwWqyF1U+ekVVWZWxIIFss7vU8wKPWOiXnw3JLkwXbs11jUE/Z28wQ3eZl0KzDn NUn78X4AhrMvd7U4rW4tFP7Vz8kQonhvI70+oSn3kS1HWo29ZlQX9aqXgBYuFQrK6d+i P2tDskpdYLyu7a7CcSD6zpiEPoSNhBaJnQ2EFDQF+6SXYmLcYbkpL672S5FSw65ylTdW g78tc6Yk9nDIL8/RAaExddUQ8ZCj4rxpKHbCzWf+ptSgMMu5Pi4oNMedTD7KXs7ink9A +qPA== 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=omkKJP3QRSJ1TQMFymyT/Q913sb0v8rXOPsXoq9txnY=; b=o/pD3FXkN7VlvM3ZxJ1Xcm66YnA/xv5vYL7zS9ZB59FZrQvXV1wHATSSA1oR7G76SJ DkD2SeC5MsEwzrWs1vQ6Zg9kei6YCee8qj4q6j3iTIL5xzN8oLnu1aRmrn+43lJQvSs9 Hsey+IGJUKisRHVsicyNznnT7NZIt1bAENvcLlxiHMIW6IyeA1v/DzFTwnsksieCjPNt +ybNFFQpWoWs48JVSSde7O8K55Lso+pZLZN8rUwDWV4HT0XocGJF4gr5CnDvdn5D7Ywo nAaYwZorB2En1bPqQkiry0qne/yLFfM+Sdrr/JbxpTB6I0iN7Rv/NObgCPhRUYnW1A+a 4N4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=o7voXxnp; 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 n9-20020aa7c449000000b0045782fcb80asi6653174edr.225.2022.11.13.14.59.16; Sun, 13 Nov 2022 14:59:41 -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=o7voXxnp; 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 S235376AbiKMW4E (ORCPT + 91 others); Sun, 13 Nov 2022 17:56:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235416AbiKMW4B (ORCPT ); Sun, 13 Nov 2022 17:56:01 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE55E10040; Sun, 13 Nov 2022 14:55:57 -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 4E0691EC02DD; Sun, 13 Nov 2022 23:55:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1668380156; 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=omkKJP3QRSJ1TQMFymyT/Q913sb0v8rXOPsXoq9txnY=; b=o7voXxnp8sns/BkqtUykHJvs6FoBv16oER5WblDLI0Cja/mXKdsws6uEMTDyF1jEffs7NP on7UlHI08l0QKFaWuuDc7Fwaldm9cjmPH9g2owbwmGF80jnAKUboUXg8QNNVO4JwakpCqJ ItEZFOq+n35qnw3k9CJehTbMUsU7VsI= Date: Sun, 13 Nov 2022 23:55:52 +0100 From: Borislav Petkov To: Tony Luck Cc: "Joseph, Jithu" , "gregkh@linuxfoundation.org" , Thiago Macieira , "hdegoede@redhat.com" , "markgross@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "Raj, Ashok" , "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: <20221107225323.2733518-13-jithu.joseph@intel.com> <5e65889d-d68c-b29d-6cea-7b4ce4c87b4a@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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:33:50PM -0800, Tony Luck wrote: > IMHO option 1 is following the microcode precedent of having the kernel > construct the filename based on the {x86,model,stepping} fields of > struct cpuinfo_x86. You can't follow the microcode precedent if you have more than one file. > I think option 2 isn't really doing the user any favors. Having them > feed all the *.scan files they find in /lib/firmware/intel/ifs_0 to the > driver to see which ones work becomes progressively worse in every CPU > generation. Any script/app running tests is likely to do the ff-mm-ss > filter itself ... so why have the kernel do it too? So you think that feeding a sequence number is more intuitive? I guess I've given all my arguments here but you folks don't see things this way. I guess time will show whether the sequence number thing was a good idea. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette