Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1990949ybm; Thu, 23 May 2019 09:37:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/QPDZw5HS7jV+4mjv/LAib7DEaj165RYMEFUhpM6IsA4oZ9ugGkHDih+LH7oBTaFJ6bXv X-Received: by 2002:a17:902:1021:: with SMTP id b30mr61067425pla.324.1558629456675; Thu, 23 May 2019 09:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558629456; cv=none; d=google.com; s=arc-20160816; b=QvR4clQMIdCSHli3QB+BZpxhHNbnaVtATixS1Us04Idw7W5Dt88lmdWORrZkujPfDZ dnlVWf6KCCtEGOyDl+Xo8uTUEBOTzGjj7R+OCxg9IHI9dIDNjzYtxgcjxS5z5hH6aAkh riWOs7IkDYpeO0Wxf4GlINl+RohGjAxIktYHq3AHIiFqh/HFo0YJlDXAwPPAidBUQy86 6lupwolyuC/+Rolj/6HQtVWranmaePcPou5Av72IAclA+d4GAdNBI9gbArnz014hlhl/ RARi++I4dKiJUaUoQNs8R3rLstMOSFxSLZhgMXpfvyA9jhep3FBishP56RMKagY8JjEN AIVA== 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=ZHrK+VEAX/VhtgbnGngaaCqD5utZFEMM219guRaxE+E=; b=aBnfARHyxvgoo7Klw3S3+G9oLX/+bXt2YKmTrkQDFhESJFsy8YuQhtvOuJC+vDZXrE D5HaPoeXrw2PRsga/LEqvJQ8cc/uD/gsbq2r2Cz7apiFMM/67HGb04ZKGQg5jgb6Mpwc TUxUHN+SKsHXNs9h+lbm0N0bwL1/RcBUFn+HGgqmFqs7efO6teKgJrNMBgsL0C7sQZND NUFilnZdd1SAEpClXggevFJz6oiQCf016iTNy0nsaHLZ048eRg6AKIe47i0hr7AeV76p ZUrhRErlwONYg4hJQ3rEWf1FbotZrtMHy2+6IZc92PWBqxly7++otTJ3Dq+fzP5c3Dma YECw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="GorN/Qui"; 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 u18si19286792plq.345.2019.05.23.09.37.21; Thu, 23 May 2019 09:37:36 -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="GorN/Qui"; 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 S1731398AbfEWQgG (ORCPT + 99 others); Thu, 23 May 2019 12:36:06 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41039 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731119AbfEWQgG (ORCPT ); Thu, 23 May 2019 12:36:06 -0400 Received: by mail-pl1-f195.google.com with SMTP id f12so2961581plt.8 for ; Thu, 23 May 2019 09:36:05 -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=ZHrK+VEAX/VhtgbnGngaaCqD5utZFEMM219guRaxE+E=; b=GorN/Qui+MVXqMMHGzBJqclGX9G6qBILF4AZy7hy0J2Jkz9bJv5a/lgqT77AO7krgL t5pCAjjuJBDRMa2gSHydXKIZze53hCW2b2ix5/3EWQv556/nTMUaIHDAr2/emt1R90rs dXn0pYf1PUHGFpkIoQWqHfXwJwBLb1vxtNl4M= 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=ZHrK+VEAX/VhtgbnGngaaCqD5utZFEMM219guRaxE+E=; b=j1k44vSwz2qIy386oY5Oo9uJKMFKDLpNiMxSYbbqVsXxSIerLBI/Ec2ePkq9Jg2JZV UwBI63iigf8PHdJzxwbBaoUwcKc2t5O/bZ9AVoVwyXmeAiiRLrDb1P8hpIgbke04IRoL k+HprgtZDWb3nZ/vs1HC2YWTb19KY/i3ZSF1cfIpBh2hReUnVu2abqjh8GF0D0zkPtfq hO1pcEubrBFx7zPYbVSsEsTDKUpg7OK8WHWpdeKxpCGYdmwBPhQ97WDQiO0ScJFa/cL5 60/MLKn6yCSzfsURoTzwtdSbrBZrCYC3VRgQ7gq9wTtjhQeAjm7PmfIw51p9oKZCooGM GLHA== X-Gm-Message-State: APjAAAXqaR+HtgWl0i4+EXCrAoe5ZwsHdzujS2Ghv6kXpfE5pOPDlBeP h1gqCEgBzmOhkIU860QQDRPZew== X-Received: by 2002:a17:902:bd94:: with SMTP id q20mr77186915pls.146.1558629365385; Thu, 23 May 2019 09:36:05 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id q75sm41467250pfa.175.2019.05.23.09.36.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 09:36:04 -0700 (PDT) Subject: Re: [PATCH 2/3] firmware: add offset to request_firmware_into_buf To: Greg Kroah-Hartman Cc: Luis Chamberlain , Andy Gross , 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> From: Scott Branden Message-ID: <15c47e4d-e70d-26bb-9747-0ad0aa81597b@broadcom.com> Date: Thu, 23 May 2019 09:36:02 -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: <20190523055233.GB22946@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 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. 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. > :) > > thanks, > > greg k-h Regards, Scott