Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3264752ybl; Mon, 19 Aug 2019 15:25:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDX00hHBMzwvjIFLGGFoU/cUrP/oMNjCQYTuQQmo0v6lENg8Ks9y7ujJeIGsAGDm7bJPQ5 X-Received: by 2002:a63:b46:: with SMTP id a6mr22346070pgl.235.1566253541378; Mon, 19 Aug 2019 15:25:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566253541; cv=none; d=google.com; s=arc-20160816; b=BWXdO3ukc1HZqL95v06eApb56sVfgl4ObwnypOkd3f4dK+pClSL1beg12k9VHsfDj4 HavRW1XzuUgwIY1VXiumk2/e/UWUrcsEoO9bY1lue9MQB6+xY6prmraTNCfMHkhFtLA4 4FutUDyx4yXpupmCEDfTRgCFGwIUzbaIcZ3lJ7iP/cm86VTyKnlyKlRQrqD+I92LxrgA Q+JHLpGCXXqBUc4+04fIc3CQn6MkBcP/pqJVes/2NDYxob+OraLU913UX6SeyENKsmFO CRAufpJDZibomFNwPcRqf1A5I6XHuTXmNCHWz6rU8LQjm+H8Pd5H+/VUM/r4oI/bFbuY WZjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+1PDFzdbe/CicguML20QQINdH2qcnon9SYzPrR+XYSY=; b=NCjbeflmYVAPnuIu0f1cgTfdmEcou+aSNlso/A0MVTiICvfSGam1HYg40bv9RTmXqo MCFthTEGvNJQrYgmh9tGZGyZMnUAZ27shGuNn1rxvqtH1s7kMvZIScstV2YTdvA4c70g 0VNvNZFpOhzl7634F0ADJtz4RkHaZqzgyIc+yfeJcRPFxZK1+FrrhDCLh35RUT9UHvJT 5fUKjT9DZoGCP+JjxYGq63p15IcfevPyAiZPCHmfrF8f9k7fg5e+OcuM11CHl5H+eFae WtNGYPFk7dFgkVuccBc5k65B6ZLYCIllbbk4Akk3b2pMnFGKhSudpLwMqKd8Cx8G4zip nMvw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si10798119plb.147.2019.08.19.15.25.26; Mon, 19 Aug 2019 15:25:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728682AbfHSWWr (ORCPT + 99 others); Mon, 19 Aug 2019 18:22:47 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44069 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728402AbfHSWWq (ORCPT ); Mon, 19 Aug 2019 18:22:46 -0400 Received: by mail-pf1-f195.google.com with SMTP id c81so2013210pfc.11; Mon, 19 Aug 2019 15:22:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=+1PDFzdbe/CicguML20QQINdH2qcnon9SYzPrR+XYSY=; b=jswEv1TugrN5lZJDigkV7Pz3cZaWvPsORERCOw9gwJd8aed9bHPWu4w7N/SRdB0nyO U9j/JHHulpCUvPCxItylYWOmQLQeBbc4qcIZyywLWRn4KJjk5t/gE+NjRh/UsLfSUUNn taQ1reKg0YHFMheI1v00cf9AgRzN9NJtHHLkuZj2CMIZiktJtaMxxIgo4E0uGtgD/0x/ Dt9sgjeFZbVf7GfQbm6IjHILBfi7V8IygFAj8Sthvwq9OGBkZQ+97eJDFlwsN5yadxab 0Cl4S7nOBmDykF7qKOpjL9VRBqq5z0QiEvNzh3OrRZOzr+j60chooCPXyzGKhwlnwY7U is9Q== X-Gm-Message-State: APjAAAUlA2amumVjV4SPh7xMDnvAkc9vL4o0jbQxgGDrR8LHPB7v5UPy wVXFaOI1dwmb9dbd6Kd0Mo4= X-Received: by 2002:a17:90a:cb89:: with SMTP id a9mr22871575pju.93.1566253365557; Mon, 19 Aug 2019 15:22:45 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id e13sm18775233pff.181.2019.08.19.15.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 15:22:43 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 98891402D7; Mon, 19 Aug 2019 22:22:42 +0000 (UTC) Date: Mon, 19 Aug 2019 22:22:42 +0000 From: Luis Chamberlain To: Scott Branden Cc: Greg Kroah-Hartman , 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 Subject: Re: [PATCH 2/3] firmware: add offset to request_firmware_into_buf Message-ID: <20190819222242.GT16384@42.do-not-panic.com> References: <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> <2f67db0a-27c3-d13c-bbe0-0af5edd4f0da@broadcom.com> <20190801061801.GA4338@kroah.com> <20190801174215.GB16384@42.do-not-panic.com> <74be1aa7-0e10-51dc-bbbf-94bb5f4bf7c4@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <74be1aa7-0e10-51dc-bbbf-94bb5f4bf7c4@broadcom.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 01, 2019 at 11:15:19AM -0700, Scott Branden wrote: > Hi Luis, > > On 2019-08-01 10:42 a.m., Luis Chamberlain wrote: > > On Thu, Aug 01, 2019 at 08:18:01AM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Jul 31, 2019 at 05:18:32PM -0700, Scott Branden wrote: > > > > 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. > > I'm soon going to release something that is going to let you do this > > faster and easier, let me know if you had troubles in trying to figure > > out how to not regress the kernel using this. > > Yes, I had troubles in trying to figure it out.? The kernel build should > > create an entire initrd with all the necessary components in it for testing > purposes. > > And the firmware test will now take me some time to figure out how it all > works. > > Could you please explain what you are going to release soon?? I don't want > to waste Sorry for the delay but I promise that I tried hard to get this out ASAP. https://github.com/mcgrof/fw-kdevops This now can be used to more easily let you start an environment to test the firmware API. Too late for you I gather, but perhaps others can take advantage. Luis