Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp622238imw; Fri, 8 Jul 2022 08:47:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tFanda+TDUD2BH3Qm0sKD16b8OIHs5+q6aMkXE2cCZx2EAJ5uhQIoBz1OR0E0JarmvaGtY X-Received: by 2002:a17:902:da87:b0:16a:54e1:3426 with SMTP id j7-20020a170902da8700b0016a54e13426mr4271177plx.157.1657295238676; Fri, 08 Jul 2022 08:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657295238; cv=none; d=google.com; s=arc-20160816; b=a5fgixc2YqDyfCp+ccZ72Y6f5y8s1btjTfWqvQNo6xUgHVEk+N3g6mrEvVuk72kMUQ tqrlzGkAWEKBNvV40yWPVobqR9FQFgBngXaSLGS0stJiaHZmUY501Adk8CpQtSeKTy1c 1sF77iWrcWNP1HevJ+p7wryuzWwRzPmRMCUWWqEQfuCrT/bVm9igxvJ5hPjWiGq4+3QJ sCIJLUm5PlqUxIbStD9rCFrmCuiNoGGD+V4WWt2ndEr8Hn6jXJBndAafoZP034ycXIL0 d/m73meU9VIe4jY7QSEYeSw8buuklKuHURmMAIWDR3paifptEHcUGU0wtYkHv0ldYIKN GYVQ== 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=KSI801Q0d5x8A02DZ5skCLQt1jFh1gzh1gfoYJgVolc=; b=WU384teNLjR/vyT/KLAbxw7A8HDIF+NUIFDgI0/vD9hsWQ9WnGJzMnoxM4EuD9fvSp 5StldxGBWWNtkqka94jCq0o9NjP33j3kehBinArBnt2m6Q8/cjJGOL6L5Z7mz6DexCcD AmeIk9dbx1enOCIXdIS3/1P4MABVCsiFVrD4ncdcHREUMJSCAA2B5no22L2TrSzpjYg3 JwNQJp3wkJFYVyUOnfRVTauCTdhkWxNP7lPsqbtUkdWASNesDjVGs4Een9H18Yuy3dqC I7EmTNbGilqEBlOUXdFvRFhMJmwvssBfDjv4Eov1BXjdW3f4fg8W0Km6o32n+51gKUGa v9Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fa0QzF3g; 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 a5-20020a637045000000b004128f83af23si8631075pgn.406.2022.07.08.08.47.06; Fri, 08 Jul 2022 08:47:18 -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=fa0QzF3g; 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 S238524AbiGHP2J (ORCPT + 99 others); Fri, 8 Jul 2022 11:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237057AbiGHP2I (ORCPT ); Fri, 8 Jul 2022 11:28:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9161E73904; Fri, 8 Jul 2022 08:28:07 -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 347E5B824F6; Fri, 8 Jul 2022 15:28:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CCE2C341C0; Fri, 8 Jul 2022 15:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657294085; bh=KAfXERdqbtilgXrs/mlOi+seJobFePGOK/Z/qHdIrPM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fa0QzF3gez7GOGb5Jbc4Q5RU38Yl6LieKGxFgCPAKWHXPxMdnzStPP6p/w9bxY83G feiBvLdAehuZ8+c7W6CBmtJzwRrcSLnSTbhAUyPGpLRpNPJ/qPMn2Gzsf2EhBbkQQt 2TmHxpdM+28JFO/k4wcovTDi5Ob1TsDCjD8X35lk= Date: Fri, 8 Jul 2022 17:28:02 +0200 From: Greg KH To: Jithu Joseph Cc: hdegoede@redhat.com, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220708151938.986530-1-jithu.joseph@intel.com> X-Spam-Status: No, score=-7.8 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 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). > > Change the semantics of the "reload" file. Writing "1" keeps the legacy > behavior to reload from the default "ff-mm-ss.scan" file, but now interpret > other strings as a filename to be loaded from the /lib/firmware/intel/ifs > directory. > > Situations where multiple image files are helpful: > 1. Test contents are larger than the memory reserved for IFS by BIOS > 2. Increased test coverage > 3. Custom test files to debug certain specific issues in field 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. > Fix the below items in adjacent code > - Return error when ifs_image_sanity_check() fails in ifs_load_firmware() > - Correct documentation "ifs.0"->"ifs" That should all be a separate patch, you and Tony know better than this. {sigh} greg k-h