Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1212362ybm; Wed, 22 May 2019 19:52:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1oh/+HR1B7yasY0z84qOugGkM3EgzM9N6KzZ5I3cNHofjkgtNjkvZ1xrAPJzH66L6WWTX X-Received: by 2002:a65:430a:: with SMTP id j10mr48218844pgq.133.1558579975580; Wed, 22 May 2019 19:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558579975; cv=none; d=google.com; s=arc-20160816; b=pQG3Kez7mxt01hjTwn7UgQxNzqqD0zEQx5PKEkvaIGPslQ/UZRKLLFd7AazEs844SW wPiywyxMXHNW5BjOZMLINFKVJYh+3rGPgp2ZHTiR4DcCfrldXrdPjbDxm/cZRW01Vett tH0ZcpPnKIzulyY3juSrfrHVFCjqFbcXk4B67BL3/9AEP3w1fC+zkQqwUHzz+qoLoG98 nSWo6cGz8ODBPT7yxtrVrB5vAUaGMh8rgW5f3MKHdwQiHmyyM99IsJCT72UkrJz5Ndd3 RgNlGMoOulumCRcbqWWrMUqzyX2Mu2Mct/hG94CrXxtkn2hvzspso7DEIhhxdQV3x7V6 OOww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=eelYOl+auCZwPeaiF2iZqxUedYahMzn49UDx8OOb2N8=; b=gMRQK7afoDtldSaYdsQIQ2hfKRNpP0b/CzWlnprxtgeiEe0tyQdSkuspRRUJHYaRja ed9JdMkkELZQLDAzvOKb+clEKCeyOv1rOi74i+oeWPKBs//IMmvjsEcjUH9ipwEdIbuL MKAS7nlaObqGYcvPZhIcPS1QMhg0EIPKkH7Buv1mbap4fjYNG6Ocbo5Mfhu+5i9kRZ+E KEpxfXXA863s1z3xBV6zoMAyc6NYrvVmLhs1yH49hR4ThxaCe+jsOLZbkEYGE27nrFs0 rNr3A/es4b44mpo7GLZlMxLNyqyGjPCUQDYR+vGssfpSmVRdDJ4xs7hAYWaIu6890LZ/ 7syQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="BrT/LmvV"; 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 m19si26507860pgb.427.2019.05.22.19.52.40; Wed, 22 May 2019 19:52:55 -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="BrT/LmvV"; 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 S1729859AbfEWCv0 (ORCPT + 99 others); Wed, 22 May 2019 22:51:26 -0400 Received: from mail-pg1-f180.google.com ([209.85.215.180]:37906 "EHLO mail-pg1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729762AbfEWCv0 (ORCPT ); Wed, 22 May 2019 22:51:26 -0400 Received: by mail-pg1-f180.google.com with SMTP id v11so2310043pgl.5 for ; Wed, 22 May 2019 19:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=eelYOl+auCZwPeaiF2iZqxUedYahMzn49UDx8OOb2N8=; b=BrT/LmvVnhqjaKLk/W1wvw0WfcNXPvWG0i0rFsiMvmJpNRkOSM5XIMzQrTEyryQqNg RS8iiVSCimgKdPtY9di7vvJXbDUGY8aW4/uDwh9dw6FgZaxXDgrOXbV2BJW4Pv52ZS0A eRK1jYeKKSnZhbMeqtbVAPScLf/iDf23GCJdY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eelYOl+auCZwPeaiF2iZqxUedYahMzn49UDx8OOb2N8=; b=RdsgR0lmGIEIg49GXSBOSrmw0oU6az4QK4skd0CeXkkDixcmnQCzyMN8v4Aj1prwao GifaL9CivJttAaNkITvaZdLdB6APABtAm7oSn3gz2j1a79yfi05jbHpskExDv9UUkAWi P9BuAabgUsielbcDqThAJDn2MbFlydAA5XP9RK7PpKNbQILXnnFx6EfgR0UwpnfpJ634 lqripeBzXRUDbBc9VLqnJBWQmcwY+ay/pzUdvCH/kMvsRathwS5UWR91Qje+FOBI4ztH AFoZNkBrLI5WqGe9kq3IX/lB9aaY6o3jHrJHpZmzDTPIalXecEsKuet4KfnTjFqA+q9S cjlg== X-Gm-Message-State: APjAAAXR0Dr8VaAawQCeBVO2kz8MjQguR13mNr8KTdE+P+HUJKPYo0Q3 IRZVafin5diUFNPvt2ql1zEsDA== X-Received: by 2002:a65:52c3:: with SMTP id z3mr41505682pgp.56.1558579885890; Wed, 22 May 2019 19:51:25 -0700 (PDT) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id q19sm42812174pff.96.2019.05.22.19.51.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 19:51:24 -0700 (PDT) From: Scott Branden To: Luis Chamberlain , Greg Kroah-Hartman , Andy Gross , David Brown , Alexander Viro Cc: "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson , Scott Branden Subject: [PATCH 0/3] fs: add partial file read support Date: Wed, 22 May 2019 19:51:10 -0700 Message-Id: <20190523025113.4605-1-scott.branden@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds partial file read support to the kernel via kernel_pread_file functions. request_firmware_into_buf function enhanced to allow partial file read support and single qcom driver using existing function updated. Change to core kernel file support allows new drivers to read partial file to memory as necessary in memory constrained systems. Scott Branden (3): fs: introduce kernel_pread_file* support firmware: add offset to request_firmware_into_buf soc: qcom: mdt_loader: add offset to request_firmware_into_buf drivers/base/firmware_loader/firmware.h | 5 ++ drivers/base/firmware_loader/main.c | 49 +++++++++++----- drivers/soc/qcom/mdt_loader.c | 7 ++- fs/exec.c | 77 +++++++++++++++++++------ include/linux/firmware.h | 8 ++- include/linux/fs.h | 15 +++++ 6 files changed, 125 insertions(+), 36 deletions(-) -- 2.17.1