Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2478425imw; Sun, 10 Jul 2022 07:20:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sixqKko2G1B7VZF/VKCLLkfAmCrwDen+f+nNHASYC3uMCs3FWQkCv4AKIb5aTU4s7BMGU0 X-Received: by 2002:aa7:d053:0:b0:43a:a164:2c3 with SMTP id n19-20020aa7d053000000b0043aa16402c3mr18591388edo.333.1657462811923; Sun, 10 Jul 2022 07:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657462811; cv=none; d=google.com; s=arc-20160816; b=RPo/bftcZY/sOc9lzEj97feOP6W6HzPSdG9YBIQ1Pcux9EJQqiKBT+FfpXxFZn/VCA vdV4S//fNr3nCneYnhtIrh0BtU1W34YgRCWTij6HkqAtZEHnB1aPj6SkN8CExpyMJndJ bY8IPg/7tG2xRANkVCOeenpKRb0BjiSZ2nrn19sq36haeJQjfgToCnW7LgV68HR/3DzQ 0+p4NbpFvd2BlNuqsE9pWtJedZSDPkGyi0acCJBJqNdgqcdupUrjgesf8gDG+3pPmnfH YC2n9hv7MKyU0eeKAZvtfyVMjV7RAc3/Su+laCn32h/aGpJWF4N0AlMDaRayPAPAKaw/ 28Fw== 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=A+rT/8kdUoSQ8Qd75pSOHfASjIxqqt9eH34jepwhGaQ=; b=Yi7KGLKARhQGxyJRCmK507QbjCM5dxkRBSRmiP7l3F4KN+0Os/mU249yZqCK94D4tF xbQ+qpkUz3ERmO9gzSFEyRMkOPTtb91DuNYkKSnJa8IvRIF1/Gcw/Llm6AH1etaaFx+D TKIPxPotOX4O9gzWFELARrajqTdcOTSn8i+03KtPxr9chEZpxY2FAkAZijhcJyqDeKvA Goxr48Q+tTobgCD2NX8mRiYKppcTA3GKoyVkLOioUrOzAhlJgrmQ61erslJz6gLrNMP1 wkNcXDJBPBlsuHVVN4wCCHEvIeAh+rp9Nnpu7XGB4Ow1SQJ+hW5qvUQrV6f1/BJpS14/ 4cXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GDTOsDkX; 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 hv11-20020a17090760cb00b0072b4a91908esi2548762ejc.895.2022.07.10.07.19.46; Sun, 10 Jul 2022 07:20:11 -0700 (PDT) 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=GDTOsDkX; 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 S229555AbiGJNxN (ORCPT + 99 others); Sun, 10 Jul 2022 09:53:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiGJNxM (ORCPT ); Sun, 10 Jul 2022 09:53:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 753C5F59D; Sun, 10 Jul 2022 06:53:11 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 235B4B80735; Sun, 10 Jul 2022 13:53:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52D1CC3411E; Sun, 10 Jul 2022 13:53:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657461188; bh=PTw+RnXwrTCyBiYmCB0Lrol7Ph4hHRo6fH1IYIWT+Es=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GDTOsDkXr3wNMxb90qTqtte05+MulkjxKouOGNSYRwL1KWYiuaCMIDohrIUk3zd76 5BCOu+ivKFXHb9Tqb+T8k/BElo5IUHyezzu85SABPDLJcQKpZ+MWok2bCWQRAT8zJP l9seygoCOK3yu4ih0G/PX+pOP7jspz26puT7Ak24= Date: Sun, 10 Jul 2022 15:53:05 +0200 From: Greg KH To: Hans de Goede Cc: "Joseph, Jithu" , markgross@kernel.org, ashok.raj@intel.com, tony.luck@intel.com, ravi.v.shankar@intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH] platform/x86/intel/ifs: Allow non-default names for IFS image Message-ID: References: <20220708151938.986530-1-jithu.joseph@intel.com> <33a6193e-1084-ae5f-1f80-232274f71bd0@intel.com> <79eae42f-50ca-c23c-9fd0-8c356b2d3783@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79eae42f-50ca-c23c-9fd0-8c356b2d3783@redhat.com> X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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, Jul 10, 2022 at 03:42:29PM +0200, Hans de Goede wrote: > Hi, > > On 7/10/22 12:15, Greg KH wrote: > > On Fri, Jul 08, 2022 at 11:34:40AM -0700, Joseph, Jithu wrote: > >> > >> > >> On 7/8/2022 8:28 AM, Greg KH wrote: > >>> On Fri, Jul 08, 2022 at 08:19:38AM -0700, Jithu Joseph wrote: > >>>> Existing implementation limits IFS image to be loaded only from > >>>> a default file-name (ff-mm-ss.scan). > >>>> > >> > >>> > >>> Ick, but now what namespace are you saying that path is in? If you need > >>> debugging stuff, then put the api/interface in debugfs and use it there, > >>> don't overload the existing sysfs api to do something different here. > >> > >> The namespace related confusion could be because, the original commit message > >> was not using full path-names. The below write-up tries to be more clear on this > >> > >> Existing implementation limits IFS images to be loaded only from > >> a default file-name /lib/firmware/intel/ifs/ff-mm-ss.scan. > >> > >> But there are situations where there may be multiple scan files > >> that can be run on a particular system stored in /lib/firmware/intel/ifs > >> > >> E.g. > >> 1. Because test contents are larger than the memory reserved for IFS by BIOS > >> 2. To provide increased test coverage > >> 3. Custom test files to debug certain specific issues in the field > >> > >> Renaming each of these to ff-mm-ss.scan and then loading might be > >> possible in some environments. But on systems where /lib is read-only > >> this is not a practical solution. > >> > >> Extend the semantics of the driver /sys/devices/virtual/misc/intel_ifs_0/reload > >> file: > >> > >> Writing "1" remains the legacy behavior to load from the default > >> ff-mm-ss.scan file. > >> > >> Writing some other string is interpreted as a filename in > >> /lib/firmware/intel/ifs to be loaded instead of the default file. > > > > Ick, you are overloading an existing sysfs file to do different things > > based on random stuff. This is a brand-new api that you are already > > messing with in crazy ways. Why not just revert the whole thing and > > start over as obviously this was not tested well with real devices. > > > > And what is wrong with a firmware file called '1'? :) > > Actually the Intel IFS stuff has landed in 5.19-rc# so it is > a bit late(ish) for dropping it now. We can mark it BROKEN right now before -final happens as it seems that the api in 5.19-rc is not correct for its users. Perhaps we should do that now to give people the chance to get it right? thanks, greg k-h