Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6589043ybi; Wed, 31 Jul 2019 17:34:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUpggkCeg9uSDw/bHpiwnZEI+eaX35bsI2axtOLZVaSF4QCBSaK901luDYkK0oBTwmZCoT X-Received: by 2002:a17:90a:c20e:: with SMTP id e14mr5818279pjt.0.1564619688735; Wed, 31 Jul 2019 17:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564619688; cv=none; d=google.com; s=arc-20160816; b=p/jg6gZZkzASZg07W7wTqn0PISAijW5WyIyOWw84ybyFbf7NP+MWaYqJ8jcJeZNwd0 CsG7NANpkAio7dcsb09k3198r5WeW1tgHkE2gdHjh/lVVyOcwiLNDynOw3ut8W1ukUs1 /BoSdyoODcU5NhvDKrI/TEElai2pThg7NLc8UrAoimpEz5rwQfx+EUMtoqjA93aDkRds eu3Ni9sSMnzQnDA7DDu1OR1XHnkjFoDmv92VM0G+lZju3CM58+y05io4WRvVn0Lbtmqd BPSuiXi7GRPdA4kin9fre0aBEGJyW7Ud6wroGgbC+jzIZWnn+aRW6Ve6H2qoiCxlS6Ah zntg== 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=HguRxYDESCL5JmD3/mYii286Ot+gL1zw7cuRbKsoMmY=; b=cTck15JLCImoiyDRc0p/juOIqFI8E6yqj5GC7XQltJHtpjx5hZA4n2fvRYP9q91KN9 e9p1+c0x8gBYiECwLO0GAl80U7AXdU+wnOi2nY01RBl0HJL4MMsxZvltWdWYNaF/4Gir 2Oi3cs4a573Y/ZStgtqf92i1imx/KRH1/yIHzak+mTPslZGrMqDlCqo9aVjj2tHY+oFC +u/jnH2ADMu0y8SwYwBci/SaB+70OI1+WijG46DTLlJ4LS/IUbnqXQ/mbhJT4zse9dhn z7sRy3Ek6BKqkmdA3dIlvohLnFZ+BRV4y6SyWOulWH2/E26FMxK5qgP6o5vp//52W4hk HEOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=fpE60V0O; 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 e80si32228445pfh.121.2019.07.31.17.34.32; Wed, 31 Jul 2019 17:34:48 -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=fpE60V0O; 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 S1729262AbfHAASh (ORCPT + 99 others); Wed, 31 Jul 2019 20:18:37 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39165 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728189AbfHAASh (ORCPT ); Wed, 31 Jul 2019 20:18:37 -0400 Received: by mail-pg1-f193.google.com with SMTP id u17so32898659pgi.6 for ; Wed, 31 Jul 2019 17:18:37 -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=HguRxYDESCL5JmD3/mYii286Ot+gL1zw7cuRbKsoMmY=; b=fpE60V0Oz7+mBNKiTOcj4EUkxAetGX/wmNJhgK4ernSenYAJPgh+Ij9N3u2nOr/yav NH48nKJBwoWl3+blv163A+p196VP5Hu+cUjnQF57+psVoBGxe2ppL9fUSyRc3iqFZTqo 2TdQNowkt631FKm0f0i4Lz2ILGPWArk8W4iCE= 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=HguRxYDESCL5JmD3/mYii286Ot+gL1zw7cuRbKsoMmY=; b=qkJKtU52oqWcF8q5S689a0Z/cWcbUkzOJl7ERMbDxOs+YWnmrlk/iXo0DmBvNfpWUN HK6w+ktPeLsc01FR3cI7T+14dAjV5ASg68m6s/kFRordvmvvZxyvUY3ap/Bc984ikhF9 s2K3XDEvyFd57JlZq1cBOSB66qfoOx0jo/jkkQunoJlVjoLQj/4VXaoJD4X4xe4nXHpf MRZfx/cKPjuagtBkk3ml+ILGB+mmQIOcFtagnXJUUAhdSCOwgQV3udGpUQHsYe0Advy0 jpqdn/y8cqQc9n2+MxNW2IeRpwvdq4uQJcn00pn291UxTmJgRdz3hlAKIdMh3KQbE8aO QCfA== X-Gm-Message-State: APjAAAVhfgix2B0P5igVkUU/JbZwPPq4oLdKkeui+sU3quKODF4RO3mM PzyU6SYFKRtIsuIPK7rgZK/4Ww== X-Received: by 2002:a63:784c:: with SMTP id t73mr119574658pgc.268.1564618716666; Wed, 31 Jul 2019 17:18:36 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id u23sm72272436pfn.140.2019.07.31.17.18.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jul 2019 17:18:36 -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> <44282070-ddaf-3afb-9bdc-4751e3f197ac@broadcom.com> <20190524052258.GB28229@kroah.com> From: Scott Branden Message-ID: <2f67db0a-27c3-d13c-bbe0-0af5edd4f0da@broadcom.com> Date: Wed, 31 Jul 2019 17:18:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190524052258.GB28229@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, I am now back from leave to continue this patch.  Comment below. On 2019-05-23 10:22 p.m., Greg Kroah-Hartman wrote: > On Thu, May 23, 2019 at 10:01:38PM -0700, Scott Branden wrote: >> 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. > Are you sure? The test is for userspace functionality, there isn't > kernel unit tests here. You need to verify that you didn't break > existing functionality as well as verify that your new functionality > works. I managed to figure out how to build and run tools/testing/selftest/firmware/fw_run_tests.sh and my changes don't break existing functionality. But, I find no use of request_firmware_into_buf in lib/test_firmware.c (triggered by fw_run_tests.sh). Is there another test for request_firmware_into_buf? >>>> 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. > Throwing new code over the wall and running away is a sure way to ensure > that your code will be ignored :) > > thanks, > > greg k-h