Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp129486ybk; Tue, 12 May 2020 17:37:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK5tHa18x9G2PLOdCjY/MTh6TZwOgXuzorCjPcoez1Tmua0C7XPLxzo4aPY3OS9Qy4iY3X X-Received: by 2002:a17:906:404a:: with SMTP id y10mr11018277ejj.130.1589330224550; Tue, 12 May 2020 17:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589330224; cv=none; d=google.com; s=arc-20160816; b=vvwFzrFcwqN3s81WVvnrJ0UsxItQ1FHWm/lpR676qBHNE0jv6lQZnYFI4R3XSKCHPL XP5iyYM2AhVfZYGl0S146uc9l7H0xZVXUHEDaT9j3fxcBRvayGjvzDO9jAMaDh4psFzU N48xQdSiHR7cW5VAekbb59sDK8mbepSlURvZC5kBDvKcbaRLY9canp3t2QcZ89xdMwP0 2PtKY53X7EjDzS6xOiW+IOebo4kGNpcK4ETaqwwchqkLD7eypacf0ZZZXOHZ7xdc8sER SOckg06Z7D30nVTqncahpusxvbcOkktCy9Ldu0utlR0pvUvQFr739ofsvwf2PlqWSq9j HMMw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=yRB9XgmnIGPrh7vcOIMg8BEgGvSJ/DYpyFSMRxz7MlA=; b=zuvHuusiXNSf0MgWM0UgVCkd7VmuJkMkW+qjscDGmCiUJuztBVc8WUVDlzYTh8KUJ0 PR+EueSwhfjKoDLBuOSQKjyeG+h8GMQUMp1swyjzDuWAuDfLapODqFrWYRTEIQs0cyXP aA4AXL8NaW9iQg8AuS5r0ni34/GGEk5owCY4SLOAZa3ATXLXyQCnLN7WUhyjIk8bypR5 kLPeuVxlGSD6+JZhQ1fmgkeDu/bgQ6PfBhhC2uTQPhlUPybUvMW+FzO7CUnIgSf3mYwU o0XNEksjYC+DB4J4L5CBmbhTM/Q6rWERdkaIaFhHqrhCYsZ3SMt7L3+uCquTDJjEWJX+ KSzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si9902284edq.191.2020.05.12.17.36.41; Tue, 12 May 2020 17:37:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731760AbgEMAfO (ORCPT + 99 others); Tue, 12 May 2020 20:35:14 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40096 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726031AbgEMAfN (ORCPT ); Tue, 12 May 2020 20:35:13 -0400 Received: by mail-pf1-f196.google.com with SMTP id x2so7208208pfx.7; Tue, 12 May 2020 17:35:12 -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:in-reply-to:user-agent; bh=yRB9XgmnIGPrh7vcOIMg8BEgGvSJ/DYpyFSMRxz7MlA=; b=gs5MuHvBdt1wRgcswgS/5smzf4y9h715ss/sH+rLoi0o+KVOeEBpFBG2opJm1fBpLZ wHBah/TK9GPzCKjzSAEdroojhbBwrNg8utD55Q7Zo0JsDiqk7jnhhYfklUMZPpH/tGv+ TDXxR+Cwq3uxkQY0xz6fddTC6hlY2cOMIKU+DSy30aEk2xMuMebuRBR/+aqaEL7vpChS nFyTXdvHdM1rDYwHgcfePF79F1aXykdMwj4GTrqeodETT8BwDz7Tct4L6KkBTi0Shkvz R0UOWoPPnl0dhfOFEqOsvpLSZpX9JnnVQlTj8KOcU66twdYWTKSw1cpu3UFFwz6Mbho/ Jxow== X-Gm-Message-State: AGi0PuZIumLcJio5JPYPmyT7QwlM79BY2R2xcHXM5r6H+E9DltiojcB4 ZNEeNAWzXEXzpZWjPsGKYDw= X-Received: by 2002:a63:ea42:: with SMTP id l2mr22226762pgk.193.1589330111714; Tue, 12 May 2020 17:35:11 -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 ev5sm31222654pjb.1.2020.05.12.17.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 17:35:10 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id A45FF4063E; Wed, 13 May 2020 00:35:09 +0000 (UTC) Date: Wed, 13 May 2020 00:35:09 +0000 From: Luis Chamberlain To: Scott Branden Cc: Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org, Shuah Khan , Arnd Bergmann , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson , Andrew Morton , Dan Carpenter , Colin Ian King , Kees Cook , Takashi Iwai , linux-kselftest@vger.kernel.org, Andy Gross Subject: Re: [PATCH v5 3/7] test_firmware: add partial read support for request_firmware_into_buf Message-ID: <20200513003509.GI11244@42.do-not-panic.com> References: <20200508002739.19360-1-scott.branden@broadcom.com> <20200508002739.19360-4-scott.branden@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200508002739.19360-4-scott.branden@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, May 07, 2020 at 05:27:35PM -0700, Scott Branden wrote: > Add additional hooks to test_firmware to pass in support > for partial file read using request_firmware_into_buf. > buf_size: size of buffer to request firmware into > partial: indicates that a partial file request is being made > file_offset: to indicate offset into file to request > > Signed-off-by: Scott Branden > --- > lib/test_firmware.c | 146 +++++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 136 insertions(+), 10 deletions(-) > > diff --git a/lib/test_firmware.c b/lib/test_firmware.c > index 55176b0a8318..d1d2b48ed40e 100644 > --- a/lib/test_firmware.c > +++ b/lib/test_firmware.c > @@ -645,18 +762,24 @@ static int test_fw_run_batch_request(void *data) > > if (test_fw_config->into_buf) { > void *test_buf; > + unsigned int pread_flags; Same thing here. Luis