Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3402637pxk; Mon, 28 Sep 2020 17:14:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEe9wZf4WeJt+GV/RY2bFJ3XaULp/dtTlvf6vdGIxLAOASGI5mn0wuEDu1vM8uKsOkTgY0 X-Received: by 2002:a17:906:9718:: with SMTP id k24mr1150347ejx.365.1601338452125; Mon, 28 Sep 2020 17:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601338452; cv=none; d=google.com; s=arc-20160816; b=N/X7+ZyKOaNChQd7FNPNtHuuWFZsboaVbBwr5mo+peOLU1s4Q7nVzo8UlpX7QhgZBa EE+/Vw9yNynqhmdE7D8CiSUvkq6ftQmxs+R5NBw6OycuFtiCHQdmpAPXVugQwvxgjM6L HEQ/bhY3A56WBlFcgrx/lXd5F06R2HIMPkmQ/cg9Im4PLx/71VuYBvnsn5gqu1OEczxf jLQPILj5u2LNuwZpzThJU6a9YS+zBpMZgzFB+5rjTFJf8CvyJrOoreZ9oJRTHkqeFSfm VE3UZgJAQuBq9y8F4rbLYCU7kjM3jxzPtPqsOtpHTbOId2NhacPvhOQC3GQrFj1ZEq/4 CsOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=tapYhgMQJZCiMS8VGm5pB8V4XJd8y/+UH4GC9p9jPpk=; b=K9pZDOsLtT+21zmqLVYo0KxwxL80l+QhaMBh2S0dR7KyS1aT9At0VUQMPzRkBFPPNd iaE30ROtDRWbEBHGNL63AyIqauCwvxpZFPYl2w/yOGbGV9ru2akt9rgGC4FExzmpdLX0 /sqKloJTin9KBepBpdJCZHvrIGFGP7ckEFu7YsPWbNaiq3ngmC3pIKtOqhQVV/4VTDqJ qUguKpOKqV6xrsaxODtbA3UnBtqStwd1iODHEYg0SV2iwozhyRY1iUM/bmTDx0Fe19Xv rsTsIiMT5CAjlHpsreo3t1N2v5MW+BpS67swa9ELg/kDuc92x4CUbS/b/GMzv1qvmHqc Vcmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=T6zYYAJu; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si1593701ejc.703.2020.09.28.17.13.43; Mon, 28 Sep 2020 17:14:12 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=T6zYYAJu; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727046AbgI2AMc (ORCPT + 99 others); Mon, 28 Sep 2020 20:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbgI2AMc (ORCPT ); Mon, 28 Sep 2020 20:12:32 -0400 Received: from mail-pl1-x662.google.com (mail-pl1-x662.google.com [IPv6:2607:f8b0:4864:20::662]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04990C0613D3 for ; Mon, 28 Sep 2020 17:12:32 -0700 (PDT) Received: by mail-pl1-x662.google.com with SMTP id j7so14946plk.11 for ; Mon, 28 Sep 2020 17:12:31 -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=tapYhgMQJZCiMS8VGm5pB8V4XJd8y/+UH4GC9p9jPpk=; b=T6zYYAJu5mR3/vza/B4HZNb7Vy8lp8pDO00JHd+vjetibTi6QdEC4vveXSzdFgpovt zv8fsvbVuGzPnyTjBCGkbOP0v1SzCQYjD+xABGlboA6lUTQPJ2OcO8R6YGGu0hSZ8Rsi J4psfgH0QEcePJ8XTaBgP+SXfTZ8wrE9Uw5/g= 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=tapYhgMQJZCiMS8VGm5pB8V4XJd8y/+UH4GC9p9jPpk=; b=OaOnrFH+XI6nhRFN/GBaLD/AvUG51piBkt0yRL63tEp35RYVcuXTIOwEw73Cq5MGWO s9Yzdi+2xHG+EQm3PEdjGS7lKwzx+jNVKQP1JYw40vun1mayPmzTIo1Tx9OTN7wDLWND LTaWVUmks5bXCi4zBUHPuMrobjxiNb94Acp/NV0CLIepzRUBYAh5IznDMLQT0daKQIOH V/wabBkvnN4CZb0CoIr6iifkXYp8pDlsxuOrBHUdxTFS+ixSYbJzCX1WUJ2PhAQCsfzk sTtiuDT54FUhXjNzwBx4iMxJ/Xb2yukrI2DQGEZbJDKN/qtyNulyvCUG4r87QZd2VCiw cZBw== X-Gm-Message-State: AOAM533OoUWJ3kDCUHuu4lDITkL3SBIidvzyxb9AH64gShrrmauFCSef E5m296Adfj8DpgsF2mh9kDd7stvtVpt7QMwo0g7ierDi3UFd X-Received: by 2002:a17:90b:1741:: with SMTP id jf1mr1422763pjb.164.1601338351437; Mon, 28 Sep 2020 17:12:31 -0700 (PDT) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp-relay.gmail.com with ESMTPS id t1sm1047973pjr.8.2020.09.28.17.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 17:12:31 -0700 (PDT) X-Relaying-Domain: broadcom.com From: Scott Branden To: Arnd Bergmann , Greg Kroah-Hartman , Scott Branden Cc: Kees Cook , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH v4 00/16] Add Broadcom VK driver Date: Mon, 28 Sep 2020 17:11:53 -0700 Message-Id: <20200929001209.16393-1-scott.branden@broadcom.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series drops previous patches in [1] that were incorporated by Kees Cook into patch series "Introduce partial kernel_read_file() support" [2]. Remaining patches are contained in this series to add Broadcom VK driver. (which depends on request_firmware_into_buf API addition in other patch series [2] being applied first). Please note this patch series will not compile without [2]. [1] https://lore.kernel.org/lkml/20200706232309.12010-1-scott.branden@broadcom.com/ [2] https://lore.kernel.org/lkml/20200729175845.1745471-1-keescook@chromium.org/ Changes from v3: - split driver into more incremental commits for acceptance/review - lowered some dev_info to dev_dbg - remove ANSI stdint types and replace with linux u8, etc types - changed an EIO return to EPFNOSUPPORT - move vk_msg_cmd internal to driver to not expose to UAPI at this time Changes from v2: - open code BIT macro in uapi header - A0/B0 boot improvements Changes from v1: - declare bcm_vk_intf_ver_chk as static Scott Branden (16): bcm-vk: add bcm_vk UAPI misc: bcm-vk: add Broadcom VK driver misc: bcm-vk: add autoload support misc: bcm-vk: add misc device to Broadcom VK driver misc: bcm-vk: add triggers when host panic or reboots to notify card misc: bcm-vk: add ttyVK support misc: bcm-vk: add open/release misc: bcm-vk: add ioctl load_image misc: bcm-vk: add get_card_info, peerlog_info, and proc_mon_info misc: bcm-vk: add VK messaging support misc: bcm-vk: reset_pid support misc: bcm-vk: add BCM_VK_QSTATS misc: bcm-vk: add tty irq handler misc: bcm-vk: add sysfs interface misc: bcm-vk: add mmap function for exposing BAR2 MAINTAINERS: bcm-vk: add maintainer for Broadcom VK Driver MAINTAINERS | 7 + drivers/misc/Kconfig | 1 + drivers/misc/Makefile | 1 + drivers/misc/bcm-vk/Kconfig | 29 + drivers/misc/bcm-vk/Makefile | 13 + drivers/misc/bcm-vk/README | 99 ++ drivers/misc/bcm-vk/bcm_vk.h | 510 +++++++++ drivers/misc/bcm-vk/bcm_vk_dev.c | 1631 ++++++++++++++++++++++++++++ drivers/misc/bcm-vk/bcm_vk_msg.c | 1363 +++++++++++++++++++++++ drivers/misc/bcm-vk/bcm_vk_msg.h | 169 +++ drivers/misc/bcm-vk/bcm_vk_sg.c | 275 +++++ drivers/misc/bcm-vk/bcm_vk_sg.h | 61 ++ drivers/misc/bcm-vk/bcm_vk_sysfs.c | 1411 ++++++++++++++++++++++++ drivers/misc/bcm-vk/bcm_vk_tty.c | 336 ++++++ include/uapi/linux/misc/bcm_vk.h | 84 ++ 15 files changed, 5990 insertions(+) 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 drivers/misc/bcm-vk/bcm_vk_sysfs.c create mode 100644 drivers/misc/bcm-vk/bcm_vk_tty.c create mode 100644 include/uapi/linux/misc/bcm_vk.h -- 2.17.1