Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1270531ybl; Fri, 23 Aug 2019 16:37:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfRWyhXySle/KpXY1xo4/CPK+/Hn0GOOttgaPoWQ4bPMkniSn4RemdgFHYP+L41CrpRjEM X-Received: by 2002:a17:902:a8:: with SMTP id a37mr7188990pla.316.1566603436879; Fri, 23 Aug 2019 16:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566603436; cv=none; d=google.com; s=arc-20160816; b=aw8DUEuLrGooNUWos8fg/WTyNYdHNPLu2NPzBC3WKlpNNRopjt18z/Tit1wHbsZwsl EUxIYj41OMyZ+1ZYjBYNFkc2K+LFqFotiEn7IoA9gzakewWHd42SkXhWxg80gD1V32Og XDxDDhsynSbrt4AY4dHTcmLYrhKjCs7xhGbvT8xtlTOaWxZYujJQpRBg8hH4dhkKa3ZD 4N3xEywVOWLDHp4f7yZxndIWeDXk+tomO2f5EXFyIdw5GgLu+m+Ik2+/Ra2VZ4ep//AV tn2PJgJKBpqc+//o7SbN/NYSKrqxfWnJuQWAprtl2T9UkEFhvZUn71fBConZ621WluVK bZyQ== 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=oqC5xMMUbO+7V3ahvqsbNQ/fSXZ8+DsANxH/wBr9efU=; b=qpTaaT5CIdSlKXQd0uMo84lrB0pMIk6rEpEaHC2P/4cfnUAJD94uhQnyipMkbv913w 6a8DtiLS1Ec31K+yPpFl8h0WEq0xP5HVCJ873zZw+pjbYZTjKZV3zJlD5OoNMXmNmNlq TlLUmPrOnz16NAiVjB32C2ufHmU1dT9NXWOC4uC7gp4cRbmmEHCX9XUbjSE+nrl+6w0V nxX+bWlq2Py9Y+bbgOwjdy1vKGZlLIl4YxTJb5qBFgqVWjsY6PrqrucpzyYBk/4nvEMq W+Gl3MTZubpJVnGKzxAM4Fw+n34U2WfDxX5vMYdsv6KzzAuC2pTG81bHPo3WvIlj+Q3t flPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Wg7Vh2cQ; 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 x19si3316858pjn.35.2019.08.23.16.37.02; Fri, 23 Aug 2019 16:37:16 -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=Wg7Vh2cQ; 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 S2436870AbfHWTor (ORCPT + 99 others); Fri, 23 Aug 2019 15:44:47 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38618 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436857AbfHWToq (ORCPT ); Fri, 23 Aug 2019 15:44:46 -0400 Received: by mail-pg1-f193.google.com with SMTP id e11so6303748pga.5 for ; Fri, 23 Aug 2019 12:44:46 -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=oqC5xMMUbO+7V3ahvqsbNQ/fSXZ8+DsANxH/wBr9efU=; b=Wg7Vh2cQk3mZ+LOk5wcrEiyksh6120g652gNH8TDhjTA5q3FBDvG0IIuxcjbCD8eIP LhliYDFeq/BrRg6qXP6XtIWDjsY6gx2dzpOWFIWG2BC4hx3fHQ6RIqO6vH2uuXO+LlXy K0ljUn6TVEunhoY/CgBzCEUPNHwh2/q8IJ6Ds= 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=oqC5xMMUbO+7V3ahvqsbNQ/fSXZ8+DsANxH/wBr9efU=; b=CCvKXaCJBW4VjQ7QZJIBvHI1/oLbd1P8kJ6610wtMM9fuxHRL0BzF3r+5HQiOs6NpM pCwOi/1fiFaminupKq2laQQOmGPM5IpZYbrdEh7k2+8UO+Voy6vw0Tj2jzDO7ciDqfVX WMKV4+wcLqJtZza6lJ60UJdI7K6+9Arb/qB7Jpp3edG/XMVfiFnDkqAyxOeybJZtNciH IFJNuIOthfCsCwCmCGEFBLBEaGUgSTQlOfGi0ikDC2LyyBsOuUJAVqRv5W57EnDLWOuK DRy5+uKsg0T7nDMj0Q+tYf+eGeFYA0vd34kJRszoUrJ0YfZb2iEqxp5giwdxuqqJ//NO 91Wg== X-Gm-Message-State: APjAAAVZ/M2S17UlDrJKE2ckkbeKBgDNmAerXCCuf3LKkdJZkX2X5wB8 yjBwQ3SMfUV8OQbTICo5QlhAXw== X-Received: by 2002:a63:505a:: with SMTP id q26mr5298383pgl.18.1566589485862; Fri, 23 Aug 2019 12:44:45 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id j15sm3332347pfr.146.2019.08.23.12.44.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2019 12:44:44 -0700 (PDT) Subject: Re: [PATCH 2/7] firmware: add offset to request_firmware_into_buf To: Takashi Iwai Cc: Luis Chamberlain , 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 , linux-kselftest@vger.kernel.org References: <20190822192451.5983-1-scott.branden@broadcom.com> <20190822192451.5983-3-scott.branden@broadcom.com> From: Scott Branden Message-ID: <10461fcf-9eca-32b6-0f9d-23c63b3f3442@broadcom.com> Date: Fri, 23 Aug 2019 12:44:42 -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: 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 Takashi, Thanks for review.  comments below. On 2019-08-23 3:05 a.m., Takashi Iwai wrote: > On Thu, 22 Aug 2019 21:24:46 +0200, > 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. > AFAIU, this won't work with the fallback user helper, right? Seems to work fine in the fw_run_tests.sh with fallbacks. > Also it won't work for the compressed firmware files as-is. Although unnecessary, seems to work fine in the fw_run_tests.sh with "both" and "xzonly" options. > > So this new API usage is for the limited use cases, hence it needs > such checks and returns error/warns if the condition isn't met. > > IOW, this can't be a simple extension of request_firmware_into_buf() > to pass a new flag. > > > thanks, > > Takashi