Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5162066rwb; Sun, 13 Nov 2022 23:23:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4cJZQLmlIoJNsLeDKGZbAmUHyHtXGiHJagMDazG/BSZkSeW3jPfl7YpBhHSrbavCvPP/Sq X-Received: by 2002:a17:902:7b88:b0:178:32b9:6f4f with SMTP id w8-20020a1709027b8800b0017832b96f4fmr12560811pll.94.1668410635199; Sun, 13 Nov 2022 23:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668410635; cv=none; d=google.com; s=arc-20160816; b=gHjTGguNE6Cl0UWNMBRCNcK0/Pv1WJUkoZGWTDuoXqXX0452L3P48kq6hpmv740rxV /HDaK+8O5gn+JyonmLe+ml/adSTO6Pg2VCbFPsjEl09Dcl4wpGj4g5oEMYC5kQAbbQyN D4rdYUF5Pr3W7RbHTd3Tyg77oF/H/xoFDV5UCmJKcM8joILTv3GWRJ2kWIMOPPATUSTX RFSTnLIzcatJS5WCQP99O6bbvAVaw0abRVHBiR4wATMHGclbKLDXBfaKdNc9Q4mXmi1y KkCEUkbZtbIuzychxkhvMZGGiBKlKDE2S+0gyI89g+mstGFIWniO4Sk7p9RqjTQvmx4E 1hAw== 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=TB95fuj4uhmvsTzF5KzzgD9dtd9irQkez8amGgl1D5U=; b=injDtvMgUkIc5VJkx1tpGsU6dab9lmQWketdXu/u0KwkbCvAcYAOgerWjuqKvegVMs 1qy8JZAoK5e72EhlAcvtt7hg9h2qaJNmk6TMWFwXx53dyc9UHKdvZ6DTEeGvmOQAfPTQ m7jnn63taMfbbsuM/JYHKbKDeBP6TrnadJ1+lFUbLiQmCQ38CWxF5WcE3SgWlXxka7JP yTtaQ7QAqnuI9qiwrfSQmEhH8VU+8P+QxF7D4Pxz9lNCoWrHYPIS+FYYXLYO3S9rUOsu Ls9uaGCn+23Z5L2anmWmFt1E7fQltizH5kh/oWwahAVaue37PHZGLernfJOsCbI8b6y7 X/vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mTLTwTou; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a631609000000b0046fef65f738si8792779pgl.793.2022.11.13.23.23.42; Sun, 13 Nov 2022 23:23:55 -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=@linuxfoundation.org header.s=korg header.b=mTLTwTou; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235919AbiKNHQE (ORCPT + 88 others); Mon, 14 Nov 2022 02:16:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235493AbiKNHQD (ORCPT ); Mon, 14 Nov 2022 02:16:03 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 940FEDE9E; Sun, 13 Nov 2022 23:16:02 -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 252FA60DE4; Mon, 14 Nov 2022 07:16:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0292BC433C1; Mon, 14 Nov 2022 07:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668410161; bh=QZ2hDN7ENnP9xgo+76D84xuEYJANb+AhzKCDG45trzc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mTLTwTou6gugHVLBfC5kKM/9XlWijH3RpGVEbYyOow99SXMMh9K3DeJa/JNLR/8T3 cvvCuWUoRzz/ACbIYI1HsoNKcxa0DFHjk4almwRjVnbhJ0WtFtkE0+xrOuZtsEJo9w bG6yp73fWu/4Bx+XuQoYoUf+DbeW5xUzNC/S7EzQ= Date: Mon, 14 Nov 2022 08:15:58 +0100 From: "gregkh@linuxfoundation.org" To: Borislav Petkov Cc: Thiago Macieira , "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" , "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: <20221021203413.1220137-1-jithu.joseph@intel.com> <20221107225323.2733518-1-jithu.joseph@intel.com> <20221107225323.2733518-13-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 12:48:40PM +0100, Borislav Petkov wrote: > Replying to both with one mail because it still feels like there's a > misunderstanding. > > On Sun, Nov 13, 2022 at 08:37:32AM +0100, gregkh@linuxfoundation.org wrote: > > No, please do not force the driver to resolve a filename path in the > > kernel. > > No, I don't mean to do any filename path resolving - all I suggest is to > echo into sysfs the full filename instead of the number. I.e., this: > > for i in $(ls /lib/firmware/intel/ifs_0/*.scan); > do > echo $i /sys/devices/virtual/misc/intel_ifs_0/current_batch > done Sorry, yes, that is fine, I was objecting to the previous "write any path/file to the sysfs entry and the kernel will parse it" that was happening in the original series. A filename, without a path, that always loads from the existing in-kernel firmware path locations is fine. thanks, greg k-h