Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp293604ybl; Fri, 23 Aug 2019 00:38:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBRWxk9bddwjLsCr/bbkephR8+1BZQ2Zr8BlMX+08AELU0owxunWJhodxpXInmEjDFiO7h X-Received: by 2002:a17:90a:3b4f:: with SMTP id t15mr3897934pjf.45.1566545919749; Fri, 23 Aug 2019 00:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566545919; cv=none; d=google.com; s=arc-20160816; b=KGHwtgU7nDESBUEibOV7RDIvNkU+JZSYZngyIA91hRC7mHplaEr0BMuh844M2XO+uZ XJFU9kALbY6pd5yoJ4XvXvw0HPwjeJRWyOBy6h97fYRdal5c3so2Ok9aens1/6VSyHTD /MPJ/xQPd6z5v+atAYID4QoiglwBGFn0EqgN5ttfhAfoiHfxRlD9lkL6idrxeZzAc8RM tHSnwLWd2woMyzW64RvTKcNvrzwlMEP5hhPC55uDTyQe2Uav8E89oZshK31hHB5s79Al QYx6F2CJF+f5K7SSKTdHBo+jEos1Z94pPnv81YfKIam6kIZ5pf7HxPVjn+hLqbjrhI+s vnlw== 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=V6iaCvkOKV70LTF1R2QxVbxqJJklSryV7VrfrPuNBPI=; b=wfoz5yQV0cbUnOlOAB4WcXa/6FLABxGcIslg1bJ/pWYyrFFwk6i+Ko9birablkgd4u ctr9o5BpPgjl04fM07Nqzaqq8M7QDAGH7EvMEbBws1iqLsqCn73n/H7ehshS/jYGPATg KJ66HIRe51chqB5Gz3jScqkeY5cMPezPG2oHKYe9dJD+/yP9kRvMhcMh0Ev7P5G14g6+ GQBqJZrqiFskgMzdUFhFPsssLzHeVzdvtbMEi3MwsqEU2nwD0Frbr6dWQnwVWV17HGi3 Vh5J1alK2jaHPl5DiY64yN7U+jtTl1NlsOHOB4KyN+nAcc9/Hu4MTVIFpIomxAr6JOJx o/LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=WM1U6q3f; 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 h137si1928880pfe.120.2019.08.23.00.38.25; Fri, 23 Aug 2019 00:38:39 -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=WM1U6q3f; 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 S2391913AbfHVTZH (ORCPT + 99 others); Thu, 22 Aug 2019 15:25:07 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38676 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391876AbfHVTZH (ORCPT ); Thu, 22 Aug 2019 15:25:07 -0400 Received: by mail-pg1-f196.google.com with SMTP id e11so4235474pga.5 for ; Thu, 22 Aug 2019 12:25:07 -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=V6iaCvkOKV70LTF1R2QxVbxqJJklSryV7VrfrPuNBPI=; b=WM1U6q3fPx6VAdWuhVbasFSZ7o86MDefD/45MBjids0aZXHG3L567a42cBKkzs82Zy zepTPT7of9GWrAA3oxb/hR24FzE6TL1jBjFt/La5FVBTSo5fAU9pLUw8QsoTi8c39do6 K6CLNpIF2TTudMamXSJHhT0QSIy/Gk+Qg06W4= 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=V6iaCvkOKV70LTF1R2QxVbxqJJklSryV7VrfrPuNBPI=; b=WVjnkFi1zsfurZdFpR0NpXtk83nxcCWBrqDt4uQP73Q9MeZB+mGRsWIkP1jioefCGm XrJGAdlQ6NxCEcvAsL+IMUA53apkKLj6NqR2al0YbtruBdXnpXdHnv3fh13CG6DozLqo U/U0iA8KRv+YZY+HvIzJT6Ae9Tezoo8Rkzjx6xphobjrvNUECSsR/9qXc88VW5kSCTdj QX8Zdg8QVg15LfkaZDR8xVuoNGp+p5LqJEz91dbbwKj0OeuXYcZRFGFuTvcKZr+TkzQa X0Ls/esSm+wZ8kK2i20c64sSopoedQylR7O5NBonBVVQlksDn57PwXMp2iGJmf9wKI4R cs9Q== X-Gm-Message-State: APjAAAUlgCvtlxoyP18BohxvNaI5CSsL8eAFqLA0dSax58UxJUJuhCtR RI00KkLJQHKSzdQASViBR5RwiA== X-Received: by 2002:a62:7503:: with SMTP id q3mr859120pfc.151.1566501906434; Thu, 22 Aug 2019 12:25:06 -0700 (PDT) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id c12sm198018pfc.22.2019.08.22.12.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 12:25:05 -0700 (PDT) From: Scott Branden To: Luis Chamberlain , Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org, Shuah Khan , Arnd Bergmann 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 , Andrew Morton , Dan Carpenter , Colin Ian King , Kees Cook , Takashi Iwai , linux-kselftest@vger.kernel.org, Scott Branden Subject: [PATCH 0/7] firmware: add partial read support in request_firmware_into_buf Date: Thu, 22 Aug 2019 12:24:44 -0700 Message-Id: <20190822192451.5983-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 read support in request_firmware_into_buf. In order to accept the enhanced API it has been requested that kernel selftests and upstreamed driver utilize the API enhancement and so are included in this patch series. Also, no tests existed for existing request_firmware_into_buf kernel API. Therefore tests have been created and submitted upstream here: "[PATCH v2 0/2] firmware: selftest for request_firmware_into_buf" https://lkml.org/lkml/2019/8/22/1367 The firmware selftests patches here require those patches to be applied first in order for the firmware selftest patches in this series to be valid. Finally, in this patch series is the addition of a new Broadcom Valkyrie driver utilizing the new request_firmware_into_buf enhanced API. Scott Branden (7): fs: introduce kernel_pread_file* support firmware: add offset to request_firmware_into_buf test_firmware: add partial read support for request_firmware_into_buf selftests: firmware: Test partial file reads of request_firmware_into_buf bcm-vk: add bcm_vk UAPI misc: bcm-vk: add Broadcom Valkyrie driver MAINTAINERS: bcm-vk: Add maintainer for Broadcom Valkyrie Driver MAINTAINERS | 7 + drivers/base/firmware_loader/firmware.h | 5 + drivers/base/firmware_loader/main.c | 49 +- drivers/misc/Kconfig | 1 + drivers/misc/Makefile | 1 + drivers/misc/bcm-vk/Kconfig | 16 + drivers/misc/bcm-vk/Makefile | 7 + drivers/misc/bcm-vk/README | 29 + drivers/misc/bcm-vk/bcm_vk.h | 229 +++ drivers/misc/bcm-vk/bcm_vk_dev.c | 1558 +++++++++++++++++ drivers/misc/bcm-vk/bcm_vk_msg.c | 963 ++++++++++ drivers/misc/bcm-vk/bcm_vk_msg.h | 169 ++ drivers/misc/bcm-vk/bcm_vk_sg.c | 273 +++ drivers/misc/bcm-vk/bcm_vk_sg.h | 60 + drivers/soc/qcom/mdt_loader.c | 7 +- fs/exec.c | 77 +- include/linux/firmware.h | 8 +- include/linux/fs.h | 15 + include/uapi/linux/misc/bcm_vk.h | 88 + lib/test_firmware.c | 139 +- .../selftests/firmware/fw_filesystem.sh | 80 + 21 files changed, 3744 insertions(+), 37 deletions(-) create mode 100644 drivers/misc/bcm-vk/Kconfig create mode 100644 drivers/misc/bcm-vk/Makefile create mode 100644 drivers/misc/bcm-vk/README create mode 100644 drivers/misc/bcm-vk/bcm_vk.h create mode 100644 drivers/misc/bcm-vk/bcm_vk_dev.c create mode 100644 drivers/misc/bcm-vk/bcm_vk_msg.c create mode 100644 drivers/misc/bcm-vk/bcm_vk_msg.h create mode 100644 drivers/misc/bcm-vk/bcm_vk_sg.c create mode 100644 drivers/misc/bcm-vk/bcm_vk_sg.h create mode 100644 include/uapi/linux/misc/bcm_vk.h -- 2.17.1