Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp108949pxk; Wed, 30 Sep 2020 19:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB1ybRQLLsKU4dGFi2nNJUFQ/G5Pu/WRxjlHgKXZwsEyeMpdJq4n7xlGuEKVCrzFm7l2R2 X-Received: by 2002:a17:906:4c84:: with SMTP id q4mr6063041eju.525.1601520176523; Wed, 30 Sep 2020 19:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601520176; cv=none; d=google.com; s=arc-20160816; b=iyHfzTY8EUKqSZt6kviJ+wj35Hm4fqOLom0iyIOZ8THJiR9YkE4csys/6to6q7kJYg Rq2CkijJcILS6nQIq+fI5bxnUItuo+9zqbrLYLPExwEq8mAnitoWtK5pTFTfSVIA6Duw 7NzCXuEhQMGXXGnn/n1MJvIVNlrIEMyb+wVmTr+GG9sfHSHRUSfSZaOtr6Ltfd+gpfOX WyETtbgmhnzNwkgioa5ppAW0IARMZl0rvXVfRVlLpaLl9Q5KjiXoWijSZfFV/4/a6MG9 XW1EqMrtjoqJkvBrhZVmdCKHVVPcUoDasP0DELAc8PsAE4TsGvYPJMUPXgc/kHoMpPtp NQ1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=a0nZvmLGuxssVk3Te667uzYZium2xJpXVVf3+GebwuI=; b=IeVHb/7KAsk/43Yhjk8JHYPaoh+k+kQYcitzKAOmFZnPx7ErCftBRJYYx2X6VPJK48 ZjWqGx31BEy2MVHQv7/F3qFhwgiiUm4hrF3nRlfzDELIkuM4M7xqmLYcSJkx2Cy5Xo3p QaawXz8rpW6MI9vGQa0+OdduTJAf5svy+TCFUF6f0kPkwgqso4Fu0cPf2rQJRR5Qk3l2 FFmlh6v50SP0xyaXdLaDa0RdISY00QG99jYhQ4zxLQzT/+X2oFsiCQSKJXkIqLcNftXi +TMIUPKkdT0VoL/9uygEx1YOI5/132o+VKfD85j7fC8lPuP4XRFnQN4gHnbVwVP+jKx+ wsBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="P5r/2kc4"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si2358122edx.497.2020.09.30.19.42.33; Wed, 30 Sep 2020 19:42:56 -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=@gmail.com header.s=20161025 header.b="P5r/2kc4"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729617AbgJACi7 (ORCPT + 99 others); Wed, 30 Sep 2020 22:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbgJACi7 (ORCPT ); Wed, 30 Sep 2020 22:38:59 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14BD0C061755 for ; Wed, 30 Sep 2020 19:38:59 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id t7so1118414pjd.3 for ; Wed, 30 Sep 2020 19:38:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:references:from:subject:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=a0nZvmLGuxssVk3Te667uzYZium2xJpXVVf3+GebwuI=; b=P5r/2kc4nBSKCeWW1KfkqD4symJfkff0sleWJz6FrrgylPkx/oShGKRO1Kc8HK4ipv H+gWfQkTBQgreUY+OX7PYC6JyTVYSkpalJnwhvMiFMPkuJWO/Y5mncLqc2jH2YvPSJ0Z l1wpw48sIseUTvXSX2sfB/XexJHkYUN3oP4VB2oJcSaqioVEIieM+sKTaNVB//aNWCYH J9zuQboYeFYrxU9DxTeY6JD2QLPEGpDmfQSWQzwl9HYhxcCNNTG8my+DJuKyu2Cn+qhG eWapmUw4nhMmTX0cA4SySKGUVkde0zKS+Qm7V6KEQ2lSJux3S3tQRHBwVXCt8NbfMXnx B8VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=a0nZvmLGuxssVk3Te667uzYZium2xJpXVVf3+GebwuI=; b=JDb8E2rQ4CJ0ExUiCPYQjQLmEVs0HbwrLd0yMa5rdW+ToEwOUmw3e0sGBGh11kD6Kc babIaIgP6e8k8Z10m2IQ0uuJiVK6djTGWJ6j/r78D8PDctX7n/sYDZaXbDbR72j2UZRa X4cTBu4Zjo3cCanlAM4yfJBjbrCLtu9/aZLqok43qyeb35dTI1Up9/0LqX8XbnHU7SXq 6hGcTJ/pEIpYWWV2GrnTHD0vjWBbaXIz1EOkMwvRKIgiuDoP6bcLNdckk1Nm5DvwdvWE AdOnNp6+r5efl51hIgmlX429kDYFk9Jr95Zn7rItmNY7qWJWhw73uTQZ0hVScQbKDaPJ jh5w== X-Gm-Message-State: AOAM531mTq435YRQX6xwaV6uuZ/wYHnwdrSA4wckgywhMATN09DQ+vr6 3fwBHmoDMLKsJo2+c/ZYaPDeTsiOdNrMtg== X-Received: by 2002:a17:90a:d703:: with SMTP id y3mr5148588pju.183.1601519938501; Wed, 30 Sep 2020 19:38:58 -0700 (PDT) Received: from [10.230.29.112] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x4sm3967821pff.57.2020.09.30.19.38.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Sep 2020 19:38:57 -0700 (PDT) To: Scott Branden , Arnd Bergmann , Greg Kroah-Hartman , Olof Johansson Cc: Kees Cook , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com References: <20201001012810.4172-1-scott.branden@broadcom.com> From: Florian Fainelli Subject: Re: [PATCH v5 00/15] Add Broadcom VK driver Message-ID: Date: Wed, 30 Sep 2020 19:38:56 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20201001012810.4172-1-scott.branden@broadcom.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/2020 6:27 PM, Scott Branden wrote: > 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/ Disclaimer: I am well aware that it is the complete wild west right now as far as accelerators go and that every vendor (that I happen to work for, just not in the same group as Scott) is just seeking to get their drivers included upstream and hopefully for good reasons. From a cursory look however, it sounds like there could be a little better re-utilization of standards, standard framework and interfaces: - about 2/3 of your sysfs attributes should incline you to implement a HWMON device, not a complicated one, but anything that indicates current, power, temperature, alerts etc. should be considered - cannot the firmware loading be supported over remoteproc somehow? - could not the TTY interface be using virtio or an existing UART? - what is the format of the message over BAR2 that you expose in patch 13? Is there a reference user-space implementation that you can link to this patch submission in case people are curious? Thanks -- Florian