Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2641837ybm; Thu, 23 May 2019 22:06:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaTUudDQFxQ6YBqXlrBLmxgXO5O7vwFOM1SU83l+mSKxXV7eaQ4ix1/dKDULT0U0pyLb0x X-Received: by 2002:a17:90a:fa08:: with SMTP id cm8mr6627682pjb.115.1558674361703; Thu, 23 May 2019 22:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558674361; cv=none; d=google.com; s=arc-20160816; b=JVJPpV0Tb2qhkQ0UbvFg9ejK+WAh9vEAQ+oHKJGGw8Y+KHu47KJsgTY60BwcsVdW35 55VkuvvuEiW9tOHTMNF0nhPTRIMSkACAGicPkdCqCNtA0jHcirXSqGFA/O1AqPLqZZRh nO8KDvm9/oTnsz/lRAqSQ9gPnaN3cOs9I1gCpmZ7iasaYS4c3TTHGreXXfMoPmq/e7py ikqBLROu/g/LVmEDKQTy84Xlfs7+0PpfoeBKoHRDHIRdDPDNC/K54Xcecxo2XrkxGowq ZAnbHsexFIowHNTCyVxgm4eHpvCbaIJZ+fD7TCbJkHO1llJzE1R3IRytbOxwfvoCz4gs XfLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=kmmnQ1PQsbdTYCzZ/HEaFotM4QJObrpCCDw2bx+M+xs=; b=yG625zAWQT5N3YXluElu3VU+BLSCt4fiBwBRDP+S7vOL22j7jpA3dN8lC9/g0mWyTW cqfnFR+gHSDPtF4UlATJgBgH+eRj+a8YqtzeW5BcK58l2zfD5CXXy7P976I+1o1kVPqG +IKAH1zIXIVEzow9Dr7Ii0LyP985NafrM8gn5zU8clVht0EXU1Y9+Aq3M/6/EO56HzeL iZLdkrivkT79Cuqc/iqW4Kb3aPIGyCfO4ArQ+hhe7ut3ugNHVHB+uYRN8fITQ+BuCh5C blHfnuMbmtwXFxh08rGZu0jTfcbUmYnJtMQ3AWgaawGaWBB0iJSeisoOqCz59IG+9iWC 0EAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=S459Uf15; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si2553375pgf.138.2019.05.23.22.05.39; Thu, 23 May 2019 22:06:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=S459Uf15; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731826AbfEXFBp (ORCPT + 99 others); Fri, 24 May 2019 01:01:45 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:46388 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbfEXFBp (ORCPT ); Fri, 24 May 2019 01:01:45 -0400 Received: by mail-ed1-f65.google.com with SMTP id f37so12411379edb.13 for ; Thu, 23 May 2019 22:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=kmmnQ1PQsbdTYCzZ/HEaFotM4QJObrpCCDw2bx+M+xs=; b=S459Uf15R2RJEssnzNPufv6/a8aVmoVgksRVougjaRpj7VxQS5M7JBFKQ5Zz8gqucW 0sHzOvkav7o0EYtX/irdUc51N9Qe8jT0rGaLKU/epZCjpMQNYX2yybRxt4FJEmPWiVHw nvWhBCB8FnMp1ByZJRYHLyT1l8rZeuH11Vz98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=kmmnQ1PQsbdTYCzZ/HEaFotM4QJObrpCCDw2bx+M+xs=; b=CQdJx5qVPCMImCp7Fif1neK/B5sgkEzYYhB3ASh/m0caDOC8RZiX3fuzJxM5mYFH/h fif1Si6eILeVghjujMCAJp5LiSe44g+vrfwRlZW6/YykJEPcUZJ7Hhwb9s3+ZsCILw+W eh4aGV7brQ07r3xCePIRr4scG1m7uFvVKLs/8MzlAjiyCZqPYG+zH6YMdzxhMI3DF+3j 0N9smHNfZ2t7gAFn5+j37UT1+oRTtqcIKqoROS68mhjMOG9aG4ioOWWtipgeooUSJO+p nungGIdst3Xeeh4YYEMIsj0tp45PUVfN8RF++H5fwwGVotuwz7EfM03FhgyQ11xWb1lX KZmw== X-Gm-Message-State: APjAAAWKsJoXGVKoG5qY3vAkCmlogAsFQ4roTpGyP6zRqknIEtlcGnxj Lgy+Rouw7ke3C+ABTbxwV3/m1w== X-Received: by 2002:a50:8965:: with SMTP id f34mr101190832edf.296.1558674103734; Thu, 23 May 2019 22:01:43 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id j10sm195425ejk.49.2019.05.23.22.01.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 22:01:42 -0700 (PDT) Subject: Re: [PATCH 2/3] firmware: add offset to request_firmware_into_buf To: Greg Kroah-Hartman Cc: Luis Chamberlain , David Brown , Alexander Viro , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson References: <20190523025113.4605-1-scott.branden@broadcom.com> <20190523025113.4605-3-scott.branden@broadcom.com> <20190523055233.GB22946@kroah.com> <15c47e4d-e70d-26bb-9747-0ad0aa81597b@broadcom.com> <20190523165424.GA21048@kroah.com> From: Scott Branden Message-ID: <44282070-ddaf-3afb-9bdc-4751e3f197ac@broadcom.com> Date: Thu, 23 May 2019 22:01:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190523165424.GA21048@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-05-23 9:54 a.m., Greg Kroah-Hartman wrote: > On Thu, May 23, 2019 at 09:36:02AM -0700, Scott Branden wrote: >> Hi Greg, >> >> On 2019-05-22 10:52 p.m., Greg Kroah-Hartman wrote: >>> On Wed, May 22, 2019 at 07:51:12PM -0700, Scott Branden wrote: >>>> Add offset to request_firmware_into_buf to allow for portions >>>> of firmware file to be read into a buffer. Necessary where firmware >>>> needs to be loaded in portions from file in memory constrained systems. >>>> >>>> Signed-off-by: Scott Branden >>>> --- >>>> drivers/base/firmware_loader/firmware.h | 5 +++ >>>> drivers/base/firmware_loader/main.c | 49 +++++++++++++++++-------- >>>> include/linux/firmware.h | 8 +++- >>>> 3 files changed, 45 insertions(+), 17 deletions(-) >>> No new firmware test for this new option? How do we know it even works? >> I was unaware there are existing firmware tests.  Please let me know where >> these tests exists and I can add a test for this new option. > tools/testing/selftests/firmware/ Unfortunately, there doesn't seem to be a test for the existing request_firmware_into_buf api. Looks like it will be more work that I thought enhancing a test that doesn't exist. > >> We have tested this with a new driver in development which requires the >> firmware file to be read in portions into memory.  I can add my tested-by >> and others to the commit message if desired. > I can't take new apis without an in-kernel user, you all know this... OK, It will have to wait then as I was hoping to get this in before my leave. But adding a selftest and upstreaming the necessary driver won't be possible for a few months now. > > thanks, > > greg k-h Thanks for explaining the requirements. Scott