Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp80743ybv; Wed, 19 Feb 2020 16:49:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzCRzHn+s32+pprWzbqRovCqQ3Q5WBMJkSZLLtuMtq9yE3PTvXW9eNr+cCeHG6hU2qTmBEj X-Received: by 2002:aca:1011:: with SMTP id 17mr308163oiq.72.1582159762809; Wed, 19 Feb 2020 16:49:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582159762; cv=none; d=google.com; s=arc-20160816; b=jUHkGoG++ZbDbKjSZf5fQTiexWcXEieNKYX4VKM9ZLenU1KUYBdfOgZ2fgnQz+r4XH pm9Gfk+powTi019jWRvGwpkYzkAhduBvoH8a7t/9k0P1+u/D68pu0KEDB7dDV1o0Z5BN 0UgGX5xRLCuKpvHlJKX50EmyutIvnzFpB1/pR42fm1r2hHQVLtVnAuwO5H1hNFQT9RZa A9wGRi6GYcXhg/TjUzxq0rwp8k+xypkWSPYXUWoyvjlgd2kyMQJBzkm9WDYwH0prin9t KaGrsu9g66xdSq5sbEvdLSdhWDqSo9MASjR7rQ5mBM1V3j/G+pI7gzLoh6ausvtELzFN 51+A== 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=MCnc7lIWYjCyOM/3eUwsK77pJjRdrQHPG+GhI2DPtOU=; b=Q/jM0v4UXzDsV7OJYcJ/uQbDm+7y2UyopanrOI9PCGrl3unGyVrmIYrCE49MbC6fGr eJcUuIDq8MEHyk9BysjVdXQTigBWuylpKtYOaQahrT2EGkitnI3oypGeTl3cIBqLdlLS 5gWSgSXM6QyXP9ENWqs5sxLmJBMKBabj1WQXTf3vMlalzf3x2qSsBNuNf9NM3Am1lw0u rx79IG1lipECfe6WLRhI7o3NVhQW8f8wKYg/zxSh7c//SiYPoGb8ZHESXXzHmxKWf7NX DelQkfQ0Fzfl51wQaaZGYglwkoQaShCH4xyHu8kg3e+p4ilMOXKOnzaQmhGn+AzZK6dh 6KhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=iRWHPF4Z; 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 d2si788035oth.267.2020.02.19.16.48.55; Wed, 19 Feb 2020 16:49:22 -0800 (PST) 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=iRWHPF4Z; 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 S1727405AbgBTAsk (ORCPT + 99 others); Wed, 19 Feb 2020 19:48:40 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37175 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbgBTAsk (ORCPT ); Wed, 19 Feb 2020 19:48:40 -0500 Received: by mail-pg1-f196.google.com with SMTP id z12so1002349pgl.4 for ; Wed, 19 Feb 2020 16:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=MCnc7lIWYjCyOM/3eUwsK77pJjRdrQHPG+GhI2DPtOU=; b=iRWHPF4ZxnvlZs+BPBJTKw5+kW68aECGGTAzv+JtpeB/RwX8M734IfDoYVGoNPk9F4 VmtB9RXFMaXFNiYpqLN8V3xETnXZBktVcU7NO+/YUMNsmOPqCOXxw9UHsWVgXYgsziFx UKfQ//Feovjz4wGRg9goWtbJLBqZfrJ3YZQ6I= 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=MCnc7lIWYjCyOM/3eUwsK77pJjRdrQHPG+GhI2DPtOU=; b=BXNi6IpDrTQron6O0M9OgS00x9o4Kyhe+7H/wzCB2bdw/1bbVOQgU5iZbtNE+T6L31 VtkOVBmqFjJ9IJM/QOTV70vjUjxHP177uaETIzhrqHHmsGUfisnsV/Fz3UYKMbr5Wb5M tnLgUYyil9A44LbcxUEIUDqbJ8BpRe/rZwpMA830sL9rXL/u98LlfFyDZoVq59Sz9AI6 y6znvZqoIkZsDMGiEour4wYdauVEC7211pvz7wdGspowrUOgzKYuCbrgn+NcVCWlgtxH d+FQJEY/K131R4oPA2uLVZfxclYaQ4NLwMQYYYnR3aL+ZiWJ+NkFTXbRAfYNgp/xP9bQ D7Ow== X-Gm-Message-State: APjAAAUMFBG+n8XCbr/CFMQ/25KVW77c6Pd39BXCWd3eqx3NJtpf0JHG 4JljaAmIhH7zKMqkg9Jv1oolyg== X-Received: by 2002:a63:ae0a:: with SMTP id q10mr30424929pgf.178.1582159719593; Wed, 19 Feb 2020 16:48:39 -0800 (PST) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id 64sm816323pfd.48.2020.02.19.16.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 16:48:38 -0800 (PST) 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, Andy Gross , Scott Branden Subject: [PATCH v2 0/7] firmware: add partial read support in request_firmware_into_buf Date: Wed, 19 Feb 2020 16:48:18 -0800 Message-Id: <20200220004825.23372-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 in this patch series is the addition of a new Broadcom VK 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 firmware: test partial file reads of request_firmware_into_buf bcm-vk: add bcm_vk UAPI misc: bcm-vk: add Broadcom VK driver MAINTAINERS: bcm-vk: add maintainer for Broadcom VK 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 | 42 + drivers/misc/bcm-vk/Makefile | 11 + drivers/misc/bcm-vk/bcm_vk.h | 357 +++++ drivers/misc/bcm-vk/bcm_vk_dev.c | 1197 +++++++++++++++ drivers/misc/bcm-vk/bcm_vk_msg.c | 1359 +++++++++++++++++ drivers/misc/bcm-vk/bcm_vk_msg.h | 210 +++ drivers/misc/bcm-vk/bcm_vk_sg.c | 273 ++++ drivers/misc/bcm-vk/bcm_vk_sg.h | 60 + drivers/misc/bcm-vk/bcm_vk_tty.c | 327 ++++ 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 | 117 ++ lib/test_firmware.c | 139 +- .../selftests/firmware/fw_filesystem.sh | 80 + 21 files changed, 4305 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/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 drivers/misc/bcm-vk/bcm_vk_tty.c create mode 100644 include/uapi/linux/misc/bcm_vk.h -- 2.17.1